From e470554b7cd35b189fd29ed36182fe416efd25a8 Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Wed, 16 Oct 2024 17:54:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E9=87=8D=E5=A4=8D=E7=82=B9=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/table/header/index.vue | 38 +- .../embed/lntegruty/components/table.vue | 9 +- .../components1/form/alarmList.vue | 2 +- .../components1/form/complaintsForm.vue | 70 +-- .../harmonicSurvey/components/planAdd.vue | 91 +-- .../harmonicSurvey/components/planTest.vue | 14 +- .../normalizationManager/addForm.vue | 9 +- .../components/undocumented/addForm.vue | 538 +++++------------- .../pqs/supervise/retire/deviceQuitPopup.vue | 13 +- .../pqs/supervise/retire/monitorQuitPopup.vue | 13 +- .../supervise/technology/feedbackPopup.vue | 13 +- .../components/interferenceUserTable.vue | 65 +-- .../components/sensitiveUserTable.vue | 27 +- .../components/jointDebugList/debug.vue | 17 +- .../components/monitorpoint/addForm.vue | 19 +- .../components/terminainal/addForm.vue | 498 ++++------------ .../components/terminainal/index.vue | 58 +- .../bpm/processInstance/detail/index.vue | 80 +-- 18 files changed, 492 insertions(+), 1082 deletions(-) diff --git a/src/components/table/header/index.vue b/src/components/table/header/index.vue index df46dddc..682fa61d 100644 --- a/src/components/table/header/index.vue +++ b/src/components/table/header/index.vue @@ -1,14 +1,8 @@ - - + @@ -170,13 +160,14 @@ const setInterval = (val: any) => { datePickerRef.value.setInterval(val) } -defineExpose({ onComSearch, areaRef, setDatePicker, setInterval, datePickerRef, showSelectChange}) +defineExpose({ onComSearch, areaRef, setDatePicker, setInterval, datePickerRef, showSelectChange }) +// } diff --git a/src/views/pqs/supervise/harmonicSurvey/components/planTest.vue b/src/views/pqs/supervise/harmonicSurvey/components/planTest.vue index 7a874722..acf428a6 100644 --- a/src/views/pqs/supervise/harmonicSurvey/components/planTest.vue +++ b/src/views/pqs/supervise/harmonicSurvey/components/planTest.vue @@ -104,8 +104,8 @@ @@ -118,7 +118,7 @@ import { ElMessage, genFileId, UploadProps, UploadRawFile, UploadUserFile } from import { uploadFile, getFileNameAndFilePath } from '@/api/system-boot/file' import { useDictData } from '@/stores/dictData' import { addSurveyTest, updateSurveyTest, getTestById } from '@/api/supervision-boot/survey/test' - +const loading = ref(false) const acceptType = ref('') const tableStore = inject('tableStore') as TableStore let uploadName = ref('') @@ -254,7 +254,8 @@ const cancelFn = () => { planAddition.value = false } // 提交 -const submitFn = (flag: boolean) => { +const submitFn = async (flag: boolean) => { + loading.value = true const subForm = JSON.parse(JSON.stringify(form.value)) subForm.otherReport = '' @@ -270,7 +271,7 @@ const submitFn = (flag: boolean) => { subForm.saveOrCheckflag = '1' //新增,则组装业务数据提交后台 - addSurveyTest(subForm).then(res => { + await addSurveyTest(subForm).then(res => { ElMessage.success('保存成功!') tableStore.index() planAddition.value = false @@ -315,6 +316,9 @@ const submitFn = (flag: boolean) => { } }) } + await setTimeout(() => { + loading.value = false + }, 0) } const audit = (filePath: any) => { if (title.value == '计划测试填报') { diff --git a/src/views/pqs/supervise/interfere/components/normalizationManager/addForm.vue b/src/views/pqs/supervise/interfere/components/normalizationManager/addForm.vue index e3af9e35..c814e06b 100644 --- a/src/views/pqs/supervise/interfere/components/normalizationManager/addForm.vue +++ b/src/views/pqs/supervise/interfere/components/normalizationManager/addForm.vue @@ -166,8 +166,8 @@ @@ -200,6 +200,7 @@ const props = defineProps({ const rules = { goToNetReport: [{ required: true, message: '请上传报告', trigger: 'blur' }] } +const loading = ref(false) const emits = defineEmits(['onSubmit']) const dictData = useDictData() const dialogFormVisible = ref(false) @@ -353,6 +354,7 @@ const choose = (e: any) => { //提交 const confirmForm = (flag: boolean) => { + loading.value = true if (flag) { let data = { type: props.bussType, @@ -394,6 +396,9 @@ const confirmForm = (flag: boolean) => { } }) } + setTimeout(() => { + loading.value = false + }, 0) } defineExpose({ open }) diff --git a/src/views/pqs/supervise/interfere/components/undocumented/addForm.vue b/src/views/pqs/supervise/interfere/components/undocumented/addForm.vue index ce936136..a2c51530 100644 --- a/src/views/pqs/supervise/interfere/components/undocumented/addForm.vue +++ b/src/views/pqs/supervise/interfere/components/undocumented/addForm.vue @@ -1,68 +1,35 @@