| | |
| | | > |
| | | <el-option |
| | | v-for="item in categoryOptions" |
| | | :key="item.value" |
| | | :key="item.key" |
| | | :label="item.value" |
| | | :value="item.key" |
| | | > |
| | |
| | | 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"> |
| | | <el-button |
| | |
| | | > |
| | | |
| | | <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="!showView(item.type) && formInline.dataType=='type2'" |
| | | 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" |
| | | 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> |
| | | </el-card> |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="archBottomBox"> |
| | | <div style="margin-top:10px"> |
| | |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-link |
| | | v-if="matchState(scope, /[]/)" |
| | | @click="setAttatchDetail(scope.$index, scope.row)" |
| | | class="elLink" |
| | | >{{ $t('common.see') }}</el-link> |
| | |
| | | dataLib_selectFiles, |
| | | dataLib_deletes |
| | | } from '../../api/api'; |
| | | import {dataLibView } from '@/api/screen.js' |
| | | import { dataLibView } from '@/api/screen.js' |
| | | export default { |
| | | components: { |
| | | MyBread, MapSdk |
| | |
| | | isPdf: false, |
| | | isJpg: false, |
| | | src: '' |
| | | } |
| | | }, |
| | | checkedDataType: [], |
| | | }; |
| | | }, |
| | | |
| | |
| | | this.signGetPublicKey(); |
| | | }, |
| | | methods: { |
| | | //批量下载复选框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; |
| | |
| | | if (name.indexOf('.pdf') != -1) { |
| | | this.dialog.dialogVisible = true; |
| | | this.dialog.isPdf = true; |
| | | var url = BASE_URL + "/res/downloadForView?guid=" + row.guid + "&token=" + getToken(); |
| | | 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 + "/res/downloadForView?guid=" + row.guid + "&token=" + getToken(); |
| | | var url = BASE_URL + "/comprehensive/downloadForView?guid=" + row.guid + "&token=" + getToken(); |
| | | this.dialog.src = url |
| | | } |
| | | } |
| | | }, |
| | | |
| | | setAttatchFileView(index, row) { |
| | |
| | | this.dialog.isJpg = true; |
| | | } |
| | | this.dialog.dialogVisible = true; |
| | | this.dialog.isPdf = true; |
| | | |
| | | var url = BASE_URL + "/dataLib/downloadForView?guid=" + row.guid + "&token=" + getToken(); |
| | | this.dialog.src = url; |
| | | }, |
| | | showView(name) { |
| | | if (!name) return false |
| | | return name.indexOf('pdf') || name.indexOf('jpg') != -1 || name.indexOf('gif') != -1 || name.indexOf('png') != -1 || name.indexOf('jpeg') != -1 |
| | | 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 obj = { |
| | | entities: [this.listBankData.name], // bpachydrogeology,bhydrogeologyattach |
| | | filter: this.formInline.filter, |
| | | filter: this.listBankData.filter, |
| | | pwd: encrypt.encrypt(this.codeForm.password), |
| | | depcodes: [this.listData.depcode], |
| | | dirs: this.listData.dirs |
| | |
| | | |
| | | $("#downFrame").attr("src", url).click(); |
| | | this.closeDown(); |
| | | |
| | | this.monthdata.filter((res) => { |
| | | return res.ischecked = false; |
| | | }) |
| | | this.multipleSelection1 = []; |
| | | }, |
| | | closeDown() { |
| | | this.passWorldVisible = false; |
| | |
| | | }, |
| | | //文件下载 |
| | | setCardDownload(res) { |
| | | this.multipleSelection1 = []; |
| | | this.multipleSelection1.push(res); |
| | | // this.multipleSelection1 = []; |
| | | // this.multipleSelection1.push(res); |
| | | if (this.multipleSelection1.length == 0) { |
| | | this.$message({ |
| | | message: '请先选择要下载的文件', |
| | |
| | | } |
| | | } |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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.$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; |
| | | }) |
| | | 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; |
| | | this.monthdata = val; |
| | | this.listData.count = data.count; |
| | | |
| | | } else { |
| | | this.monthdata = []; |
| | | this.listData.count = 0; |
| | | } |
| | | |
| | | }, |
| | | //查询数据 |
| | | getAllTabesData() { |
| | |
| | | if (data.code != 200) { |
| | | this.$message.error('资料类别列表调用失败'); |
| | | } |
| | | |
| | | this.categoryOptions = data.result; |
| | | }, |
| | | //关键字查询 |
| | |
| | | }, |
| | | //资料类别下拉框值改变触发 |
| | | categorySelectChange(model, prop, options) { |
| | | |
| | | this.getAllTabesData(); |
| | | |
| | | }, |
| | | // 项目名称下拉框值改变触发 |
| | | itemSelectChange(model, prop, options) { |