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)
},
selectionChangeHandler(val) {
let finalVal
if (val.length > 1) {
// val
finalVal = val.pop()
const finalVal = val.pop()
//
this.$refs.table.clearSelection()
//
this.$refs.table.toggleRowSelection(finalVal)
this.crud.selectionChangeHandler([finalVal])
} 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)
},
selectionChangeHandler(val) {
let finalVal
if (val.length > 1) {
// val
finalVal = val.pop()
const finalVal = val.pop()
//
this.$refs.table.clearSelection()
//
this.$refs.table.toggleRowSelection(finalVal)
this.crud.selectionChangeHandler([finalVal])
} else {
finalVal = val
this.crud.selectionChangeHandler(val)
}
this.crud.selectionChangeHandler(finalVal)
}
}
}

Loading…
Cancel
Save