|
|
|
@ -123,11 +123,13 @@
|
|
|
|
}"
|
|
|
|
}"
|
|
|
|
:row-config="{ keyField: 'id' }"
|
|
|
|
:row-config="{ keyField: 'id' }"
|
|
|
|
:custom-config="{ mode: 'popup' }"
|
|
|
|
:custom-config="{ mode: 'popup' }"
|
|
|
|
|
|
|
|
:menu-config="menuConfig"
|
|
|
|
:data="list"
|
|
|
|
:data="list"
|
|
|
|
@cell-click="cellClickEvent"
|
|
|
|
@cell-click="cellClickEvent"
|
|
|
|
@cell-dblclick="cellDblclickEvent"
|
|
|
|
@cell-dblclick="cellDblclickEvent"
|
|
|
|
@checkbox-change="checkboxChange"
|
|
|
|
@checkbox-change="checkboxChange"
|
|
|
|
@checkbox-all="checkboxChange"
|
|
|
|
@checkbox-all="checkboxChange"
|
|
|
|
|
|
|
|
@menu-click="contextMenuClickEvent"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<vxe-column type="checkbox" width="50" align="center"></vxe-column>
|
|
|
|
<vxe-column type="checkbox" width="50" align="center"></vxe-column>
|
|
|
|
<vxe-column :visible="$store.getters.device === 'mobile'" field="m-operate" type="expand" title="操作" width="60" align="center">
|
|
|
|
<vxe-column :visible="$store.getters.device === 'mobile'" field="m-operate" type="expand" title="操作" width="60" align="center">
|
|
|
|
@ -644,6 +646,20 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
computed: {
|
|
|
|
|
|
|
|
menuConfig() {
|
|
|
|
|
|
|
|
if (this.$store.state.user.adminId === 1) {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
className: 'my-menus',
|
|
|
|
|
|
|
|
body: {
|
|
|
|
|
|
|
|
options: [
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
{ code: 'edit', name: '编辑', prefixConfig: { icon: 'vxe-icon-feedback' } },
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
watch: {
|
|
|
|
'select.custom_model_id': {
|
|
|
|
'select.custom_model_id': {
|
|
|
|
|