diff --git a/src/views/question/issue/formSchemas.tsx b/src/views/question/issue/formSchemas.tsx index a9b3f2d..e6de76e 100644 --- a/src/views/question/issue/formSchemas.tsx +++ b/src/views/question/issue/formSchemas.tsx @@ -203,9 +203,8 @@ export const getEditFormSchema: ( colProps: { span: 6, }, - vIf: () => !isClient, + vIf: () => !isClient && isDetail, }, - { field: 'state', component: 'Select', @@ -313,6 +312,16 @@ export const getEditFormSchema: ( export const getFlowFormSchema: (row?: Partial) => FormSchema[] = (record = {}) => { return [ + { + field: 'zentaoNos', + component: 'Input', + label: '禅道号', + colProps: { + span: 24, + }, + vIf: () => record.state === 0, + rules: [{ required: true, type: 'string' }], + }, { field: 'remark', component: 'InputTextArea', diff --git a/src/views/question/issue/index.vue b/src/views/question/issue/index.vue index 6a82dcb..303b972 100644 --- a/src/views/question/issue/index.vue +++ b/src/views/question/issue/index.vue @@ -458,6 +458,13 @@ }); message.success(`操作成功`); dynamicTableInstance?.reload(); + // 判断当前行是否有选中 + if (curRowId.value === record.id) { + curRowId.value = ''; + nextTick(() => { + curRowId.value = record.id; + }); + } }, }, formProps: {