| | |
| | | class="subpage_Box" |
| | | v-loading="loading" |
| | | element-loading-background="rgba(0, 0, 0, 0.8)" |
| | | :element-loading-text="loadText" |
| | | > |
| | | <My-bread :list="[ |
| | | `${$t('dataManage.dataManage')}`, |
| | |
| | | :label="$t('shuJuGuanLi.pselect.dFiles')" |
| | | value="v2" |
| | | /> |
| | | |
| | | <el-option |
| | | :label="$t('shuJuGuanLi.pselect.dFfilest')" |
| | | value="v3" |
| | | /> |
| | | </el-select> |
| | | |
| | | </el-form-item> |
| | |
| | | size="small" |
| | | > |
| | | <el-select |
| | | ref="multiSelect" |
| | | :popper-append-to-body="false" |
| | | v-model="formInline.dirName" |
| | | :disabled="tableData.length == 0 ? false : true" |
| | |
| | | </el-option>--> |
| | | |
| | | <el-option |
| | | :label="$t('shuJuGuanLi.pselect.SurveyDiscipline')" |
| | | :label="$t('shuJuGuanLi.pselect.SurveyingAndMapping')" |
| | | value="测量专业" |
| | | /> |
| | | <el-option |
| | |
| | | :label="$t('shuJuGuanLi.pselect.CavernSpecialty')" |
| | | value="洞库专业" |
| | | /> |
| | | |
| | | <el-option |
| | | :label="$t('shuJuGuanLi.pselect.LineDiscipline')" |
| | | value='线路专业' |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <!-- 坐标系 --> |
| | |
| | | </el-form-item> |
| | | <div class="flex_box"> |
| | | <div style="margin-right: auto"> |
| | | <!-- 线路类别 --> |
| | | <el-form-item |
| | | size="small" |
| | | :label="$t('dataManage.dataUpObj.labe11')" |
| | | v-show="formInline.uploadType =='v3'" |
| | | > |
| | | <el-select |
| | | v-model="formInline.tab" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="item in lineOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <!-- 线路类别 --> |
| | | <el-form-item |
| | | :label="$t('dataManage.dataUpObj.labe12')" |
| | | v-show="formInline.uploadType =='v3'" |
| | | size="small" |
| | | > |
| | | <el-select |
| | | v-model="formInline.medium" |
| | | size="small" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="item in mediumOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <!-- 选择数据 --> |
| | | <el-form-item size="small"> |
| | | <el-link |
| | |
| | | </el-form-item> |
| | | <!-- 选择元数据 --> |
| | | <el-form-item |
| | | v-show="uploadFlag" |
| | | v-show="uploadFlag " |
| | | v-if="formInline.uploadType =='v1'" |
| | | style="padding-left: 16px" |
| | | > |
| | | <el-link |
| | |
| | | </el-form-item> |
| | | <el-form-item |
| | | v-show="uploadFlag" |
| | | v-if="formInline.uploadType =='v1'" |
| | | size="small" |
| | | > |
| | | <el-input |
| | |
| | | > |
| | | <el-table |
| | | style="width:100%" |
| | | border |
| | | :data="tableData" |
| | | @selection-change="handleSelectionChange" |
| | | height="calc(100% - 57px)" |
| | |
| | | ref="filterTable" |
| | | :data="waretableData" |
| | | style="width: 100%" |
| | | border |
| | | height="calc(100% - 57px)" |
| | | @selection-change="handleDelteChange" |
| | | > |
| | |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | :label="$t('common.dataStatus')" |
| | | :formatter="stateFormat" |
| | | > |
| | | |
| | | </el-table-column> |
| | | <el-table-column |
| | | align=" |
| | | center" |
| | | prop="desc" |
| | | :label="$t('dataManage.dataUpObj.describe')" |
| | | /> |
| | |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="listData.pageIndex" |
| | | :page-sizes="[10, 20, 50, 100]" |
| | | :page-sizes="[10, 50, 100, 200,500]" |
| | | :page-size="listData.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="count" |
| | |
| | | <el-button |
| | | class="elBotton" |
| | | size="small" |
| | | @click="commonTestQuay" |
| | | @click="commonTestQuay()" |
| | | >确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | width="70%" |
| | | > |
| | | <div class="dialogBox"> |
| | | <div class="transFarBox subpage_Div"> |
| | | <div |
| | | class="transFarBox subpage_Div" |
| | | style="border: 1px solid #E4E7ED;" |
| | | > |
| | | <ul> |
| | | <li |
| | | @click="singleElection(item)" |
| | |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="transFarBox subpage_Div"> |
| | | <div |
| | | class="transFarBox subpage_Div" |
| | | style="border: 1px solid #E4E7ED;" |
| | | > |
| | | <ul> |
| | | <li |
| | | @click="singleElection2(item)" |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="transFarBox subpage_Div"> |
| | | <div |
| | | class="transFarBox subpage_Div" |
| | | style="border: 1px solid #E4E7ED;" |
| | | > |
| | | <ul> |
| | | <li |
| | | @click="singleElection3(i)" |
| | |
| | | @size-change="handleLoaderSizeChange" |
| | | @current-change="handleLoaderCurrentChange" |
| | | :current-page="listLoader.pageIndex" |
| | | :page-sizes="[10, 20, 50, 100]" |
| | | :page-sizes="[10, 50, 100, 200]" |
| | | :page-size="listLoader.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="count1" |
| | |
| | | </el-dialog> |
| | | <el-dialog |
| | | :close-on-click-modal="false" |
| | | title="上传进度" |
| | | :title="sc.label1" |
| | | :visible.sync="jindudialogVisible" |
| | | width="30%" |
| | | > |
| | | <div> |
| | | <div> |
| | | 文件传输进度: |
| | | {{sc.label2}} |
| | | </div> |
| | | <div> |
| | | <el-progress |
| | |
| | | @size-change="handleMetaSizeChange" |
| | | @current-change="handMetaCurrentChange" |
| | | :current-page="listMetaData.pageIndex" |
| | | :page-sizes="[10, 20, 50, 100]" |
| | | :page-sizes="[10, 50, 100, 200]" |
| | | :page-size="listMetaData.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="listMetaData.count" |
| | |
| | | |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | | :title="fromQueryMeta.title" |
| | | :visible.sync="warehouseDialog" |
| | | width="70%" |
| | | :close-on-click-modal="false" |
| | | :before-close="handleWarehouseClose" |
| | | > |
| | | <div style="height:65vh"> |
| | | <el-table |
| | | ref="wareTable" |
| | | :data="wareData" |
| | | style="width: 100%" |
| | | height="calc(100% - 1px)" |
| | | > |
| | | <el-table-column |
| | | align="center" |
| | | prop="name" |
| | | :label="$t('common.name')" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="sizes" |
| | | :label="$t('common.size')" |
| | | :formatter="changeSizeFile" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="type" |
| | | :label="$t('common.type')" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="msg" |
| | | :label="$t('common.warehousResults')" |
| | | /> |
| | | </el-table> |
| | | </div> |
| | | </el-dialog> |
| | | <input |
| | | name="file1" |
| | | :accept="'.zip'" |
| | |
| | | style="display: none" |
| | | @change="uploadAnFilesChange" |
| | | /> |
| | | <el-dialog :visible.sync="noteVisible"> |
| | | <div class="nodeBox"> |
| | | <div style="text-align: center;"> |
| | | <h1> |
| | | 数据上传注意事项 |
| | | </h1> |
| | | </div> |
| | | <h3> |
| | | 1、项目整体上传 |
| | | </h3> |
| | | |
| | | <h5> 按照项目标准结构组织数据并打zip包,按要求编辑好WBS文件。选择需要上传对应的项目名称,选择zip数据包和WBS文件,完成整体项目数据上传,上传入库完成后,系统自动解压zip包,以zip包内原始文件格式存储在预先组织的目录结构下。</h5> |
| | | <h3> |
| | | 2、单文件上传 |
| | | </h3> |
| | | <h5> 上传单个文件,选择需要上传的存储目录位置、数据版本、数据专业、数据(.xls、.xlsx、pdf、las等格式)、元数据等,完成单个文件数据上传;</h5> |
| | | <h5> 批量上传一个最小目录文件夹下的各类数据,选择需要上传数据的存储目录位置、数据版本、数据专业、数据(zip格式)、元数据等,完成一个文件夹下各类数据上传,上传入库完成后,系统自动解压zip包,以zip包内原始文件存储数据。</h5> |
| | | <h5> 单文件上传不支持多级目录文件夹以zip压缩包方式上传。</h5> |
| | | <h3> |
| | | 3、特定格式单文件上传要求 |
| | | </h3> |
| | | <h5>√ <span>DOM数据上传:</span>至少需包含.tif、.tif.ovr文件,以zip包压缩统一上传。</h5> |
| | | <h5>√ <span>DEM数据上传:</span>至少需包含.tif、.tif.ovr文件,以zip包压缩统一上传。</h5> |
| | | <h5>√ <span>OSGB倾斜模型数据上传:</span>需包含Data文件夹、metadata.xml文件,以zip包压缩统一上传。</h5> |
| | | <h5>√ <span>Las、Laz点云数据上传:</span>可单独上传文件,也可以zip包压缩统一上传。</h5> |
| | | <h5>√ <span>CPT点云数据上传:</span>可单独上传文件,也可以zip包压缩统一上传。</h5> |
| | | <h5>√ <span>MPT场景数据上传:</span>需包含.mIdx、.Strmi、.mpt文件,以zip包压缩统一上传。</h5> |
| | | <h5>√ <span>GDB格式矢量文件上传:</span>需包含gdb各类子文件,以zip包压缩统一上传。</h5> |
| | | <h5>√ <span>SHP矢量文件上传:</span>需包含.shp、.shx、.dbf、prj子文件,以zip包压缩统一上传。</h5> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | dataUploadSelectVerByDirid, |
| | | dataUpload_selectMetaById, |
| | | selectdirTab, |
| | | dataUpload_insertKml |
| | | } from "../../api/api"; |
| | | |
| | | export default { |
| | |
| | | selectFileType: "*.*", |
| | | coordinateId: null, |
| | | path: null, |
| | | verid: null, |
| | | tab: "", |
| | | medium: "", |
| | | }, |
| | | cascader: { |
| | | label: "name", |
| | |
| | | label: "洞库专业", |
| | | }, |
| | | ], |
| | | lineOptions: [ |
| | | { |
| | | value: 'plpipelinef', |
| | | label: "可研中线", |
| | | }, |
| | | { |
| | | value: 'plpipelineb', |
| | | label: "设计中线", |
| | | }, |
| | | { |
| | | value: 'plpipelined', |
| | | label: "施工图中线", |
| | | }, |
| | | { |
| | | value: 'plpipelinea', |
| | | label: "竣工图中线", |
| | | }, |
| | | ], |
| | | mediumOptions: [ |
| | | { |
| | | value: 'GS', |
| | | label: "天然气", |
| | | }, |
| | | { |
| | | value: 'CO', |
| | | label: "原油", |
| | | }, |
| | | { |
| | | value: 'RP', |
| | | label: "成品油", |
| | | }, |
| | | { |
| | | value: 'LN', |
| | | label: "液化天然气", |
| | | }, |
| | | { |
| | | value: 'SL', |
| | | label: "液化石油气", |
| | | }, { |
| | | value: 'WA', |
| | | label: "矿浆", |
| | | }, { |
| | | value: 'ST', |
| | | label: "蒸汽", |
| | | }, { |
| | | value: 'CD', |
| | | label: "二氧化碳", |
| | | }, { |
| | | value: 'HY', |
| | | label: "氢气", |
| | | }, { |
| | | value: 'QT', |
| | | label: "其他", |
| | | }, { |
| | | value: '-1', |
| | | label: "未知", |
| | | }, { |
| | | value: '0', |
| | | label: "未调查", |
| | | }, |
| | | ], |
| | | fileType: [], |
| | | pathBak: null, |
| | | progress: 0, |
| | |
| | | wareTableFlag: null, |
| | | insertWareList: null, |
| | | loading: false, |
| | | loadText: '', |
| | | dbTableData: [], |
| | | dialogVisible: false, |
| | | listLoader: { |
| | |
| | | metaDataTable: [], |
| | | queryMetaFlag1: false, |
| | | metaDataTable1: [], |
| | | getCheckedKeys: null |
| | | getCheckedKeys: null, |
| | | sc: { |
| | | label1: '上传', |
| | | label2: '文件上传进度:' |
| | | }, |
| | | warehouseDialog: false, |
| | | wareData: [], |
| | | noteVisible: false, |
| | | }; |
| | | }, |
| | | |
| | | mounted() { |
| | | |
| | | this.noteVisible = true; |
| | | //获取坐标系 |
| | | this.setCoordinateSystem(); |
| | | //获取项目名称 |
| | |
| | | }, |
| | | watch: {}, |
| | | methods: { |
| | | 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 '已上传' |
| | | } |
| | | }, |
| | | setRestMetaData() { |
| | | this.fromQueryMeta.name = ""; |
| | | this.listMetaData.name = this.fromQueryMeta.name; |
| | |
| | | formData.append("ids", this.enclosureData[i]); |
| | | } |
| | | const that = this; |
| | | this.sc = { |
| | | label1: '上传', |
| | | label2: '文件上传进度:' |
| | | } |
| | | that.jindudialogVisible = true; |
| | | that.$set(this, "jindutiaoname", "附件上传"); |
| | | that.$set(this, "jindutiao", 0); |
| | | |
| | | this.loading = true; |
| | | $.ajax( |
| | | BASE_URL + |
| | |
| | | "bs.m_equipment_nameplate", |
| | | "bs.m_hydraulic_protection", |
| | | "bs.m_marker", |
| | | "bs.s_borehole", |
| | | "bs.s_explorationpoint", |
| | | ]; |
| | | var std = []; |
| | | this.enclosureData = []; |
| | |
| | | }, |
| | | //自动匹配确认 |
| | | async setInsrtWareTable() { |
| | | this.loading = true; |
| | | this.dialogWarehousing = false; |
| | | this.loadText = "数据入库中,请等待..." |
| | | if (this.tableWareThree.length != 0) { |
| | | for (var i in this.tableWareThree) { |
| | | var tabs = this.tableWareThree[i].tabs; |
| | |
| | | }); |
| | | } |
| | | |
| | | this.loading = true; |
| | | |
| | | const res = await dataUpload_insertFiles( |
| | | JSON.stringify(this.insertWareList) |
| | | ); |
| | | this.loading = false; |
| | | |
| | | if (res.code != 200) { |
| | | this.$message.error("数据入库失败"); |
| | | return; |
| | | } |
| | | |
| | | this.$message({ |
| | | message: "数据入库成功", |
| | | type: "success", |
| | | }); |
| | | this.loading = false; |
| | | this.loadText = "" |
| | | if (res.result.length > 0) { |
| | | this.warehouseDialog = true; |
| | | this.wareData = res.result; |
| | | } |
| | | |
| | | this.setInsrtWareTableClose(); |
| | | }, |
| | | handleWarehouseClose() { |
| | | this.warehouseDialog = false; |
| | | this.wareData = []; |
| | | }, |
| | | //自动匹配 |
| | | autoMatchWare() { |
| | |
| | | for (var i = 0; i < val1.length; i++) { |
| | | const stdTab = this.setSplitWare(val1[i].tab); |
| | | for (var j = 0; j < val2.length; j++) { |
| | | if (val2[j].tab == stdTab) { |
| | | var tabs = stdTab.toLowerCase(); |
| | | if (val2[j].tab.indexOf(tabs) > -1) { |
| | | std.push(val1[i].tab); |
| | | val1[i].entity = val2[j].entity; |
| | | val1[i].tabDesc = val2[j].tabDesc; |
| | |
| | | this.getDataLoaderSelectTabs(); |
| | | this.dialogWarehousing = true; |
| | | }, |
| | | //数据入库 |
| | | async setFileWare() { |
| | | if (this.pathBak != null) { |
| | | //是否有质检方案 |
| | | if (this.formInline.uploadType == "v1") { |
| | | //单文件上传 |
| | | var std = []; |
| | | for (var i in this.tableData) { |
| | | if (this.tableData[i].name.indexOf(".zip") != -1) { |
| | | if (this.tableData[i].code != null) { |
| | | std.push(this.tableData[i].name); |
| | | } |
| | | } |
| | | } |
| | | if (std.length != 0) { |
| | | return this.$message.error( |
| | | std.toString() + ",未质检或质检失败,不能入库" |
| | | ); |
| | | } |
| | | } else if (this.formInline.uploadType == "v2") { |
| | | //整体项目上传 |
| | | |
| | | if (this.tableData.length != 2) { |
| | | return this.$message.error("请保留一个zip数据,一个WBS数据进行入库"); |
| | | } |
| | | var std = []; |
| | | for (var i in this.tableData) { |
| | | if (this.tableData[i].code != null) { |
| | | std.push(this.tableData[i].name); |
| | | } |
| | | } |
| | | if (std.length != 0) { |
| | | return this.$message.error( |
| | | std.toString() + ",未质检或质检失败,不能入库" |
| | | ); |
| | | } |
| | | } |
| | | } |
| | | |
| | | //kml文件入库 |
| | | async setKMlWare() { |
| | | this.loading = true; |
| | | var obj = { |
| | | dirid: this.formInline.dirid, |
| | | epsgCode: this.formInline.coordinateId, |
| | | path: this.formInline.path, |
| | | verid: this.formInline.verid, |
| | | entity: this.formInline.tab, |
| | | medium: this.formInline.medium, |
| | | }; |
| | | //查询映射 |
| | | this.loadText = "数据映射查询中,请等待..." |
| | | const data = await dataUpload_selectMappers(obj); |
| | | if (data.code != 200) { |
| | | return this.$message.error("数据映射失败"); |
| | | } |
| | | var std = []; |
| | | var result = data.result; |
| | | this.insertWareList = data.result; |
| | | for (var i in result) { |
| | | if (result[i].type == "shp" || result[i].type == "gdb") { |
| | | std.push(result[i]); |
| | | } |
| | | |
| | | var std = data.result.filter((res) => { |
| | | res.entity = obj.entity |
| | | res.medium = obj.medium |
| | | return res; |
| | | }) |
| | | |
| | | this.loadText = "数据入库中,请等待..." |
| | | const res = await dataUpload_insertKml( |
| | | JSON.stringify(std) |
| | | ); |
| | | if (res.code != 200) { |
| | | this.$message.error("数据入库失败"); |
| | | return; |
| | | } |
| | | if (std.length != 0) { |
| | | this.tableWareOne = std; |
| | | this.showWareHousing(); |
| | | |
| | | this.$message({ |
| | | message: "数据入库成功", |
| | | type: "success", |
| | | }); |
| | | this.loading = false; |
| | | this.loadText = "" |
| | | if (res.result.length > 0) { |
| | | this.warehouseDialog = true; |
| | | this.wareData = res.result; |
| | | } |
| | | |
| | | this.setInsrtWareTableClose(); |
| | | }, |
| | | //数据入库 |
| | | async setFileWare() { |
| | | if (this.formInline.uploadType == "v3") { |
| | | this.setKMlWare() |
| | | } else { |
| | | this.setInsrtWareTable(); |
| | | if (this.pathBak != null) { |
| | | //是否有质检方案 |
| | | if (this.formInline.uploadType == "v1") { |
| | | //单文件上传 |
| | | var std = []; |
| | | for (var i in this.tableData) { |
| | | if (this.tableData[i].name.indexOf(".zip") != -1) { |
| | | if (this.tableData[i].code != null) { |
| | | std.push(this.tableData[i].name); |
| | | } |
| | | } |
| | | } |
| | | if (std.length != 0) { |
| | | return this.$message.error( |
| | | std.toString() + ",未质检或质检失败,不能入库" |
| | | ); |
| | | } |
| | | } else if (this.formInline.uploadType == "v2") { |
| | | //整体项目上传 |
| | | if (this.tableData.length != 2) { |
| | | return this.$message.error("请保留一个zip数据,一个WBS数据进行入库"); |
| | | } |
| | | var std = []; |
| | | for (var i in this.tableData) { |
| | | if (this.tableData[i].code != null) { |
| | | std.push(this.tableData[i].name); |
| | | } |
| | | } |
| | | if (std.length != 0) { |
| | | return this.$message.error( |
| | | std.toString() + ",未质检或质检失败,不能入库" |
| | | ); |
| | | } |
| | | } |
| | | } |
| | | this.loading = true; |
| | | var obj = { |
| | | dirid: this.formInline.dirid, |
| | | epsgCode: this.formInline.coordinateId, |
| | | path: this.formInline.path, |
| | | verid: this.formInline.verid, |
| | | }; |
| | | this.loadText = "数据映射查询中,请等待..." |
| | | //查询映射 |
| | | const data = await dataUpload_selectMappers(obj); |
| | | if (data.code != 200) { |
| | | return this.$message.error("数据映射失败"); |
| | | } |
| | | this.loading = false; |
| | | this.loadText = " " |
| | | var std = []; |
| | | var result = data.result; |
| | | this.insertWareList = data.result; |
| | | for (var i in result) { |
| | | if (result[i].type == "shp" || result[i].type == "gdb") { |
| | | std.push(result[i]); |
| | | } |
| | | } |
| | | if (std.length != 0) { |
| | | this.tableWareOne = std; |
| | | this.showWareHousing(); |
| | | } else { |
| | | this.setInsrtWareTable(); |
| | | } |
| | | } |
| | | }, |
| | | //下载日志 |
| | |
| | | // if (this.formCheckAll.diZaiType != "NO") { |
| | | // this.formCheckAll.isDiZai = "YES"; |
| | | // } |
| | | this.loading = true; |
| | | this.sc = { |
| | | label1: '质检', |
| | | label2: '文件质检进度:' |
| | | } |
| | | this.jindudialogVisible = true; |
| | | this.loading = false; |
| | | this.$set(this, "jindutiao", 0); |
| | | this.getStartTestQuayTaskStatus(); |
| | | }, |
| | | //整体文件多条数据质检 |
| | |
| | | this.multipleSelection == 0 || |
| | | this.taskStatus == this.multipleSelection.length |
| | | ) { |
| | | this.jindudialogVisible = false; |
| | | this.loading = false; |
| | | return; |
| | | } |
| | |
| | | this.formCheckAll.wbsPath = path; |
| | | } |
| | | } |
| | | this.formCheckAll.sjfl = '数字化成果' |
| | | const data = await dataUpload_uploadChecks(this.formCheckAll); |
| | | if (data.code != 200) { |
| | | this.$message.error("数据质检提交失败"); |
| | |
| | | |
| | | //单文件数据质检提交 |
| | | async commonQuayTest() { |
| | | this.loading = true; |
| | | // this.loading = true; |
| | | this.quayTestVisible = false; |
| | | this.taskStatus = 0; |
| | | this.getStartTaskStatus(); |
| | | this.sc = { |
| | | label1: '质检', |
| | | label2: '文件质检进度:' |
| | | } |
| | | this.jindudialogVisible = true; |
| | | |
| | | this.$set(this, "jindutiao", 0); |
| | | }, |
| | | //单文件多条数据质检 |
| | | async getStartTaskStatus() { |
| | | const that = this; |
| | | if ( |
| | | this.multipleSelection == 0 || |
| | | this.taskStatus == this.multipleSelection.length |
| | | ) { |
| | | this.loading = false; |
| | | that.jindudialogVisible = false; |
| | | return; |
| | | } |
| | | |
| | | |
| | | this.quayTestForms.zipPath = this.multipleSelection[this.taskStatus].path; |
| | | if (this.quayTestForms.zipPath.indexOf(".zip") == -1) { |
| | | this.taskStatus++; |
| | |
| | | this.quayTestForms.sjzy = this.formInline.specialtyId; |
| | | this.quayTestForms.zipPath = |
| | | this.multipleSelection[this.taskStatus].path; |
| | | this.quayTestForms.sjfl = '数字化成果' |
| | | const data = await dataUpload_uploadChecks(this.quayTestForms); |
| | | if (data.code != 200) { |
| | | this.$message.error("数据质检提交失败"); |
| | |
| | | this.multipleSelection[this.taskStatus].path |
| | | ) { |
| | | this.tableData[i].status = "质检成功"; |
| | | |
| | | } |
| | | } |
| | | if (this.progress == 1) { |
| | | clearInterval(this.setIntel); |
| | | this.setIntel = null; |
| | | this.taskStatus++; |
| | | this.getStartTaskStatus(); |
| | | } |
| | | // if (this.progress == 1) { |
| | | clearInterval(this.setIntel); |
| | | this.setIntel = null; |
| | | this.taskStatus++; |
| | | this.getStartTaskStatus(); |
| | | // } |
| | | } else { |
| | | //任务失败 |
| | | for (var i in this.tableData) { |
| | |
| | | if ( |
| | | this.tableData[i].path == this.multipleSelection[this.taskStatus].path |
| | | ) { |
| | | this.$set(this, "jindutiao", parseInt(this.progress * 100)); |
| | | this.tableData[i].status = parseInt(this.progress * 100) + "%"; |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | if (this.progress == 1) { |
| | | clearInterval(this.setIntel); |
| | | this.setIntel = null; |
| | | this.loading = false; |
| | | } |
| | | // if (this.progress == 1) { |
| | | clearInterval(this.setIntel); |
| | | this.setIntel = null; |
| | | this.loading = false; |
| | | // } |
| | | } else { |
| | | //任务失败 |
| | | for (var i in this.tableData) { |
| | |
| | | } |
| | | } |
| | | this.progress = std / (res.length * 100); |
| | | |
| | | |
| | | // for (var i in this.tableData) { |
| | | // if (this.tableData[i].path == this.multipleSelection[this.taskStatus].path) { |
| | | // this.tableData[i].status = parseInt(this.progress * 100) + "%"; |
| | | // } |
| | | // } |
| | | this.$set(this, "jindutiao", parseInt(this.progress * 100)); |
| | | for (var i in this.tableData) { |
| | | for (var j in this.multipleSelection) { |
| | | if (this.tableData[i].path == this.multipleSelection[j].path) { |
| | |
| | | //清除所有input File; |
| | | clearFileSelect() { |
| | | this.formInline.specialtyData = "请选择数据"; |
| | | document.getElementById("selectDataFile").value = ""; |
| | | if (document.getElementById("selectDataFile")) { |
| | | document.getElementById("selectDataFile").value = ""; |
| | | } |
| | | this.formInline.metaData = "请选择元数据"; |
| | | document.getElementById("metaDataFile").value = ""; |
| | | if (document.getElementById("metaDataFile")) { |
| | | document.getElementById("metaDataFile").value = "" |
| | | } |
| | | this.formInline.wbsData = "请选择WBS数据"; |
| | | document.getElementById("wbsDataFile").value = ""; |
| | | |
| | | if (document.getElementById("wbsDataFile")) { |
| | | document.getElementById("wbsDataFile").value = ""; |
| | | } |
| | | }, |
| | | //获取上传文件数量 |
| | | async getFileLength() { |
| | |
| | | if (fs2.files.length == 0) { |
| | | return this.$message.error("请选择需要上传的WBS数据文件"); |
| | | } |
| | | } else if (this.formInline.uploadType == "v3") { |
| | | |
| | | } |
| | | for (var i = 0, c = fs1.files.length; i < c; i++) { |
| | | formData.append(fs1.files[i].name, fs1.files[i]); |
| | |
| | | }); |
| | | that.$set(this, "jindutiaoname", listval); |
| | | that.$set(this, "jindutiao", 0); |
| | | this.loading = true; |
| | | // this.loading = true; |
| | | $.ajax( |
| | | BASE_URL + |
| | | "/dataUpload/uploadFiles?token=" + |
| | |
| | | this.$set(this, "jindutiao", loaded); |
| | | }, |
| | | format(percentage) { |
| | | return percentage === 100 ? "上传完毕" : `${percentage}%`; |
| | | |
| | | // return percentage === 100 ? "上传完毕" : `${percentage}%`; |
| | | var label; |
| | | if (this.sc.label1 == "上传") { |
| | | label = "上传完毕" |
| | | } else { |
| | | label = `${percentage}%` |
| | | } |
| | | return percentage === 100 ? label : `${percentage}%`; |
| | | }, |
| | | //获取文件上传路径 |
| | | async getFilePath() { |
| | |
| | | }, |
| | | //上传数据列表清单初始化 |
| | | setStartWareTable() { |
| | | this.listData = { |
| | | pageIndex: 1, |
| | | pageSize: 10, |
| | | name: null, |
| | | }; |
| | | // this.listData = { |
| | | // pageIndex: 1, |
| | | // pageSize: 10, |
| | | // name: null, |
| | | // }; |
| | | this.listData.pageIndex = 1; |
| | | this.listData.name = null; |
| | | this.getAllWareTable(); |
| | | }, |
| | | //获取数据上传列表清单 |
| | |
| | | this.formInline.entryId = null; |
| | | this.formInline.selectFileType = "*.*"; |
| | | this.formInline.coordinateId = this.coordinateOption[0].epsgcode; |
| | | this.formInline.medium = ""; |
| | | this.formInline.tab = ""; |
| | | }, |
| | | //选择数据 |
| | | setSelectFile() { |
| | |
| | | this.formInline.dirid = this.entryOption[0].id; |
| | | this.getselectVerByDirid(); |
| | | this.pathBak = this.entryOption[0].checks; |
| | | } else if (res == "v3") { |
| | | this.formInline.selectFileType = ".kml"; |
| | | this.getSelectdirTab(); |
| | | this.getselectVerByDirid(); |
| | | this.formInline.specialtyId = "线路专业"; |
| | | this.uploadFlag = true; |
| | | this.formInline.tab = this.lineOptions[0].value; |
| | | this.formInline.medium = this.mediumOptions[0].value |
| | | } else { |
| | | this.getStartDirChecked(this.catalogOption); |
| | | this.getSelectdirTab(); |
| | | this.getselectVerByDirid(); |
| | | this.uploadFlag = true; |
| | | } |
| | |
| | | //版本号获取 |
| | | async getselectVerByDirid() { |
| | | this.verOption = []; |
| | | this.formInline.verid = ""; |
| | | |
| | | const res = await dataUploadSelectVerByDirid({ |
| | | dirid: this.formInline.dirid, |
| | | }); |
| | |
| | | this.formInline.dirid = node.data.id; |
| | | this.formInline.dirName = node.data.name; |
| | | this.getselectVerByDirid(); |
| | | setTimeout(() => { |
| | | this.$refs.multiSelect.blur() |
| | | }, 100) |
| | | }, |
| | | //Tabsq切换 |
| | | handleTabClick(tab, event) { |
| | | if (tab.name == "second") { |
| | | this.setStartWareTable(); |
| | | } else { |
| | | this.noteVisible = true |
| | | } |
| | | this.calHeight(); |
| | | }, |
| | |
| | | z-index: 9999; |
| | | } |
| | | } |
| | | |
| | | .nodeBox { |
| | | h5 { |
| | | line-height: 26px; |
| | | font-size: 14px; |
| | | span { |
| | | font-weight: bolder; |
| | | } |
| | | } |
| | | h3 { |
| | | line-height: 40px; |
| | | font-size: 16px; |
| | | font-weight: bold; |
| | | } |
| | | h1 { |
| | | font-weight: bold; |
| | | } |
| | | } |
| | | .inquire { |
| | | padding: 8px; |
| | | //margin-top: 20px; |
| | |
| | | .text-center { |
| | | text-align: center; |
| | | } |
| | | </style> |
| | | </style> |