| | |
| | | class="clearfix" |
| | | > |
| | | |
| | | <span v-show="formInline.dataType=='type2'"> |
| | | <span v-show="formInline.dataType =='type2'"> |
| | | <span v-if="item.ismeta > 0"> |
| | | <el-link |
| | | style="color: #409eff" |
| | |
| | | >{{ item.name }}</el-link></span> |
| | | <span v-else>{{ item.name }}</span> |
| | | </span> |
| | | <span v-show="!formInline.dataType">{{item.tabDesc}}</span> |
| | | <span v-show="formInline.dataType !='type2'">{{item.tabDesc}}</span> |
| | | <div style="float: right; padding: 3px 0"> |
| | | <i |
| | | class="el-icon-tickets" |
| | |
| | | align="center" |
| | | prop="sizes" |
| | | :label="$t('common.size')" |
| | | :formatter="changeSizeFile" |
| | | :formatter="stateFormatSizes" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | |
| | | align="center" |
| | | prop="sizes" |
| | | :label="$t('common.size')" |
| | | :formatter="changeSizeFile" |
| | | :formatter="stateFormatSizes" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | |
| | | } |
| | | }; |
| | | return { |
| | | |
| | | fromSqlflag: false, |
| | | filedsOption: [], |
| | | condOption: [], |
| | |
| | | this.signGetPublicKey(); |
| | | }, |
| | | methods: { |
| | | getAttachTable() { |
| | | |
| | | }, |
| | | setRestMetaData() { |
| | | this.fromQueryMeta.name = ""; |
| | | this.listMetaData.name = this.fromQueryMeta.name; |
| | |
| | | }, |
| | | //重置 |
| | | 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() { |
| | |
| | | //查询文件数据 |
| | | async getQueryFileData() { |
| | | this.listData.dirs = ""; |
| | | this.listData.count = 0; |
| | | if (this.formInline.category.length != 0) { |
| | | this.listData.dirs += this.formInline.category.toString(); |
| | | } |
| | |
| | | this.listData.dirs += this.formInline.item.toString(); |
| | | } |
| | | this.listData.depcode = this.formInline.depcode; |
| | | this.listData.name = this.formInline.keywords; |
| | | this.listData.tab = this.formInline.keywords; |
| | | const data = await dataLib_selectByPageForMeta(this.listData); |
| | | if (data.code != 200) { |
| | | this.$message.error('文件数据列表调用失败'); |
| | |
| | | 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(); |
| | | }, |
| | | //树列表生成 |