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 });