| | |
| | | allow-create |
| | | default-first-option |
| | | size="small" |
| | | ref="cascaders" |
| | | :placeholder="$t('archiveObj.label4')" |
| | | @change="categorySelectChange('orgName','org',categoryOptions)" |
| | | > |
| | | <el-option |
| | | v-for="item in categoryOptions" |
| | | :key="item.value" |
| | | :key="item.key" |
| | | :label="item.value" |
| | | :value="item.key" |
| | | > |
| | |
| | | v-model="formInline.depName" |
| | | :placeholder="$t('archiveObj.label3')" |
| | | :popper-append-to-body="false" |
| | | ref="treeSelect" |
| | | > |
| | | <el-option |
| | | :value="formInline.depcode" |
| | |
| | | slot="suffix" |
| | | class="el-input__icon el-icon-search" |
| | | ></i></el-input> |
| | | </el-form-item> |
| | | <!-- 批量下載 --> |
| | | <el-form-item |
| | | style="float:right" |
| | | v-if="formInline.dataType =='type2'" |
| | | > |
| | | <el-button |
| | | type="success" |
| | | size="small" |
| | | icon="el-icon-download" |
| | | @click="setCardDownload" |
| | | >{{$t('common.download')}}</el-button> |
| | | |
| | | </el-form-item> |
| | | <!-- 空间查询 --> |
| | | <el-form-item style="float:right"> |
| | |
| | | > |
| | | |
| | | <span v-show="formInline.dataType =='type2'"> |
| | | <el-checkbox |
| | | v-model="item.ischecked" |
| | | @change="handleCheckedDataTypeChange(item)" |
| | | style="margin-right:10px" |
| | | > |
| | | </el-checkbox> |
| | | <span v-if="item.ismeta > 0"> |
| | | <el-link |
| | | style="color: #409eff" |
| | |
| | | <span v-show="formInline.dataType !='type2'">{{item.tabDesc}}</span> |
| | | <div style="float: right; padding: 3px 0"> |
| | | <i |
| | | v-show="formInline.dataType=='type2' " |
| | | v-if="showView(item, /[]/)" |
| | | class="el-icon-view" |
| | | :title="$t('common.preview')" |
| | | @click="setAttatchFileView(index, item)" |
| | | ></i> |
| | | <i |
| | | style="margin-left:10px" |
| | | class="el-icon-tickets" |
| | | :title="$t('common.details')" |
| | | @click="setCardDetails(item)" |
| | | ></i> |
| | | <i |
| | | <!-- <i |
| | | v-show="formInline.dataType=='type2'" |
| | | style="margin-left:10px" |
| | | class="el-icon-download" |
| | | :title="$t('common.download')" |
| | | @click="setCardDownload(item)" |
| | | ></i> |
| | | ></i> --> |
| | | <i |
| | | v-show="!item.isShow" |
| | | style="margin-left:10px" |
| | |
| | | <div class="cardItem"> {{$t('archiveObj.dataType')}} : {{ item.mold }} </div> |
| | | <div class="cardItem"> {{$t('dataManage.vmobj.format')}} : {{ item.type }} </div> |
| | | <div class="cardItem"> {{$t('dataManage.vmobj.size')}} : {{stateFormatSizes(item.sizes)}} </div> |
| | | <div class="cardItem"> {{$t('dataManage.vmobj.tab')}} : {{ item.tab }} </div> |
| | | <div class="cardItem"> {{$t('dataManage.vmobj.dirName')}} : {{ item.dirName }} </div> |
| | | <div class="cardItem"> {{$t('dataManage.vmobj.row')}} : {{ item.rows }} </div> |
| | | <div class="cardItem"> {{$t('archiveObj.downloads')}} : {{ item.downCount }} 次 </div> |
| | | <div class="cardItem"> {{$t('dataManage.vmobj.createonuser')}} : {{item.uname}} </div> |
| | | <div class="cardItem"> {{$t('dataManage.vmobj.depName')}} : {{item.depName}} </div> |
| | | <div class="cardItem"> {{$t('dataManage.vmobj.createontime')}} : {{format(item.createTime)}} </div> |
| | | |
| | | </div> |
| | | <div |
| | | :id="item.id" |
| | |
| | | v-show="!item.isShow && formInline.dataType!='type2'" |
| | | > |
| | | <div class="cardItem"> {{$t('archiveObj.dataType')}} : {{ item.mold }} </div> |
| | | <div class="cardItem"> {{$t('dataManage.vmobj.tab')}} : {{ item.ns+'.'+item.tab }} </div> |
| | | <div class="cardItem"> {{$t('dataManage.vmobj.row')}} : {{ item.rows }} </div> |
| | | <div class="cardItem"> {{$t('dataManage.vmobj.dirName')}} : {{ item.bak }} </div> |
| | | <!-- <div class="cardItem"> {{$t('archiveObj.storageType')}} : {{ item.tableType }} </div> --> |
| | | </div> |
| | | </el-card> |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="archBottomBox"> |
| | | <div style="margin-top:10px"> |
| | |
| | | <el-divider></el-divider> |
| | | <p>{{ $t('common.size') }}:{{ stateFormatSizes(itemdetail1.sizes) }}</p> |
| | | <el-divider></el-divider> |
| | | <p>{{ $t('dataManage.vmobj.tab') }}:{{ itemdetail1.tab }}</p> |
| | | <el-divider></el-divider> |
| | | <p>{{ $t('dataManage.vmobj.row') }}:{{itemdetail1.rows }}</p> |
| | | <el-divider></el-divider> |
| | | <p>{{ $t('archiveObj.downloads') }}:{{ itemdetail1.downCount }} 次</p> |
| | | <el-divider></el-divider> |
| | | <p>{{ $t('archiveObj.label9') }}:{{ itemdetail1.lastUser }} </p> |
| | | <el-divider></el-divider> |
| | | <p>{{ $t('archiveObj.label8') }}:{{setInfoBoxTime(itemdetail1.lastTime) }} </p> |
| | | <el-divider></el-divider> |
| | | |
| | | <p>{{ $t('dataManage.vmobj.depName') }}:{{ itemdetail1.depName }}</p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | |
| | | >确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <!-- 数据库附件信息 --> |
| | | <el-dialog |
| | | :title="$t('common.enclosure')" |
| | | :visible.sync="outerVisible" |
| | | :close-on-click-modal="false" |
| | | width="50%" |
| | | :modal="false" |
| | | > |
| | | <div style="height:68vh"> |
| | | <el-form |
| | | :model="fromfile" |
| | | class="demo-form-inline" |
| | | > |
| | | <el-form-item> |
| | | <el-input |
| | | v-model="fromfile.file" |
| | | style="width: 300px; margin-right: 20px" |
| | | :placeholder="$t('common.choose')" |
| | | disabled |
| | | ></el-input> |
| | | <input |
| | | name="file1" |
| | | type="file" |
| | | id="insertFile" |
| | | multiple="multiple" |
| | | style="display: none" |
| | | @change="insertFile( )" |
| | | /> |
| | | <el-link |
| | | @click="getInsertFile( )" |
| | | :underline="false" |
| | | ><i class="el-icon-folder-opened"></i></el-link> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-row> |
| | | <el-col :span="2"> |
| | | <el-link |
| | | class="elLink" |
| | | :underline="false" |
| | | @click="setAttachInsert" |
| | | >{{$t('common.append')}}</el-link> |
| | | </el-col> |
| | | <el-col :span="2"> |
| | | <el-link |
| | | class="elLink" |
| | | :underline="false" |
| | | @click="setAttachDel" |
| | | >{{$t('common.delete')}}</el-link> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table |
| | | @cell-dblclick="copyText" |
| | | :data="tableAttach" |
| | | ref="filterTable" |
| | | height="calc(100% - 130px)" |
| | | border |
| | | style="width: 100%" |
| | | @selection-change="handleAttatchChange" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | width="70" |
| | | /> |
| | | <el-table-column |
| | | width="60" |
| | | type="index" |
| | | :label="$t('common.index')" |
| | | /> |
| | | <el-table-column |
| | | prop="name" |
| | | :label="$t('common.fileNme')" |
| | | /> |
| | | |
| | | <el-table-column |
| | | prop="sizes" |
| | | :label="$t('common.size')" |
| | | :formatter="statSizeChange" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | :label="$t('common.operate')" |
| | | min-width="100" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-link |
| | | v-if="matchState(scope, /[]/)" |
| | | @click="setAttatchDetail(scope.$index, scope.row)" |
| | | class="elLink" |
| | | >{{ $t('common.see') }}</el-link> |
| | | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </el-dialog> |
| | | <!-- 数据库Table信息 --> |
| | | <div style="height:68vh"> |
| | | <el-form |
| | | :model="formInline" |
| | |
| | | @click="downloadLogVisible = true" |
| | | >{{$t('common.download')}}</el-button> |
| | | </el-form-item> |
| | | <!-- --> |
| | | </el-form> |
| | | <el-divider /> |
| | | <el-table |
| | | @cell-dblclick="copyText" |
| | | ref="filterTable" |
| | | :data="tableData" |
| | | border |
| | |
| | | <div class="downloadBox"> |
| | | <div class="archdowntop"> |
| | | <el-table |
| | | @cell-dblclick="copyText" |
| | | :data="downloadTableData" |
| | | style="width: 100%" |
| | | height="calc(100% - 5px)" |
| | |
| | | width="90%" |
| | | top="10vh" |
| | | :close-on-click-modal="false" |
| | | :before-close="handleMaptClose" |
| | | > |
| | | <div style="height:73vh"> |
| | | <map-sdk v-if='showMapVisible'></map-sdk> |
| | |
| | | <div style="height: 65vh; width: 100%"> |
| | | |
| | | <el-table |
| | | @cell-dblclick="copyText" |
| | | ref="filterTable" |
| | | :data="metaDataTable1" |
| | | style="width: 100%" |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table |
| | | @cell-dblclick="copyText" |
| | | ref="filterTable" |
| | | :data="metaDataTable" |
| | | style="width: 100%" |
| | |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="预览" |
| | | :append-to-body="false" |
| | | :visible.sync="dialog.dialogVisible" |
| | | width="70%" |
| | | :close-on-click-modal="false" |
| | | > |
| | | <div |
| | | v-if="dialog.isPdf" |
| | | class="pdfClass" |
| | | > |
| | | <iframe |
| | | :src="dialog.src" |
| | | type="application/x-google-chrome-pdf" |
| | | width="100%" |
| | | height="100%" |
| | | > |
| | | </iframe> |
| | | </div> |
| | | <div |
| | | v-if="dialog.isJpg" |
| | | class="pdfClass" |
| | | > |
| | | <el-image |
| | | style="width:100%; height:100%" |
| | | :src="dialog.src" |
| | | :preview-src-list="[dialog.src]" |
| | | > |
| | | </el-image> |
| | | |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="数据申请" |
| | | :visible.sync="dialogInsertVisible" |
| | | width="30%" |
| | | top="35vh" |
| | | :modal="false" |
| | | :before-close="handleInsertClose" |
| | | > |
| | | <div style="width: 100%; max-height: 450px; overflow-y: auto"> |
| | | <el-form |
| | | ref="form" |
| | | :model="ruleForm" |
| | | label-width="100px" |
| | | > |
| | | <el-form-item label="审核单位"> |
| | | <div> |
| | | <ul> |
| | | <li v-for="item in ruleForm.depid"> |
| | | {{ item.name }} |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="表名"> |
| | | <div> |
| | | <ul> |
| | | <li v-for="item in ruleForm.tabs"> |
| | | {{ item.tabDesc }} |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="条件"> |
| | | <el-input |
| | | :title="ruleForm.wkt" |
| | | v-model="ruleForm.wkt" |
| | | disabled |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="描述"> |
| | | <el-input |
| | | type="textarea" |
| | | placeholder="请输入内容" |
| | | v-model="ruleForm.descr" |
| | | maxlength="50" |
| | | show-word-limit |
| | | > |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | class="primary" |
| | | size="small" |
| | | @click="getInsertDownx" |
| | | >{{ |
| | | $t("common.confirm") |
| | | }}</el-button> |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="closeInsertDown" |
| | | >{{ |
| | | $t("common.cancel") |
| | | }}</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | | :title="$t('common.passworld')" |
| | | :visible.sync="dialogVisible1" |
| | | width="30%" |
| | | top="35vh" |
| | | :modal="false" |
| | | :before-close="handleCloseDown1" |
| | | > |
| | | <el-form |
| | | :model="codeForm" |
| | | :rules="rules" |
| | | ref="codeForm" |
| | | label-width="100px" |
| | | class="codeForm" |
| | | > |
| | | <el-form-item |
| | | :label="$t('common.passworld')" |
| | | prop="password" |
| | | > |
| | | <el-input |
| | | type="password" |
| | | v-model="codeForm.password" |
| | | show-password |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('common.SPassword')" |
| | | prop="repassword" |
| | | > |
| | | <el-input |
| | | type="password" |
| | | v-model="codeForm.repassword" |
| | | show-password |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | class="primary" |
| | | size="small" |
| | | @click="downloadx('codeForm')" |
| | | >{{ $t("common.confirm") }}</el-button> |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="closeDownx('codeForm')" |
| | | >{{ |
| | | $t("common.cancel") |
| | | }}</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="数据申请" |
| | | :visible.sync="dialogInsertFile" |
| | | width="30%" |
| | | top="10vh" |
| | | :modal="false" |
| | | :close-on-click-modal="false" |
| | | :show-close="false" |
| | | > |
| | | <el-form |
| | | ref="form" |
| | | :model="fileFrom" |
| | | label-width="100px" |
| | | > |
| | | <el-form-item label="审核单位"> |
| | | <div> |
| | | <ul> |
| | | <li v-for="item in fileFrom.depid"> |
| | | {{ item.name }} |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="描述"> |
| | | <el-input |
| | | type="textarea" |
| | | placeholder="请输入内容" |
| | | v-model="fileFrom.descr" |
| | | maxlength="50" |
| | | show-word-limit |
| | | > |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | class="primary" |
| | | size="small" |
| | | @click="getFileInsertApply()" |
| | | >{{ |
| | | $t("common.confirm") |
| | | }}</el-button> |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="handleInsertFileClose()" |
| | | >{{ |
| | | $t("common.cancel") |
| | | }}</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | </el-dialog> |
| | | <iframe |
| | | id="downFrame" |
| | | src="" |
| | |
| | | import $ from 'jquery' |
| | | import { getToken } from '@/utils/auth'; |
| | | import { |
| | | decr, |
| | | encr, |
| | | selectdepTab, |
| | | dataLib_selectProject, |
| | | dataLib_selectDirTypes, |
| | |
| | | dataLib_selectDownloadFile, |
| | | dataLib_selectPageCountForDownload, |
| | | dataLib_selectPageAndCountByPid, |
| | | dataLib_selectMetaById |
| | | dataLib_selectMetaById, |
| | | dataLib_selectFiles, |
| | | dataLib_deletes, |
| | | dataLib_selectDbOverflowDep, |
| | | dataLib_selectDepsByIds, |
| | | apply_insertApply, |
| | | dataLib_selectMetaOverflowDep |
| | | } from '../../api/api'; |
| | | import { dataLibView } from '@/api/screen.js' |
| | | export default { |
| | | components: { |
| | | MyBread, MapSdk |
| | |
| | | } |
| | | }; |
| | | return { |
| | | |
| | | fromfile: { file: '' }, |
| | | fromSqlflag: false, |
| | | filedsOption: [], |
| | | condOption: [], |
| | |
| | | }, |
| | | queryMetaFlag: false, |
| | | metaDataTable: [], |
| | | upAttach: { |
| | | tabName: null, |
| | | eventid: null, |
| | | }, |
| | | outerVisible: false, |
| | | tableAttach: [], |
| | | dataLib_selectFiles: [], |
| | | attacgSelection: [], |
| | | dialog: { |
| | | dialogVisible: false, |
| | | isPdf: false, |
| | | isJpg: false, |
| | | src: '' |
| | | }, |
| | | checkedDataType: [], |
| | | ruleForm: { |
| | | depname: [], |
| | | tabs: [], |
| | | pwd: null, |
| | | repwd: null, |
| | | wkt: null, |
| | | descr: null, |
| | | }, |
| | | dialogInsertVisible: false, |
| | | dialogVisible1: false, |
| | | multipleSelection: [], |
| | | dialogInsertFile: false, |
| | | fileFrom: { |
| | | descr: null, |
| | | depid: null, |
| | | ids: null, |
| | | pwd: null, |
| | | depcodes: null |
| | | } |
| | | }; |
| | | }, |
| | | watch: { |
| | | "formInline.depName"() { |
| | | this.$refs.treeSelect.visible = false; |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.getDepTreeData(); |
| | | this.getCategorySelectData(); |
| | | this.getItemSelectData(); |
| | | this.signGetPublicKey(); |
| | | this.$bus.$on("setDialogInsertVisible", (res) => { |
| | | if (res == true) { |
| | | this.dialogVisible1 = true; |
| | | } else { |
| | | this.setDialogInsertVisible(res); |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | | //数据库查询下载 |
| | | downloadBankData() { |
| | | // downloadLogVisible |
| | | |
| | | }, |
| | | handleCloseDown1() { |
| | | this.$confirm("确认关闭?") |
| | | .then(_ => { |
| | | this.closeDownx(); |
| | | }) |
| | | .catch(_ => { }) |
| | | }, |
| | | downloadx() { |
| | | this.$bus.$emit("setInsertDown2", this.codeForm) |
| | | // |
| | | }, |
| | | closeDownx() { |
| | | this.dialogVisible1 = false; |
| | | this.codeForm = { |
| | | password: '', |
| | | repassword: '', |
| | | } |
| | | }, |
| | | async getInsertDownx() { |
| | | |
| | | this.dialogInsertVisible = false; |
| | | this.dialogVisible1 = false; |
| | | this.downloadLogVisible = false; |
| | | var obj = null |
| | | if (this.dialogMapVisible == true) { |
| | | var entities = []; |
| | | var tabs = []; |
| | | for (var i in this.ruleForm.tabs) { |
| | | entities.push(this.ruleForm.tabs[i].entity) |
| | | tabs.push(this.ruleForm.tabs[i].tabDesc) |
| | | } |
| | | var std = []; |
| | | for (var i in this.ruleForm.depname) { |
| | | std.push(this.ruleForm.depname[i].name) |
| | | } |
| | | |
| | | obj = { |
| | | pwd: encr(this.codeForm.password), |
| | | entities: entities, |
| | | wkt: encr(this.ruleForm.wkt), |
| | | filter: null, |
| | | ids: null, |
| | | depcode: null, |
| | | dirs: null, |
| | | depcodes: std, |
| | | descr: this.ruleForm.descr, |
| | | tabs: tabs |
| | | } |
| | | } else { |
| | | var ids = []; |
| | | var filter = null; |
| | | this.downloadLogVisible = false; |
| | | if (this.multipleSelection.length != 0) { |
| | | for (var i in this.multipleSelection) { |
| | | ids.push(this.multipleSelection[i].gid) |
| | | } |
| | | filter = null; |
| | | } else { |
| | | filter = this.listBankData.filter; |
| | | ids = null; |
| | | } |
| | | |
| | | var std = []; |
| | | for (var i in this.ruleForm.depname) { |
| | | std.push(this.ruleForm.depname[i].name) |
| | | } |
| | | var dirs = null; |
| | | if (this.listData.dirs) { |
| | | |
| | | dirs = this.listData.dirs |
| | | } |
| | | |
| | | obj = { |
| | | pwd: encr(this.codeForm.password), |
| | | entities: [this.listBankData.name], // bpachydrogeology,bhydrogeologyattach |
| | | wkt: null, |
| | | filter: filter, |
| | | ids: ids, |
| | | depcode: this.listData.depcode, |
| | | dirs: dirs, |
| | | depcodes: std, |
| | | descr: this.ruleForm.descr, |
| | | tabs: [this.listBankData.title] |
| | | } |
| | | } |
| | | |
| | | const data = await apply_insertApply(JSON.stringify(obj)) |
| | | if (data.code != 200) { |
| | | this.$message.error("数据申请失败") |
| | | return |
| | | } |
| | | this.$message({ |
| | | message: "数据申请成功", |
| | | type: "success", |
| | | }) |
| | | this.closeDownx(); |
| | | this.closeDown1(); |
| | | }, |
| | | |
| | | closeInsertDown() { |
| | | this.ruleForm = { |
| | | depname: [], |
| | | tabs: [], |
| | | pwd: null, |
| | | repwd: null, |
| | | wkt: null, |
| | | descr: null, |
| | | } |
| | | this.dialogInsertVisible = false |
| | | this.closeDown1(); |
| | | }, |
| | | handleInsertClose() { |
| | | this.$confirm("确认关闭?") |
| | | .then(_ => { |
| | | this.closeInsertDown() |
| | | }) |
| | | .catch(_ => { }) |
| | | }, |
| | | setDialogInsertVisible(res) { |
| | | this.ruleForm = res; |
| | | this.dialogInsertVisible = true; |
| | | }, |
| | | copyText(row, column, cell, event) { |
| | | // 双击复制 |
| | | let save = function (e) { |
| | | e.clipboardData.setData('text/plain', event.target.innerText); |
| | | e.preventDefault(); //阻止默认行为 |
| | | } |
| | | document.addEventListener('copy', save);//添加一个copy事件 |
| | | document.execCommand("copy");//执行copy方法 |
| | | this.$message({ message: '复制成功', type: 'success' })//提示 |
| | | }, |
| | | //批量下载复选框chagne |
| | | handleCheckedDataTypeChange(res) { |
| | | var std = 0; |
| | | for (var i = 0; i < this.multipleSelection1.length; i++) { |
| | | if (res.guid == this.multipleSelection1[i].guid) { |
| | | std = i; |
| | | } |
| | | } |
| | | if (std == 0) { |
| | | this.multipleSelection1.push(res); |
| | | } else { |
| | | this.multipleSelection1.splice(std, 1) |
| | | } |
| | | console.log(this.multipleSelection1) |
| | | }, |
| | | |
| | | |
| | | matchState(state = "", reg) { |
| | | var row = state.row; |
| | | var name = row.name; |
| | | if (name.indexOf('.pdf') != -1 || name.indexOf('.jpg') != -1 || name.indexOf('.gif') != -1 || name.indexOf('.png') != -1 || name.indexOf('.jpeg') != -1) { |
| | | return true; |
| | | } |
| | | |
| | | return false; |
| | | }, |
| | | // 附件=>表格选择 |
| | | handleAttatchChange(val) { |
| | | this.attacgSelection = val; |
| | | }, |
| | | //附件=>文件选择 |
| | | getInsertFile() { |
| | | $('#insertFile').click(); |
| | | }, |
| | | insertFile() { |
| | | var val = document.getElementById('insertFile').files; |
| | | if (!val || !val.length) return; |
| | | this.fromfile.file = val[0].name; |
| | | }, |
| | | getAttachTable(index, row) { |
| | | if (row.eventid != null) { |
| | | this.upAttach.eventid = row.eventid; |
| | | } else { |
| | | this.upAttach.eventid = ""; |
| | | } |
| | | this.outerVisible = true; |
| | | this.getAttacthFlieList(); |
| | | }, |
| | | //附件列表查询 |
| | | async getAttacthFlieList() { |
| | | var obj = this.upAttach; |
| | | const res = await dataLib_selectFiles(obj); |
| | | if (res.code != 200) { |
| | | this.$message.error('列表调用失败'); |
| | | return |
| | | } |
| | | this.tableAttach = res.result; |
| | | }, |
| | | refreshAttatchDetail() { |
| | | this.dialog.src = ""; |
| | | this.dialog.dialogVisible = false; |
| | | this.dialog.isPdf = false; |
| | | this.dialog.isJpg = false; |
| | | }, |
| | | //附件查看 |
| | | setAttatchDetail(index, row) { |
| | | this.refreshAttatchDetail() |
| | | var name = row.name; |
| | | if (name.indexOf('.pdf') != -1) { |
| | | this.dialog.dialogVisible = true; |
| | | this.dialog.isPdf = true; |
| | | var url = BASE_URL + "/comprehensive/downloadForView?guid=" + row.guid + "&token=" + getToken(); |
| | | this.dialog.src = url |
| | | } else if (name.indexOf('.jpg') != -1 || name.indexOf('.gif') != -1 || name.indexOf('.png') != -1 || name.indexOf('.jpeg') != -1) { |
| | | this.dialog.dialogVisible = true; |
| | | this.dialog.isJpg = true; |
| | | var url = BASE_URL + "/comprehensive/downloadForView?guid=" + row.guid + "&token=" + getToken(); |
| | | this.dialog.src = url |
| | | } |
| | | }, |
| | | |
| | | setAttatchFileView(index, row) { |
| | | this.refreshAttatchDetail() |
| | | var name = `${row.name}.${row.type}`; |
| | | if (name.indexOf('.pdf') != -1) { |
| | | this.dialog.isPdf = true; |
| | | } else if (name.indexOf('.jpg') != -1 || name.indexOf('.gif') != -1 || name.indexOf('.png') != -1 || name.indexOf('.jpeg') != -1) { |
| | | this.dialog.isJpg = true; |
| | | } |
| | | this.dialog.dialogVisible = true; |
| | | |
| | | var url = BASE_URL + "/dataLib/downloadForView?guid=" + row.guid + "&token=" + getToken(); |
| | | this.dialog.src = url; |
| | | }, |
| | | showView(res) { |
| | | var name = res.type |
| | | if (name) { |
| | | if (name.indexOf('pdf') != -1 || name.indexOf('jpg') != -1 || name.indexOf('gif') != -1 || name.indexOf('png') != -1 || name.indexOf('jpeg') != -1) { |
| | | return true |
| | | } else { |
| | | return false |
| | | } |
| | | } |
| | | |
| | | }, |
| | | //附件刪除 |
| | | async setAttachDel() { |
| | | var std = []; |
| | | for (var i in this.attacgSelection) { |
| | | std.push(this.attacgSelection[i].id); |
| | | } |
| | | const res = await dataLib_deletes({ ids: std.toString() }); |
| | | if (res.code != 200) { |
| | | this.$message.error('文件删除失败'); |
| | | } |
| | | this.getAttacthFlieList(); |
| | | }, |
| | | //附件列表新增 |
| | | setAttachInsert() { |
| | | var token = getToken(); |
| | | var fs = document.getElementById("insertFile"); |
| | | if (fs.files.length == 0) { |
| | | |
| | | this.$message({ |
| | | message: '请选择要上传的文件!', |
| | | type: 'warning' |
| | | }); |
| | | return; |
| | | } |
| | | const formData = new FormData() |
| | | for (var i = 0, c = fs.files.length; i < c; i++) { |
| | | |
| | | formData.append('file', fs.files[i]); // fs.files[i].name,file |
| | | } |
| | | |
| | | $.ajax(BASE_URL + "/dataQuery/uploadFiles?token=" + token + "&tabName=" + this.upAttach.tabName + "&eventid=" + this.upAttach.eventid, { |
| | | type: "post", |
| | | data: formData, |
| | | async: true, |
| | | cache: false, |
| | | processData: false, |
| | | contentType: false, |
| | | success: (rs) => { |
| | | this.$message({ |
| | | message: '附件添加成功', |
| | | type: 'success' |
| | | }); |
| | | document.getElementById("insertFile").value = ""; |
| | | this.fromfile = { |
| | | file: '', |
| | | } |
| | | this.getAttacthFlieList(); |
| | | }, |
| | | error: (e) => { |
| | | document.getElementById("insertFile").value = ""; |
| | | this.fromfile = { |
| | | file: '', |
| | | } |
| | | this.$message.error('附件添加失败'); |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | setRestMetaData() { |
| | | this.fromQueryMeta.name = ""; |
| | | this.listMetaData.name = this.fromQueryMeta.name; |
| | |
| | | this.metaDataTable1 = [data.result]; |
| | | }, |
| | | getSpaceMapVisibale() { |
| | | sgworld.Creator.SimpleGraphic.clear(); |
| | | for (var i in this.$store.state.queryInfo) { |
| | | sgworld.Viewer.entities.remove(this.$store.state.queryInfo[i]); |
| | | if (window.sgworld) { |
| | | window.sgworld.Creator.SimpleGraphic.clear(); |
| | | for (var i in this.$store.state.queryInfo) { |
| | | window.sgworld.Viewer.entities.remove(this.$store.state.queryInfo[i]); |
| | | } |
| | | } |
| | | |
| | | this.$store.state.queryInfo = []; |
| | | if (this.$store.state.primitLayer != null) { |
| | | sgworld.Viewer.entities.remove(this.$store.state.primitLayer); |
| | |
| | | this.$store.state.mapPopBoxFlag = null; |
| | | this.$store.state.download = true; |
| | | |
| | | }, |
| | | |
| | | handleMaptClose() { |
| | | this.dialogMapVisible = false; |
| | | this.showMapVisible = false; |
| | | this.$store.state.mapMenuBoolean = false; |
| | | this.$store.state.mapMenuBoxFlag = null; |
| | | this.$store.state.mapPopBoolean = false; |
| | | this.$store.state.mapPopBoxFlag = false; |
| | | this.$store.state.download = false; |
| | | if (window.sgworld) { |
| | | window.sgworld.Creator.SimpleGraphic.clear(); |
| | | for (var i in this.$store.state.queryInfo) { |
| | | window.sgworld.Viewer.entities.remove(this.$store.state.queryInfo[i]); |
| | | } |
| | | } |
| | | |
| | | this.$store.state.queryInfo = []; |
| | | if (this.$store.state.primitLayer != null) { |
| | | sgworld.Viewer.entities.remove(this.$store.state.primitLayer); |
| | | sgworld.Creator.DeleteObject(this.$store.state.primitLayer); |
| | | this.$store.state.primitLayer = null; |
| | | } |
| | | }, |
| | | downloadMap(index, rows) { |
| | | var token = getToken() |
| | |
| | | if (!passwordreg.test(this.codeForm.password)) { |
| | | return; |
| | | } |
| | | var ids = []; |
| | | var filter = null; |
| | | this.downloadLogVisible = false; |
| | | if (this.multipleSelection.length != 0) { |
| | | for (var i in this.multipleSelection) { |
| | | ids.push(this.multipleSelection[i].gid) |
| | | } |
| | | filter = null; |
| | | } else { |
| | | filter = this.listBankData.filter; |
| | | ids = null; |
| | | } |
| | | var obj = { |
| | | entities: [this.listBankData.name], // bpachydrogeology,bhydrogeologyattach |
| | | filter: this.formInline.filter, |
| | | filter: filter, |
| | | ids: ids, |
| | | wkt: null, |
| | | pwd: encrypt.encrypt(this.codeForm.password), |
| | | depcodes: [this.listData.depcode], |
| | | depcode: this.listData.depcode, |
| | | dirs: this.listData.dirs |
| | | |
| | | }; |
| | | const data = await dataLib_selectDbOverflowDep(obj) |
| | | if (data.code != 200) { |
| | | return |
| | | } |
| | | if (data.result.length == 0) { |
| | | var that = this; |
| | | $.ajax({ |
| | | url: BASE_URL + "/dataLib/downloadDbData?token=" + getToken(), |
| | | type: "POST", |
| | | data: JSON.stringify(obj), |
| | | dataType: 'json', // html、json、jsonp、script、text |
| | | contentType: "application/json", // "application/x-www-form-urlencoded" |
| | | success: (data) => { |
| | | if (data.code == 200) { |
| | | that.downloadflie(data, this.codeForm.password) |
| | | |
| | | var that = this; |
| | | $.ajax({ |
| | | url: BASE_URL + "/dataLib/downloadEntityReq?token=" + getToken(), |
| | | type: "POST", |
| | | data: JSON.stringify(obj), |
| | | dataType: 'json', // html、json、jsonp、script、text |
| | | contentType: "application/json", // "application/x-www-form-urlencoded" |
| | | success: (data) => { |
| | | if (data.code == 200) { |
| | | that.downloadflie(data, this.codeForm.password) |
| | | |
| | | } |
| | | }, |
| | | error: function (e) { |
| | | } |
| | | }, |
| | | error: function (e) { |
| | | }); |
| | | |
| | | } else { |
| | | var val = "" |
| | | var std = []; |
| | | for (var i in data.result) { |
| | | if (val == "") { |
| | | val += "codes=" + data.result[i] |
| | | } else { |
| | | val += "&codes=" + data.result[i] |
| | | } |
| | | |
| | | std.push({ |
| | | name: data.result[i], |
| | | }) |
| | | } |
| | | }); |
| | | this.closeDown1(); |
| | | |
| | | const data1 = await dataLib_selectDepsByIds(val) |
| | | this.ruleForm.depid = data1.result |
| | | this.ruleForm.depname = std |
| | | this.ruleForm.wkt = null |
| | | this.ruleForm.tabs = [{ |
| | | tabDesc: this.listBankData.title |
| | | }] |
| | | this.dialogInsertVisible = true |
| | | } |
| | | // this.closeDown1(); |
| | | }, |
| | | downloadflie(data, pwd) { |
| | | |
| | |
| | | var url = BASE_URL + "/dataLib/downloadFile?token=" + token + "&guid=" + data.result + "&pwd=" + encrypt.encrypt(pwd); |
| | | $("#downFrame").attr("src", url).click(); |
| | | this.loading = false; |
| | | this.closeDownx(); |
| | | this.closeDown1(); |
| | | }, |
| | | closeDown1() { |
| | | this.downloadLogVisible = false; |
| | |
| | | return; |
| | | } |
| | | this.passWorldVisible = false; |
| | | var password = this.codeForm.repassword |
| | | var std = []; |
| | | var ids = []; |
| | | for (var i in this.multipleSelection1) { |
| | | std.push(this.multipleSelection1[i].id) |
| | | ids.push(this.multipleSelection1[i].id) |
| | | } |
| | | var obj = { |
| | | pwd: encrypt.encrypt(this.codeForm.repassword), |
| | | ids: std |
| | | }; |
| | | const res = await dataLib_downloadReq(JSON.stringify(obj)); |
| | | // var obj = { |
| | | |
| | | if (res.code != 200) { |
| | | this.$message.error('下载请求失败'); |
| | | return |
| | | } |
| | | |
| | | var downObj = { |
| | | guid: res.result, |
| | | pwd: encodeURIComponent(encrypt.encrypt(this.codeForm.repassword)) |
| | | } |
| | | |
| | | const data = await dataLib_selectDownloadFile(downObj) |
| | | if (data.code != 200) { |
| | | this.$message.error('下载请求失败'); |
| | | return |
| | | } |
| | | var token = getToken() |
| | | var url = BASE_URL + "/dataLib/downloadFile?token=" + token + "&guid=" + res.result + "&pwd=" + encodeURIComponent(encrypt.encrypt(this.codeForm.repassword)); |
| | | |
| | | $("#downFrame").attr("src", url).click(); |
| | | // }; |
| | | this.closeDown(); |
| | | this.closeDownx(); |
| | | |
| | | |
| | | |
| | | var obj = { |
| | | ids: std, |
| | | }; |
| | | const data = await dataLib_selectMetaOverflowDep(obj) |
| | | if (data.code != 200) { |
| | | return |
| | | } |
| | | if (data.result.length == 0) { |
| | | const res = await dataLib_downloadReq(JSON.stringify({ |
| | | pwd: encrypt.encrypt(password), |
| | | ids: std |
| | | })); |
| | | if (res.code != 200) { |
| | | this.$message.error('下载请求失败'); |
| | | return |
| | | } |
| | | if (!res.result) { |
| | | return |
| | | } |
| | | var downObj = { |
| | | guid: res.result, |
| | | pwd: encodeURIComponent(encrypt.encrypt(password)) |
| | | } |
| | | |
| | | const data = await dataLib_selectDownloadFile(downObj) |
| | | if (data.code != 200) { |
| | | this.$message.error('下载请求失败'); |
| | | return |
| | | } |
| | | var token = getToken() |
| | | var url = BASE_URL + "/dataLib/downloadFile?token=" + token + "&guid=" + res.result + "&pwd=" + encodeURIComponent(encrypt.encrypt(this.codeForm.repassword)); |
| | | $("#downFrame").attr("src", url).click(); |
| | | } else { |
| | | var val = "" |
| | | var std = []; |
| | | for (var i in data.result) { |
| | | if (val == "") { |
| | | val += "codes=" + data.result[i] |
| | | } else { |
| | | val += "&codes=" + data.result[i] |
| | | } |
| | | std.push({ |
| | | name: data.result[i], |
| | | }) |
| | | } |
| | | const data1 = await dataLib_selectDepsByIds(val) |
| | | if (data1.code != 200) { |
| | | return |
| | | } |
| | | this.fileFrom.depid = data1.result |
| | | this.fileFrom.ids = ids; |
| | | this.fileFrom.pwd = encr(password); |
| | | this.fileFrom.depcodes = data.result; |
| | | this.dialogInsertFile = true; |
| | | } |
| | | |
| | | this.monthdata.filter((res) => { |
| | | return res.ischecked = false; |
| | | }) |
| | | this.multipleSelection1 = []; |
| | | }, |
| | | closeDown() { |
| | | this.passWorldVisible = false; |
| | | this.codeForm.password = ''; |
| | | this.codeForm.repassword = ''; |
| | | }, |
| | | |
| | | async getFileInsertApply() { |
| | | this.dialogInsertFile = false |
| | | |
| | | var obj = { |
| | | ids: this.fileFrom.ids, |
| | | pwd: this.fileFrom.pwd, |
| | | tabs: ["元数据表"], |
| | | entities: ["sysmeta"], |
| | | descr: this.fileFrom.descr, |
| | | depcodes: this.fileFrom.depcodes |
| | | }; |
| | | |
| | | const data = await apply_insertApply(JSON.stringify(obj)) |
| | | this.handleInsertFileClose(); |
| | | if (data.code != 200) { |
| | | this.$message.error("数据申请失败") |
| | | return |
| | | } |
| | | this.$message({ |
| | | message: "数据申请成功", |
| | | type: "success", |
| | | }) |
| | | |
| | | |
| | | }, |
| | | handleInsertFileClose() { |
| | | this.dialogInsertFile = false |
| | | this.fileFrom = { |
| | | descr: null, |
| | | depid: null, |
| | | ids: null, |
| | | pwd: null, |
| | | depcodes: null |
| | | } |
| | | }, |
| | | |
| | | |
| | | //文件下载 |
| | | setCardDownload(res) { |
| | | this.multipleSelection1 = []; |
| | | this.multipleSelection1.push(res); |
| | | // this.multipleSelection1 = []; |
| | | // this.multipleSelection1.push(res); |
| | | if (this.multipleSelection1.length == 0) { |
| | | this.$message({ |
| | | message: '请先选择要下载的文件', |
| | |
| | | }, |
| | | //重置 |
| | | setQuerAllTablesRefresh() { |
| | | this.formInline = { |
| | | fileName: "",//高级搜索 |
| | | dataType: "type2", //数据类型 |
| | | category: [], //查询类别, |
| | | item: [], |
| | | depcode: this.depOption[0].code, |
| | | depName: this.depOption[0].name, |
| | | keywords: '', |
| | | } |
| | | // this.formInline = { |
| | | // fileName: "",//高级搜索 |
| | | // dataType: "type2", //数据类型 |
| | | // category: [], //查询类别, |
| | | // item: [], |
| | | // depcode: null, //单位, |
| | | // depName: null,//单位, |
| | | // keywords: '', |
| | | // } |
| | | this.formInline.fileName = "";//高级搜索 |
| | | this.formInline.category = [];//高级搜索 |
| | | this.formInline.item = [];//高级搜索 |
| | | this.formInline.depcode = null;//高级搜索 |
| | | this.formInline.depName = null;//高级搜索 |
| | | this.formInline.keywords = "";//高级搜索 |
| | | this.getAllTabesData(); |
| | | }, |
| | | handleSelectionChange() { |
| | | |
| | | handleSelectionChange(val) { |
| | | this.multipleSelection = val; |
| | | }, |
| | | //卡片详情点击事件 |
| | | async setCardDetails(res) { |
| | |
| | | break; |
| | | } |
| | | }, |
| | | //获取数据库数据 |
| | | //获取数据库数据js |
| | | getBankTableData(res) { |
| | | this.listBankData.name = res.entity; |
| | | this.listBankData.pageIndex = 1; |
| | | this.listBankData.pageSize = 10; |
| | | this.listBankData.title = res.tabDesc; |
| | | this.upAttach.tabName = res.ns + "." + res.tab; |
| | | this.filedsLayer = this.getBankTableFiled(); |
| | | this.getCollapseTable(this.filedsLayer); |
| | | }, |
| | |
| | | } |
| | | } |
| | | for (var i in data.result) { |
| | | if (data.result[i].createtime != null) { |
| | | |
| | | if (data.result[i].createtime) { |
| | | data.result[i].createtime = this.format(data.result[i].createtime) |
| | | } |
| | | if (data.result[i].updatetime != null) { |
| | | if (data.result[i].updatetime) { |
| | | data.result[i].updatetime = this.format(data.result[i].updatetime) |
| | | } |
| | | data.result[i].createuser = data.result[i].createName |
| | | data.result[i].updateuser = data.result[i].updateName |
| | | if (data.result[i].verName) { |
| | | data.result[i].verid = data.result[i].verName |
| | | } |
| | | if (data.result[i].depName) { |
| | | data.result[i].depid = data.result[i].depName |
| | | } |
| | | if (data.result[i].dirName) { |
| | | data.result[i].dirid = data.result[i].dirName |
| | | } |
| | | } |
| | | |
| | | this.listBankData.count = data.count; |
| | | |
| | | this.tableData = data.result; |
| | |
| | | //格式化时间 |
| | | format(shijianchuo) { |
| | | //shijianchuo是整数,否则要parseInt转换 |
| | | |
| | | var time = new Date(shijianchuo); |
| | | var y = time.getFullYear(); |
| | | var m = time.getMonth() + 1; |
| | |
| | | s |
| | | ); |
| | | }, |
| | | //格式化时间 |
| | | add0(m) { |
| | | return m < 10 ? '0' + m : m; |
| | | }, |
| | | //格式化列表 |
| | | formatData(row, column) { |
| | | let data = row[column.property]; |
| | |
| | | //格式化时间 |
| | | add0(m) { |
| | | return m < 10 ? '0' + m : m; |
| | | }, |
| | | statSizeChange(row, column) { |
| | | return this.stateFormatSizes(row.sizes) |
| | | }, |
| | | stateFormatSizes(res) { |
| | | if (res >= 1024) { |
| | |
| | | this.listData.pageIndex = 1; |
| | | this.listData.pageSize = val; |
| | | switch (this.formInline.dataType) { |
| | | |
| | | case "type2"://文件数据 |
| | | this.getQueryFileData(); |
| | | break; |
| | |
| | | handleCurrentChange(val) { |
| | | this.listData.pageIndex = val; |
| | | switch (this.formInline.dataType) { |
| | | |
| | | case "type2"://文件数据 |
| | | this.getQueryFileData(); |
| | | break; |
| | |
| | | //查询数据库数据 |
| | | async getQueryBankData() { |
| | | this.listData.dirs = ""; |
| | | this.listData.types = "" |
| | | if (this.formInline.category.length != 0) { |
| | | this.listData.dirs += this.formInline.category.toString(); |
| | | // this.listData.dirs += this.formInline.category.toString(); |
| | | } |
| | | |
| | | var val_data = this.formInline.category; |
| | | var data_type = [] |
| | | if (val_data.length > 0) { |
| | | for (var i in val_data) { |
| | | for (var j in this.categoryOptions) { |
| | | if (this.categoryOptions[j].key == val_data[i]) { |
| | | |
| | | data_type.push(this.categoryOptions[j].value) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | if (this.formInline.item.length != 0) { |
| | | if (this.listData.dirs.length != 0) { |
| | |
| | | } |
| | | this.listData.depcode = this.formInline.depcode; |
| | | this.listData.tab = this.formInline.keywords; |
| | | |
| | | this.listData.types = data_type.toString(); |
| | | const data = await dataLib_selectTabs(this.listData); |
| | | if (data.code != 200) { |
| | | this.$message.error('数据库列表调用失败'); |
| | | return; |
| | | } |
| | | var val = data.result; |
| | | val = val.filter((res) => { |
| | | if (val) { |
| | | val = val.filter((res) => { |
| | | res.mold = "数据库" |
| | | res.isShow = false |
| | | return res; |
| | | }) |
| | | this.listData.count = data.count; |
| | | this.monthdata = data.result; |
| | | } else { |
| | | this.listData.count = 0; |
| | | this.monthdata = []; |
| | | } |
| | | |
| | | res.mold = "数据库" |
| | | res.isShow = false |
| | | return res; |
| | | }) |
| | | this.listData.count = data.count; |
| | | this.monthdata = data.result; |
| | | }, |
| | | //查询文件数据 |
| | | async getQueryFileData() { |
| | | this.listData.dirs = ""; |
| | | this.listData.count = 0; |
| | | |
| | | if (this.formInline.category.length != 0) { |
| | | this.listData.dirs += this.formInline.category.toString(); |
| | | this.listData.types = this.formInline.category.toString(); |
| | | }else{ |
| | | this.listData.types=null; |
| | | } |
| | | if (this.formInline.item.length != 0) { |
| | | if (this.listData.dirs.length != 0) { |
| | |
| | | this.listData.dirs += this.formInline.item.toString(); |
| | | } |
| | | this.listData.depcode = this.formInline.depcode; |
| | | this.listData.tab = this.formInline.keywords; |
| | | this.listData.name = this.formInline.keywords; |
| | | const data = await dataLib_selectByPageForMeta(this.listData); |
| | | if (data.code != 200) { |
| | | this.$message.error('文件数据列表调用失败'); |
| | | } |
| | | var val = data.result; |
| | | val = val.filter((res) => { |
| | | var type = "." + res.type; |
| | | res.name = res.name.replaceAll(type, "") |
| | | res.mold = "文件" |
| | | res.isShow = false |
| | | return res; |
| | | }) |
| | | |
| | | this.monthdata = val; |
| | | this.listData.count = data.count; |
| | | var val = data.result; |
| | | if (val) { |
| | | val = val.filter((res) => { |
| | | var type = "." + res.type; |
| | | res.name = res.name.replaceAll(type, "") |
| | | res.mold = "文件"; |
| | | res.isShow = false; |
| | | res.ischecked = false; |
| | | return res; |
| | | }) |
| | | |
| | | this.monthdata = val; |
| | | this.listData.count = data.count; |
| | | |
| | | } else { |
| | | this.monthdata = []; |
| | | this.listData.count = 0; |
| | | } |
| | | |
| | | }, |
| | | //查询数据 |
| | | getAllTabesData() { |
| | |
| | | }, |
| | | //获取资料类别数据 |
| | | async getCategorySelectData() { |
| | | const data = await dataLib_selectDirTypes(); |
| | | if (data.code != 200) { |
| | | this.$message.error('资料类别列表调用失败'); |
| | | } |
| | | this.categoryOptions = data.result; |
| | | // const data = await dataLib_selectDirTypes(); |
| | | // if (data.code != 200) { |
| | | // this.$message.error('资料类别列表调用失败'); |
| | | // } |
| | | |
| | | this.categoryOptions = [ |
| | | {key:'基础测绘',value:'基础测绘'}, |
| | | {key:'基础地灾',value:'基础地灾'}, |
| | | {key:'基础勘察',value:'基础勘察'}, |
| | | {key:'合规数据',value:'合规数据'}, |
| | | {key:'管理数据',value:'管理数据'}, |
| | | {key:'测绘(ESV)',value:'测绘(ESV)'}, |
| | | {key:'勘察(EGE)',value:'勘察(EGE)'}, |
| | | {key:'地灾(EGD)',value:'地灾(EGD)'}, |
| | | {key:'洞库(EGD)',value:'洞库(EGD)'}, |
| | | ]; |
| | | }, |
| | | //关键字查询 |
| | | setSearchKeyWords() { |
| | |
| | | }, |
| | | //资料类别下拉框值改变触发 |
| | | categorySelectChange(model, prop, options) { |
| | | |
| | | this.getAllTabesData(); |
| | | |
| | | }, |
| | | // 项目名称下拉框值改变触发 |
| | | itemSelectChange(model, prop, options) { |
| | |
| | | return this.$message.error('单位列表获取失败'); |
| | | } |
| | | this.depOption = this.treeData(data.result); |
| | | this.formInline.depcode = this.depOption[0].code |
| | | this.formInline.depName = this.depOption[0].name; |
| | | // this.formInline.depcode = this.depOption[0].code |
| | | // this.formInline.depName = this.depOption[0].name; |
| | | this.getAllTabesData(); |
| | | }, |
| | | //树列表生成 |
| | |
| | | justify-content: center; |
| | | } |
| | | } |
| | | .pdfClass { |
| | | height: 70vh; |
| | | width: 100%; |
| | | position: relative; |
| | | } |
| | | } |
| | | </style> |