diff --git a/src/views/projectFront/markingRoom/sampleManage.vue b/src/views/projectFront/markingRoom/sampleManage.vue index 367e648f..01c0a21b 100644 --- a/src/views/projectFront/markingRoom/sampleManage.vue +++ b/src/views/projectFront/markingRoom/sampleManage.vue @@ -365,8 +365,15 @@ export default { return; } this.workerInfo.locationId = this.selectLocationArr[ - this.selectLocationArr.length - 1 + 0 ]; + if(this.selectLocationArr.length>1){ + this.workerInfo.secondLocationId = this.selectLocationArr[1]; + }else{ + this.workerInfo.secondLocationId = ""; + this.workerInfo.secondLocationName ="" + } + console.log("编辑选中的位置 :", this.selectLocationArr); this.$refs.addEditForm.validate((valid) => { if (valid) { this.workerInfo.parentId = this.workerInfo.parentId diff --git a/src/views/projectFront/quality/recordsModule/inspectionRecord.vue b/src/views/projectFront/quality/recordsModule/inspectionRecord.vue index df4ab80f..1831b035 100644 --- a/src/views/projectFront/quality/recordsModule/inspectionRecord.vue +++ b/src/views/projectFront/quality/recordsModule/inspectionRecord.vue @@ -1173,6 +1173,7 @@ showPositioning = false; pointList = []; createdCoord = false; + " icon="el-icon-circle-close" size="medium" @@ -2005,6 +2006,8 @@ export default { cancleEvent(){ this.mapUrl = '' this.addDialog = false + this.$refs.addForm1.resetFields()//清除所有验证 + this.$refs.addForm2.resetFields()//清除所有验证 }, //提交 新增 @@ -2080,8 +2083,10 @@ export default { addRecordApi(data).then((res) => { if (res.code == 200) { this.$message.success(this.$t("message.quality.newSuccess")); - this.$refs["addForm1"].resetFields(); - this.$refs["addForm2"].resetFields(); + this.$refs.addForm1.resetFields()//清除所有验证 + this.$refs.addForm2.resetFields()//清除所有验证 + // this.$refs["addForm1"].resetFields(); + // this.$refs["addForm2"].resetFields(); this.addDialog = false; this.fileList1 = []; this.fileList2 = []; @@ -2115,6 +2120,8 @@ export default { this.fileList2 = [] this.fileList3 = [] this.fileList4 = [] + this.$refs.addForm1.resetFields()//清除所有验证 + this.$refs.addForm2.resetFields()//清除所有验证 this.hideUpload = false }, submit() {},