diff --git a/src/api/unqualProcess.js b/src/api/unqualProcess.js index a87c8a3ac..94d623b60 100644 --- a/src/api/unqualProcess.js +++ b/src/api/unqualProcess.js @@ -24,3 +24,17 @@ export function uploadFileText (data) { params: data }) } +export function dicTypeData (data) { + return axios({ + url: 'api/sys/dictype/getDicTypeListCode', + method: 'get', + params: data + }) +} +export function StandardsInfoPage (data) { + return axios({ + url: 'api/sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', + method: 'get', + params: data + }) +} diff --git a/src/components/treeSelect/treeSelectNew.vue b/src/components/treeSelect/treeSelectNew.vue index 1ac8eb973..b8a892ea0 100644 --- a/src/components/treeSelect/treeSelectNew.vue +++ b/src/components/treeSelect/treeSelectNew.vue @@ -218,6 +218,20 @@ this.isShowSelect = !this.isShowSelect; } }, + // 递归 + getTreeData(data) { + // 循环遍历json数据 + for (let i = 0; i < data.length; i++) { + if (data[i].children.length < 1) { + // children若为空数组,则将children设为undefined + delete data[i].children + } else { + // children若不为空数组,则继续 递归调用 本方法 + this.getTreeData(data[i].children) + } + } + return data + }, // 节点选中状态发生变化时的回调 handleCheckChange () { var checkedKeys = this.$refs.tree.getCheckedKeys(); // 所有被选中的节点的 key 所组成的数组数据 diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue index 69bb4a9e0..9300400fc 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue @@ -80,7 +80,7 @@ - +
- - - - - - - + + + +
@@ -403,18 +395,12 @@ align="center" width="180px" label="适用车型"> - - - - - +