Browse Source

常用字段管理修改

master
z_yu 3 years ago
parent
commit
4ff771032b
  1. 7
      src/views/archivesConfig/commonFields/index.vue
  2. 7
      src/views/archivesConfig/dict/dictDetail.vue

7
src/views/archivesConfig/commonFields/index.vue

@ -66,18 +66,17 @@ export default {
this.$refs.table.toggleRowSelection(row) this.$refs.table.toggleRowSelection(row)
}, },
selectionChangeHandler(val) { selectionChangeHandler(val) {
let finalVal
if (val.length > 1) { if (val.length > 1) {
// val // val
finalVal = val.pop()
const finalVal = val.pop()
// //
this.$refs.table.clearSelection() this.$refs.table.clearSelection()
// //
this.$refs.table.toggleRowSelection(finalVal) this.$refs.table.toggleRowSelection(finalVal)
this.crud.selectionChangeHandler([finalVal])
} else { } else {
finalVal = val
this.crud.selectionChangeHandler(val)
} }
this.crud.selectionChangeHandler(finalVal)
} }
} }
} }

7
src/views/archivesConfig/dict/dictDetail.vue

@ -116,18 +116,17 @@ export default {
this.$refs.table.toggleRowSelection(row) this.$refs.table.toggleRowSelection(row)
}, },
selectionChangeHandler(val) { selectionChangeHandler(val) {
let finalVal
if (val.length > 1) { if (val.length > 1) {
// val // val
finalVal = val.pop()
const finalVal = val.pop()
// //
this.$refs.table.clearSelection() this.$refs.table.clearSelection()
// //
this.$refs.table.toggleRowSelection(finalVal) this.$refs.table.toggleRowSelection(finalVal)
this.crud.selectionChangeHandler([finalVal])
} else { } else {
finalVal = val
this.crud.selectionChangeHandler(val)
} }
this.crud.selectionChangeHandler(finalVal)
} }
} }
} }

Loading…
Cancel
Save