Merge branch 'dev-yjl' into 'shenzhen-dev'
项目版bug修复(图片上传、标养室层级错乱) See merge request !47
This commit is contained in:
commit
fa1a3604f4
@ -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
|
||||
|
||||
@ -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() {},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user