|
@@ -19,7 +19,7 @@
|
|
</el-upload>
|
|
</el-upload>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
- <data-table :fields="fields" :data="list" :opera="opera" @edit="toEdit" @delete="toDelete" @select="toSelect"></data-table>
|
|
|
|
|
|
+ <data-table :fields="fields" :data="list" :opera="opera" @share="share" @edit="toEdit" @delete="toDelete" @select="toSelect"></data-table>
|
|
</list-frame>
|
|
</list-frame>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -49,6 +49,14 @@ export default {
|
|
{ label: '确认入库', value: '4' },
|
|
{ label: '确认入库', value: '4' },
|
|
],
|
|
],
|
|
opera: [
|
|
opera: [
|
|
|
|
+ {
|
|
|
|
+ label: '确定',
|
|
|
|
+ icon: 'el-icon-view',
|
|
|
|
+ method: 'share',
|
|
|
|
+ display: item => {
|
|
|
|
+ return item.schid == null;
|
|
|
|
+ },
|
|
|
|
+ },
|
|
{
|
|
{
|
|
label: '编辑',
|
|
label: '编辑',
|
|
icon: 'el-icon-edit',
|
|
icon: 'el-icon-edit',
|
|
@@ -132,6 +140,10 @@ export default {
|
|
this.$set(this, `total`, res.total);
|
|
this.$set(this, `total`, res.total);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 确定按钮
|
|
|
|
+ share({ data }) {
|
|
|
|
+ console.log(data);
|
|
|
|
+ },
|
|
toEdit({ data }) {
|
|
toEdit({ data }) {
|
|
this.$router.push({ path: '/teacher/detail', query: { id: data.id } });
|
|
this.$router.push({ path: '/teacher/detail', query: { id: data.id } });
|
|
},
|
|
},
|