From 8b91b5ef55599ba08ec84d9c36499458fd24226c Mon Sep 17 00:00:00 2001 From: Zhufu <1176354795@qq.com> Date: Thu, 12 Sep 2024 09:24:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E7=82=B9=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E5=B7=A1=E6=9F=A5=E5=AE=A1=E8=AE=A1=EF=BC=8C=E8=80=95=E5=9C=B0?= =?UTF-8?q?=E9=9D=9E=E7=B2=AE=E5=8C=96=E5=9B=BE=E6=96=91=E6=9D=A5=E6=BA=90?= =?UTF-8?q?=EF=BC=8C=E5=9B=BE=E6=96=91=E5=88=97=E8=A1=A8=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../patchsummary/patchsummary.data.ts | 31 ++++++++++------ .../patchsummary/patchsummary.data.ts | 35 ++++++++++++------- .../patchsummary/patchsummary.data.ts | 31 ++++++++++------ .../patchsummary/patchsummary.data.ts | 31 ++++++++++------ 4 files changed, 86 insertions(+), 42 deletions(-) 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', + }; }, }, {