From a9aba0f271b733a60340ed78011451337562fb3e Mon Sep 17 00:00:00 2001 From: laozt <2721205210@qq.com> Date: Thu, 14 Dec 2023 11:20:19 +0800 Subject: [PATCH] =?UTF-8?q?tab=E5=88=86=E7=A6=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/dialog/index.vue | 200 +------ src/views/components/dialog/tab1.vue | 658 +++++++++++++++++++++++ src/views/yingji/planManage copy.vue | 727 ++++++++++++++++++++++++++ src/views/yingji/planManage.vue | 78 +-- 4 files changed, 1431 insertions(+), 232 deletions(-) create mode 100644 src/views/components/dialog/tab1.vue create mode 100644 src/views/yingji/planManage copy.vue diff --git a/src/views/components/dialog/index.vue b/src/views/components/dialog/index.vue index 2495b17..dd4a5b1 100644 --- a/src/views/components/dialog/index.vue +++ b/src/views/components/dialog/index.vue @@ -48,128 +48,12 @@
-
-
-
行政区划:
- -
-
-
行业监管大类:
- - - - -
-
-
是否重点:
- - - - -
-
- -
-
- -
-
-
搜索
-
重置
-
-
-
- - - - - - - - - - - - - - -
- - +
@@ -177,7 +61,7 @@
@@ -185,17 +69,11 @@
- diff --git a/src/views/yingji/planManage copy.vue b/src/views/yingji/planManage copy.vue new file mode 100644 index 0000000..3e168ca --- /dev/null +++ b/src/views/yingji/planManage copy.vue @@ -0,0 +1,727 @@ + + + + diff --git a/src/views/yingji/planManage.vue b/src/views/yingji/planManage.vue index 3e168ca..6a49b88 100644 --- a/src/views/yingji/planManage.vue +++ b/src/views/yingji/planManage.vue @@ -471,41 +471,41 @@ export default { this.total = res.data.total; } }, - commentData(item, dept) { - item.map((item) => { - item.children.map((itemTwo) => { - if (itemTwo.children.length == 0) { - delete itemTwo.children; - } - itemTwo.county = itemTwo.subdistrict; - }); - }); - // } - this.options = item; - if (dept.ancestors.split(",").length == 2) { - this.options = this.options.filter((item) => { - return item.institutionName == dept.deptName; - }); - this.options.map((item) => { - if (item.institutionName == dept.deptName) { - this.form.district = item.subdistrict; - this.mydistrict = item.subdistrict; - this.county = true; - } - }); - } else if (dept.ancestors.split(",").length == 3) { - this.options.map((item) => { - item.children.map((itemTwo) => { - if (itemTwo.institutionName == dept.deptName) { - this.form.district = itemTwo.subdistrict; - this.mydistrict = itemTwo.subdistrict; - this.county = false; - } - }); - }); - this.disabled = true; - } - }, + // commentData(item, dept) { + // item.map((item) => { + // item.children.map((itemTwo) => { + // if (itemTwo.children.length == 0) { + // delete itemTwo.children; + // } + // itemTwo.county = itemTwo.subdistrict; + // }); + // }); + // // } + // this.options = item; + // if (dept.ancestors.split(",").length == 2) { + // this.options = this.options.filter((item) => { + // return item.institutionName == dept.deptName; + // }); + // this.options.map((item) => { + // if (item.institutionName == dept.deptName) { + // this.form.district = item.subdistrict; + // this.mydistrict = item.subdistrict; + // this.county = true; + // } + // }); + // } else if (dept.ancestors.split(",").length == 3) { + // this.options.map((item) => { + // item.children.map((itemTwo) => { + // if (itemTwo.institutionName == dept.deptName) { + // this.form.district = itemTwo.subdistrict; + // this.mydistrict = itemTwo.subdistrict; + // this.county = false; + // } + // }); + // }); + // this.disabled = true; + // } + // }, }, async created() { // let data = await this.$api.yingji.tree(); @@ -513,10 +513,10 @@ export default { let treeData = JSON.parse(localStorage.getItem("TREE_DATA")); this.myDistrict = treeData; - this.commentData(treeData, this.dept); - if (this.dept.ancestors.split(",").length == 1) { - this.getList(this.pages); - } + // this.commentData(treeData, this.dept); + // if (this.dept.ancestors.split(",").length == 1) { + // this.getList(this.pages); + // } }, };