|
@@ -468,7 +468,10 @@ export default {
|
|
|
methods: {
|
|
|
handleClose(value, dialogName) {
|
|
|
this[dialogName] = value;
|
|
|
- this.$refs.formRef.resetFields();
|
|
|
+ if (this.$refs.formRef) {
|
|
|
+ this.$refs.formRef.resetFields();
|
|
|
+ }
|
|
|
+ // this.$refs.formRef.resetFields();
|
|
|
this.form = Object.assign({}, this.$options.data().form);
|
|
|
},
|
|
|
|
|
@@ -559,19 +562,15 @@ export default {
|
|
|
this.loading = true;
|
|
|
|
|
|
WindFieldListPage(paramsData)
|
|
|
-
|
|
|
.then((res) => {
|
|
|
this.tableData = res.data.list;
|
|
|
this.formInline.totalSize = res.data.totalSize;
|
|
|
this.loading = false;
|
|
|
-
|
|
|
})
|
|
|
.catch((error) => {
|
|
|
this.loading = false;
|
|
|
console.error(error);
|
|
|
-
|
|
|
});
|
|
|
-
|
|
|
},
|
|
|
//分页数据切换
|
|
|
handleCurrentChange(val) {
|
|
@@ -820,8 +819,8 @@ export default {
|
|
|
case "longitude":
|
|
|
case "latitude":
|
|
|
return {
|
|
|
- regex: /^\d{1,3}(\.\d{1,5})?$/,
|
|
|
- errorMessage: "该项必须为不超过三位数且小数点后不超五位数的数字",
|
|
|
+ regex: /^\d{1,3}(\.\d{1,8})?$/,
|
|
|
+ errorMessage: "该项必须为不超过三位数且小数点后不超八位数的数字",
|
|
|
};
|
|
|
default:
|
|
|
return {
|