Browse Source

chore: 工作流表单版本控制testing

master
wangxiang 2 years ago
parent
commit
551838c409
  1. 4
      src/views/workflow/extension/formJson/formJson.data.ts

4
src/views/workflow/extension/formJson/formJson.data.ts

@ -25,7 +25,7 @@ export const columns: BasicColumn[] = [
dataIndex: 'status', dataIndex: 'status',
width: 90, width: 90,
customRender: ({ record }) => { customRender: ({ record }) => {
return record.formDefinitionJson?.status == '1' ? return record.status == '1' ?
h(Tag, { color: 'success' }, () => '已发布'): h(Tag, { color: 'success' }, () => '已发布'):
h(Tag, { color: 'red' }, () => '未发布'); h(Tag, { color: 'red' }, () => '未发布');
} }
@ -35,7 +35,7 @@ export const columns: BasicColumn[] = [
dataIndex: 'isPrimary', dataIndex: 'isPrimary',
width: 90, width: 90,
customRender: ({ record }) => { customRender: ({ record }) => {
return record.formDefinitionJson?.status == '1' ? return record.isPrimary == '1' ?
h(Tag, { color: 'success' }, () => '主版本'): h(Tag, { color: 'success' }, () => '主版本'):
h(Tag, { color: 'red' }, () => '非主版本'); h(Tag, { color: 'red' }, () => '非主版本');
} }

Loading…
Cancel
Save