diff --git a/src/views/EquipmentServicing/index.vue b/src/views/EquipmentServicing/index.vue index 44b82d2d..9e04c700 100644 --- a/src/views/EquipmentServicing/index.vue +++ b/src/views/EquipmentServicing/index.vue @@ -22,7 +22,7 @@ - + - + @@ -154,11 +154,11 @@ - + - + - + - + - + @@ -289,7 +289,7 @@ height="546" > - + diff --git a/src/views/system/project/index.vue b/src/views/system/project/index.vue index 9d2fc2f8..183fb925 100644 --- a/src/views/system/project/index.vue +++ b/src/views/system/project/index.vue @@ -96,7 +96,7 @@ @@ -106,15 +106,8 @@ - - + + @@ -431,6 +424,7 @@ import { } from '@/api/system/project' import { Message } from 'element-ui' import { getProvinces, getCities, getCounties } from '@/api/system/region' +import {debounce} from "@/utils"; export default { name: 'ProjectManagement', @@ -536,6 +530,10 @@ export default { } }, + created() { + this.handleSubmit=debounce(this.handleSubmit, 500); + }, + mounted() { this.loadProvinces() // 页面加载时加载省份 this.getProjectListData() @@ -814,9 +812,11 @@ export default { // 提交表单 async handleSubmit() { + const valid = await this.$refs.addOrEditFormRef?.validate() if (!valid) return + // 处理机械化率:添加%符号 if (this.addOrEditForm.mechanize_rate) { this.addOrEditForm.mechanize_rate = `${this.addOrEditForm.mechanize_rate}%`