| | |
| | | </el-form-item> |
| | | <el-form-item |
| | | v-show="formCheckAll.isDiZai" |
| | | label="所属专业" |
| | | label="地灾类型" |
| | | > |
| | | |
| | | <el-select |
| | |
| | | </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 |
| | |
| | | selectFileType: "*.*", |
| | | coordinateId: null, |
| | | path: null, |
| | | verid: null, |
| | | }, |
| | | cascader: { |
| | | label: "name", |
| | |
| | | metaDataTable: [], |
| | | queryMetaFlag1: false, |
| | | metaDataTable1: [], |
| | | getCheckedKeys: null, |
| | | sc: { |
| | | label1: '上传', |
| | | label2: '文件上传进度:' |
| | | } |
| | | }; |
| | | }, |
| | | |
| | | mounted() { |
| | | //获取目录 |
| | | this.getSelectdirTab(); |
| | | |
| | | //获取坐标系 |
| | | this.setCoordinateSystem(); |
| | | //获取项目名称 |
| | |
| | | this.getPerms(); |
| | | window.addEventListener("resize", this.onResize); |
| | | this.calHeight(); |
| | | //获取目录 |
| | | this.getSelectdirTab(); |
| | | }, |
| | | beforeDestroy() { |
| | | this.timer && clearTimeout(this.timer); |
| | |
| | | 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 + |
| | |
| | | this.$message.error("字段列表调用失败"); |
| | | return; |
| | | } |
| | | |
| | | var val = data1.result; |
| | | for (var i in val) { |
| | | val[i].createuser = val[i].createName; |
| | |
| | | } |
| | | this.dbTableData = data1.result; |
| | | this.count1 = data1.count; |
| | | }, |
| | | |
| | | changetimeLayer(res) { |
| | | var time = new Date(res); |
| | | var y = time.getFullYear(); |
| | | var m = time.getMonth() + 1; |
| | | var d = time.getDate(); |
| | | var h = time.getHours(); |
| | | var mm = time.getMinutes(); |
| | | var s = time.getSeconds(); |
| | | return ( |
| | | y + |
| | | '-' + |
| | | this.add0(m) + |
| | | '-' + |
| | | this.add0(d) + |
| | | ' ' + |
| | | h + |
| | | ':' + |
| | | mm + |
| | | ':' + |
| | | s |
| | | ); |
| | | }, |
| | | //自动匹配取消 |
| | | setInsrtWareTableClose() { |
| | |
| | | //整体文件质检提交 |
| | | commonTestQuay() { |
| | | this.testQuayVisible = false; |
| | | if (this.formCheckAll.diZaiType != "NO") { |
| | | this.formCheckAll.isDiZai = "YES"; |
| | | // if (this.formCheckAll.diZaiType != "NO") { |
| | | // this.formCheckAll.isDiZai = "YES"; |
| | | // } |
| | | // |
| | | this.sc = { |
| | | label1: '质检', |
| | | label2: '文件质检进度:' |
| | | } |
| | | this.loading = true; |
| | | 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; |
| | | } |
| | |
| | | |
| | | //单文件数据质检提交 |
| | | 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.getStartTaskStatus(); |
| | | } else { |
| | | this.quayTestForms.names = this.pathBak; |
| | | var value = this.$refs["selectcascader"].getCheckedNodes(); |
| | | var bak = value[0].data.fullName.split("\\"); |
| | | var value = this.getCheckedKeys |
| | | var bak = value.data.fullName.split("\\"); |
| | | this.quayTestForms.xmmc = bak[this.taskStatus]; |
| | | this.quayTestForms.sjzy = this.formInline.specialtyId; |
| | | this.quayTestForms.zipPath = |
| | |
| | | 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) + "%"; |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | 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() { |
| | |
| | | return rs; |
| | | } |
| | | }); |
| | | this.pathBak = val[0].bak; |
| | | this.pathBak = val[0].checks; |
| | | this.formInline.dirid = val[0].id; |
| | | this.getselectVerByDirid(); |
| | | }, |
| | |
| | | return this.$message("请选择需要质检的文件"); |
| | | } |
| | | if (this.formInline.uploadType == "v1") { |
| | | var value = this.$refs["selectcascader"].getCheckedNodes(); |
| | | var fileType = value[0].data.fullName; |
| | | |
| | | var value = this.getCheckedKeys |
| | | var fileType = value.data.fullName; |
| | | this.quayTestForms.names = fileType; |
| | | this.quayTestForms.sjzy = this.formInline.specialtyId; |
| | | this.quayTestVisible = true; |
| | |
| | | this.formCheckAll.xmmc = val[0].name; |
| | | this.formCheckAll.sjzy = this.formInline.specialtyId; |
| | | if (this.formCheckAll.sjzy.indexOf("地灾") != -1) { |
| | | this.formCheckAll.isDiZai = true; |
| | | this.formCheckAll.isDiZai = "YES"; |
| | | this.formCheckAll.diZaiType = this.disOptions[0].value; |
| | | } else { |
| | | this.formCheckAll.isDiZai = false; |
| | | this.formCheckAll.isDiZai = "NO"; |
| | | this.formCheckAll.diZaiType = "NO"; |
| | | } |
| | | this.testQuayVisible = true; |
| | |
| | | this.formInline.entryId = this.entryOption[0].name; |
| | | this.formInline.dirid = this.entryOption[0].id; |
| | | this.getselectVerByDirid(); |
| | | this.pathBak = this.entryOption[0].bak; |
| | | this.pathBak = this.entryOption[0].checks; |
| | | } else { |
| | | this.getStartDirChecked(this.catalogOption); |
| | | this.getselectVerByDirid(); |
| | |
| | | //版本号获取 |
| | | async getselectVerByDirid() { |
| | | this.verOption = []; |
| | | this.formInline.verid = ""; |
| | | |
| | | const res = await dataUploadSelectVerByDirid({ |
| | | dirid: this.formInline.dirid, |
| | | }); |
| | | |
| | | if (res.code != 200) { |
| | | this.$message.error("版本列表获取失败"); |
| | | return; |
| | |
| | | this.$message.error("目录列表获取失败"); |
| | | return; |
| | | } |
| | | |
| | | this.catalogOption = this.treeData(res.result); |
| | | this.formInline.dirName = this.catalogOption[0].name; |
| | | this.getStartDirChecked(this.catalogOption); |
| | | this.formInline.dirid = this.catalogOption[0].id; |
| | | // this.getStartDirChecked(this.catalogOption); |
| | | this.getselectVerByDirid(); |
| | | }, |
| | | |
| | |
| | | // this.$refs['selectcascader'].dropDownVisible = false |
| | | // var value = this.$refs['selectcascader'].getCheckedNodes(); |
| | | |
| | | var bak = node.data.bak; |
| | | var bak = node.data.checks; |
| | | this.getCheckedKeys = node |
| | | this.pathBak = bak; |
| | | if (bak != null) { |
| | | for (var key in this.quayTestShow) { |
| | |
| | | } |
| | | } |
| | | } |
| | | var fileType = node.data.code; |
| | | var fileType = node.data.exts; |
| | | if (fileType == null) { |
| | | fileType = "*.*"; |
| | | } |