| | |
| | | prop="dirName" |
| | | :label="$t('dataManage.vmobj.dirName')" |
| | | /> |
| | | |
| | | |
| | | <el-table-column |
| | | :label="$t('dataManage.dataUpObj.tableName')"> |
| | | <template slot-scope="scope"> |
| | | <a @click="detail(scope.row)" >{{ |
| | | scope.row.tab |
| | | }}</a> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | prop="gather" |
| | | :label="$t('dataManage.vmobj.gather')" |
| | | :formatter="formatData" |
| | |
| | | :label="$t('dataManage.vmobj.createontime')" |
| | | :formatter="formatData" |
| | | /> |
| | | |
| | | <el-table-column min-width="100" :label="$t('common.operate')"> |
| | | <template slot-scope="scope"> |
| | | <el-link style="color: white" @click="showDetail(scope.row)">{{ |
| | |
| | | > |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | | :title="$t('common.details')" |
| | | :visible.sync="dialogVisible" |
| | | width="70%" |
| | | > |
| | | <div style="height:600px"> |
| | | <el-table |
| | | ref="filterTable" |
| | | :data="dbTableData" |
| | | height="90%" |
| | | border |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column width="60" align="center" type="index" :label="$t('common.index')" /> |
| | | <el-table-column |
| | | v-for="(item, index) in attributeData" |
| | | :key="index" |
| | | :label="item.alias" |
| | | :prop="item.field" |
| | | show-overflow-tooltip |
| | | align="center" |
| | | |
| | | ></el-table-column> |
| | | </el-table> |
| | | <div style="margin-top: 10px" class="pagination_box"> |
| | | <el-pagination |
| | | @size-change="handleLoaderSizeChange" |
| | | @current-change="handleLoaderCurrentChange" |
| | | :current-page="listLoader.pageIndex" |
| | | :page-sizes="[10, 20, 30, 40]" |
| | | :page-size="listLoader.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="count1" |
| | | > |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | |
| | | </el-dialog> |
| | | <div class="downloadBox" v-if="showCodeBox"> |
| | | <h4 style="padding: 20px">{{$t('common.passworld')}}</h4> |
| | | <el-form |
| | |
| | | queryDepTree, |
| | | meta_downloadReq, |
| | | sign_getPublicKey, |
| | | meta_selectDownloadFile |
| | | meta_selectDownloadFile, |
| | | meta_selectFields, |
| | | meta_selectByPageForUpload |
| | | } from '../../api/api'; |
| | | |
| | | import MyBread from '../../components/MyBread.vue'; |
| | |
| | | ], |
| | | }, |
| | | tableData: [], |
| | | dbTableData: [], |
| | | count: 0, |
| | | currentPage: 1, |
| | | pageSize: 10, |
| | |
| | | checkStrictly: true, |
| | | emitPath: false, |
| | | }, |
| | | dialogVisible: false, |
| | | listLoader: { |
| | | id: null, |
| | | pageSize: 1, |
| | | pageSize: 10, |
| | | }, |
| | | count1: 0, |
| | | attributeData: [], |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | async signGetPublicKey(){ |
| | | const res = await sign_getPublicKey(); |
| | | if (res && res.code == 200) { |
| | | window.encrypt = new JSEncrypt(); |
| | | encrypt.setPublicKey(res.result); |
| | | async detail(res) { |
| | | var val = res.tab.split("."); |
| | | const data = await meta_selectFields({ |
| | | ns: val[0], |
| | | tab: val[1] |
| | | }) |
| | | |
| | | if (data.code != 200) { |
| | | this.$message.error('字段列表调用失败'); |
| | | return |
| | | } |
| | | |
| | | this.dialogVisible = true; |
| | | |
| | | |
| | | this.attributeData = data.result; |
| | | |
| | | this.listLoader = { |
| | | id: res.id, |
| | | pageIndex: 1, |
| | | pageSize: 10, |
| | | } |
| | | this.getDataLoaderSelectDbData(); |
| | | }, |
| | | |
| | | async getDataLoaderSelectDbData() { |
| | | const data1 = await meta_selectByPageForUpload(this.listLoader); |
| | | if (data1.code != 200) { |
| | | this.$message.error('字段列表调用失败'); |
| | | return |
| | | } |
| | | debugger |
| | | var option = data1.result; |
| | | for (var i in option) { |
| | | option[i].dirid = option[i].dirName; |
| | | option[i].depid = option[i].depName; |
| | | option[i].createuser = option[i].createName; |
| | | option[i].updateuser = option[i].updateName; |
| | | option[i].verid = option[i].verName; |
| | | if (option[i].createtime != null) { |
| | | option[i].createtime = this.setInfoBoxTime(option[i].createtime) |
| | | } |
| | | if (option[i].updatetime != null) { |
| | | option[i].updatetime = this.setInfoBoxTime(option[i].updatetime) |
| | | } |
| | | |
| | | } |
| | | this.dbTableData = data1.result; |
| | | this.count1 = data1.count; |
| | | }, |
| | | handleLoaderSizeChange(val) { |
| | | this.listLoader.pageIndex = 1; |
| | | this.listLoader.pageSize = val; |
| | | this.getDataLoaderSelectDbData(); |
| | | }, |
| | | handleLoaderCurrentChange(val) { |
| | | this.listLoader.pageIndex = val; |
| | | this.getDataLoaderSelectDbData(); |
| | | }, |
| | | |
| | | async signGetPublicKey() { |
| | | const res = await sign_getPublicKey(); |
| | | if (res && res.code == 200) { |
| | | window.encrypt = new JSEncrypt(); |
| | | encrypt.setPublicKey(res.result); |
| | | } |
| | | }, |
| | | //单位列表获取 |
| | | async getQueryDepTree() { |
| | |
| | | pwd: encrypt.encrypt(this.codeForm.repassword), |
| | | ids: std |
| | | }; |
| | | const res = await meta_downloadReq(JSON.stringify(obj)) |
| | | const res = await meta_downloadReq(JSON.stringify(obj)) |
| | | |
| | | if(res.code!=200){ |
| | | if (res.code != 200) { |
| | | this.$message.error('下载请求失败'); |
| | | return |
| | | } |
| | | } |
| | | |
| | | var downObj={ |
| | | guid :res.result, |
| | | pwd :encodeURIComponent(encrypt.encrypt(this.codeForm.repassword)) |
| | | } |
| | | var downObj = { |
| | | guid: res.result, |
| | | pwd: encodeURIComponent(encrypt.encrypt(this.codeForm.repassword)) |
| | | } |
| | | const data = await meta_selectDownloadFile(downObj) |
| | | |
| | | if(data.code !=200){ |
| | | if (data.code != 200) { |
| | | this.$message.error('下载请求失败'); |
| | | return |
| | | } |
| | | var token = getToken() |
| | | var url = BASE_URL+"/meta/downloadFile?token=" +token+ "&guid=" + res.result + "&pwd=" +encodeURIComponent(encrypt.encrypt(this.codeForm.repassword)); |
| | | } |
| | | var token = getToken() |
| | | var url = BASE_URL + "/meta/downloadFile?token=" + token + "&guid=" + res.result + "&pwd=" + encodeURIComponent(encrypt.encrypt(this.codeForm.repassword)); |
| | | |
| | | $("#downFrame").attr("src", url).click(); |
| | | this.closeDown(); |