diff --git a/src/router/index.js b/src/router/index.js index 29880f91..995037be 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -128,6 +128,16 @@ export const moduleShujuRoutes = { isTab: true, }, }, + { + path: "/main-shuju/visual-basicinfo-people-list", + props: true, + component: () => import("@/views/modules/visual/basicinfo/peopleList"), + name: "visual-basicinfo-people-list", + meta: { + title: "人员列表", + isTab: true, + }, + }, ], }; diff --git a/src/views/modules/visual/basicinfo/basicInfoMain.vue b/src/views/modules/visual/basicinfo/basicInfoMain.vue index 99bd6f30..a9edec04 100644 --- a/src/views/modules/visual/basicinfo/basicInfoMain.vue +++ b/src/views/modules/visual/basicinfo/basicInfoMain.vue @@ -107,7 +107,7 @@
+ class="list_item_col" @click="handleTo(colItem)">
@@ -310,6 +310,15 @@ const vueGis = { }, methods: { + handleTo(item) { + this.$router.push({ + path: `/main-shuju/visual-basicinfo-people-list`, + query: { + columnName: item.columnName, + label: item.label + } + }); + }, hideAgencyList () { this.showAgencyList = !this.showAgencyList // if (this.showAgencyList) { diff --git a/src/views/modules/visual/basicinfo/peopleList.vue b/src/views/modules/visual/basicinfo/peopleList.vue new file mode 100644 index 00000000..91e30121 --- /dev/null +++ b/src/views/modules/visual/basicinfo/peopleList.vue @@ -0,0 +1,251 @@ + + + + + + + + + + + diff --git a/src/views/modules/visual/communityParty/party.vue b/src/views/modules/visual/communityParty/party.vue index edbc2995..050753fd 100644 --- a/src/views/modules/visual/communityParty/party.vue +++ b/src/views/modules/visual/communityParty/party.vue @@ -42,6 +42,9 @@
+
+ 导出 +
+
+ 导出 +
{ + console.log('resllll', res) + let fileName = window.decodeURI(res.headers["content-disposition"].split(";")[1].split("=")[1]) + console.log('filename', fileName) + let blob = new Blob([res.data], { type: 'application/vnd.ms-excel' }) + var url = window.URL.createObjectURL(blob) + var aLink = document.createElement('a') + aLink.style.display = 'none' + aLink.href = url + aLink.setAttribute('download', fileName) + document.body.appendChild(aLink) + aLink.click() + document.body.removeChild(aLink) //下载完成移除元素 + window.URL.revokeObjectURL(url) //释放掉blob对象 + }) + .catch((err) => { + console.log('获取导出失败', err) + return this.$message.error('网络错误') + }) + }, }, }; @@ -1032,4 +1077,14 @@ export default { padding: 0 30px; // overflow-y: scroll; } +.ecahrts-button { + width: 100%; + padding-right: 30px; + text-align: right; + ::v-deep .el-button--warning { + + background: linear-gradient(90deg, #0863EA, #3B9FFC); + border: 0; + } +}