From 442b0407e5d0f49dd22bdec8acad3fa5615f3c32 Mon Sep 17 00:00:00 2001 From: JayChou <2064936853@qq.com> Date: Tue, 30 Jul 2024 09:54:22 +0800 Subject: [PATCH] =?UTF-8?q?'=E4=BF=AE=E6=94=B9=E4=B8=93=E5=AE=B6=E8=AF=84?= =?UTF-8?q?=E5=88=86=E4=B8=8D=E6=9B=B4=E6=96=B0'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jeecgboot-vue3-master/src/views/expscore/ExpScoreList.vue | 3 ++- .../src/views/expscore/components/ExpScoreModal.vue | 5 +++-- .../src/views/scorestapointd/ScoreStaPointDList.vue | 4 ++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/jeecgboot-vue3-master/src/views/expscore/ExpScoreList.vue b/jeecgboot-vue3-master/src/views/expscore/ExpScoreList.vue index 4c79da7d..5772b182 100644 --- a/jeecgboot-vue3-master/src/views/expscore/ExpScoreList.vue +++ b/jeecgboot-vue3-master/src/views/expscore/ExpScoreList.vue @@ -146,8 +146,9 @@ xzzf({zjpfid:record.id}).then((result)=>{ console.log(result) if(result=="true"){ - registerModal.value.disableSubmit = false; registerModal.value.edit(record); + registerModal.value.disableSubmit = false; + }else{ createMessage.warning("评分细则总分不足100分,请先添加评分细则"); } diff --git a/jeecgboot-vue3-master/src/views/expscore/components/ExpScoreModal.vue b/jeecgboot-vue3-master/src/views/expscore/components/ExpScoreModal.vue index b59e76de..23d6bccf 100644 --- a/jeecgboot-vue3-master/src/views/expscore/components/ExpScoreModal.vue +++ b/jeecgboot-vue3-master/src/views/expscore/components/ExpScoreModal.vue @@ -8,7 +8,6 @@ import { ref, nextTick, defineExpose } from 'vue'; import ExpScoreForm from '../../scorestapointd/ScoreStaPointDList.vue' import { useRoute } from 'vue-router'; - const route = useRoute(); const title = ref(''); const width = ref(800); @@ -16,7 +15,6 @@ const disableSubmit = ref(false); const registerForm = ref(); const emit = defineEmits(['register', 'success']); - /** * 新增 */ @@ -33,6 +31,9 @@ * @param record */ function edit(record) { + console.log(record.id); + console.log(registerForm.value); + registerForm.value? registerForm.value.searchReset() : '' title.value = disableSubmit.value ? '详情' : '细则得分'; visible.value = true; let id= record.id; diff --git a/jeecgboot-vue3-master/src/views/scorestapointd/ScoreStaPointDList.vue b/jeecgboot-vue3-master/src/views/scorestapointd/ScoreStaPointDList.vue index e82904da..93b8cb34 100644 --- a/jeecgboot-vue3-master/src/views/scorestapointd/ScoreStaPointDList.vue +++ b/jeecgboot-vue3-master/src/views/scorestapointd/ScoreStaPointDList.vue @@ -184,6 +184,8 @@ * 查询 */ function searchQuery() { + console.log('查询'); + reload(); } @@ -218,6 +220,8 @@ } defineExpose({ submitForm, + searchQuery, + searchReset });