This commit is contained in:
@@ -22,63 +22,13 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
options: getDictOptions('wy_sqlx'),
|
||||
},
|
||||
fieldName: 'communityType',
|
||||
label: '社区类型 1:园区,2:小区',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'province',
|
||||
label: '省',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'city',
|
||||
label: '市',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'district',
|
||||
label: '区',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'addr',
|
||||
label: '地址',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'lon',
|
||||
label: '经度',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'lat',
|
||||
label: '维度',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'img',
|
||||
label: '小图图片',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'orgCode',
|
||||
label: '组织编码',
|
||||
label: '社区类型',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'dataState',
|
||||
label: '数据状态:1有效,0无效',
|
||||
},
|
||||
{
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
showTime: true,
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
fieldName: 'modifyTime',
|
||||
label: '修改时间',
|
||||
},
|
||||
label: '数据状态',
|
||||
}
|
||||
];
|
||||
|
||||
// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新
|
||||
@@ -98,7 +48,7 @@ export const columns: VxeGridProps['columns'] = [
|
||||
field: 'communityCode',
|
||||
},
|
||||
{
|
||||
title: '社区类型 1:园区,2:小区',
|
||||
title: '社区类型',
|
||||
field: 'communityType',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
@@ -136,11 +86,7 @@ export const columns: VxeGridProps['columns'] = [
|
||||
field: 'img',
|
||||
},
|
||||
{
|
||||
title: '组织编码',
|
||||
field: 'orgCode',
|
||||
},
|
||||
{
|
||||
title: '数据状态:1有效,0无效',
|
||||
title: '数据状态',
|
||||
field: 'dataState',
|
||||
},
|
||||
{
|
||||
@@ -179,7 +125,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '社区类型 1:园区,2:小区',
|
||||
label: '社区类型',
|
||||
fieldName: 'communityType',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
@@ -234,13 +180,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '组织编码',
|
||||
fieldName: 'orgCode',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '数据状态:1有效,0无效',
|
||||
label: '数据状态',
|
||||
fieldName: 'dataState',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
|
Reference in New Issue
Block a user