From 6aaa35c260ffe9d411670ea5d960dc2d43cb477f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Wed, 21 Jul 2021 18:37:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../foreignStandardsAndRegulations/index.vue | 1 + .../nonConfomity/index.vue | 6 +- .../pages/rectificationDatabase.vue | 42 ++++- .../standardForComments/index.vue | 175 +++++++++--------- 4 files changed, 133 insertions(+), 91 deletions(-) diff --git a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue index 00aa92163..6b8b6f7e6 100644 --- a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue +++ b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue @@ -1946,6 +1946,7 @@ export default { }, // 点击查看 handlePreview (item) { + console.log(item); let routeUrl = this.$router.resolve({ name: 'OtherStandardDetails', params: { diff --git a/src/pages/regulatoryRepository/nonConfomity/index.vue b/src/pages/regulatoryRepository/nonConfomity/index.vue index 725176438..28d7bce89 100644 --- a/src/pages/regulatoryRepository/nonConfomity/index.vue +++ b/src/pages/regulatoryRepository/nonConfomity/index.vue @@ -6,9 +6,9 @@ - - - + + + diff --git a/src/pages/regulatoryRepository/nonConfomity/pages/rectificationDatabase.vue b/src/pages/regulatoryRepository/nonConfomity/pages/rectificationDatabase.vue index 49ff416ad..3ef6e2189 100644 --- a/src/pages/regulatoryRepository/nonConfomity/pages/rectificationDatabase.vue +++ b/src/pages/regulatoryRepository/nonConfomity/pages/rectificationDatabase.vue @@ -26,7 +26,7 @@ >
责任部门:
-
{{item.responseUnitShow}}
+
{{item.responsibleUnitShow}}
责任工程师:
@@ -370,7 +370,7 @@
责任部门:
-
{{item.responseUnitShow}}
+
{{item.responsibleUnitShow}}
责任工程师:
@@ -524,6 +524,35 @@ export default { }) } }, + // 获取组织机构数据 + getOrgTreeSource () { + this.$http.get('sys/org/getTree', {}, { + _this: this + }, + res => { + if (res.ok) { + let treeNode = [] + res.data.map((item, index) => { + let treeItem = {} + for (let key in item) { + if (key === 'orgName') { + treeItem.name = item[key] + } else { + treeItem[key] = item[key] + } + } + treeNode[index] = treeItem + }) + this.zNodesS = JSON.parse(JSON.stringify(treeNode)) + this.zNodesSItem = JSON.parse(JSON.stringify(treeNode)) + this.searchInlandNodes = JSON.parse(JSON.stringify(treeNode)) + } + }, e => {}) + }, + treeClickSearch (treeId, treeNode) { + this.nonConformitySearch.responsibleUnit = treeNode.id + this.nonConformitySearch.responsibleUnitShow = treeNode.name + }, // 清空 查询条件 clearAllSearch (search = true) { this.nonConformitySearch = { @@ -573,12 +602,13 @@ export default { }, // 点击查看 handlePreview (item) { + console.log(item); let routeUrl = this.$router.resolve({ name: 'OtherStandardDetails', params: { - //gslh3tgg7kot97ay5oz0 id: item.id, - pageType: item.standType + '_STAND' + pageType: 'FOREIGN_STAND' + // pageType: item.standType + '_STAND' } }) window.open(routeUrl.href, '_blank') @@ -625,6 +655,8 @@ export default { }, mounted () { this.getTableByPage() + // 加载所有的部门 + this.getOrgTreeSource() } }; diff --git a/src/pages/regulatoryRepository/standardForComments/index.vue b/src/pages/regulatoryRepository/standardForComments/index.vue index 98f515675..f59f8f7b3 100644 --- a/src/pages/regulatoryRepository/standardForComments/index.vue +++ b/src/pages/regulatoryRepository/standardForComments/index.vue @@ -9,10 +9,12 @@
- + - + 查询 + @click="sarStandCompareHisInfo">查询 + 清空 + @click="clearSearchStand">清空 +
@@ -54,7 +58,7 @@ label="标准" align="center">
- + 数据加载中……