From e4dadbc99fe983b1e9a46a761fcd98bc2459db65 Mon Sep 17 00:00:00 2001 From: laozt <2721205210@qq.com> Date: Thu, 19 Oct 2023 16:16:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=8C=E6=94=BF=E5=8C=BA=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/dialog/index.vue | 90 ++++++++++++----------- src/views/components/dialogInfo/index.vue | 18 ++--- src/views/yingji/enterprise.vue | 4 +- 3 files changed, 58 insertions(+), 54 deletions(-) diff --git a/src/views/components/dialog/index.vue b/src/views/components/dialog/index.vue index ae56403..e0f5241 100644 --- a/src/views/components/dialog/index.vue +++ b/src/views/components/dialog/index.vue @@ -58,7 +58,7 @@ --> -
+
-
行业类型:
- +
行业监管大类:
+ -->
@@ -128,57 +128,47 @@ > - - - + @@ -300,6 +290,8 @@ import myPagination from "@/views/components/myPagination/index.vue"; import firmDialog from "@/views/components/firmDialog/index.vue"; import { Loading } from "element-ui"; import { mapState } from "vuex"; +import dictzh from "@/utils/dictzh.js"; + export default { dicts: [ "category", @@ -311,6 +303,7 @@ export default { components: { myPagination, firmDialog }, data() { return { + dictzh: dictzh, dialogVisible: false, tableData: [], listOne: [], @@ -396,6 +389,17 @@ export default { // deep:true, // } // }, + filters: { + supervisionLarge: function (value) { + // console.log(value.split(",")); + let array = value.split(","); + array.map((item, ind) => { + array[ind] = dictzh[item]; + }); + // console.log(array.join(",")); + return array.join(","); + }, + }, methods: { // 返回上一步 selectFirm() { @@ -508,7 +512,7 @@ export default { }, // 重置 reset() { - (this.form = { + this.form = { subdistrict: this.workingArea, frimType: "", indusTypeClass: "", @@ -516,8 +520,8 @@ export default { majorHazardLevel: "", entprColor: "", uscCode: "", - }), - (this.pages.pageNum = 1); + }; + this.pages.pageNum = 1; this.pages.pageSize = 10; this.$refs.mypagination.defaultPages(); // let obj = {...this.pages,...this.form} @@ -529,7 +533,7 @@ export default { this.getTable({ ...this.pages, ...this.form, - subdistrict: this.subdistrict, + SUBDISTRICT: this.subdistrict, }); }, // 当前行的checkBox是否可以勾选 @@ -583,12 +587,10 @@ export default { if (dept.ancestors.split(",").length == 3) { this.gettownNumbers(); } - // this.getTable(this.pages); } else { this.amendId = item.id; this.isamend = true; this.getList(item); - // this.getTable(this.pages); } }, // 关闭 @@ -635,6 +637,7 @@ export default { }, // 查看/切换页码时的网络请求 async getTable(pages) { + console.log(pages, "pages"); this.loading = true; let data = await this.$api.yingji.basicList(pages); // console.log(data.data.count, '重点企业总数'); @@ -645,12 +648,13 @@ export default { // : this.unselected == 0 // ? (this.unCount = 0) // : (this.unCount = data.data.count - this.unselected); - this.total = data.data.total; + console.log(data); + this.total = data.total; // console.log(this.unselected,'this.unselected') if (data.code == 200) { this.loading = false; } - this.tableData = data.data.list; + this.tableData = data.rows; // console.log(isAncestors,'isAncestors') if (this.dept.ancestors.split(",").length == 3) { this.tableData.forEach((item) => { diff --git a/src/views/components/dialogInfo/index.vue b/src/views/components/dialogInfo/index.vue index 57d624f..9013f1e 100644 --- a/src/views/components/dialogInfo/index.vue +++ b/src/views/components/dialogInfo/index.vue @@ -352,25 +352,25 @@ export default { value: "", }, ], - dialogVisible:false, - } + dialogVisible: false, + }; }, - methods:{ + methods: { open(item) { - console.log(item) + console.log(item); this.dialogVisible = true; }, Close() { this.dialogVisible = false; }, - getList(){ + getList() { businessList(this.searchBefore).then((res) => { - this.tableData = res.data.list; - this.total = res.data.total; + this.tableData = res.rows; + this.total = res.total; }); - } + }, }, -} +};