| | |
| | | </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-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-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)" |
| | |
| | | </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 |
| | |
| | | |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | | :title="fromQueryMeta.title" |
| | | :visible.sync="warehouseDialog" |
| | | width="70%" |
| | | :close-on-click-modal="false" |
| | | > |
| | | <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'" |
| | |
| | | selectFileType: "*.*", |
| | | coordinateId: null, |
| | | path: null, |
| | | verid: null, |
| | | }, |
| | | cascader: { |
| | | label: "name", |
| | |
| | | metaDataTable: [], |
| | | queryMetaFlag1: false, |
| | | metaDataTable1: [], |
| | | getCheckedKeys: null |
| | | getCheckedKeys: null, |
| | | sc: { |
| | | label1: '上传', |
| | | label2: '文件上传进度:' |
| | | }, |
| | | warehouseDialog: true, |
| | | wareData: [], |
| | | }; |
| | | }, |
| | | |
| | |
| | | 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 = []; |
| | |
| | | this.$message.error("数据入库失败"); |
| | | return; |
| | | } |
| | | debugger |
| | | this.$message({ |
| | | message: "数据入库成功", |
| | | type: "success", |
| | | }); |
| | | if (res.result.length > 0) { |
| | | this.warehouseDialog = true; |
| | | this.wareData = res.result; |
| | | } |
| | | |
| | | this.setInsrtWareTableClose(); |
| | | }, |
| | | //自动匹配 |
| | |
| | | // 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) { |
| | |
| | | }); |
| | | 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() { |
| | |
| | | //版本号获取 |
| | | async getselectVerByDirid() { |
| | | this.verOption = []; |
| | | this.formInline.verid = ""; |
| | | |
| | | const res = await dataUploadSelectVerByDirid({ |
| | | dirid: this.formInline.dirid, |
| | | }); |
| | |
| | | .text-center { |
| | | text-align: center; |
| | | } |
| | | </style> |
| | | </style> |