diff --git a/src/utils/global.ts b/src/utils/global.ts index b1127248..4261c510 100644 --- a/src/utils/global.ts +++ b/src/utils/global.ts @@ -33,6 +33,12 @@ export const mapTypeOptions = [ { label: '违法', value: 1 }, { label: '其他', value: 2 }, ]; +export const keyIssuesIIMapTypeOptions = [ + { label: '合法', value: 0 }, + { label: '违法', value: 1 }, + { label: '其他', value: 2 }, + { label: '自建自用', value: 3 }, +]; export const illegalTypeOptions = [ { label: '非农化', value: 0 }, { label: '非粮化', value: 1 }, @@ -48,6 +54,12 @@ export const mapStatusOptions = [ { label: '市级驳回', value: '市级驳回' }, { label: '县级驳回', value: '县级驳回' }, ]; +export const keyProblemMapStatusOptions = [ + { label: '待接收', value: '待接收' }, + { label: '待填报', value: '待填报' }, + { label: '市级驳回', value: '市级驳回' }, + { label: '县级驳回', value: '县级驳回' }, +]; export const auditMapStatusOptions = [ { label: '市级驳回', value: '市级驳回' }, { label: '县级驳回', value: '县级驳回' }, 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/curbspotcity/MapList/index.vue b/src/views/demo/keyproblem/keyissuesI/curbspotcity/MapList/index.vue index 2cf775fb..bb15d79b 100644 --- a/src/views/demo/keyproblem/keyissuesI/curbspotcity/MapList/index.vue +++ b/src/views/demo/keyproblem/keyissuesI/curbspotcity/MapList/index.vue @@ -130,7 +130,7 @@ v-model:value="props.infoScreenData.mapStatus" @change="(value) => emits('mapListScreenChange',value,'mapStatus')" style="width: 100%" - :options="mapStatusOptions"> + :options="keyProblemMapStatusOptions">