diff --git a/src/views/demo/degraining/patchsummary/patchsummary.data.ts b/src/views/demo/degraining/patchsummary/patchsummary.data.ts index 90b7d5d0..2dcf1e6d 100644 --- a/src/views/demo/degraining/patchsummary/patchsummary.data.ts +++ b/src/views/demo/degraining/patchsummary/patchsummary.data.ts @@ -1,5 +1,6 @@ import { BasicColumn, FormSchema } from '@/components/Table'; import { getChildrenTree } from '@/api/demo/system'; +import { getLoad } from '@/api/sys/sysDataItemDetail'; import { patchSourceOptions, yearOptions, @@ -104,10 +105,17 @@ export const searchFormSchema: FormSchema[] = [ { field: 'tubanlaiyuan', label: '图斑来源', - component: 'Select', + component: 'ApiSelect', colProps: { span: 4 }, - componentProps: { - options: patchSourceOptions, + componentProps: ({ formModel }) => { + return { + api: getLoad, + params: { code: 'gdflhtbly' }, + // 接口参数 + resultField: 'result', + labelField: 'itemName', + valueField: 'itemValue', + }; }, }, { @@ -122,14 +130,17 @@ export const searchFormSchema: FormSchema[] = [ { field: 'typename', label: '图斑类型', - component: 'Select', + component: 'ApiSelect', colProps: { span: 4 }, - componentProps: { - options: [ - { label: '农用地', value: '农用地' }, - { label: '建设用地', value: '建设用地' }, - { label: '推堆土', value: '推堆土' }, - ], + componentProps: ({ formModel }) => { + return { + api: getLoad, + params: { code: 'gdflhtblx' }, + // 接口参数 + resultField: 'result', + labelField: 'itemName', + valueField: 'itemValue', + }; }, }, { diff --git a/src/views/demo/inspectionaudit/patchsummary/patchsummary.data.ts b/src/views/demo/inspectionaudit/patchsummary/patchsummary.data.ts index 731df07d..7ef4447b 100644 --- a/src/views/demo/inspectionaudit/patchsummary/patchsummary.data.ts +++ b/src/views/demo/inspectionaudit/patchsummary/patchsummary.data.ts @@ -1,5 +1,6 @@ import { BasicColumn, FormSchema } from '@/components/Table'; import { getChildrenTree } from '@/api/demo/system'; +import { getLoad } from '@/api/sys/sysDataItemDetail'; import { patchSourceOptions, yearOptions, @@ -104,10 +105,17 @@ export const searchFormSchema: FormSchema[] = [ { field: 'tubanlaiyuan', label: '图斑来源', - component: 'Select', + component: 'ApiSelect', colProps: { span: 4 }, - componentProps: { - options: patchSourceOptions, + componentProps: ({ formModel }) => { + return { + api: getLoad, + params: { code: 'xcsjtbly' }, + // 接口参数 + resultField: 'result', + labelField: 'itemName', + valueField: 'itemValue', + }; }, }, { @@ -122,14 +130,17 @@ export const searchFormSchema: FormSchema[] = [ { field: 'typename', label: '图斑类型', - component: 'Select', + component: 'ApiSelect', colProps: { span: 4 }, - componentProps: { - options: [ - { label: '农用地', value: '农用地' }, - { label: '建设用地', value: '建设用地' }, - { label: '推堆土', value: '推堆土' }, - ], + componentProps: ({ formModel }) => { + return { + api: getLoad, + params: { code: 'xcsjtblx' }, + // 接口参数 + resultField: 'result', + labelField: 'itemName', + valueField: 'itemValue', + }; }, }, { @@ -243,7 +254,7 @@ export const searchFormSchema: FormSchema[] = [ field: 'originalcaseno', label: '标识号', component: 'Input', - colProps: { span: 4 }, + colProps: { span: 3 }, }, { field: '[startTime, endTime]', @@ -259,6 +270,6 @@ export const searchFormSchema: FormSchema[] = [ field: 'caseNo', label: '图斑编号', component: 'Input', - colProps: { span: 4 }, + colProps: { span: 5 }, }, ]; diff --git a/src/views/demo/keyproblem/keyissuesI/patchsummary/patchsummary.data.ts b/src/views/demo/keyproblem/keyissuesI/patchsummary/patchsummary.data.ts index c6003524..4f5c5251 100644 --- a/src/views/demo/keyproblem/keyissuesI/patchsummary/patchsummary.data.ts +++ b/src/views/demo/keyproblem/keyissuesI/patchsummary/patchsummary.data.ts @@ -1,5 +1,6 @@ import { BasicColumn, FormSchema } from '@/components/Table'; import { getChildrenTree } from '@/api/demo/system'; +import { getLoad } from '@/api/sys/sysDataItemDetail'; import { patchSourceOptions, yearOptions, @@ -104,10 +105,17 @@ export const searchFormSchema: FormSchema[] = [ { field: 'tubanlaiyuan', label: '图斑来源', - component: 'Select', + component: 'ApiSelect', colProps: { span: 4 }, - componentProps: { - options: patchSourceOptions, + componentProps: ({ formModel }) => { + return { + api: getLoad, + params: { code: 'zd1tbly' }, + // 接口参数 + resultField: 'result', + labelField: 'itemName', + valueField: 'itemValue', + }; }, }, { @@ -123,14 +131,17 @@ export const searchFormSchema: FormSchema[] = [ { field: 'typename', label: '图斑类型', - component: 'Select', + component: 'ApiSelect', colProps: { span: 4 }, - componentProps: { - options: [ - { label: '农用地', value: '农用地' }, - { label: '建设用地', value: '建设用地' }, - { label: '推堆土', value: '推堆土' }, - ], + componentProps: ({ formModel }) => { + return { + api: getLoad, + params: { code: 'zd1tblx' }, + // 接口参数 + resultField: 'result', + labelField: 'itemName', + valueField: 'itemValue', + }; }, }, { diff --git a/src/views/demo/keyproblem/keyissuesII/patchsummary/patchsummary.data.ts b/src/views/demo/keyproblem/keyissuesII/patchsummary/patchsummary.data.ts index 53e02a5b..fea6a948 100644 --- a/src/views/demo/keyproblem/keyissuesII/patchsummary/patchsummary.data.ts +++ b/src/views/demo/keyproblem/keyissuesII/patchsummary/patchsummary.data.ts @@ -1,5 +1,6 @@ import { BasicColumn, FormSchema } from '@/components/Table'; import { getChildrenTree } from '@/api/demo/system'; +import { getLoad } from '@/api/sys/sysDataItemDetail'; import { patchSourceOptions, yearOptions, @@ -104,10 +105,17 @@ export const searchFormSchema: FormSchema[] = [ { field: 'tubanlaiyuan', label: '图斑来源', - component: 'Select', + component: 'ApiSelect', colProps: { span: 4 }, - componentProps: { - options: patchSourceOptions, + componentProps: ({ formModel }) => { + return { + api: getLoad, + params: { code: 'zd2tbly' }, + // 接口参数 + resultField: 'result', + labelField: 'itemName', + valueField: 'itemValue', + }; }, }, { @@ -123,14 +131,17 @@ export const searchFormSchema: FormSchema[] = [ { field: 'typename', label: '图斑类型', - component: 'Select', + component: 'ApiSelect', colProps: { span: 4 }, - componentProps: { - options: [ - { label: '农用地', value: '农用地' }, - { label: '建设用地', value: '建设用地' }, - { label: '推堆土', value: '推堆土' }, - ], + componentProps: ({ formModel }) => { + return { + api: getLoad, + params: { code: 'zd2tblx' }, + // 接口参数 + resultField: 'result', + labelField: 'itemName', + valueField: 'itemValue', + }; }, }, {