|
@@ -410,6 +410,7 @@ export default {
|
|
|
}})
|
|
|
},
|
|
|
toNodeDetail() {
|
|
|
+ console.log(this.queryParams)
|
|
|
let nodeCollection = []
|
|
|
// 收集节点信息
|
|
|
this.currentCheckList.forEach((e, idx) => {
|
|
@@ -418,16 +419,16 @@ export default {
|
|
|
nodeCollection.push(nodeItem)
|
|
|
})
|
|
|
this.queryParams.zEngineeringNodeBoList = nodeCollection
|
|
|
- this.queryParams.zEngineeringNodeBoList[0].zEngineeringInfoBo.constructTime = this.queryParams.zEngineeringNodeBoList[0].constructTime
|
|
|
- delete this.queryParams.zEngineeringNodeBoList[0].constructTime
|
|
|
+ // this.queryParams.zEngineeringNodeBoList[0].zEngineeringInfoBo.constructTime = this.queryParams.zEngineeringNodeBoList[0].constructTime
|
|
|
+ // delete this.queryParams.zEngineeringNodeBoList[0].constructTime
|
|
|
if (this.enginNodeStatus == '修改') {
|
|
|
- this.queryParams.files = this.$refs.obsFileUpload.fileList;
|
|
|
- if (this.$refs.obsFileUpload.fileList==null||this.$refs.obsFileUpload.fileList.length===0){
|
|
|
- this.$message.warning('必须上传文件!')
|
|
|
- return
|
|
|
- }
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
+ this.queryParams.files = this.$refs.obsFileUpload.fileList;
|
|
|
+ if (this.$refs.obsFileUpload.fileList==null||this.$refs.obsFileUpload.fileList.length===0){
|
|
|
+ this.$message.warning('必须上传文件!')
|
|
|
+ return
|
|
|
+ }
|
|
|
if (this.queryParams.id != null) {
|
|
|
putEngineeringPipeJacking(this.queryParams).then(response => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
@@ -452,6 +453,11 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
+ this.queryParams.files = this.$refs.obsFileUpload.fileList;
|
|
|
+ if (this.$refs.obsFileUpload.fileList==null||this.$refs.obsFileUpload.fileList.length===0){
|
|
|
+ this.$message.warning('必须上传文件!')
|
|
|
+ return
|
|
|
+ }
|
|
|
addEngineeringPipeJacking(this.queryParams).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message({
|
|
@@ -495,13 +501,8 @@ export default {
|
|
|
},
|
|
|
// 表单重置
|
|
|
reset() {
|
|
|
- // this.$nextTick(() => {
|
|
|
- // this.$refs['form'].resetFields()
|
|
|
- // this.$refs['nodeForm'].resetFields()
|
|
|
- // })
|
|
|
this.resetForm("form");
|
|
|
this.resetForm("nodeForm");
|
|
|
- this.queryParams.files=[]
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|