From 85334edaeb4c62491ec9d264b457b72e6c16027c Mon Sep 17 00:00:00 2001 From: AaronWu <2463371514@qq.com> Date: Mon, 12 May 2025 17:02:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=97=AE=E9=A2=98=E5=B7=A5=E5=8D=95=20?= =?UTF-8?q?=E7=A6=85=E9=81=93=E5=8F=B7=E5=AD=97=E6=AE=B5=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=BC=80=E5=8F=91=E4=B8=AD=E7=8A=B6=E6=80=81=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/question/issue/formSchemas.tsx | 13 +++++++++++-- src/views/question/issue/index.vue | 7 +++++++ 2 files changed, 18 insertions(+), 2 deletions(-) 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: {