| | |
| | | <template> |
| | | <div class="authorityManagement_box"> |
| | | <My-bread |
| | | :list="[ |
| | | <My-bread :list="[ |
| | | `${$t('dataManage.dataManage')}`, |
| | | `${$t('dataManage.metadataManage')}`, |
| | | ]" |
| | | ></My-bread> |
| | | ]"></My-bread> |
| | | <el-divider /> |
| | | <div class="inquire subpage_Div" ref="container"> |
| | | <el-form ref="queryForm" :model="queryForm" :inline="true"> |
| | | <div |
| | | class="inquire subpage_Div" |
| | | ref="container" |
| | | > |
| | | <el-form |
| | | ref="queryForm" |
| | | :model="queryForm" |
| | | :inline="true" |
| | | > |
| | | <div class="flex_box"> |
| | | <div style="margin-right: auto"> |
| | | <el-form-item size="small"> |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item prop="name" size="small"> |
| | | <el-form-item |
| | | prop="name" |
| | | size="small" |
| | | > |
| | | <!-- suffix-icon="el-icon-edit" :placeholder="$t('common.pleaseInput')"--> |
| | | <el-input |
| | | v-model="queryForm.name" |
| | | :placeholder="$t('shuJuGuanLi.lable2')" |
| | | style="width: 200px" |
| | | ><i |
| | | ><i |
| | | slot="suffix" |
| | | class="el-icon-search" |
| | | @click="queryInfo()" |
| | | style="padding-right: 8px" |
| | | ></i |
| | | ></el-input> |
| | | ></i></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <div> |
| | |
| | | size="small" |
| | | @click="deleteMetaInfo" |
| | | icon="el-icon-delete" |
| | | >{{ $t("common.delete") }} |
| | | >{{ $t("common.delete") }} |
| | | </el-button> |
| | | </el-form-item> |
| | | <el-form-item v-if="btnStatus.download"> |
| | |
| | | icon="el-icon-download" |
| | | type="success" |
| | | size="small" |
| | | >{{ $t("common.download") }} |
| | | >{{ $t("common.download") }} |
| | | </el-button> |
| | | </el-form-item> |
| | | |
| | |
| | | icon="el-icon-refresh" |
| | | type="info" |
| | | size="small" |
| | | >{{ $t("common.reset") }} |
| | | >{{ $t("common.reset") }} |
| | | </el-button> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- <el-form-item style="float:right"> |
| | | <el-button |
| | | @click="queryInfo()" |
| | | icon="el-icon-search" |
| | | class="primary" |
| | | size="small" |
| | | >{{ $t('common.iquery') }}</el-button> |
| | | </el-form-item> |
| | | <el-form-item style="float:right"> |
| | | <el-button |
| | | @click="resetInfo('queryForm')" |
| | | icon="el-icon-refresh" |
| | | type="info" |
| | | size="small" |
| | | >{{ $t('common.reset') }}</el-button> |
| | | </el-form-item> --> |
| | | |
| | | <!-- <el-form-item v-if="btnStatus.insert"> |
| | | <el-button |
| | | type="success" |
| | | size="small" |
| | | @click="showAddDialog" |
| | | icon="el-icon-plus" |
| | | >{{ $t('common.append') }}</el-button |
| | | > |
| | | </el-form-item> --> |
| | | <!-- <el-form-item v-if="btnStatus.delete" style="float:right"> |
| | | <el-button |
| | | type="danger" |
| | | size="small" |
| | | @click="deleteMetaInfo" |
| | | icon="el-icon-delete" |
| | | >{{ $t('common.delete') }}</el-button> |
| | | </el-form-item> |
| | | <el-form-item v-if="btnStatus.download" style="float:right"> |
| | | <el-button |
| | | @click="downFormData" |
| | | icon="el-icon-download" |
| | | type="success" |
| | | size="small" |
| | | >{{ $t('common.download') }}</el-button> |
| | | </el-form-item> --> |
| | | </el-form> |
| | | </div> |
| | | <div class="dividing-line"></div> |
| | | <div class="table_box subpage_Div" :style="styleVar"> |
| | | <div |
| | | class="table_box subpage_Div" |
| | | :style="styleVar" |
| | | > |
| | | <el-table |
| | | :data="tableData" |
| | | style="width: 100%" |
| | |
| | | @selection-change="handleSelectionChange" |
| | | height="calc(100% - 57px)" |
| | | > |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column |
| | | type="selection" |
| | | width="55" |
| | | /> |
| | | <el-table-column |
| | | :label="$t('dataManage.dictionaryManageObj.number')" |
| | | type="index" |
| | |
| | | title="源数据查询" |
| | | @click="setQueryMetaData(scope.row)" |
| | | target="_blank" |
| | | >{{ scope.row.name }}</el-link |
| | | > |
| | | >{{ scope.row.name }}</el-link> |
| | | </span> |
| | | <span v-else-if="scope.row.metaid > 0"> |
| | | <el-link |
| | |
| | | title="元数据查询" |
| | | @click="setMetaDataQuery(scope.row)" |
| | | target="_blank" |
| | | >{{ scope.row.name }}</el-link |
| | | ></span |
| | | > |
| | | >{{ scope.row.name }}</el-link></span> |
| | | <span v-else>{{ scope.row.name }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column prop="type" :label="$t('dataManage.vmobj.format')" /> |
| | | <el-table-column |
| | | prop="type" |
| | | :label="$t('dataManage.vmobj.format')" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.type == 'gdb'"> |
| | | <el-link |
| | | @click="setSelectGdbByGuid(scope.row)" |
| | | style="color: #409eff" |
| | | > |
| | | {{ scope.row.type }} |
| | | </el-link> |
| | | </span> |
| | | <span v-else> |
| | | |
| | | {{ scope.row.type }} |
| | | </span> |
| | | </template> |
| | | |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | prop="sizes" |
| | | :label="$t('dataManage.vmobj.size')" |
| | |
| | | <template slot-scope="scope"> |
| | | <!-- <span ></span> --> |
| | | <el-link></el-link> |
| | | <el-link :underline="false" @click="detail(scope.row)">{{ |
| | | <el-link |
| | | :underline="false" |
| | | @click="detail(scope.row)" |
| | | >{{ |
| | | scope.row.tab |
| | | }}</el-link> |
| | | </template> |
| | |
| | | :label="$t('dataManage.vmobj.tab')" |
| | | :formatter="formatData" |
| | | /> --> |
| | | <el-table-column prop="rows" :label="$t('dataManage.vmobj.row')" /> |
| | | <el-table-column |
| | | prop="rows" |
| | | :label="$t('dataManage.vmobj.row')" |
| | | /> |
| | | |
| | | <el-table-column |
| | | :label="$t('common.dataStatus')" |
| | | :formatter="stateFormat" |
| | | > |
| | | |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="uname" |
| | | :label="$t('dataManage.vmobj.createonuser')" |
| | |
| | | :label="$t('dataManage.vmobj.createontime')" |
| | | :formatter="formatData" |
| | | /> |
| | | <el-table-column min-width="210" :label="$t('common.operate')"> |
| | | <el-table-column |
| | | min-width="210" |
| | | :label="$t('common.operate')" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | @click="showDetail(scope.row)" |
| | | type="primary" |
| | | plain |
| | | size="small" |
| | | >{{ $t("common.details") }} |
| | | >{{ $t("common.details") }} |
| | | </el-button> |
| | | <el-button |
| | | type="warning" |
| | |
| | | v-if="btnStatus.update" |
| | | @click="editInfo(scope.row)" |
| | | style="margin-left: 10px" |
| | | >{{ $t("common.edit") }} |
| | | >{{ $t("common.edit") }} |
| | | </el-button> |
| | | <el-button |
| | | plain |
| | |
| | | v-if="showPreview(scope.row)" |
| | | @click="handlePreview(scope.row)" |
| | | style="margin-left: 10px" |
| | | >{{ $t("common.preview") }} |
| | | >{{ $t("common.preview") }} |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div class="pagination_box" style="margin-top: 15px"> |
| | | <div |
| | | class="pagination_box" |
| | | style="margin-top: 15px" |
| | | > |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | <div class="infoBox_box" v-show="showinfoBox"> |
| | | <div |
| | | class="infoBox_box" |
| | | v-show="showinfoBox" |
| | | style="z-index:99999" |
| | | > |
| | | <div class="infoBox box_div"> |
| | | <div slot="header" class="clearfix"> |
| | | <div |
| | | slot="header" |
| | | class="clearfix" |
| | | > |
| | | <span>{{ $t("common.details") }}</span> |
| | | <div style="float: right; cursor: pointer" @click="closeDetial"> |
| | | <div |
| | | style="float: right; cursor: pointer" |
| | | @click="closeDetial" |
| | | > |
| | | <i class="el-icon-close"></i> |
| | | </div> |
| | | </div> |
| | | <el-divider></el-divider> |
| | | <div class="contentBox" style="padding: 1%"> |
| | | <div |
| | | class="contentBox" |
| | | style="padding: 1%" |
| | | > |
| | | <p>{{ $t("dataManage.vmobj.name") }}:{{ itemdetail.name }}</p> |
| | | <el-divider></el-divider> |
| | | <p>{{ $t("dataManage.vmobj.format") }}:{{ itemdetail.type }}</p> |
| | |
| | | <el-divider></el-divider> |
| | | <p>{{ $t("dataManage.vmobj.tab") }}:{{ itemdetail.tab }}</p> |
| | | <el-divider></el-divider> |
| | | <p>{{ $t("dataManage.vmobj.row") }}:{{ itemdetail.row }}</p> |
| | | <p>{{ $t("dataManage.vmobj.row") }}:{{ itemdetail.rows }}</p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | {{ $t("dataManage.vmobj.createonuser") }}:{{ itemdetail.uname }} |
| | |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <!-- <p> |
| | | {{ $t("dataManage.vmobj.depName") }}:{{ itemdetail.updateUser }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | |
| | | {{ $t("dataManage.vmobj.depName") }}:{{ |
| | | setInfoBoxTime(itemdetail.updateTime) |
| | | }} |
| | | </p> |
| | | </p> --> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | :visible.sync="dialogFormVisible" |
| | | :before-close="handleClose" |
| | | > |
| | | <el-form :model="editForm" ref="editForm"> |
| | | <el-form |
| | | :model="editForm" |
| | | ref="editForm" |
| | | > |
| | | <el-form-item |
| | | :label="$t('dataManage.vmobj.name')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="editForm.name" autocomplete="off"></el-input> |
| | | <el-input |
| | | v-model="editForm.name" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.vmobj.format')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="editForm.type" autocomplete="off"></el-input> |
| | | <el-input |
| | | v-model="editForm.type" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.vmobj.size')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="editForm.sizes" autocomplete="off"></el-input> |
| | | <el-input |
| | | v-model="editForm.sizes" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.vmobj.depName')" |
| | |
| | | :label="$t('dataManage.vmobj.describe')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="editForm.describe" autocomplete="off"></el-input> |
| | | <el-input |
| | | v-model="editForm.describe" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <!-- <el-form-item |
| | | :label="$t('dataManage.vmobj.gather')" |
| | |
| | | <el-input v-model="editForm.gather" autocomplete="off"></el-input> |
| | | </el-form-item> --> |
| | | </el-form> |
| | | <div v-if="behavior == '修改信息'" slot="footer" class="dialog-footer"> |
| | | <el-button size="small" @click="cancelEdit()" |
| | | >{{ $t("common.reset") }} |
| | | <div |
| | | v-if="behavior == '修改信息'" |
| | | slot="footer" |
| | | class="dialog-footer" |
| | | > |
| | | <el-button |
| | | size="small" |
| | | @click="cancelEdit()" |
| | | >{{ $t("common.reset") }} |
| | | </el-button> |
| | | <el-button |
| | | size="small" |
| | | type="primary" |
| | | @click="sendEdit('editForm')" |
| | | v-loading.fullscreen.lock="fullscreenLoading" |
| | | >{{ $t("common.submit") }} |
| | | >{{ $t("common.submit") }} |
| | | </el-button> |
| | | </div> |
| | | <div v-else slot="footer" class="dialog-footer"> |
| | | <el-button size="small" @click="cancelAdd('editForm')" |
| | | >{{ $t("common.reset") }} |
| | | <div |
| | | v-else |
| | | slot="footer" |
| | | class="dialog-footer" |
| | | > |
| | | <el-button |
| | | size="small" |
| | | @click="cancelAdd('editForm')" |
| | | >{{ $t("common.reset") }} |
| | | </el-button> |
| | | <el-button |
| | | size="small" |
| | | type="primary" |
| | | @click="sendAdd('editForm')" |
| | | v-loading.fullscreen.lock="fullscreenLoading" |
| | | >{{ $t("common.submit") }} |
| | | >{{ $t("common.submit") }} |
| | | </el-button> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | align="center" |
| | | ></el-table-column> |
| | | </el-table> |
| | | <div style="margin-top: 10px" class="pagination_box"> |
| | | <div |
| | | style="margin-top: 10px" |
| | | class="pagination_box" |
| | | > |
| | | <el-pagination |
| | | @size-change="handleLoaderSizeChange" |
| | | @current-change="handleLoaderCurrentChange" |
| | |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | <div class="downloadBox box_div subpage_Div" v-if="showCodeBox"> |
| | | <div |
| | | class="downloadBox box_div subpage_Div" |
| | | v-if="showCodeBox" |
| | | > |
| | | <h4 style="padding: 20px">{{ $t("common.passworld") }}</h4> |
| | | <el-form |
| | | :model="codeForm" |
| | |
| | | label-width="100px" |
| | | class="codeForm" |
| | | > |
| | | <el-form-item :label="$t('common.passworld')" prop="password"> |
| | | <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-form-item |
| | | :label="$t('common.SPassword')" |
| | | prop="repassword" |
| | | > |
| | | <el-input |
| | | type="password" |
| | | v-model="codeForm.repassword" |
| | |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button class="primary" size="small" @click="download('codeForm')" |
| | | >{{ $t("common.confirm") }} |
| | | <el-button |
| | | class="primary" |
| | | size="small" |
| | | @click="download('codeForm')" |
| | | >{{ $t("common.confirm") }} |
| | | </el-button> |
| | | <el-button type="info" size="small" @click="closeDown('codeForm')" |
| | | >{{ $t("common.cancel") }} |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="closeDown('codeForm')" |
| | | >{{ $t("common.cancel") }} |
| | | </el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | width="70%" |
| | | > |
| | | <div style="height: 65vh; width: 100%"> |
| | | <el-form :inline="true" :model="fromQueryMeta" class="demo-form-inline"> |
| | | <el-form |
| | | :inline="true" |
| | | :model="fromQueryMeta" |
| | | class="demo-form-inline" |
| | | > |
| | | <el-form-item> |
| | | <el-input size="small" v-model="fromQueryMeta.name"></el-input> |
| | | <el-input |
| | | size="small" |
| | | v-model="fromQueryMeta.name" |
| | | ></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item> |
| | | <el-button type="primary" size="small" @click="setSearchMetaData()" |
| | | >查询 |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | @click="setSearchMetaData()" |
| | | >查询 |
| | | </el-button> |
| | | <el-button type="info" size="small" @click="setRestMetaData()" |
| | | >重置 |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="setRestMetaData()" |
| | | >重置 |
| | | </el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | :label="$t('dataManage.dataUpObj.tableName')" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <a class="scopeRowColor" @click="detail(scope.row)">{{ |
| | | <a |
| | | class="scopeRowColor" |
| | | @click="detail(scope.row)" |
| | | >{{ |
| | | scope.row.tab |
| | | }}</a> |
| | | </template> |
| | |
| | | :label="$t('dataManage.dataUpObj.describe')" |
| | | /> |
| | | </el-table> |
| | | <div class="pagination_box" style="margin-top: 15px"> |
| | | <div |
| | | class="pagination_box" |
| | | style="margin-top: 15px" |
| | | > |
| | | <el-pagination |
| | | @size-change="handleMetaSizeChange" |
| | | @current-change="handMetaCurrentChange" |
| | |
| | | :label="$t('dataManage.dataUpObj.tableName')" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <a class="scopeRowColor" @click="detail(scope.row)">{{ |
| | | <a |
| | | class="scopeRowColor" |
| | | @click="detail(scope.row)" |
| | | >{{ |
| | | scope.row.tab |
| | | }}</a> |
| | | </template> |
| | |
| | | width="70%" |
| | | :close-on-click-modal="false" |
| | | > |
| | | <div v-if="dialog.isPdf" class="pdfClass"> |
| | | <div |
| | | v-if="dialog.isPdf" |
| | | class="pdfClass" |
| | | > |
| | | <iframe |
| | | :src="dialog.src" |
| | | type="application/x-google-chrome-pdf" |
| | |
| | | > |
| | | </iframe> |
| | | </div> |
| | | <div v-if="dialog.isJpg" class="pdfClass"> |
| | | <div |
| | | v-if="dialog.isJpg" |
| | | class="pdfClass" |
| | | > |
| | | <el-image |
| | | style="width: 100%; height: 100%" |
| | | :src="dialog.src" |
| | |
| | | :close-on-click-modal="false" |
| | | :show-close="false" |
| | | > |
| | | <el-form ref="form" :model="fileFrom" label-width="100px"> |
| | | <el-form |
| | | ref="form" |
| | | :model="fileFrom" |
| | | label-width="100px" |
| | | > |
| | | <el-form-item label="审核单位"> |
| | | <div> |
| | | <ul> |
| | |
| | | class="primary" |
| | | size="small" |
| | | @click="getFileInsertApply()" |
| | | >{{ $t("common.confirm") }}</el-button |
| | | > |
| | | >{{ $t("common.confirm") }}</el-button> |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="handleInsertFileClose()" |
| | | >{{ $t("common.cancel") }}</el-button |
| | | > |
| | | >{{ $t("common.cancel") }}</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="" |
| | | :visible.sync="gdbDialog" |
| | | width="80%" |
| | | top="8vh" |
| | | :modal="false" |
| | | :close-on-click-modal="false" |
| | | > |
| | | <div class="gdbTableBox"> |
| | | <el-table |
| | | :data="gdbData" |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | width="55" |
| | | /> |
| | | <el-table-column |
| | | :label="$t('dataManage.dictionaryManageObj.number')" |
| | | type="index" |
| | | width="50" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column :label="$t('dataManage.vmobj.name')"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.ismeta > 0"> |
| | | <el-link |
| | | style="color: #409eff" |
| | | title="源数据查询" |
| | | @click="setQueryMetaData(scope.row)" |
| | | target="_blank" |
| | | >{{ scope.row.name }}</el-link> |
| | | </span> |
| | | <span v-else-if="scope.row.metaid > 0"> |
| | | <el-link |
| | | style="color: #409eff" |
| | | title="元数据查询" |
| | | @click="setMetaDataQuery(scope.row)" |
| | | target="_blank" |
| | | >{{ scope.row.name }}</el-link></span> |
| | | <span v-else>{{ scope.row.name }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | prop="type" |
| | | :label="$t('dataManage.vmobj.format')" |
| | | > |
| | | |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | prop="sizes" |
| | | :label="$t('dataManage.vmobj.size')" |
| | | :formatter="stateFormatSizes" |
| | | /> |
| | | <el-table-column |
| | | prop="depName" |
| | | :label="$t('dataManage.vmobj.depName')" |
| | | /> |
| | | <el-table-column |
| | | prop="dirName" |
| | | :label="$t('dataManage.vmobj.dirName')" |
| | | width="200" |
| | | /> |
| | | <el-table-column |
| | | prop="verName" |
| | | :label="$t('dataManage.vmobj.versionNumber')" |
| | | /> |
| | | <el-table-column :label="$t('dataManage.dataUpObj.tableName')"> |
| | | <template slot-scope="scope"> |
| | | |
| | | <el-link></el-link> |
| | | <el-link |
| | | :underline="false" |
| | | @click="detail(scope.row)" |
| | | >{{ |
| | | scope.row.tab |
| | | }}</el-link> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | prop="rows" |
| | | :label="$t('dataManage.vmobj.row')" |
| | | /> |
| | | |
| | | <el-table-column |
| | | :label="$t('common.dataStatus')" |
| | | :formatter="stateFormat" |
| | | > |
| | | |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="uname" |
| | | :label="$t('dataManage.vmobj.createonuser')" |
| | | /> |
| | | <el-table-column |
| | | prop="createTime" |
| | | :label="$t('dataManage.vmobj.createontime')" |
| | | :formatter="formatData" |
| | | /> |
| | | <el-table-column |
| | | min-width="210" |
| | | :label="$t('common.operate')" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | @click="showDetail(scope.row)" |
| | | type="primary" |
| | | plain |
| | | size="small" |
| | | >{{ $t("common.details") }} |
| | | </el-button> |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | | size="small" |
| | | v-if="btnStatus.update" |
| | | @click="editInfo(scope.row)" |
| | | style="margin-left: 10px" |
| | | >{{ $t("common.edit") }} |
| | | </el-button> |
| | | <el-button |
| | | plain |
| | | size="small" |
| | | v-if="showPreview(scope.row)" |
| | | @click="handlePreview(scope.row)" |
| | | style="margin-left: 10px" |
| | | >{{ $t("common.preview") }} |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | |
| | | </el-dialog> |
| | | <iframe |
| | | id="downFrame" |
| | |
| | | meta_selectMetaOverflowDep, |
| | | meta_selectDepsByCodes, |
| | | apply_insertApply, |
| | | meta_selectGdbByGuid, |
| | | } from "../../api/api"; |
| | | |
| | | import MyBread from "../../components/MyBread.vue"; |
| | |
| | | dirid: "", |
| | | depid: "", |
| | | verid: "", |
| | | depName:"", |
| | | |
| | | depName: "", |
| | | |
| | | }, |
| | | behavior: "", |
| | | initialForm: "", |
| | |
| | | pwd: null, |
| | | depcodes: null, |
| | | }, |
| | | gdbData: [], |
| | | gdbDialog: false, |
| | | gdbGuid: null, |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | }, |
| | | watch: { |
| | | "queryForm.depName"() { |
| | | |
| | | |
| | | this.$refs.treeSelect.visible = false; |
| | | }, |
| | | "queryForm.dirid"() { |
| | | |
| | | |
| | | this.$refs.treeSelect1.visible = false; |
| | | }, |
| | | }, |
| | | methods: { |
| | | //gdb 点击事件 |
| | | setSelectGdbByGuid(row) { |
| | | this.gdbGuid = row.guid |
| | | this.getSelectGdbByGuid(); |
| | | }, |
| | | async getSelectGdbByGuid() { |
| | | if (!this.gdbGuid) return |
| | | const data = await meta_selectGdbByGuid({ guid: this.gdbGuid }) |
| | | if (data.code != 200) { |
| | | return this.$message.error("根据GUID查询GDB数据失败"); |
| | | } |
| | | if (data.count <= 0) { |
| | | return this.$message("查无更多数据"); |
| | | } |
| | | this.gdbData = data.result; |
| | | this.gdbDialog = true; |
| | | |
| | | }, |
| | | |
| | | |
| | | stateFormat(row, column) { |
| | | var val = ['shp', 'gdb', 'xls', 'xlsx'] |
| | | if (val.indexOf(row.type) > -1 && row.rows > 0) { |
| | | return '已上传,已入库' |
| | | } else if (val.indexOf(row.type) > -1 && row.rows == 0) { |
| | | return '已上传,未入库' |
| | | } else { |
| | | return '已上传' |
| | | } |
| | | }, |
| | | //大小值改变 |
| | | changeSizeFile(row, column, cellValue, index) { |
| | | if (cellValue >= 1024) { |
| | |
| | | this.fromQueryMeta.title = row.name; |
| | | this.listMetaData = { |
| | | id: row.metaid, |
| | | // name: "", |
| | | // pageIndex: 1, |
| | | // pageSize: 10, |
| | | // count: 0, |
| | | |
| | | }; |
| | | const data = await meta_selectById(this.listMetaData); |
| | | if (data.code != 200) { |
| | |
| | | this.metaDataTable1 = [data.result]; |
| | | // this.listMetaData.count = data.count; |
| | | }, |
| | | |
| | | |
| | | //源数据查询 |
| | | setQueryMetaData(row) { |
| | | this.fromQueryMeta.title = row.name; |
| | |
| | | showDetail(row) { |
| | | // console.log(index, row); |
| | | this.showinfoBox = true; |
| | | |
| | | this.itemdetail = row; |
| | | |
| | | }, |
| | | // 关闭查看 |
| | | closeDetial() { |
| | |
| | | this.editForm = {}; |
| | | done(); |
| | | }) |
| | | .catch((_) => {}); |
| | | .catch((_) => { }); |
| | | }, |
| | | |
| | | // 提交修改 |
| | |
| | | if (res.code == 200) { |
| | | this.listData.pageSize = 10; |
| | | this.listData.pageIndex = 1; |
| | | this.getMetaData(); |
| | | |
| | | if (this.gdbDialog) { |
| | | this.getSelectGdbByGuid(); |
| | | } else { |
| | | this.getMetaData(); |
| | | } |
| | | |
| | | |
| | | this.$message({ |
| | | message: "修改成功", |
| | | type: "success", |
| | |
| | | alert("修改失败,请重试!"); |
| | | this.fullscreenLoading = false; |
| | | }); |
| | | |
| | | }, |
| | | cancelEdit() { |
| | | this.$nextTick(() => { |
| | |
| | | position: relative; |
| | | } |
| | | } |
| | | .el-divider--horizontal { |
| | | margin: 15px 0; |
| | | } |
| | | .gdbTableBox { |
| | | width: 100%; |
| | | height: 740px; |
| | | overflow-y: auto; |
| | | } |
| | | } |
| | | </style> |