diff --git a/src/assets/languages/cn.js b/src/assets/languages/cn.js index ee1dbbd3d..648cb25fc 100644 --- a/src/assets/languages/cn.js +++ b/src/assets/languages/cn.js @@ -260,6 +260,7 @@ export const m = { findByTheResponsibilityDepartment: '根据责任部门查找', findByNormativeReferenceStandard: '根据规范性引用标准查找', lookupByStandardStatus: '根据标准状态查找', + lookupByStandardStatusText: '根据文本状态查找', findByPrincipalCompiler: '根据主要编制者查找', contentInThisPaper: '内容摘要', substituteForStandNumber: '代替标准号', diff --git a/src/components/roleTree/index.vue b/src/components/roleTree/index.vue index 52e99ada9..3b912a230 100644 --- a/src/components/roleTree/index.vue +++ b/src/components/roleTree/index.vue @@ -125,6 +125,7 @@ data () { return { visible: false, + selectList: [], nodeList2: [], delList: [], roleList: [], @@ -300,7 +301,21 @@ this.delList = [data] } } else { // 多选 - this.roleList = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes()) + if (this.roleList.length === 0) { + this.roleList.push(data) + } else { + let delFlag = true + this.roleList.forEach((item, index) => { + if (item.id === data.id) { + this.roleList.splice(index, 1) + delFlag = false + } + }) + if (delFlag) { + this.roleList.push(data) + } + } + // this.roleList = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes()) } }, loadNode(node, resolve) { diff --git a/src/pages/details/otherStandardDetails/index.vue b/src/pages/details/otherStandardDetails/index.vue index b86d6a15d..e6dd6ee42 100644 --- a/src/pages/details/otherStandardDetails/index.vue +++ b/src/pages/details/otherStandardDetails/index.vue @@ -64,15 +64,15 @@ sarStandardsInfoEO.standEnName || '-' }}

-