Commit 1786c99f authored by 杨子龙's avatar 杨子龙

调整配置

parent 2079bbb2
...@@ -3964,6 +3964,12 @@ const mapWidgets = [ ...@@ -3964,6 +3964,12 @@ const mapWidgets = [
displayType: 'row', displayType: 'row',
labelWidth: 75, labelWidth: 75,
}, },
$id: {
title: '数据源',
type: 'string',
widget: 'FieldNames',
required: true,
},
title: { title: {
title: '展示名称', title: '展示名称',
type: 'string', type: 'string',
...@@ -4831,12 +4837,6 @@ const advancedWidgets = [ ...@@ -4831,12 +4837,6 @@ const advancedWidgets = [
], ],
widget: 'OptionRender', widget: 'OptionRender',
}, },
isGIS: {
title: '是否含有GIS数据',
type: 'boolean',
widget: "switch",
default: true,
},
pagination: { pagination: {
title: '是否启用分页', title: '是否启用分页',
type: 'boolean', type: 'boolean',
......
...@@ -12,7 +12,6 @@ const DataTable = props => { ...@@ -12,7 +12,6 @@ const DataTable = props => {
const { const {
disabled, disabled,
fieldList, fieldList,
isGIS,
optionRender , optionRender ,
titleShow , titleShow ,
pagination , pagination ,
...@@ -163,6 +162,12 @@ const DataTable = props => { ...@@ -163,6 +162,12 @@ const DataTable = props => {
const getColumns = () => { const getColumns = () => {
const arr = []; const arr = [];
const list = statusOption?.length !== 0 ? statusOption : fieldList; const list = statusOption?.length !== 0 ? statusOption : fieldList;
let isGIS = false;
list?.forEach(item => {
if(item.fieldType === "gis"){
isGIS = true
}
})
list?.forEach(item => { list?.forEach(item => {
if (item.fieldType === '台账' && schema?.widget === 'FileUpload') { if (item.fieldType === '台账' && schema?.widget === 'FileUpload') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment