Commit 52e0f184 authored by 王晓倩's avatar 王晓倩

校验信息提示修改

parent e9348f82
......@@ -312,7 +312,7 @@ export default {
{ required: true, message: "请输入隐患内容", trigger: "blur" },
],
hiddenLocation: [
{ required: true, message: "请输入经纬度", trigger: "blur" },
{ required: true, message: "请输入隐患位置", trigger: "blur" },
],
longitude: [
{ required: true, message: "请输入经纬度", trigger: "blur" },
......@@ -350,6 +350,7 @@ export default {
this.open = false;
this.reset();
this.fileList = [];
this.devicePos = [];
},
// 表单重置
reset() {
......@@ -490,6 +491,8 @@ export default {
this.dialogTableVisible = false;
},
getPath(res){
console.log("res", res);
console.log(this.form.longitude, this.form.latitude);
//确认选择经纬度
this.form.longitude = res[0];
this.form.latitude = res[1];
......
......@@ -341,6 +341,7 @@ export default {
cancel() {
this.open = false;
this.reset();
this.devicePos = [];
},
// 表单重置
reset() {
......@@ -363,6 +364,7 @@ export default {
remarks: null
};
this.resetForm("form");
this.devicePos = [];
},
/** 搜索按钮操作 */
handleQuery() {
......@@ -457,6 +459,8 @@ export default {
this.dialogTableVisible = false;
},
getPath(res){
console.log("res", res);
console.log(this.form.longitude, this.form.latitude);
//确认选择经纬度
this.form.longitude = res[0];
this.form.latitude = res[1];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment