Commit 727db353 authored by 田翔's avatar 田翔

fix: 人员选择器分组形态BUG修复

parent 967dd880
{
"name": "panda-xform",
"version": "2.6.0",
"description": "2.6.0: 所有形态增加隐藏条件",
"version": "2.6.1",
"description": "2.6.1: 人员选择器分组形态BUG修复",
"keywords": [
"panda-xform"
],
......
......@@ -487,35 +487,18 @@ const textWidgets = [
title: '默认值',
type: 'string',
},
groupSetting: {
title: '控件设置',
type: 'object',
properties: {}
},
required: {
title: '必填',
type: 'boolean',
default: false,
width: '40%',
props: {
style: {
marginLeft: '10px'
}
}
width: '50%',
},
disabled: {
title: '只读',
type: 'boolean',
widget: 'checkbox',
default: false,
width: '30%',
},
hidden: {
title: '隐藏',
type: 'boolean',
widget: 'checkbox',
default: false,
width: '30%',
width: '50%',
},
groupStyle: {
title: '控件样式',
......@@ -1453,44 +1436,34 @@ const businessWidgets = [
default: false,
type: 'boolean',
widget: 'checkbox',
props: {
style: {
paddingLeft: '10px'
}
}
width: '50%',
},
isStoreID: {
title: '是否存储ID',
type: 'boolean',
default: false,
width: '50%',
},
required: {
title: '必填',
type: 'boolean',
widget: 'checkbox',
default: false,
width: '25%',
width: '33%',
},
disabled: {
title: '只读',
type: 'boolean',
widget: 'checkbox',
default: false,
width: '25%',
},
hidden: {
title: '隐藏',
type: 'boolean',
widget: 'checkbox',
default: false,
width: '25%',
width: '33%',
},
isMultiple: {
title: '多选',
type: 'boolean',
widget: 'checkbox',
default: false,
width: '25%',
},
isStoreID: {
title: '是否存储ID',
type: 'boolean',
default: false,
width: '33%',
},
groupStyle: {
title: '控件样式',
......@@ -1548,8 +1521,6 @@ const businessWidgets = [
type: 'string',
widget: 'FieldNames',
required: true,
displayType: 'row',
labelWidth: 80,
},
title: {
title: '展示名称',
......@@ -1904,26 +1875,14 @@ const dateWidgets = [
type: 'boolean',
widget: 'checkbox',
default: false,
width: '40%',
props: {
style: {
marginLeft: '10px',
}
}
width: '50%',
},
disabled: {
title: '只读',
type: 'boolean',
widget: 'checkbox',
default: false,
width: '30%',
},
hidden: {
title: '隐藏',
type: 'boolean',
widget: 'checkbox',
default: false,
width: '30%',
width: '50%',
},
groupStyle: {
title: '控件样式',
......@@ -2008,21 +1967,14 @@ const fileWidgets = [
type: 'boolean',
widget: 'checkbox',
default: false,
width: '33%',
width: '50%',
},
required: {
title: '必填',
type: 'boolean',
widget: 'checkbox',
default: false,
width: '33%',
},
hidden: {
title: '隐藏',
type: 'boolean',
widget: 'checkbox',
default: false,
width: '33%',
width: '50%',
},
preview: {
title: '预览',
......
......@@ -269,7 +269,6 @@ const getSelectItemList = async (params) => {
const { code, data, msg } = await GetSelectItemList({ nodeName: dictionary })
if (code === 0) {
let array = data.filter(v => v.nodeName === value)
console.log(data, array)
if (Array.isArray(array) && array.length) {
form.setValueByPath(targetPath, array[0].nodeValue)
}
......
......@@ -25,7 +25,6 @@ const getUSerName = (groupList, value, isMultiple, property) => {
}
})
}
console.log('users', groupList, value, isMultiple, property, users)
return users.map(v => v.userName).join(',')
}
......@@ -60,8 +59,10 @@ const UserGroup = (props) => {
const valueShow = useMemo(() => {
if (value) {
if (property === 'userID') {
return getUSerName(groupList, value, isMultiple, property)
}
}
return value
}, [groupList, isMultiple, value, property])
......
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