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

校验信息提示修改

parent e9348f82
...@@ -312,7 +312,7 @@ export default { ...@@ -312,7 +312,7 @@ export default {
{ required: true, message: "请输入隐患内容", trigger: "blur" }, { required: true, message: "请输入隐患内容", trigger: "blur" },
], ],
hiddenLocation: [ hiddenLocation: [
{ required: true, message: "请输入经纬度", trigger: "blur" }, { required: true, message: "请输入隐患位置", trigger: "blur" },
], ],
longitude: [ longitude: [
{ required: true, message: "请输入经纬度", trigger: "blur" }, { required: true, message: "请输入经纬度", trigger: "blur" },
...@@ -350,6 +350,7 @@ export default { ...@@ -350,6 +350,7 @@ export default {
this.open = false; this.open = false;
this.reset(); this.reset();
this.fileList = []; this.fileList = [];
this.devicePos = [];
}, },
// 表单重置 // 表单重置
reset() { reset() {
...@@ -490,6 +491,8 @@ export default { ...@@ -490,6 +491,8 @@ export default {
this.dialogTableVisible = false; this.dialogTableVisible = false;
}, },
getPath(res){ getPath(res){
console.log("res", res);
console.log(this.form.longitude, this.form.latitude);
//确认选择经纬度 //确认选择经纬度
this.form.longitude = res[0]; this.form.longitude = res[0];
this.form.latitude = res[1]; this.form.latitude = res[1];
......
...@@ -341,6 +341,7 @@ export default { ...@@ -341,6 +341,7 @@ export default {
cancel() { cancel() {
this.open = false; this.open = false;
this.reset(); this.reset();
this.devicePos = [];
}, },
// 表单重置 // 表单重置
reset() { reset() {
...@@ -363,6 +364,7 @@ export default { ...@@ -363,6 +364,7 @@ export default {
remarks: null remarks: null
}; };
this.resetForm("form"); this.resetForm("form");
this.devicePos = [];
}, },
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {
...@@ -457,6 +459,8 @@ export default { ...@@ -457,6 +459,8 @@ export default {
this.dialogTableVisible = false; this.dialogTableVisible = false;
}, },
getPath(res){ getPath(res){
console.log("res", res);
console.log(this.form.longitude, this.form.latitude);
//确认选择经纬度 //确认选择经纬度
this.form.longitude = res[0]; this.form.longitude = res[0];
this.form.latitude = res[1]; 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