项目版bug修复(图片上传、标养室层级错乱)

This commit is contained in:
yjl 2022-11-03 14:58:38 +08:00
parent 6ca59d8e47
commit 16bcf9bcaf
2 changed files with 17 additions and 3 deletions

View File

@ -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

View File

@ -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() {},