Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
6fdbede9
提交
6fdbede9
authored
9月 15, 2022
作者:
钟是志
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
28871 评奖评优管理/优秀学生干部管理/优秀学生干部申请,优化排版(20192601007,bdk@2022*$)
上级
17f1a944
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
430 行增加
和
499 行删除
+430
-499
index.jsx
one_stop_public/tableCompon/index.jsx
+424
-499
style.less
one_stop_public/tableCompon/style.less
+6
-0
没有找到文件。
one_stop_public/tableCompon/index.jsx
浏览文件 @
6fdbede9
...
...
@@ -79,15 +79,10 @@ import getOneStopUploadUrl from '@/webPublic/one_stop_public/Base16/getOneStopUp
import
SwitchWeb
from
'@/webPublic/one_stop_public/tableCompon/Split_Index/SwitchWeb'
;
import
CronEditorDiy
from
'@/webPublic/one_stop_public/tableCompon/Split_Index/CronEditorDiy/index'
;
import
ButtonDiy
from
'@/webPublic/one_stop_public/tableCompon/Split_Index/ButtonDiy'
;
import
giveVarcharRules
from
'@/webPublic/one_stop_public/tableCompon/Split_Index/giveVarcharLength'
;
import
getPopupContainer
from
'@/webPublic/one_stop_public/tableCompon/Split_Index/getPopupContainer'
;
const
{
MonthPicker
,
WeekPicker
}
=
DatePicker
;
import
giveVarcharRules
from
'@/webPublic/one_stop_public/tableCompon/Split_Index/giveVarcharLength'
;
import
getPopupContainer
from
'@/webPublic/one_stop_public/tableCompon/Split_Index/getPopupContainer'
;
const
{
MonthPicker
,
WeekPicker
}
=
DatePicker
;
/**
* 日期组件antd3.x有bug 详情见禅道 27152 毕业跟踪调查管理 毕业时间改为年级筛选
*/
...
...
@@ -108,12 +103,7 @@ const giveRender = (column = {}) => {
return
column
;
};
@
connect
(({
DataColumn
,
SqlManageEntity
,
formList
,
loading
})
=>
({
@
connect
(({
DataColumn
,
SqlManageEntity
,
formList
,
loading
})
=>
({
DataColumn
,
SqlManageEntity
,
formList
,
...
...
@@ -219,12 +209,7 @@ export default class TableCom extends Component {
};
getColumnSearchProps
=
(
dataIndex
,
title
)
=>
({
filterDropdown
:
({
setSelectedKeys
,
selectedKeys
,
confirm
,
clearFilters
})
=>
(
filterDropdown
:
({
setSelectedKeys
,
selectedKeys
,
confirm
,
clearFilters
})
=>
(
<
div
style=
{
{
padding
:
8
}
}
>
<
Input
ref=
{
node
=>
{
...
...
@@ -263,13 +248,13 @@ export default class TableCom extends Component {
</
Button
>
</
div
>
),
filterIcon
:
filtered
=>
<
Icon
type=
"search"
style=
{
{
color
:
filtered
?
'#1890ff'
:
'red'
}
}
/>,
filterIcon
:
filtered
=>
<
Icon
type=
"search"
style=
{
{
color
:
filtered
?
'#1890ff'
:
'red'
}
}
/>,
onFilter
:
(
value
,
record
)
=>
record
[
dataIndex
]
?
record
[
dataIndex
]
.
toString
()
.
toLowerCase
()
.
includes
(
value
.
toLowerCase
())
.
toString
()
.
toLowerCase
()
.
includes
(
value
.
toLowerCase
())
:
''
,
onFilterDropdownVisibleChange
:
visible
=>
{
if
(
visible
)
{
...
...
@@ -311,11 +296,7 @@ export default class TableCom extends Component {
};
componentWillReceiveProps
(
props
)
{
const
{
json
,
mapData
,
obj
}
=
props
;
const
{
json
,
mapData
,
obj
}
=
props
;
if
(
json
==
null
||
this
.
props
.
safe
)
{
return
;
}
...
...
@@ -373,7 +354,7 @@ export default class TableCom extends Component {
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:存在循环风险,1秒内执行超过10次,现已停止执行,请检查,`
,
1
}
列:存在循环风险,1秒内执行超过10次,现已停止执行,请检查,`
,
);
return
;
...
...
@@ -395,9 +376,9 @@ export default class TableCom extends Component {
this
.
props
.
fatherCode
!=
null
?
bindObj
?
{
...
bindObj
,
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
bindObj
.
base52
}
`
,
}
...
bindObj
,
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
bindObj
.
base52
}
`
,
}
:
{
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
this
.
props
.
uuid
}
`
}
:
bindObj
;
if
(
this
.
props
.
fatherCode
==
null
&&
dataColumn
==
null
)
{
...
...
@@ -428,10 +409,7 @@ export default class TableCom extends Component {
dataFilter
=
[
'Select'
,
'Radio'
,
'Checkbox'
,
'Cascader'
];
getData
=
(
json
,
dataColumn
,
obj
,
init
)
=>
{
const
{
formKey
,
uuid
}
=
this
.
props
;
const
{
formKey
,
uuid
}
=
this
.
props
;
let
jsonStatic
=
json
;
json
=
{
...
jsonStatic
,
...
...
@@ -442,10 +420,7 @@ export default class TableCom extends Component {
allValues
=
JSON
.
stringify
(
allValues
);
if
(
json
.
comName
===
'TableSelect'
)
{
const
{
dispatch
}
=
this
.
props
;
const
{
sqlKey
,
optionType
}
=
json
;
const
{
sqlKey
,
optionType
}
=
json
;
if
(
optionType
===
'sql'
)
{
dispatch
({
type
:
'SqlManageEntity/find'
,
...
...
@@ -467,8 +442,7 @@ export default class TableCom extends Component {
if
(
[
'DATE'
,
'DATETIME'
,
'TIME'
,
'TIMESTAMP'
,
'YEAR'
].
includes
(
datas
[
i
].
type
)
)
{
column
.
render
=
val
=>
moment
(
val
)
.
format
(
'YYYY-MM-DD HH:mm:ss'
);
column
.
render
=
val
=>
moment
(
val
).
format
(
'YYYY-MM-DD HH:mm:ss'
);
}
column
=
giveRender
(
column
);
...
...
@@ -505,8 +479,7 @@ export default class TableCom extends Component {
break
;
}
column
.
render
=
val
=>
moment
(
parseInt
(
val
))
.
format
(
ff
);
column
.
render
=
val
=>
moment
(
parseInt
(
val
)).
format
(
ff
);
}
if
(
cll
[
k
].
isQuery
)
{
column
=
{
...
...
@@ -552,8 +525,7 @@ export default class TableCom extends Component {
column
.
title
=
datas
[
i
].
title
;
column
.
dataIndex
=
datas
[
i
].
name
;
if
([
'DATE'
,
'DATETIME'
,
'TIME'
,
'TIMESTAMP'
,
'YEAR'
].
includes
(
datas
[
i
].
type
))
{
column
.
render
=
val
=>
moment
(
val
)
.
format
(
'YYYY-MM-DD HH:mm:ss'
);
column
.
render
=
val
=>
moment
(
val
).
format
(
'YYYY-MM-DD HH:mm:ss'
);
}
column
=
giveRender
(
column
);
columns
.
push
(
column
);
...
...
@@ -683,7 +655,7 @@ export default class TableCom extends Component {
}
catch
(
e
)
{
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
);
}
...
...
@@ -777,7 +749,7 @@ export default class TableCom extends Component {
}
catch
(
e
)
{
console
.
log
(
`页面
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
);
}
...
...
@@ -792,79 +764,78 @@ export default class TableCom extends Component {
delete
params
[
i
];
}
}
noPrefixRequest
(
url
,
params
)
.
then
(
data
=>
{
// if (!data || !Array.isArray(data)) {
// data = [];
// }
const
{
reqUrls
}
=
this
.
state
;
if
(
reqUrls
&&
reqUrls
[
url
])
{
reqUrls
[
url
].
data
=
data
;
}
this
.
setState
(
{
res
:
data
,
reqUrls
,
},
()
=>
{
if
(
callback
)
{
if
(
json
.
optionType
&&
json
.
optionType
==
'func'
)
{
const
res
=
callback
(
data
);
if
(
res
!=
null
&&
!
(
typeof
res
===
'function'
))
{
this
.
setState
(
{
options
:
res
,
selectDis
:
false
,
},
()
=>
{
if
(
orgCallback
)
orgCallback
();
},
);
}
}
else
if
(
json
.
comName
==
'Button'
)
{
try
{
callback
(
data
);
}
catch
(
e
)
{
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
);
noPrefixRequest
(
url
,
params
).
then
(
data
=>
{
// if (!data || !Array.isArray(data)) {
// data = [];
// }
const
{
reqUrls
}
=
this
.
state
;
if
(
reqUrls
&&
reqUrls
[
url
])
{
reqUrls
[
url
].
data
=
data
;
}
this
.
setState
(
{
res
:
data
,
reqUrls
,
},
()
=>
{
if
(
callback
)
{
if
(
json
.
optionType
&&
json
.
optionType
==
'func'
)
{
const
res
=
callback
(
data
);
if
(
res
!=
null
&&
!
(
typeof
res
===
'function'
))
{
this
.
setState
(
{
options
:
res
,
selectDis
:
false
,
},
()
=>
{
if
(
orgCallback
)
orgCallback
();
},
);
}
}
else
if
(
json
.
comName
==
'Button'
)
{
try
{
callback
(
data
);
}
catch
(
e
)
{
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
);
}
}
else
if
([
'Echart'
,
'QRCode'
,
'Graph'
].
includes
(
json
.
comName
))
{
try
{
const
x
=
callback
(
data
);
if
(
x
!=
null
)
{
this
.
setState
({
option
:
x
});
}
}
else
if
([
'Echart'
,
'QRCode'
,
'Graph'
].
includes
(
json
.
comName
))
{
}
catch
(
e
)
{
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
);
}
}
else
{
if
(
base52
)
{
try
{
const
x
=
callback
(
data
);
if
(
x
!=
null
)
{
this
.
setState
({
option
:
x
});
}
// console.log(x, '757');
if
(
x
==
null
||
x
!=
'NaN'
)
this
.
props
.
form
.
setFieldsValue
({
[
base52
]:
x
});
}
catch
(
e
)
{
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
);
}
}
else
{
if
(
base52
)
{
try
{
const
x
=
callback
(
data
);
// console.log(x, '757');
if
(
x
==
null
||
x
!=
'NaN'
)
this
.
props
.
form
.
setFieldsValue
({
[
base52
]:
x
});
}
catch
(
e
)
{
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
);
}
}
}
}
},
);
});
}
},
);
});
return
'norefeshxxxxxxxxxxxxxxxxxxxx'
;
};
...
...
@@ -995,50 +966,62 @@ export default class TableCom extends Component {
if
(
getToken
()
!=
null
)
{
pp
.
token
=
getToken
();
}
uaaRequest
(
url
,
pp
)
.
then
(
data
=>
{
const
{
sqlKeys
}
=
this
.
state
;
sqlKeys
[
sqlKey
].
data
=
data
;
this
.
setState
({
sqlKeys
});
if
(
data
==
null
)
{
return
;
}
uaaRequest
(
url
,
pp
).
then
(
data
=>
{
const
{
sqlKeys
}
=
this
.
state
;
sqlKeys
[
sqlKey
].
data
=
data
;
this
.
setState
({
sqlKeys
});
if
(
data
==
null
)
{
return
;
}
if
(
callback
)
{
if
(
json
.
optionType
&&
json
.
optionType
===
'func'
)
{
const
res
=
callback
(
data
);
if
(
callback
)
{
if
(
json
.
optionType
&&
json
.
optionType
===
'func'
)
{
const
res
=
callback
(
data
);
if
(
res
!=
null
&&
!
(
typeof
res
===
'function'
))
{
this
.
setState
(
{
options
:
res
,
selectDis
:
false
,
},
()
=>
{
if
(
orgCallback
)
orgCallback
();
},
);
}
}
else
if
(
json
.
comName
==
'Button'
)
{
try
{
callback
(
data
);
}
catch
(
e
)
{
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
);
if
(
res
!=
null
&&
!
(
typeof
res
===
'function'
))
{
this
.
setState
(
{
options
:
res
,
selectDis
:
false
,
},
()
=>
{
if
(
orgCallback
)
orgCallback
();
},
);
}
}
else
if
(
json
.
comName
==
'Button'
)
{
try
{
callback
(
data
);
}
catch
(
e
)
{
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
);
}
}
else
if
(
json
.
comName
==
'Echart'
||
json
.
comName
==
'QRCode'
||
json
.
comName
==
'Graph'
)
{
try
{
const
x
=
callback
(
data
);
if
(
x
!=
null
)
{
this
.
setState
({
option
:
x
});
}
}
else
if
(
json
.
comName
==
'Echart'
||
json
.
comName
==
'QRCode'
||
json
.
comName
==
'Graph'
)
{
}
catch
(
e
)
{
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
);
}
}
else
{
if
(
base52
)
{
try
{
const
x
=
callback
(
data
);
if
(
x
!=
null
)
{
this
.
setState
({
option
:
x
});
}
// console.log(x, 938);
if
(
x
==
null
||
x
!=
'NaN'
)
this
.
props
.
form
.
setFieldsValue
({
[
base52
]:
x
});
}
catch
(
e
)
{
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
...
...
@@ -1046,23 +1029,10 @@ export default class TableCom extends Component {
e
,
);
}
}
else
{
if
(
base52
)
{
try
{
const
x
=
callback
(
data
);
// console.log(x, 938);
if
(
x
==
null
||
x
!=
'NaN'
)
this
.
props
.
form
.
setFieldsValue
({
[
base52
]:
x
});
}
catch
(
e
)
{
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
);
}
}
}
}
});
}
});
});
return
'norefeshxxxxxxxxxxxxxxxxxxxx'
;
...
...
@@ -1101,7 +1071,6 @@ export default class TableCom extends Component {
};
}
let
obj
=
{};
if
(
!
isEdit
&&
fatherCode
)
{
obj
=
{
...
...
@@ -1171,8 +1140,7 @@ export default class TableCom extends Component {
messageData
,
concealModel
,
};
}
};
getFunctionValue
=
(
fun
,
column
,
json
,
callback
)
=>
{
if
(
this
.
props
.
safe
)
return
;
...
...
@@ -1263,19 +1231,14 @@ export default class TableCom extends Component {
}
catch
(
e
)
{
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,暂存失败,`
,
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,暂存失败,`
,
e
,
);
}
};
componentDidMount
()
{
const
{
json
,
mapData
,
obj
,
init
}
=
this
.
props
;
const
{
json
,
mapData
,
obj
,
init
}
=
this
.
props
;
if
(
json
==
null
)
{
return
;
}
...
...
@@ -1296,9 +1259,9 @@ export default class TableCom extends Component {
this
.
props
.
fatherCode
!=
null
?
bindObj
?
{
...
bindObj
,
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
bindObj
.
base52
}
`
,
}
...
bindObj
,
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
bindObj
.
base52
}
`
,
}
:
{
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
this
.
props
.
uuid
}
`
}
:
bindObj
;
if
(
this
.
props
.
fatherCode
==
null
&&
dataColumn
==
null
)
{
...
...
@@ -1320,13 +1283,7 @@ export default class TableCom extends Component {
}
fetchData3
=
(
obj
,
dataColumn
,
init
,
json
,
allValues
)
=>
{
const
{
sqlKey
,
labelName
,
valueName
,
isMeta
,
filterSql
}
=
json
;
const
{
sqlKey
,
labelName
,
valueName
,
isMeta
,
filterSql
}
=
json
;
if
(
isMeta
)
{
// 2022年7月5日 2022 姚鑫国说的 如果是元数据 不需要传这个allValues
// 解决禅道bug 28017
...
...
@@ -1566,10 +1523,7 @@ export default class TableCom extends Component {
}
};
getColumn
=
key
=>
{
let
{
mapData
,
json
}
=
this
.
props
;
let
{
mapData
,
json
}
=
this
.
props
;
const
columnIds
=
json
?.
columnIds
;
...
...
@@ -1625,20 +1579,8 @@ export default class TableCom extends Component {
// console.log(formKey, json);
// }
const
{
options
,
labels
,
selectDis
,
modalCode
,
modalTitle
,
modalInit
,
modalProps
}
=
this
.
state
;
const
{
getFieldDecorator
,
getFieldError
,
getFieldProps
}
=
this
.
props
.
form
;
const
{
options
,
labels
,
selectDis
,
modalCode
,
modalTitle
,
modalInit
,
modalProps
}
=
this
.
state
;
const
{
getFieldDecorator
,
getFieldError
,
getFieldProps
}
=
this
.
props
.
form
;
const
disabled
=
json
!=
null
?
json
.
disabled
:
false
;
const
permRank
=
json
!=
null
?
(
json
.
permRank
!=
null
?
json
.
permRank
:
0
)
:
0
;
if
(
json
?.
label
===
'账号'
)
{
...
...
@@ -1661,7 +1603,7 @@ export default class TableCom extends Component {
)
{
return
<></>;
}
return
<
QRCode
{
...
this
.
state
.
option
}
key=
{
uuid
}
/>;
return
<
QRCode
{
...
this
.
state
.
option
}
key=
{
uuid
}
/>;
}
if
(
json
.
comName
==
'Echart'
)
{
return
(
...
...
@@ -1677,7 +1619,7 @@ export default class TableCom extends Component {
);
}
if
(
json
.
comName
==
'Graph'
)
{
return
<
Neo4jD3Com
key=
{
uuid
}
json=
{
json
}
option=
{
this
.
state
.
option
||
[]
}
/>;
return
<
Neo4jD3Com
key=
{
uuid
}
json=
{
json
}
option=
{
this
.
state
.
option
||
[]
}
/>;
}
if
(
json
.
comName
==
'PartForm'
)
{
...
...
@@ -1692,7 +1634,7 @@ export default class TableCom extends Component {
<>
{
this
.
props
.
form
.
getFieldDecorator
(
uuid
,
{
initialValue
:
fk
,
})(<
Input
type=
"hidden"
/>)
}{
' '
}
})(<
Input
type=
"hidden"
/>)
}{
' '
}
<
ZdyTable
taskId=
{
this
.
props
.
taskId
}
importExcel=
{
this
.
props
.
importExcel
}
...
...
@@ -1727,17 +1669,6 @@ export default class TableCom extends Component {
</>
);
}
// if([
// // 'Select',
// // 'Input',
// 'InputHidden',
// // 'DatePicker',
// // 'TextArea',
// // 'Radio',
// ].includes(json.comName)){
// return null;
// // Select Input InputHidden DatePicker DatePicker TextArea Radio
// }
if
(
json
.
comName
===
'Excel'
)
{
const
value
=
getCellValue
(
i
,
j
,
currentFormTitle
);
...
...
@@ -1768,7 +1699,7 @@ export default class TableCom extends Component {
<>
{
this
.
props
.
form
.
getFieldDecorator
(
uid
,
{
initialValue
:
obj
[
uuid
]
||
json
.
initialValue
,
})(<
Input
type=
"hidden"
/>)
}
})(<
Input
type=
"hidden"
/>)
}
<
span
style=
{
{
fontWeight
:
get
===
'mobile'
?
'bold'
:
''
,
...
...
@@ -1785,7 +1716,7 @@ export default class TableCom extends Component {
<>
{
this
.
props
.
form
.
getFieldDecorator
(
uid
,
{
initialValue
:
this
.
props
.
form
.
getFieldsValue
()[
uid
]
||
json
.
initialValue
,
})(<
Input
type=
"hidden"
/>)
}
})(<
Input
type=
"hidden"
/>)
}
<
span
style=
{
{
fontWeight
:
get
===
'mobile'
?
'bold'
:
''
,
...
...
@@ -1834,7 +1765,7 @@ export default class TableCom extends Component {
cm
=
(
<
span
style=
{
{
paddingRight
:
get
===
'mobile'
?
8
:
''
}
}
>
{
value
}
{
get
===
'mobile'
?
<
br
/>
:
''
}
{
get
===
'mobile'
?
<
br
/>
:
''
}
</
span
>
);
break
;
...
...
@@ -1842,7 +1773,7 @@ export default class TableCom extends Component {
cm
=
(
<
span
>
{
value
}
{
get
===
'mobile'
?
<
br
/>
:
''
}
{
get
===
'mobile'
?
<
br
/>
:
''
}
</
span
>
);
...
...
@@ -1860,7 +1791,7 @@ export default class TableCom extends Component {
cm
=
(
<
span
style=
{
{
paddingRight
:
get
==
'mobile'
?
8
:
''
}
}
>
{
value
}
{
get
===
'mobile'
?
<
br
/>
:
''
}
{
get
===
'mobile'
?
<
br
/>
:
''
}
</
span
>
);
...
...
@@ -1869,7 +1800,7 @@ export default class TableCom extends Component {
cm
=
(
<
span
>
{
value
}
{
get
===
'mobile'
?
<
br
/>
:
''
}
{
get
===
'mobile'
?
<
br
/>
:
''
}
</
span
>
);
...
...
@@ -1877,9 +1808,8 @@ export default class TableCom extends Component {
case
'DatePicker'
:
cm
=
value
?
(
<
span
>
{
moment
(
parseInt
(
value
))
.
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
{
get
===
'mobile'
?
<
br
/>
:
''
}
{
moment
(
parseInt
(
value
)).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
{
get
===
'mobile'
?
<
br
/>
:
''
}
</
span
>
)
:
(
''
...
...
@@ -1901,7 +1831,7 @@ export default class TableCom extends Component {
);
})
}
</
ul
>
{
get
===
'mobile'
?
<
br
/>
:
''
}
{
get
===
'mobile'
?
<
br
/>
:
''
}
</>
);
...
...
@@ -1921,7 +1851,7 @@ export default class TableCom extends Component {
);
})
}
</
ul
>
{
get
===
'mobile'
?
<
br
/>
:
''
}
{
get
===
'mobile'
?
<
br
/>
:
''
}
</>
);
...
...
@@ -1946,7 +1876,7 @@ export default class TableCom extends Component {
height
:
json
.
height
,
}
}
/>
{
get
===
'mobile'
?
<
br
/>
:
''
}
{
get
===
'mobile'
?
<
br
/>
:
''
}
</>
);
}
...
...
@@ -1972,7 +1902,7 @@ export default class TableCom extends Component {
height
:
json
.
height
,
}
}
/>
{
get
===
'mobile'
?
<
br
/>
:
''
}
{
get
===
'mobile'
?
<
br
/>
:
''
}
</>
);
}
...
...
@@ -2007,7 +1937,7 @@ export default class TableCom extends Component {
</
MobileItem
>
{
this
.
props
.
form
.
getFieldDecorator
(
`defaultValues.${formKey}.${key}`
,
{
initialValue
:
value
,
})(<
Input
type=
"hidden"
/>)
}
})(<
Input
type=
"hidden"
/>)
}
</>
);
}
...
...
@@ -2020,7 +1950,7 @@ export default class TableCom extends Component {
{
cm
}
{
this
.
props
.
form
.
getFieldDecorator
(
`defaultValues.${formKey}.${key}`
,
{
initialValue
:
value
,
})(<
Input
type=
"hidden"
/>)
}
})(<
Input
type=
"hidden"
/>)
}
</>
);
}
...
...
@@ -2114,7 +2044,7 @@ export default class TableCom extends Component {
</
Form
.
Item
>
{
this
.
props
.
form
.
getFieldDecorator
(
`defaultValues.${formKey}.${key}`
,
{
initialValue
:
value
,
})(<
Input
type=
"hidden"
/>)
}
})(<
Input
type=
"hidden"
/>)
}
</>
);
}
...
...
@@ -2127,7 +2057,7 @@ export default class TableCom extends Component {
{
cm
}
{
this
.
props
.
form
.
getFieldDecorator
(
`defaultValues.${formKey}.${key}`
,
{
initialValue
:
value
,
})(<
Input
type=
"hidden"
/>)
}
})(<
Input
type=
"hidden"
/>)
}
</>
);
}
...
...
@@ -2143,9 +2073,9 @@ export default class TableCom extends Component {
this
.
props
.
fatherCode
!=
null
?
bindObj
?
{
...
bindObj
,
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
bindObj
.
base52
}
`
,
}
...
bindObj
,
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
bindObj
.
base52
}
`
,
}
:
{
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
uuid
}
`
}
:
bindObj
;
...
...
@@ -2206,19 +2136,22 @@ export default class TableCom extends Component {
case
'MobileCard'
:
let
value
=
obj
[
dataColumn
.
base52
];
if
(
!
value
||
value
===
'null'
)
{
return
<
div
/>;
return
<
div
/>;
}
cm
=
<
MobileCard
value=
{
value
}
json=
{
json
}
getArguments=
{
this
.
functionArguments
}
tableComProps=
{
this
.
props
}
dataColumn=
{
dataColumn
}
/>;
cm
=
(
<
MobileCard
value=
{
value
}
json=
{
json
}
getArguments=
{
this
.
functionArguments
}
tableComProps=
{
this
.
props
}
dataColumn=
{
dataColumn
}
/>
);
break
;
case
'WangEditor'
:
let
textV
=
obj
[
dataColumn
.
base52
];
if
(
!
textV
||
textV
===
'null'
)
{
return
<
div
/>;
return
<
div
/>;
}
cm
=
(
<
div
...
...
@@ -2283,18 +2216,18 @@ ${obj[dataColumn.base52]}
<
span
>
{
labels
!=
null
?
labels
.
map
((
r
,
i
)
=>
i
==
0
?
(
typeof
r
==
'string'
?
(
<
span
>
{
r
}
</
span
>
i
==
0
?
(
typeof
r
==
'string'
?
(
<
span
>
{
r
}
</
span
>
)
:
(
Object
.
values
(
r
)
)
)
:
typeof
r
==
'string'
?
(
<
span
style=
{
{
marginLeft
:
12
}
}
>
{
r
}
</
span
>
)
:
(
Object
.
values
(
r
)
)
)
:
typeof
r
==
'string'
?
(
<
span
style=
{
{
marginLeft
:
12
}
}
>
{
r
}
</
span
>
)
:
(
','
+
Object
.
values
(
r
)
),
)
','
+
Object
.
values
(
r
)
),
)
:
''
}
</
span
>
);
...
...
@@ -2354,15 +2287,13 @@ ${obj[dataColumn.base52]}
}
else
{
cm
=
(
<
span
>
{
moment
(
parseInt
(
obj
[
begin
.
base52
]))
.
format
(
json
.
format
?
json
.
format
:
'YYYY-MM-DD HH:mm:ss'
,
)
}{
' '
}
{
moment
(
parseInt
(
obj
[
begin
.
base52
])).
format
(
json
.
format
?
json
.
format
:
'YYYY-MM-DD HH:mm:ss'
,
)
}{
' '
}
至
{
' '
}
{
moment
(
parseInt
(
obj
[
end
.
base52
]))
.
format
(
json
.
format
?
json
.
format
:
'YYYY-MM-DD HH:mm:ss'
,
)
}
{
moment
(
parseInt
(
obj
[
end
.
base52
])).
format
(
json
.
format
?
json
.
format
:
'YYYY-MM-DD HH:mm:ss'
,
)
}
</
span
>
);
}
...
...
@@ -2376,16 +2307,14 @@ ${obj[dataColumn.base52]}
if
(
vTime
&&
typeof
vTime
===
'string'
&&
vTime
.
indexOf
(
'-'
)
<=
-
1
)
{
cm
=
(
<
span
>
{
moment
(
parseInt
(
vTime
))
.
format
(
json
.
format
?
json
.
format
:
'YYYY-MM-DD HH:mm:ss'
)
}
{
moment
(
parseInt
(
vTime
)).
format
(
json
.
format
?
json
.
format
:
'YYYY-MM-DD HH:mm:ss'
)
}
</
span
>
);
}
else
{
cm
=
(
<
span
>
{
vTime
?
moment
(
+
new
Date
(
vTime
))
.
format
(
?
moment
(
+
new
Date
(
vTime
)).
format
(
json
.
format
?
json
.
format
:
'YYYY-MM-DD HH:mm:ss'
,
)
:
''
}
...
...
@@ -2430,18 +2359,18 @@ ${obj[dataColumn.base52]}
cm
=
(
<
ul
className=
{
styles
.
imageUl
}
>
{
Array
.
isArray
(
files
)
&&
files
.
map
((
f
,
index2
)
=>
{
return
(
<
li
key=
{
f
.
path
}
>
<
PictureSignature
json=
{
json
}
disabled=
{
true
}
// 只读模式
basicUrl=
{
queryApiActionPath
()
}
fileInfo=
{
f
}
/>
</
li
>
);
})
}
files
.
map
((
f
,
index2
)
=>
{
return
(
<
li
key=
{
f
.
path
}
>
<
PictureSignature
json=
{
json
}
disabled=
{
true
}
// 只读模式
basicUrl=
{
queryApiActionPath
()
}
fileInfo=
{
f
}
/>
</
li
>
);
})
}
</
ul
>
);
}
...
...
@@ -2506,26 +2435,26 @@ ${obj[dataColumn.base52]}
cm
=
(
<
ul
className=
{
styles
.
imageUl
}
>
{
Array
.
isArray
(
files
)
&&
files
.
map
((
f
,
index2
)
=>
{
if
(
get
===
'web'
||
!
this
.
props
.
isPrint
)
{
files
.
map
((
f
,
index2
)
=>
{
if
(
get
===
'web'
||
!
this
.
props
.
isPrint
)
{
return
(
<
li
key=
{
index2
}
>
<
FilePreview
path=
{
queryFileUrl
(
f
.
path
)
}
pathName=
{
f
.
name
}
type=
{
'UploadCom'
}
/>
</
li
>
);
}
return
(
<
li
key=
{
index2
}
>
<
FilePreview
path=
{
queryFileUrl
(
f
.
path
)
}
pathName=
{
f
.
name
}
type=
{
'UploadCom'
}
/>
<
a
target=
"_blank"
key=
{
f
.
filePath
}
href=
{
queryFileUrl
(
f
.
filePath
)
}
>
{
f
.
fileName
}
</
a
>
</
li
>
);
}
return
(
<
li
key=
{
index2
}
>
<
a
target=
"_blank"
key=
{
f
.
filePath
}
href=
{
queryFileUrl
(
f
.
filePath
)
}
>
{
f
.
fileName
}
</
a
>
</
li
>
);
})
}
})
}
</
ul
>
);
}
...
...
@@ -2623,14 +2552,14 @@ ${obj[dataColumn.base52]}
marginLeft
:
5
,
width
:
get
===
'mobile'
?
document
.
documentElement
.
clientWidth
-
10
||
document
.
body
.
clientWidth
-
10
?
document
.
documentElement
.
clientWidth
-
10
||
document
.
body
.
clientWidth
-
10
:
json
.
width
,
height
:
get
===
'mobile'
?
''
:
json
.
height
,
}
}
/>
);
}
}
break
;
...
...
@@ -2800,11 +2729,11 @@ ${obj[dataColumn.base52]}
json
.
vlds
&&
json
.
vlds
.
length
>
0
? json.vlds
: [
{
required
:
required
,
message
:
'请选择'
+
title
,
}
,
],
{
required
:
required
,
message
:
'请选择'
+
title
,
}
,
],
})}
disabled=
{
disabled
}
onClick=
{
checked
=>
{
...
...
@@ -2831,12 +2760,12 @@ ${obj[dataColumn.base52]}
json
.
vlds
&&
json
.
vlds
.
length
>
0
?
json
.
vlds
:
[
{
required
:
required
,
message
:
'请选择'
+
title
,
},
],
})(<
SwitchWeb
json=
{
json
}
disabled=
{
disabled
}
/>);
{
required
:
required
,
message
:
'请选择'
+
title
,
},
],
})(<
SwitchWeb
json=
{
json
}
disabled=
{
disabled
}
/>);
break
;
case
'TextArea'
:
...
...
@@ -2915,10 +2844,7 @@ ${obj[dataColumn.base52]}
otherProps
=
{};
}
}
const
{
disabledInputStyle
=
{},
addonAfter
}
=
otherProps
;
const
{
disabledInputStyle
=
{},
addonAfter
}
=
otherProps
;
let
inputStyle
=
{
width
:
json
.
width
,
};
...
...
@@ -2968,7 +2894,7 @@ ${obj[dataColumn.base52]}
case
'InputHidden'
:
cm
=
getFieldDecorator
(
dataColumn
.
base52
,
{
initialValue
:
initValue
,
})(<
Input
type=
"hidden"
/>);
})(<
Input
type=
"hidden"
/>);
break
;
case
'InputNumber'
:
if
(
json
?.
otherProps
)
{
...
...
@@ -2985,11 +2911,11 @@ ${obj[dataColumn.base52]}
json
.
vlds
&&
json
.
vlds
.
length
>
0
?
json
.
vlds
:
[
{
required
:
required
,
message
:
'请输入'
+
title
,
},
],
{
required
:
required
,
message
:
'请输入'
+
title
,
},
],
})(
<
InputNumber
disabled=
{
disabled
}
...
...
@@ -3032,12 +2958,12 @@ ${obj[dataColumn.base52]}
json
.
vlds
&&
json
.
vlds
.
length
>
0
?
json
.
vlds
:
[
{
required
:
required
,
message
:
'请选择'
+
dataColumn
.
title
,
},
],
})(<
Radio
.
Group
options=
{
options
}
disabled=
{
disabled
}
/>);
{
required
:
required
,
message
:
'请选择'
+
dataColumn
.
title
,
},
],
})(<
Radio
.
Group
options=
{
options
}
disabled=
{
disabled
}
/>);
if
(
get
==
'mobile'
)
{
cm
=
<
div
>
{
cm
}
</
div
>;
if
(
...
...
@@ -3072,12 +2998,12 @@ ${obj[dataColumn.base52]}
json
.
vlds
&&
json
.
vlds
.
length
>
0
?
json
.
vlds
:
[
{
required
:
required
,
message
:
'请选择'
+
dataColumn
.
title
,
},
],
})(<
Checkbox
.
Group
options=
{
options
}
disabled=
{
disabled
}
/>)
}
{
required
:
required
,
message
:
'请选择'
+
dataColumn
.
title
,
},
],
})(<
Checkbox
.
Group
options=
{
options
}
disabled=
{
disabled
}
/>)
}
</
Flex
>
);
...
...
@@ -3107,11 +3033,11 @@ ${obj[dataColumn.base52]}
json
.
vlds
&&
json
.
vlds
.
length
>
0
?
json
.
vlds
:
[
{
required
:
required
,
message
:
'请选择'
+
dataColumn
.
title
,
},
],
{
required
:
required
,
message
:
'请选择'
+
dataColumn
.
title
,
},
],
})(
<
Checkbox
.
Group
options=
{
options
}
...
...
@@ -3132,16 +3058,16 @@ ${obj[dataColumn.base52]}
}
console
.
log
(
initValue
);
cm
=
getFieldDecorator
(
dataColumn
.
base52
,
{
initialValue
:
!
initValue
&&
otherProps
?.
mode
===
'multiple'
?
undefined
:
initValue
,
initialValue
:
!
initValue
&&
otherProps
?.
mode
===
'multiple'
?
undefined
:
initValue
,
rules
:
json
.
vlds
&&
json
.
vlds
.
length
>
0
?
json
.
vlds
:
[
{
required
:
required
,
message
:
'请选择'
+
dataColumn
.
title
,
},
],
{
required
:
required
,
message
:
'请选择'
+
dataColumn
.
title
,
},
],
})(
<
Select
allowClear
...
...
@@ -3154,43 +3080,42 @@ ${obj[dataColumn.base52]}
onFocus=
{
()
=>
{
get
===
'mobile'
// 移动端取消输入键盘弹出
?
setTimeout
(()
=>
{
if
(
document
.
querySelectorAll
(
`.ant-select-search__field`
).
length
>
0
)
{
let
ary
=
[...
document
.
querySelectorAll
(
`.ant-select-search__field`
)];
ary
.
map
(
item
=>
{
item
.
setAttribute
(
'readonly'
,
'readonly'
);
// setTimeout(() =>
{
// ary.map(arr =>
{
// arr.removeAttribute('readonly');
//
})
//
});
});
}
})
if
(
document
.
querySelectorAll
(
`.ant-select-search__field`
).
length
>
0
)
{
let
ary
=
[...
document
.
querySelectorAll
(
`.ant-select-search__field`
)];
ary
.
map
(
item
=>
{
item
.
setAttribute
(
'readonly'
,
'readonly'
);
// setTimeout(() =>
{
// ary.map(arr =>
{
// arr.removeAttribute('readonly');
//
})
//
});
});
}
})
:
null
;
}
}
filterOption=
{
(
input
,
option
)
=>
option
?
option
.
props
.
children
.
toLowerCase
()
.
indexOf
(
input
.
toLowerCase
())
>=
0
?
option
.
props
.
children
.
toLowerCase
().
indexOf
(
input
.
toLowerCase
())
>=
0
:
false
}
{
...
otherProps
}
>
{
json
.
options
&&
Array
.
isArray
(
json
.
options
)
?
json
.
options
.
map
(
r
=>
{
return
(
<
Option
key=
{
r
.
value
}
value=
{
r
.
value
}
>
{
r
.
label
}
</
Option
>
);
})
return
(
<
Option
key=
{
r
.
value
}
value=
{
r
.
value
}
>
{
r
.
label
}
</
Option
>
);
})
:
options
&&
options
instanceof
Array
?
options
.
map
(
r
=>
(
?
options
.
map
(
r
=>
(
<
Option
key=
{
r
.
value
}
value=
{
r
.
value
}
>
{
r
.
label
}
</
Option
>
))
:
''
}
:
''
}
</
Select
>,
);
if
(
...
...
@@ -3228,8 +3153,7 @@ ${obj[dataColumn.base52]}
}
const
filterF
=
function
filter
(
inputValue
,
path
)
{
return
path
.
some
(
option
=>
option
?.
label
?.
toLowerCase
()
?.
indexOf
(
inputValue
.
toLowerCase
())
>
-
1
,
option
=>
option
?.
label
?.
toLowerCase
()?.
indexOf
(
inputValue
.
toLowerCase
())
>
-
1
,
);
};
// if(this.props.uuid === 'id_32691685234912400529714267d34dc585a2'){
...
...
@@ -3246,11 +3170,11 @@ ${obj[dataColumn.base52]}
json
.
vlds
&&
json
.
vlds
.
length
>
0
?
json
.
vlds
:
[
{
required
:
required
,
message
:
'请选择'
+
dataColumn
.
title
,
},
],
{
required
:
required
,
message
:
'请选择'
+
dataColumn
.
title
,
},
],
})(
<
Cascader
// 这里的options 获取方式存在bug 公式会重复调用
options=
{
options
}
...
...
@@ -3272,12 +3196,12 @@ ${obj[dataColumn.base52]}
json
.
vlds
&&
json
.
vlds
.
length
>
0
?
json
.
vlds
:
[
{
required
:
required
,
message
:
'请选择'
+
dataColumn
.
title
,
},
],
})(<
MobileCascader
options=
{
options
}
label=
{
title
}
disabled=
{
disabled
}
json=
{
json
}
/>);
{
required
:
required
,
message
:
'请选择'
+
dataColumn
.
title
,
},
],
})(<
MobileCascader
options=
{
options
}
label=
{
title
}
disabled=
{
disabled
}
json=
{
json
}
/>);
}
if
(
...
...
@@ -3309,22 +3233,22 @@ ${obj[dataColumn.base52]}
json
.
vlds
&&
json
.
vlds
.
length
>
0
?
json
.
vlds
:
[
{
validator
:
(
rule
,
value
,
callback
)
=>
{
let
errors
=
[];
if
(
(
Object
.
keys
(
value
).
length
==
0
||
Object
.
keys
(
value
.
selects
).
length
==
0
)
&&
required
!=
null
&&
required
)
{
errors
.
push
(
new
Error
(
'请选择至少一个'
,
rule
.
field
));
}
callback
(
errors
);
{
validator
:
(
rule
,
value
,
callback
)
=>
{
let
errors
=
[];
if
(
(
Object
.
keys
(
value
).
length
==
0
||
Object
.
keys
(
value
.
selects
).
length
==
0
)
&&
required
!=
null
&&
required
)
{
errors
.
push
(
new
Error
(
'请选择至少一个'
,
rule
.
field
));
}
callback
(
errors
);
},
required
:
required
,
},
required
:
required
,
},
],
],
})(
<
TableSelect
get=
{
get
}
...
...
@@ -3382,15 +3306,13 @@ ${obj[dataColumn.base52]}
if
(
!
isEdit
)
{
cm
=
(
<
span
>
{
moment
(
parseInt
(
obj
[
begin
.
base52
]))
.
format
(
json
.
format
?
json
.
format
:
'YYYY-MM-DD HH:mm:ss'
,
)
}{
' '
}
{
moment
(
parseInt
(
obj
[
begin
.
base52
])).
format
(
json
.
format
?
json
.
format
:
'YYYY-MM-DD HH:mm:ss'
,
)
}{
' '
}
至
{
' '
}
{
moment
(
parseInt
(
obj
[
end
.
base52
]))
.
format
(
json
.
format
?
json
.
format
:
'YYYY-MM-DD HH:mm:ss'
,
)
}
{
moment
(
parseInt
(
obj
[
end
.
base52
])).
format
(
json
.
format
?
json
.
format
:
'YYYY-MM-DD HH:mm:ss'
,
)
}
</
span
>
);
}
else
{
...
...
@@ -3401,11 +3323,11 @@ ${obj[dataColumn.base52]}
json
.
vlds
&&
json
.
vlds
.
length
>
0
?
json
.
vlds
:
[
{
required
:
required
,
message
:
'请选择起止时间'
,
},
],
{
required
:
required
,
message
:
'请选择起止时间'
,
},
],
})(
<
MobileDate
disabled=
{
disabled
}
...
...
@@ -3442,12 +3364,12 @@ ${obj[dataColumn.base52]}
json
.
vlds
&&
json
.
vlds
.
length
>
0
?
json
.
vlds
:
[
{
required
:
required
,
message
:
'请选择起止时间'
,
},
],
})(<
RangePickerDiy
json=
{
json
}
disabled=
{
disabled
}
uuid=
{
uuid
}
/>);
{
required
:
required
,
message
:
'请选择起止时间'
,
},
],
})(<
RangePickerDiy
json=
{
json
}
disabled=
{
disabled
}
uuid=
{
uuid
}
/>);
}
if
(
json
.
label
==
null
)
title
=
'起止时间'
;
break
;
...
...
@@ -3474,11 +3396,11 @@ ${obj[dataColumn.base52]}
json
.
vlds
&&
json
.
vlds
.
length
>
0
?
json
.
vlds
:
[
{
required
:
required
,
message
:
'请选择起止时间'
,
},
],
{
required
:
required
,
message
:
'请选择起止时间'
,
},
],
})(
<
DatePicker
disabled=
{
disabled
}
...
...
@@ -3487,22 +3409,21 @@ ${obj[dataColumn.base52]}
onOpenChange=
{
get
===
'mobile'
?
()
=>
{
// 取消唤起移动端小键盘
setTimeout
(()
=>
{
if
(
document
.
querySelector
(
'.ant-calendar-input '
))
{
document
.
querySelector
(
'.ant-calendar-input '
)
.
setAttribute
(
'readonly'
,
'readonly'
);
setTimeout
(()
=>
{
// 取消唤起移动端小键盘
setTimeout
(()
=>
{
if
(
document
.
querySelector
(
'.ant-calendar-input '
))
{
document
.
querySelector
(
'.ant-calendar-input '
)
.
removeAttribute
(
'readonly'
);
});
}
});
}
:
()
=>
{
}
.
setAttribute
(
'readonly'
,
'readonly'
);
setTimeout
(()
=>
{
document
.
querySelector
(
'.ant-calendar-input '
)
.
removeAttribute
(
'readonly'
);
});
}
});
}
:
()
=>
{}
}
format=
{
json
.
format
?
json
.
format
:
'YYYY-MM-DD HH:mm:ss'
}
{
...
otherProps
}
...
...
@@ -3539,11 +3460,11 @@ ${obj[dataColumn.base52]}
json
?.
vlds
&&
json
?.
vlds
.
length
>
0
?
json
.
vlds
:
[
{
required
,
message
:
'请进行签章'
,
},
],
{
required
,
message
:
'请进行签章'
,
},
],
})(
<
SignArray
// 签章组件 编辑模式
json=
{
json
}
...
...
@@ -3628,12 +3549,12 @@ ${obj[dataColumn.base52]}
json
.
vlds
&&
json
.
vlds
.
length
>
0
?
json
.
vlds
:
[
{
required
:
required
,
message
:
'请输入'
,
},
],
})(<
WangEditor
json=
{
json
}
dataColumn=
{
dataColumn
}
disabled=
{
disabled
}
uuid=
{
uuid
}
/>);
{
required
:
required
,
message
:
'请输入'
,
},
],
})(<
WangEditor
json=
{
json
}
dataColumn=
{
dataColumn
}
disabled=
{
disabled
}
uuid=
{
uuid
}
/>);
break
;
case
'MobileCard'
:
cm
=
getFieldDecorator
(
dataColumn
.
base52
,
{
...
...
@@ -3645,7 +3566,8 @@ ${obj[dataColumn.base52]}
getArguments=
{
this
.
functionArguments
}
tableComProps=
{
this
.
props
}
dataColumn=
{
dataColumn
}
/>);
/>,
);
break
;
case
'RichText'
:
cm
=
getFieldDecorator
(
dataColumn
.
base52
,
{
...
...
@@ -3654,12 +3576,12 @@ ${obj[dataColumn.base52]}
json
.
vlds
&&
json
.
vlds
.
length
>
0
?
json
.
vlds
:
[
{
required
:
required
,
message
:
'请输入'
,
},
],
})(<
DraftEditorCom
placeholder=
{
json
.
placeholder
}
disabled=
{
json
.
disabled
}
/>);
{
required
:
required
,
message
:
'请输入'
,
},
],
})(<
DraftEditorCom
placeholder=
{
json
.
placeholder
}
disabled=
{
json
.
disabled
}
/>);
if
(
get
===
'mobile'
&&
((
json
.
isMobileLabel
!=
null
&&
json
.
isMobileLabel
)
||
...
...
@@ -3685,12 +3607,12 @@ ${obj[dataColumn.base52]}
json
.
vlds
&&
json
.
vlds
.
length
>
0
?
json
.
vlds
:
[
{
required
:
required
,
message
:
'请输入'
+
title
,
},
],
})(<
CronEditorDiy
/>);
{
required
:
required
,
message
:
'请输入'
+
title
,
},
],
})(<
CronEditorDiy
/>);
break
;
case
'LocationCom'
:
cm
=
getFieldDecorator
(
dataColumn
.
base52
,
{
...
...
@@ -3699,23 +3621,22 @@ ${obj[dataColumn.base52]}
json
.
vlds
&&
json
.
vlds
.
length
>
0
?
json
.
vlds
:
[
{
required
,
message
:
'请获取定位信息'
,
validator
:
(
rule
,
valueThis
,
callback
)
=>
{
let
errors
=
[];
console
.
log
(
valueThis
);
if
(
(
!
valueThis
||
!
JSON
.
stringify
(
valueThis
)
.
includes
(
'address'
))
&&
required
)
{
errors
.
push
(
new
Error
(
'请获取定位信息'
,
rule
.
field
));
}
callback
(
errors
);
{
required
,
message
:
'请获取定位信息'
,
validator
:
(
rule
,
valueThis
,
callback
)
=>
{
let
errors
=
[];
console
.
log
(
valueThis
);
if
(
(
!
valueThis
||
!
JSON
.
stringify
(
valueThis
).
includes
(
'address'
))
&&
required
)
{
errors
.
push
(
new
Error
(
'请获取定位信息'
,
rule
.
field
));
}
callback
(
errors
);
},
},
},
],
],
})(
<
LocationCom
get=
{
get
}
...
...
@@ -3801,12 +3722,12 @@ ${obj[dataColumn.base52]}
json
.
vlds
&&
json
.
vlds
.
length
>
0
?
json
.
vlds
:
[
{
required
:
required
,
message
:
'请上传图片'
,
},
],
})(<
ImgUploadCom
json=
{
json
}
disabled=
{
disabled
}
/>);
{
required
:
required
,
message
:
'请上传图片'
,
},
],
})(<
ImgUploadCom
json=
{
json
}
disabled=
{
disabled
}
/>);
if
(
get
===
'mobile'
&&
((
json
.
isMobileLabel
!=
null
&&
json
.
isMobileLabel
)
||
...
...
@@ -3832,12 +3753,12 @@ ${obj[dataColumn.base52]}
json
.
vlds
&&
json
.
vlds
.
length
>
0
?
json
.
vlds
:
[
{
required
:
required
,
message
:
'请上传视频'
,
},
],
})(<
VideoUploadCom
json=
{
json
}
disabled=
{
disabled
}
/>);
{
required
:
required
,
message
:
'请上传视频'
,
},
],
})(<
VideoUploadCom
json=
{
json
}
disabled=
{
disabled
}
/>);
if
(
get
===
'mobile'
&&
((
json
.
isMobileLabel
!=
null
&&
json
.
isMobileLabel
)
||
...
...
@@ -3863,12 +3784,12 @@ ${obj[dataColumn.base52]}
json
.
vlds
&&
json
.
vlds
.
length
>
0
?
json
.
vlds
:
[
{
required
:
required
,
message
:
'请进行签名'
,
},
],
})(<
Signature
width=
{
json
.
width
}
height=
{
json
.
height
}
get=
{
get
}
/>);
{
required
:
required
,
message
:
'请进行签名'
,
},
],
})(<
Signature
width=
{
json
.
width
}
height=
{
json
.
height
}
get=
{
get
}
/>);
if
(
get
===
'mobile'
&&
((
json
.
isMobileLabel
!=
null
&&
json
.
isMobileLabel
)
||
...
...
@@ -3958,12 +3879,16 @@ ${obj[dataColumn.base52]}
)
:
(
''
)
}
<
List
.
Item
extra=
{
cm
}
multipleLine=
{
true
}
>
{
title
}
</
List
.
Item
>
{
/*<Card.Header title={<span style={{ fontSize: 14 }}>{title}: {cm}</span>} />*/
}
{
/*移动端只读模式 组件修改*/
}
{
/*<Card.Body>{cm}</Card.Body>*/
}
{
json
?.
mLabelSpan
===
24
||
json
.
comName
===
'TextArea'
?
(
<
List
.
Item
multipleLine=
{
true
}
align=
{
'top'
}
wrap=
{
true
}
>
<
div
data
-
page
-
comname=
{
json
.
comName
}
className=
{
styles
.
bigTitle
}
>
{
title
}
</
div
>
<
div
>
{
cm
}
</
div
>
</
List
.
Item
>
)
:
(
<
List
.
Item
extra=
{
cm
}
multipleLine=
{
true
}
wrap=
{
true
}
>
<
div
data
-
page
-
comname=
{
json
.
comName
}
>
{
title
}
</
div
>
</
List
.
Item
>
)
}
</
List
>
);
}
...
...
@@ -4088,7 +4013,7 @@ ${obj[dataColumn.base52]}
label=
{
title
}
data
-
cell
-
component
-
name=
{
json
.
comName
||
'no_com'
}
>
<
ShowComName
json=
{
json
}
/>
<
ShowComName
json=
{
json
}
/>
{
cm
}
</
Form
.
Item
>
</>
...
...
@@ -4183,12 +4108,12 @@ ${obj[dataColumn.base52]}
wrapperCol=
{
{
span
:
json
.
wrapperSpan
}
}
label=
{
title
}
>
<
ShowComName
json=
{
json
}
/>
<
ShowComName
json=
{
json
}
/>
{
cm
}
</
Form
.
Item
>
)
:
(
<
Form
.
Item
>
<
ShowComName
json=
{
json
}
/>
<
ShowComName
json=
{
json
}
/>
{
cm
}
</
Form
.
Item
>
)
...
...
one_stop_public/tableCompon/style.less
浏览文件 @
6fdbede9
...
...
@@ -290,3 +290,9 @@
min-height: 50px;
}
}
.bigTitle{
text-align: center;
font-size: 18px;
margin-bottom: 20px;
font-weight: 600;
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论