|
@@ -1,6 +1,6 @@
|
|
|
import { FormProps, BasicColumn } from '/@/components/Table';
|
|
|
-import { h } from 'vue';
|
|
|
-import Table from './Table.vue';
|
|
|
+// import { h } from 'vue';
|
|
|
+// import Table from './Table.vue';
|
|
|
// import { formatToDate } from '/@/utils/dateUtil';
|
|
|
import { FormSchema } from '/@/components/Form/index';
|
|
|
import { adapt } from '/@/utils/adapt';
|
|
@@ -282,6 +282,9 @@ export const schemas: FormSchema[] = [
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '姓名',
|
|
|
+ },
|
|
|
required: true,
|
|
|
},
|
|
|
{
|
|
@@ -293,6 +296,7 @@ export const schemas: FormSchema[] = [
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
|
componentProps: {
|
|
|
+ placeholder: '性别',
|
|
|
options: [
|
|
|
{
|
|
|
label: '男',
|
|
@@ -314,6 +318,9 @@ export const schemas: FormSchema[] = [
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '出生年月',
|
|
|
+ },
|
|
|
required: true,
|
|
|
},
|
|
|
{
|
|
@@ -324,6 +331,9 @@ export const schemas: FormSchema[] = [
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '籍贯',
|
|
|
+ },
|
|
|
required: true,
|
|
|
},
|
|
|
{
|
|
@@ -334,6 +344,9 @@ export const schemas: FormSchema[] = [
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '出生地',
|
|
|
+ },
|
|
|
required: true,
|
|
|
},
|
|
|
{
|
|
@@ -344,6 +357,9 @@ export const schemas: FormSchema[] = [
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '身份证号码',
|
|
|
+ },
|
|
|
required: true,
|
|
|
},
|
|
|
{
|
|
@@ -354,6 +370,9 @@ export const schemas: FormSchema[] = [
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '民族',
|
|
|
+ },
|
|
|
required: true,
|
|
|
},
|
|
|
{
|
|
@@ -361,6 +380,7 @@ export const schemas: FormSchema[] = [
|
|
|
label: '党派',
|
|
|
component: 'Select',
|
|
|
componentProps: {
|
|
|
+ placeholder: '党派',
|
|
|
options: [
|
|
|
{
|
|
|
label: '无',
|
|
@@ -414,6 +434,9 @@ export const schemas: FormSchema[] = [
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '学历',
|
|
|
+ },
|
|
|
required: true,
|
|
|
},
|
|
|
{
|
|
@@ -424,6 +447,9 @@ export const schemas: FormSchema[] = [
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '职称',
|
|
|
+ },
|
|
|
required: true,
|
|
|
},
|
|
|
{
|
|
@@ -434,6 +460,9 @@ export const schemas: FormSchema[] = [
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '职务',
|
|
|
+ },
|
|
|
required: true,
|
|
|
},
|
|
|
{
|
|
@@ -445,6 +474,9 @@ export const schemas: FormSchema[] = [
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '地址',
|
|
|
+ },
|
|
|
required: true,
|
|
|
},
|
|
|
{
|
|
@@ -456,6 +488,9 @@ export const schemas: FormSchema[] = [
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '邮编',
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
field: 'tel',
|
|
@@ -466,6 +501,9 @@ export const schemas: FormSchema[] = [
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '电话',
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
field: 'mobile',
|
|
@@ -476,6 +514,9 @@ export const schemas: FormSchema[] = [
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '手机',
|
|
|
+ },
|
|
|
required: true,
|
|
|
},
|
|
|
{
|
|
@@ -487,6 +528,9 @@ export const schemas: FormSchema[] = [
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '办企业前工作单位',
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
field: 'peopleJob',
|
|
@@ -497,6 +541,9 @@ export const schemas: FormSchema[] = [
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '人大职务',
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
field: 'cppccJob',
|
|
@@ -507,27 +554,40 @@ export const schemas: FormSchema[] = [
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '政协职务',
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
field: 'family',
|
|
|
- component: 'Input',
|
|
|
+ component: 'ArrCom',
|
|
|
label: '家庭主要成员',
|
|
|
labelWidth: adaptWidth.labelWidth,
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
|
defaultValue: '',
|
|
|
- render: ({ model, field }) => {
|
|
|
- if (!model[field]) {
|
|
|
- model[field] = [];
|
|
|
- }
|
|
|
- return h(Table, {
|
|
|
- value: model[field],
|
|
|
- onChange: (value) => {
|
|
|
- console.log(`e----onchange`, value);
|
|
|
- model[field] = value;
|
|
|
+ // render: ({ model, field }) => {
|
|
|
+ // if (!model[field]) {
|
|
|
+ // model[field] = [];
|
|
|
+ // }
|
|
|
+ // return h(Table, {
|
|
|
+ // value: model[field],
|
|
|
+ // onChange: (value) => {
|
|
|
+ // console.log(`e----onchange`, value);
|
|
|
+ // model[field] = value;
|
|
|
+ // },
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ componentProps: ({ formModel }) => {
|
|
|
+ console.log(`componentProps-----value`, formModel.family);
|
|
|
+ return {
|
|
|
+ placeholder: '家庭主要成员',
|
|
|
+ value: formModel.family,
|
|
|
+ onChange: (e) => {
|
|
|
+ console.log(e);
|
|
|
},
|
|
|
- });
|
|
|
+ };
|
|
|
},
|
|
|
required: true,
|
|
|
},
|
|
@@ -540,6 +600,9 @@ export const schemas: FormSchema[] = [
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '本人简历',
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
field: 'company',
|
|
@@ -550,6 +613,9 @@ export const schemas: FormSchema[] = [
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '所在单位',
|
|
|
+ },
|
|
|
required: true,
|
|
|
},
|
|
|
];
|