Browse Source

恢复 新增 / 修改

master
zhaoyongnian 3 years ago
parent
commit
ce2adb3bbc
  1. 8
      src/mixins/view-module.js

8
src/mixins/view-module.js

@ -102,6 +102,14 @@ export default {
this.page = 1 this.page = 1
this.query() this.query()
}, },
// 新增 / 修改
addOrUpdateHandle (id) {
this.addOrUpdateVisible = true
this.$nextTick(() => {
this.$refs.addOrUpdate.dataForm.id = id
this.$refs.addOrUpdate.init()
})
},
// 删除 // 删除
deleteHandle (id) { deleteHandle (id) {
if (this.mixinViewModuleOptions.deleteIsBatch && !id && this.dataListSelections.length <= 0) { if (this.mixinViewModuleOptions.deleteIsBatch && !id && this.dataListSelections.length <= 0) {

Loading…
Cancel
Save