From 142953fe50e67271cebe7a9e3f77ce479a871d3c Mon Sep 17 00:00:00 2001 From: shenyanpei Date: Thu, 21 Oct 2021 11:30:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E5=9B=BD=E5=86=85=E6=B5=B7=E5=A4=96?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E9=A1=B5=E9=9D=A2=E6=94=B9=E4=B8=BA=E6=A0=91?= =?UTF-8?q?=E5=BD=A2=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/index.js | 2 + src/components/mechanismTree/index.vue | 256 ++++++++ .../domesticStandardsAndRegulations/index.vue | 589 ++++++++++-------- .../foreignStandardsAndRegulations/index.vue | 207 ++++-- 4 files changed, 769 insertions(+), 285 deletions(-) create mode 100644 src/components/mechanismTree/index.vue diff --git a/src/components/index.js b/src/components/index.js index fde9957d4..d5f444b04 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -22,6 +22,7 @@ import GenerationNumber from './generationNumber' // 生成企标编号组件 import RoleUserTree from './roleUserTree' // 根据部门和角色查询人员 import DeptRoleTree from './deptRoleTree' // 根据部门查询角色 import RoleTree from './roleTree' // 查询所有机构及人员 +import MechanismTree from './mechanismTree' import SQTree from './SQTree' import OrgTable from './OrgTable' import MySelect from './mySelect' @@ -49,6 +50,7 @@ const install = function (Vue) { Vue.component('SQTree', SQTree) Vue.component('OrgTable', OrgTable) Vue.component('RoleTree', RoleTree) + Vue.component('MechanismTree', MechanismTree) Vue.component('MySelect', MySelect) } diff --git a/src/components/mechanismTree/index.vue b/src/components/mechanismTree/index.vue new file mode 100644 index 000000000..d295a0504 --- /dev/null +++ b/src/components/mechanismTree/index.vue @@ -0,0 +1,256 @@ + + + + + diff --git a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue index b67b31cad..1ab82ad5a 100644 --- a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue +++ b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue @@ -262,7 +262,9 @@ @@ -272,7 +274,7 @@ - @@ -334,31 +336,31 @@ :rules="sarStandardsInfoRules" class="label-input-form" > - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -1434,7 +1498,7 @@ :url="url" :urlChild="urlChild" :defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys2" - :nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs" @popoverHideCancel="popoverHideCarVsCancel"> + :nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs" @popoverHideCancel="popoverHideCarVsCancel"> 导入中... + + @@ -1492,6 +1568,7 @@ import CustomEopDatePick from '@/components/CustomFormComponents/DatePickerWithT import CustomDatePickWithText, {formatText} from '@/components/CustomFormComponents/DatePickerGroupWithText' import CustomSVPPS from '@/components/CustomFormComponents/SVPPS' import CustomRoleTree from '@/components/CustomFormComponents/roleTree' +import MechanismTree from '@/components/mechanismTree' import CustomDatePickWithText2 from '@/components/CustomFormComponents/DatePickerWithText2' import {interfaceUrl} from "@/sysConfig"; import TreeSelect from '@/components/treeSelect/treeSelect.vue'; @@ -1515,12 +1592,19 @@ export default { CustomDatePickWithText, CustomSVPPS, CustomRoleTree, + MechanismTree, CustomDatePickWithText2, TreeSelect, TreeSelectNew }, data() { return { + // 人员树形和部门树形参数 + nodeList: [], + nodeListZRBM: [], + modalshowflagRole: false, + modalshowflagZRBM: false, + textStatusMap: {}, // 文本状态id与name对应 treeList: [], props: { @@ -2235,7 +2319,7 @@ export default { this.modalShowFlag2 = false this.$forceUpdate() }, - popoverHideBusVsCancel(){ + popoverHideBusVsCancel() { this.modalShowFlag2 = false }, popoverHideCarVs(checkedIds, checkedData, isShow, isLoadChild, topId) { @@ -2250,7 +2334,7 @@ export default { } this.modalShowFlag3 = false this.$forceUpdate() - },popoverHideCarVsCancel(){ + }, popoverHideCarVsCancel() { this.modalShowFlag3 = false }, popoverHideModel(checkedIds, checkedData, isShow, isLoadChild, topId) { @@ -2265,7 +2349,7 @@ export default { } this.modalShowFlag4 = false this.$forceUpdate() - },popoverHideModelCancel(){ + }, popoverHideModelCancel() { this.modalShowFlag4 = false }, // 将文本状态的id与name对应 @@ -4566,7 +4650,49 @@ export default { break } } - } + }, + choiceRole(type, title, id) { + this.nodeList = [] + this.nodeList.push(id) + this.drawerTitle = title + this.modalshowflagRole = true + }, + drawerCheck(data) { + let idList = '' + let nameList = '' + data.forEach(item => { + if (nameList.length > 0) { + nameList += ',' + idList += ',' + } + idList += item.id + nameList += item.name + }) + this.sarStandardsInfoEO.ZRGCSUserId = idList; + this.sarStandardsInfoEO['ZRGCS'] = nameList; + }, + choiceZRBM(type, title, id) { + this.nodeListZRBM = [] + this.nodeListZRBM.push(id) + this.drawerTitle = title + this.modalshowflagZRBM = true + }, + drawerCheckZRBM(data) { + let idList = '' + let nameList = '' + data.forEach(item => { + if (item.hasChild === '0' && item.children === null) { + if (nameList.length > 0) { + nameList += ',' + idList += ',' + } + idList += item.id + nameList += item.name + } + }) + this.sarStandardsInfoEO.ZRBMId = idList; + this.sarStandardsInfoEO['ZRBM'] = nameList; + }, }, computed: { // 是否拥有拖拽权限 @@ -4779,6 +4905,7 @@ export default { .el-card { min-width: min-content; } + height: 95%; width: calc(~'100% - 15px'); position: absolute;