| | |
| | | @change="handleChange1" |
| | | :props="{ |
| | | label: 'name', |
| | | value: 'id', |
| | | value: 'code', |
| | | children: 'children', |
| | | checkStrictly: true, |
| | | emitPath: false, |
| | |
| | | <el-button |
| | | icon="el-icon-search" |
| | | @click="searchDataLibSelectTabs" |
| | | size="mini" |
| | | size="small" |
| | | >{{ |
| | | $t('common.iquery') |
| | | }}</el-button> |
| | |
| | | icon="el-icon-refresh" |
| | | @click="restDataLibSelectTabs" |
| | | type="info" |
| | | size="mini" |
| | | size="small" |
| | | >{{ |
| | | $t('common.reset') |
| | | }}</el-button> |
| | |
| | | <el-form-item> |
| | | <el-button |
| | | @click="getSpaceMapVisibale" |
| | | size="mini" |
| | | size="small" |
| | | >{{ |
| | | $t('synthesis.rangequery') |
| | | }}</el-button> |
| | |
| | | <el-form-item> |
| | | <el-button |
| | | @click="getdownloadList" |
| | | size="mini" |
| | | size="small" |
| | | >{{ |
| | | $t('synthesis.DownloadList') |
| | | }}</el-button> |
| | |
| | | <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> |
| | |
| | | } |
| | | }; |
| | | return { |
| | | dataTypeList: [], |
| | | loading: false, |
| | | downloadLogVisible: false, |
| | | downloadListVisible: false, |
| | |
| | | listData: { |
| | | pageIndex: 1, |
| | | pageSize: 10, |
| | | depid: null, |
| | | dirid: null, |
| | | name: null |
| | | depcode: null, |
| | | dirs: null, |
| | | tab: null |
| | | }, |
| | | count: 0, |
| | | count1: 0, |
| | |
| | | pageSize: 10, |
| | | count: 0, |
| | | name: null, |
| | | }, |
| | | queryList: { |
| | | showList1: '', |
| | | showList2: '' |
| | | } |
| | | }; |
| | | }, |
| | |
| | | return; |
| | | } |
| | | this.downloadLogVisible = false; |
| | | |
| | | var obj = { |
| | | entities: [this.listTypeData.name], // bpachydrogeology,bhydrogeologyattach |
| | | filter: this.listTypeData.filter, |
| | | pwd: encrypt.encrypt(this.codeForm.password) |
| | | pwd: encrypt.encrypt(this.codeForm.password), |
| | | depcodes: [this.listData.depcode], |
| | | dirs: this.listData.dirs |
| | | |
| | | }; |
| | | this.loading = true; |
| | | var that = this; |
| | |
| | | } |
| | | } |
| | | } |
| | | 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) { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | 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() { |
| | |
| | | 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) { |
| | |
| | | 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; |
| | |
| | | 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; |
| | | } |
| | |
| | | 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; |
| | | } |
| | | }, |
| | |
| | | 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(); |
| | | }, |
| | | |
| | | // 查询 |
| | |
| | | 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; |
| | |
| | | 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) { |
| | |
| | | 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); |
| | |
| | | this.$message.error('列表调用失败'); |
| | | return; |
| | | } |
| | | |
| | | this.count = data.count; |
| | | this.dataType = data.result; |
| | | |
| | | this.dataTypeList = data.result; |
| | | }, |
| | | showDetail1(row) { |
| | | |
| | | this.showinfoBox1 = true; |
| | | |
| | | this.itemdetail1 = row; |
| | | }, |
| | | // 关闭查看 |
| | |
| | | } 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('调用列表失败,请联系工作人员!'); |
| | |
| | | var data2 = domains.result; |
| | | this.formInline.fileName = "" |
| | | var std = []; |
| | | this.filedsOption=[]; |
| | | for (var i in data1) { |
| | | |
| | | if (data1[i].type != 'geomtry' && data1[i].type != 'null') { |
| | |
| | | /deeep/.el-form-item { |
| | | margin-bottom: 0px; |
| | | } |
| | | .el-dialog__wrapper { |
| | | z-index: 9999; |
| | | } |
| | | } |
| | | </style> |