责任工程师:
@@ -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">
- {{ scope.row.category }}
+ {{ scope.row.category }}
-