From 59e68f795bf18b71e109a9d03667b2cfa9448506 Mon Sep 17 00:00:00 2001 From: fengchenchen Date: Fri, 25 Aug 2023 17:22:05 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90update=E3=80=91=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E4=BF=AE=E6=94=B9=E6=88=90jtable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mixins/SimpleListMixin.js | 6 +- src/views/system/UserList.vue | 1 - src/views/system/modules/DictModal.vue | 9 ++- src/views/system/tags/modules/AreaModal.vue | 1 - .../tags/modules/TagContentDictListDrawer.vue | 30 ++++---- .../system/tags/pages/ClauseSplittingList.vue | 15 ++-- src/views/system/tags/pages/StandardList.vue | 72 ++++++++----------- src/views/system/tags/pages/TagContent.vue | 36 ++++------ 8 files changed, 74 insertions(+), 96 deletions(-) diff --git a/src/mixins/SimpleListMixin.js b/src/mixins/SimpleListMixin.js index 4134a0bb..f1e49f1a 100644 --- a/src/mixins/SimpleListMixin.js +++ b/src/mixins/SimpleListMixin.js @@ -151,10 +151,8 @@ export const SimpleListMixin = { this.$message.warning('请选择一条记录!') return } - let ids = '' - for (let a = 0; a < this.selectedRowKeys.length; a++) { - ids += this.selectedRowKeys[a] + ',' - } + + const ids = this.selectedRowKeys.join() const that = this this.$confirm({ title: '确认删除', diff --git a/src/views/system/UserList.vue b/src/views/system/UserList.vue index 802ede67..ee1cd132 100644 --- a/src/views/system/UserList.vue +++ b/src/views/system/UserList.vue @@ -311,7 +311,6 @@ export default { }, { title: this.$t('operation'), - dataIndex: 'action', scopedSlots: { customRender: 'action' }, align: 'center', width: 170 diff --git a/src/views/system/modules/DictModal.vue b/src/views/system/modules/DictModal.vue index d6f5bc39..f4f57367 100644 --- a/src/views/system/modules/DictModal.vue +++ b/src/views/system/modules/DictModal.vue @@ -119,12 +119,15 @@ export default { this.model.dictCode = (this.model.dictCode || '').trim() this.model.description = (this.model.description || '').trim() let obj + const formData = Object.assign({}, this.model) if (!this.model.id) { - obj = addDict(this.model) + obj = addDict } else { - obj = editDict(this.model) + obj = editDict } - obj.then((res) => { + // 重要,设置为数据字典内容 + formData.isTagDict = 0 + obj(formData).then((res) => { if (res.success) { that.$message.success(res.message) that.$emit('ok') diff --git a/src/views/system/tags/modules/AreaModal.vue b/src/views/system/tags/modules/AreaModal.vue index ed9268d4..b867f4c3 100644 --- a/src/views/system/tags/modules/AreaModal.vue +++ b/src/views/system/tags/modules/AreaModal.vue @@ -119,7 +119,6 @@ export default { }, { title: this.$t('operation'), - dataIndex: 'action', scopedSlots: { customRender: 'action' }, align: 'left', width: 60 diff --git a/src/views/system/tags/modules/TagContentDictListDrawer.vue b/src/views/system/tags/modules/TagContentDictListDrawer.vue index 6983a104..9c71ae71 100644 --- a/src/views/system/tags/modules/TagContentDictListDrawer.vue +++ b/src/views/system/tags/modules/TagContentDictListDrawer.vue @@ -41,13 +41,13 @@ - - - - @@ -74,24 +67,24 @@