Browse Source

feat: 问题工单 禅道号字段修改为开发中状态提交

master
AaronWu 4 weeks ago
parent
commit
85334edaeb
  1. 13
      src/views/question/issue/formSchemas.tsx
  2. 7
      src/views/question/issue/index.vue

13
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<TableListItem>) => FormSchema[] = (record = {}) => {
return [
{
field: 'zentaoNos',
component: 'Input',
label: '禅道号',
colProps: {
span: 24,
},
vIf: () => record.state === 0,
rules: [{ required: true, type: 'string' }],
},
{
field: 'remark',
component: 'InputTextArea',

7
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: {

Loading…
Cancel
Save