'修改评分更新不及时'

main
JayChou 4 months ago
parent 2372a01c97
commit 692b9fd53d
  1. 3
      jeecgboot-vue3-master/src/views/expscore/ExpScoreList.vue
  2. 7
      jeecgboot-vue3-master/src/views/expscore/components/ExpScoreModal.vue

@ -143,8 +143,9 @@
* 设置细则得分事件 * 设置细则得分事件
*/ */
function szxzdf(record: Recordable) { function szxzdf(record: Recordable) {
console.log(record.score,record.id )
xzzf({zjpfid:record.id}).then((result)=>{ xzzf({zjpfid:record.id}).then((result)=>{
console.log(result)
if(result=="true"){ if(result=="true"){
registerModal.value.edit(record); registerModal.value.edit(record);
registerModal.value.disableSubmit = false; registerModal.value.disableSubmit = false;

@ -1,5 +1,5 @@
<template> <template>
<a-modal :title="title" :width="width" :visible="visible" @ok="handleOk" :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭"> <a-modal :title="title" :width="width" v-if="visible" :visible="visible" @ok="handleOk" :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭">
<ExpScoreForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></ExpScoreForm> <ExpScoreForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></ExpScoreForm>
</a-modal> </a-modal>
</template> </template>
@ -35,9 +35,12 @@
console.log(registerForm.value); console.log(registerForm.value);
registerForm.value? registerForm.value.searchReset() : '' registerForm.value? registerForm.value.searchReset() : ''
title.value = disableSubmit.value ? '详情' : '细则得分'; title.value = disableSubmit.value ? '详情' : '细则得分';
visible.value = true;
let id= record.id; let id= record.id;
route.query.zjpfid = id; route.query.zjpfid = id;
setTimeout(() => {
visible.value = true;
}, 0);
//router.push({query: id}) //router.push({query: id})
} }

Loading…
Cancel
Save