|
@@ -17,6 +17,11 @@ export const columns: BasicColumn[] = [
|
|
|
width: 100,
|
|
|
},
|
|
|
{
|
|
|
+ title: '姓名(名称)',
|
|
|
+ dataIndex: 'name',
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
title: '会员身份',
|
|
|
dataIndex: 'status',
|
|
|
width: 130,
|
|
@@ -81,6 +86,18 @@ export function getFormConfig(): Partial<FormProps> {
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
+ field: `name`,
|
|
|
+ label: `姓名(名称)`,
|
|
|
+ component: 'Input',
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '姓名(名称)',
|
|
|
+ },
|
|
|
+ colProps: {
|
|
|
+ xl: 12,
|
|
|
+ xxl: 8,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
field: `status`,
|
|
|
label: `会员身份`,
|
|
|
component: 'Select',
|
|
@@ -173,6 +190,11 @@ export function getFormConfig(): Partial<FormProps> {
|
|
|
key: 'id',
|
|
|
},
|
|
|
{
|
|
|
+ label: '姓名(名称)',
|
|
|
+ value: 'name',
|
|
|
+ key: 'name',
|
|
|
+ },
|
|
|
+ {
|
|
|
label: '会员身份',
|
|
|
value: 'status',
|
|
|
key: 'status',
|
|
@@ -325,66 +347,66 @@ export const schemas: FormSchema[] = [
|
|
|
return false;
|
|
|
},
|
|
|
},
|
|
|
- {
|
|
|
- field: 'relationUnit',
|
|
|
- component: 'Input',
|
|
|
- label: '相关单位',
|
|
|
- labelWidth: adaptWidth.labelWidth,
|
|
|
- colProps: {
|
|
|
- span: adaptWidth.elContainer,
|
|
|
- },
|
|
|
- render: ({ model, field }) => {
|
|
|
- return h(CustomInput, {
|
|
|
- value: model[field],
|
|
|
- placeholder: '添加相关单位',
|
|
|
- onChange(value) {
|
|
|
- model[field] = value;
|
|
|
- },
|
|
|
- });
|
|
|
- },
|
|
|
- show: ({ values }) => {
|
|
|
- if (values.status) {
|
|
|
- return true;
|
|
|
- }
|
|
|
- return false;
|
|
|
- },
|
|
|
- required: ({ values }) => {
|
|
|
- if (values.status) {
|
|
|
- return true;
|
|
|
- }
|
|
|
- return false;
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'relation',
|
|
|
- component: 'Input',
|
|
|
- label: '相关个人',
|
|
|
- labelWidth: adaptWidth.labelWidth,
|
|
|
- colProps: {
|
|
|
- span: adaptWidth.elContainer,
|
|
|
- },
|
|
|
- render: ({ model, field }) => {
|
|
|
- return h(CustomInput, {
|
|
|
- value: model[field],
|
|
|
- placeholder: '添加相关个人',
|
|
|
- onChange(value) {
|
|
|
- model[field] = value;
|
|
|
- },
|
|
|
- });
|
|
|
- },
|
|
|
- show: ({ values }) => {
|
|
|
- if (!values.status) {
|
|
|
- return true;
|
|
|
- }
|
|
|
- return false;
|
|
|
- },
|
|
|
- required: ({ values }) => {
|
|
|
- if (!values.status) {
|
|
|
- return true;
|
|
|
- }
|
|
|
- return false;
|
|
|
- },
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // field: 'relationUnit',
|
|
|
+ // component: 'Input',
|
|
|
+ // label: '相关单位',
|
|
|
+ // labelWidth: adaptWidth.labelWidth,
|
|
|
+ // colProps: {
|
|
|
+ // span: adaptWidth.elContainer,
|
|
|
+ // },
|
|
|
+ // render: ({ model, field }) => {
|
|
|
+ // return h(CustomInput, {
|
|
|
+ // value: model[field],
|
|
|
+ // placeholder: '添加相关单位',
|
|
|
+ // onChange(value) {
|
|
|
+ // model[field] = value;
|
|
|
+ // },
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ // show: ({ values }) => {
|
|
|
+ // if (values.status) {
|
|
|
+ // return true;
|
|
|
+ // }
|
|
|
+ // return false;
|
|
|
+ // },
|
|
|
+ // required: ({ values }) => {
|
|
|
+ // if (values.status) {
|
|
|
+ // return true;
|
|
|
+ // }
|
|
|
+ // return false;
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // field: 'relation',
|
|
|
+ // component: 'Input',
|
|
|
+ // label: '相关个人',
|
|
|
+ // labelWidth: adaptWidth.labelWidth,
|
|
|
+ // colProps: {
|
|
|
+ // span: adaptWidth.elContainer,
|
|
|
+ // },
|
|
|
+ // render: ({ model, field }) => {
|
|
|
+ // return h(CustomInput, {
|
|
|
+ // value: model[field],
|
|
|
+ // placeholder: '添加相关个人',
|
|
|
+ // onChange(value) {
|
|
|
+ // model[field] = value;
|
|
|
+ // },
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ // show: ({ values }) => {
|
|
|
+ // if (!values.status) {
|
|
|
+ // return true;
|
|
|
+ // }
|
|
|
+ // return false;
|
|
|
+ // },
|
|
|
+ // required: ({ values }) => {
|
|
|
+ // if (!values.status) {
|
|
|
+ // return true;
|
|
|
+ // }
|
|
|
+ // return false;
|
|
|
+ // },
|
|
|
+ // },
|
|
|
{
|
|
|
field: 'duty',
|
|
|
component: 'Select',
|