From cbbbc6bd2d854270b9342ce2ff2a3432aaca22cf Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期六, 18 二月 2023 15:19:31 +0800 Subject: [PATCH] 版本更新 --- src/views/Archive/index.vue | 178 ++++++++++++++++++++++++++++++++++++++++++++--------------- 1 files changed, 132 insertions(+), 46 deletions(-) diff --git a/src/views/Archive/index.vue b/src/views/Archive/index.vue index 3bf4906..6927a0c 100644 --- a/src/views/Archive/index.vue +++ b/src/views/Archive/index.vue @@ -153,7 +153,7 @@ @change="handleChange1" :props="{ label: 'name', - value: 'id', + value: 'code', children: 'children', checkStrictly: true, emitPath: false, @@ -171,7 +171,7 @@ <el-button icon="el-icon-search" @click="searchDataLibSelectTabs" - size="mini" + size="small" >{{ $t('common.iquery') }}</el-button> @@ -179,7 +179,7 @@ icon="el-icon-refresh" @click="restDataLibSelectTabs" type="info" - size="mini" + size="small" >{{ $t('common.reset') }}</el-button> @@ -187,7 +187,7 @@ <el-form-item> <el-button @click="getSpaceMapVisibale" - size="mini" + size="small" >{{ $t('synthesis.rangequery') }}</el-button> @@ -195,7 +195,7 @@ <el-form-item> <el-button @click="getdownloadList" - size="mini" + size="small" >{{ $t('synthesis.DownloadList') }}</el-button> @@ -205,14 +205,14 @@ <div v-if="isMenuActive"> <ul> <li - v-for="(item, index) in dataType" + v-for="(item, index) in dataTypeList" :key="index" > <div class="menu_div" @click="getShowTable(item)" > - {{ item.tabDesc }} + {{ item.tabDesc }} <span style="margin-left:20px">{{item.rows}}鏉�</span> </div> </li> </ul> @@ -939,6 +939,7 @@ } }; return { + dataTypeList: [], loading: false, downloadLogVisible: false, downloadListVisible: false, @@ -1010,9 +1011,9 @@ listData: { pageIndex: 1, pageSize: 10, - depid: null, - dirid: null, - name: null + depcode: null, + dirs: null, + tab: null }, count: 0, count1: 0, @@ -1042,6 +1043,10 @@ pageSize: 10, count: 0, name: null, + }, + queryList: { + showList1: '', + showList2: '' } }; }, @@ -1198,6 +1203,20 @@ } } } + var std = ""; + for (var i in this.checkedEntryName) { + for (var j in this.showList1) { + if (this.showList1[j].name == this.checkedEntryName[i]) { + if (std.length != 0) { + std += "," + } + std += this.showList1[j].id + } + } + } + this.queryList.showList2 = std; + + this.getQueryShowListData(); }, handleCheckedDataTypeChange(res) { if (this.checkedDataType.indexOf(res.name) != -1) { @@ -1210,16 +1229,80 @@ } } } - + var std = ""; + for (var i in this.checkedDataType) { + for (var j in this.showList) { + if (this.showList[j].name == this.checkedDataType[i]) { + if (std.length != 0) { + std += "," + } + std += this.showList[j].id + } + } + } + this.queryList.showList1 = std; + this.getQueryShowListData(); }, changeListDataType(res) { if (this.isShowFirstCheck == false) { this.dataTypeName = res.name; + this.queryList.showList1 = res.id; + this.getQueryShowListData(); } }, + + getQueryShowListData() { + var a1 = ""; + if (this.queryList.showList1 != "" && this.queryList.showList1 != null) { + a1 = this.queryList.showList1; + } + if (this.queryList.showList2 != "" && this.queryList.showList2 != null) { + if (a1.length != 0) { + a1 += "," + } + a1 += this.queryList.showList2; + } + this.listData.dirs = a1; + this.listData.pageIndex = 1; + this.listData.pageSize = 10; + if (this.isMenuActive == true) { + this.getDataLibSelectTabs() + } else { + this.queryInfo(); + } + + + }, + + restDataLibSelectTabs() { + this.formInline.tab = "" + this.queryList = { + showList1: null, + showList2: null, + } + this.formInline.depid = this.companyOption1[0].code; + this.listData.depcode = this.companyOption1[0].code; + this.checkedDataType = [] + this.dataTypeName = '涓嶉檺'; + this.dataTypeName = null; + this.checkedDataType = ['涓嶉檺']; + this.isShowFirstCheck = false + this.checkedDataType = [] + this.dataTypeName = '涓嶉檺'; + this.queryList.showList1 = null; + this.isShowSecondCheck = false; + this.checkedEntryName = [] + this.EntryName = '涓嶉檺'; + this.queryList.showList2 = null; + this.getQueryShowListData(); + }, + + changeListEntryName(res) { if (this.isShowSecondCheck == false) { this.EntryName = res.name; + this.queryList.showList2 = res.id; + this.getQueryShowListData(); } }, getSpaceMapVisibale() { @@ -1247,6 +1330,17 @@ this.$store.state.download = false; this.$store.state.mapPopBoolean = false; this.$store.state.mapPopBoxFlag = null; + sgworld.Creator.SimpleGraphic.clear(); + if (this.entityaLayers.length != 0) { + for (var i in this.entityaLayers) { + sgworld.Viewer.entities.remove(this.entityaLayers[i]); + } + this.entityaLayers = []; + } + + + + }, moreEvent(res) { switch (res) { @@ -1265,9 +1359,13 @@ if (this.isShowFirstCheck == false) { this.checkedDataType = [] this.dataTypeName = '涓嶉檺'; + this.queryList.showList1 = null; + this.getQueryShowListData(); } else { this.dataTypeName = null; - this.checkedDataType = ['涓嶉檺'] + this.checkedDataType = ['涓嶉檺']; + this.queryList.showList1 = null; + this.getQueryShowListData(); } break; @@ -1276,9 +1374,13 @@ if (this.isShowSecondCheck == false) { this.checkedEntryName = [] this.EntryName = '涓嶉檺'; + this.queryList.showList2 = null; + this.getQueryShowListData(); } else { this.EntryName = null; this.checkedEntryName = ['涓嶉檺'] + this.queryList.showList2 = null; + this.getQueryShowListData(); } break; } @@ -1288,27 +1390,12 @@ this.formInline.tab = "" switch (res) { case 1: - this.listData = { - pageIndex: 1, - pageSize: 10, - - } - this.getDataLibSelectTabs(); this.isMenuActive = true; - + this.getQueryShowListData(); break; case 2: - this.listData = { - pageIndex: 1, - pageSize: 10, - depid: null, - dirid: null, - name: null, - verid: null - } - this.isMenuActive = false; - this.getMetaData(); + this.getQueryShowListData(); break; } }, @@ -1329,9 +1416,12 @@ this.$message.error('鍗曚綅鍒楄〃鑾峰彇澶辫触'); return; } - this.formInline.depid = 1; + // this.formInline.depid = 1; this.companyOption1 = this.treeData(res.result); - // this.getMetaData(); + this.formInline.depid = this.companyOption1[0].code; + this.listData.depcode = this.companyOption1[0].code; + + this.getQueryShowListData(); }, // 鏌ヨ @@ -1468,8 +1558,7 @@ this.codeForm.repassword = ''; }, getMetaData() { - this.listData.dirid = this.formInline.dirid - this.listData.depid = this.formInline.depid; + dataLib_selectByPageForMeta(this.listData).then((res) => { this.tableData1 = res.result; @@ -1484,10 +1573,9 @@ this.getMetaData(); }, handleChange1(value) { - this.listData.pageSize = 10; - this.listData.pageIndex = 1; this.formInline.depid = value; - this.getMetaData(); + this.listData.depcode = value; + this.getQueryShowListData(); }, //鏍戝垪琛ㄧ敓鎴� treeData(source) { @@ -1506,13 +1594,7 @@ this.queryInfo(); } }, - restDataLibSelectTabs() { - this.formInline.tab = "" - this.listData.pageIndex = 1; - this.listData.pageSize = 10 - this.searchDataLibSelectTabs(); - }, async getDataLibSelectTabs() { this.listData.tab = this.formInline.tab const data = await dataLib_selectTabs(this.listData); @@ -1520,13 +1602,13 @@ this.$message.error('鍒楄〃璋冪敤澶辫触'); return; } + this.count = data.count; - this.dataType = data.result; + + this.dataTypeList = data.result; }, showDetail1(row) { - this.showinfoBox1 = true; - this.itemdetail1 = row; }, // 鍏抽棴鏌ョ湅 @@ -1724,7 +1806,8 @@ } else { this.listTypeData.filter = null; } - + this.listTypeData.depcode = this.listData.depcode; + this.listTypeData.dirs = this.listData.dirs const data = await dataLib_selectByPage(this.listTypeData); if (data.code != 200) { this.$message.error('璋冪敤鍒楄〃澶辫触,璇疯仈绯诲伐浣滀汉鍛�!'); @@ -2193,5 +2276,8 @@ /deeep/.el-form-item { margin-bottom: 0px; } + /deeep/ .el-dialog__wrapper{ + z-index: 999; + } } </style> -- Gitblit v1.9.3