diff --git a/src/views/components/dialog/index.vue b/src/views/components/dialog/index.vue index deee8a2..7189839 100644 --- a/src/views/components/dialog/index.vue +++ b/src/views/components/dialog/index.vue @@ -154,13 +154,25 @@ width="150" header-align="center" > + + {{ componendDistrict("0" + scope.row.subdistrict) }} + + + + {{ + scope.row.indusTypeClass != "null" + ? filterTable(optionstwo.category, scope.row.indusTypeClass) + : "" + }} + + @@ -59,6 +59,11 @@ export default { this.pageNum = 1; this.$emit('pagesChange',{pageSize:e,pageNum:this.pageNum}) }, + // 回到默认页码 + defaultPages(){ + this.pageSize = 10; + this.pageNum = 1; + }, //算数 numberMap() { // if (this.total == this.tableData.length) { diff --git a/src/views/yingji/echarts/executive.vue b/src/views/yingji/echarts/executive.vue index 712d4b9..60080cc 100644 --- a/src/views/yingji/echarts/executive.vue +++ b/src/views/yingji/echarts/executive.vue @@ -1,3 +1,11 @@ + @@ -24,7 +24,7 @@ 区划: - + @@ -74,6 +74,9 @@ width="180" header-align="center" > + + {{ componendDistrict(scope.row.district) }} + - + { + if(item.value == district) { + name = item.label + } else { + item.children.map((itemTwo)=>{ + if(itemTwo.value == district) { + name = item.label + '-' + itemTwo.label + } + }) + } + }) + return name + }, + // 获取行政区划树 + quhuadizhi(district) { + this.option = district + }, reset() { this.form = { district: "", @@ -312,6 +336,7 @@ export default { pageSize: 10, pageNum: 1, }; + this.$refs.mypagination.defaultPages(); }, //重置列表 chongzhiList() { @@ -343,6 +368,11 @@ export default { if (this.district) { this.form.district = this.district; } + this.searchBefore = { + pageSize: 10, + pageNum: 1, + }; + this.$refs.mypagination.defaultPages(); this.searchBefore = { ...this.searchBefore, ...this.form }; this.getList(); }, diff --git a/src/views/yingji/enterprise.vue b/src/views/yingji/enterprise.vue index abdd957..b597e02 100644 --- a/src/views/yingji/enterprise.vue +++ b/src/views/yingji/enterprise.vue @@ -12,7 +12,7 @@ :disabled="isNoneDivision" > --> - + 经济类型: @@ -98,14 +98,26 @@ style="width: 100%" :height="497" :border="false" + tooltip-effect="light" :row-class-name="tableRowClassName" > + + + {{ componendDistrict("0" + scope.row.subdistrict) }} + + { + if(item.value == district) { + name = item.label + } else { + item.children.map((itemTwo)=>{ + if(itemTwo.value == district) { + name = item.label + '-' + itemTwo.label + } + }) + } + }) + return name + }, + // 获取行政区划树 + quhuadizhi(district) { + this.option = district + }, getDict() { listDist({ list: "economic_categories,category,major_hazard_level,entpr_color", @@ -681,6 +715,11 @@ export default { this.subdistrict = e; }, searchList() { + this.searchBefore = { + pageSize: 10, + pageNum: 1, + }; + this.$refs.mypagination.defaultPages(); if (this.subdistrict) { this.form.subdistrict = this.subdistrict; } @@ -702,6 +741,7 @@ export default { pageSize: 10, pageNum: 1, }; + this.$refs.mypagination.defaultPages(); this.getList(); }, // 页码,当前页切换事件 diff --git a/src/views/yingji/focusEnter.vue b/src/views/yingji/focusEnter.vue index 4f96d31..aea9ce7 100644 --- a/src/views/yingji/focusEnter.vue +++ b/src/views/yingji/focusEnter.vue @@ -4,7 +4,7 @@ * @Author: JC9527 * @Date: 2023-09-04 10:20:06 * @LastEditors: JC9527 - * @LastEditTime: 2023-09-27 13:52:16 + * @LastEditTime: 2023-09-27 17:06:02 --> @@ -34,7 +34,7 @@ :disabled="isNoneDivision" > --> - + @@ -98,6 +99,7 @@ @@ -131,7 +133,7 @@ - + {{ - details.district + componendDistrict(details.district) }} {{ details.remark @@ -381,6 +383,26 @@ export default { }), }, methods: { + // 匹配行政区划 + componendDistrict(district){ + let name + this.options.map((item)=>{ + if(item.value == district) { + name = item.label + } else { + item.children.map((itemTwo)=>{ + if(itemTwo.value == district) { + name = item.label + '-' + itemTwo.label + } + }) + } + }) + return name + }, + // 获取行政区划树 + quhuadizhi(district) { + this.options = district + }, getTreeList() { xzTree().then((res1) => { if (this.dept.parentId == 0) { @@ -407,6 +429,11 @@ export default { this.district = e; }, searchList() { + this.searchBefore = { + pageSize: 10, + pageNum: 1, + }; + this.$refs.mypagination.defaultPages(); if (this.district) { this.queryParms.district = this.district; } @@ -432,6 +459,7 @@ export default { pageSize: 10, pageNum: 1, }; + this.$refs.mypagination.defaultPages(); this.queryParms.year = ""; // this.district = []; this.queryParms.uscCode = ""; @@ -588,6 +616,7 @@ export default { pageSize: 10, pageNum: 1, }; + this.$refs.mypagination.defaultPages(); this.getList(); this.$refs.uploadOver.clearFiles(); }) diff --git a/src/views/yingji/home.vue b/src/views/yingji/home.vue index 1ce54f0..016735f 100644 --- a/src/views/yingji/home.vue +++ b/src/views/yingji/home.vue @@ -2,8 +2,8 @@ - 年份: - + 年月: + @@ -77,7 +77,10 @@ show-overflow-tooltip width="180" header-align="center" - > + > + + {{ componendDistrict(scope.row.district) }} + --> - + @@ -258,6 +261,9 @@ // districtTwo = district.split(1,11) // obj = { ...this.pages, ...newForm,district:districtTwo }; // } + this.pages.pageNum = 1; + this.pages.pageSize = 10; + this.$refs.mypagination.defaultPages(); let obj = obj = { ...this.pages, ...newForm }; // district = district[1] this.getList(obj) @@ -266,6 +272,22 @@ } }, methods:{ + // 匹配行政区划 + componendDistrict(district){ + let name + this.options.map((item)=>{ + if(item.subdistrict == district) { + name = item.institutionName + } else { + item.children.map((itemTwo)=>{ + if(itemTwo.subdistrict == district) { + name = item.institutionName + '-' + itemTwo.institutionName + } + }) + } + }) + return name + }, // 页码,当前页切换事件 pagesChange(pages){ this.getList(pages) @@ -299,6 +321,9 @@ }, // 重置筛选 reset(){ + this.pages.pageNum = 1; + this.pages.pageSize = 10; + this.$refs.mypagination.defaultPages(); let obj if(this.dept.parentId !== 0) { let { district} = this.form; @@ -316,6 +341,9 @@ // 新增成功后关闭dialog事件触发 padlock(){ let { district} = this.form; + this.pages.pageNum = 1; + this.pages.pageSize = 10; + this.$refs.mypagination.defaultPages(); let obj = {...this.pages,district} this.getList(obj); }, diff --git a/vue.config.js b/vue.config.js index 47be370..27ef35c 100644 --- a/vue.config.js +++ b/vue.config.js @@ -49,8 +49,8 @@ module.exports = { // }, // }, '/api': { - // target: `http://39.101.188.84:9033`, - target: `http://192.168.0.119:9033`, + target: `http://39.101.188.84:9033`, + // target: `http://192.168.0.119:9033`, changeOrigin: true, pathRewrite: { '^/api': ''