Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
1bb62ce7
提交
1bb62ce7
authored
10月 20, 2020
作者:
tb53863844
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
开发
上级
899dcf0d
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
202 行增加
和
186 行删除
+202
-186
index.jsx
one_stop_public/tableCompon/index.jsx
+202
-186
没有找到文件。
one_stop_public/tableCompon/index.jsx
浏览文件 @
1bb62ce7
...
@@ -415,9 +415,9 @@ export default class tableCom extends Component {
...
@@ -415,9 +415,9 @@ export default class tableCom extends Component {
onFilter
:
(
value
,
record
)
=>
onFilter
:
(
value
,
record
)
=>
record
[
dataIndex
]
record
[
dataIndex
]
?
record
[
dataIndex
]
?
record
[
dataIndex
]
.
toString
()
.
toString
()
.
toLowerCase
()
.
toLowerCase
()
.
includes
(
value
.
toLowerCase
())
.
includes
(
value
.
toLowerCase
())
:
''
,
:
''
,
onFilterDropdownVisibleChange
:
visible
=>
{
onFilterDropdownVisibleChange
:
visible
=>
{
if
(
visible
)
{
if
(
visible
)
{
...
@@ -490,7 +490,7 @@ export default class tableCom extends Component {
...
@@ -490,7 +490,7 @@ export default class tableCom extends Component {
if
(
this
.
count
.
length
>
10
)
{
if
(
this
.
count
.
length
>
10
)
{
console
.
log
(
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:存在循环风险,1秒内执行超过10次,现已停止执行,请检查,`
,
1
}
列:存在循环风险,1秒内执行超过10次,现已停止执行,请检查,`
,
);
);
return
;
return
;
...
@@ -512,9 +512,9 @@ export default class tableCom extends Component {
...
@@ -512,9 +512,9 @@ export default class tableCom extends Component {
this
.
props
.
fatherCode
!=
null
this
.
props
.
fatherCode
!=
null
?
bindObj
?
bindObj
?
{
?
{
...
bindObj
,
...
bindObj
,
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
bindObj
.
base52
}
`
,
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
bindObj
.
base52
}
`
,
}
}
:
{
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
this
.
props
.
uuid
}
`
}
:
{
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
this
.
props
.
uuid
}
`
}
:
bindObj
;
:
bindObj
;
if
(
this
.
props
.
fatherCode
==
null
&&
dataColumn
==
null
)
if
(
this
.
props
.
fatherCode
==
null
&&
dataColumn
==
null
)
...
@@ -754,7 +754,7 @@ export default class tableCom extends Component {
...
@@ -754,7 +754,7 @@ export default class tableCom extends Component {
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
e
,
);
);
}
}
...
@@ -810,12 +810,12 @@ export default class tableCom extends Component {
...
@@ -810,12 +810,12 @@ export default class tableCom extends Component {
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
e
,
);
);
//message.error(`页面${this.props.formKey}第${this.props.i + 1}行,第${this.props.j + 1}列:公式配置有误,回调函数内部错误${e}`, 10)
//message.error(`页面${this.props.formKey}第${this.props.i + 1}行,第${this.props.j + 1}列:公式配置有误,回调函数内部错误${e}`, 10)
}
}
}
else
if
(
json
.
comName
==
'Echart'
||
json
.
comName
==
'QRCode'
||
json
.
comName
==
'Graph'
)
{
}
else
if
(
json
.
comName
==
'Echart'
||
json
.
comName
==
'QRCode'
||
json
.
comName
==
'Graph'
)
{
try
{
try
{
const
x
=
callback
(
data
);
const
x
=
callback
(
data
);
if
(
x
!=
null
)
{
if
(
x
!=
null
)
{
...
@@ -824,7 +824,7 @@ export default class tableCom extends Component {
...
@@ -824,7 +824,7 @@ export default class tableCom extends Component {
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
e
,
);
);
}
}
...
@@ -836,7 +836,7 @@ export default class tableCom extends Component {
...
@@ -836,7 +836,7 @@ export default class tableCom extends Component {
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
console
.
log
(
`页面
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
`页面
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
e
,
);
);
}
}
...
@@ -845,82 +845,83 @@ export default class tableCom extends Component {
...
@@ -845,82 +845,83 @@ export default class tableCom extends Component {
}
}
return
'norefeshxxxxxxxxxxxxxxxxxxxx'
;
return
'norefeshxxxxxxxxxxxxxxxxxxxx'
;
}
}
this
.
setState
({},
()
=>
{
for
(
let
i
in
params
)
{
for
(
let
i
in
params
)
{
if
(
params
[
i
]
==
null
)
{
if
(
params
[
i
]
==
null
)
{
delete
params
[
i
];
delete
params
[
i
];
}
}
if
(
getToken
()
!=
null
)
{
params
.
token
=
getToken
();
}
}
}
if
(
getToken
()
!=
null
)
{
params
.
token
=
getToken
();
}
const
requestParams
=
params
;
const
requestParams
=
params
;
const
umiRequest
=
extend
({
const
umiRequest
=
extend
({
errorHandler
,
// 默认错误处理
errorHandler
,
// 默认错误处理
credentials
:
'omit'
,
// 默认请求是否带上cookie
credentials
:
'omit'
,
// 默认请求是否带上cookie
mode
:
'cors'
,
mode
:
'cors'
,
...
options
,
...
options
,
});
});
umiRequest
(
url
,
{
umiRequest
(
url
,
{
data
:
requestParams
,
data
:
requestParams
,
method
:
method
,
method
:
method
,
requestType
:
'form'
,
requestType
:
'form'
,
}).
then
(
data
=>
{
}).
then
(
data
=>
{
const
{
reqUrls
}
=
this
.
state
;
const
{
reqUrls
}
=
this
.
state
;
reqUrls
[
url
].
data
=
data
;
reqUrls
[
url
].
data
=
data
;
this
.
setState
({
res
:
data
,
reqUrls
},
()
=>
{
this
.
setState
({
res
:
data
,
reqUrls
},
()
=>
{
if
(
callback
)
{
if
(
callback
)
{
if
(
json
.
optionType
&&
json
.
optionType
==
'func'
)
{
if
(
json
.
optionType
&&
json
.
optionType
==
'func'
)
{
const
res
=
callback
(
data
);
const
res
=
callback
(
data
);
if
(
res
!=
null
&&
!
(
typeof
res
===
'function'
))
{
if
(
res
!=
null
&&
!
(
typeof
res
===
'function'
))
{
this
.
setState
({
options
:
res
,
selectDis
:
false
},
()
=>
{
this
.
setState
({
options
:
res
,
selectDis
:
false
},
()
=>
{
if
(
orgCallback
)
orgCallback
();
if
(
orgCallback
)
orgCallback
();
});
});
}
}
}
else
if
(
json
.
comName
==
'Button'
)
{
}
else
if
(
json
.
comName
==
'Button'
)
{
try
{
try
{
callback
(
data
);
callback
(
data
);
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
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
{
try
{
const
x
=
callback
(
data
);
const
x
=
callback
(
data
);
if
(
x
!=
null
)
{
if
(
x
==
null
||
x
!=
'NaN'
)
this
.
props
.
form
.
setFieldsValue
({
[
base52
]:
x
});
this
.
setState
({
option
:
x
});
}
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
e
,
);
);
}
}
}
else
{
if
(
base52
)
{
try
{
const
x
=
callback
(
data
);
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'
;
return
'norefeshxxxxxxxxxxxxxxxxxxxx'
;
};
};
sqlUtil
=
(
base52
,
json
,
orgCallback
,
sqlKey
,
params
,
callback
,
options
=
{})
=>
{
sqlUtil
=
(
base52
,
json
,
orgCallback
,
sqlKey
,
params
,
callback
,
options
=
{})
=>
{
...
@@ -941,8 +942,23 @@ export default class tableCom extends Component {
...
@@ -941,8 +942,23 @@ export default class tableCom extends Component {
}
}
}
}
}
}
if
(
!
isChange
)
{
const
os
=
sqlKeys
[
sqlKey
].
options
;
if
(
Object
.
keys
(
options
).
length
!=
Object
.
keys
(
os
).
length
)
{
isChange
=
true
;
}
else
{
for
(
var
k
in
options
)
{
if
(
os
[
k
]
==
null
||
options
[
k
]
!=
os
[
k
])
{
isChange
=
true
;
break
;
}
}
}
}
}
else
{
}
else
{
sqlKeys
[
sqlKey
]
=
{
params
:
params
};
sqlKeys
[
sqlKey
]
=
{
params
:
params
,
options
:
options
};
isChange
=
true
;
isChange
=
true
;
}
}
if
(
!
isChange
)
{
if
(
!
isChange
)
{
...
@@ -961,11 +977,11 @@ export default class tableCom extends Component {
...
@@ -961,11 +977,11 @@ export default class tableCom extends Component {
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
e
,
);
);
}
}
}
else
if
(
json
.
comName
==
'Echart'
||
json
.
comName
==
'QRCode'
||
json
.
comName
==
'Graph'
)
{
}
else
if
(
json
.
comName
==
'Echart'
||
json
.
comName
==
'QRCode'
||
json
.
comName
==
'Graph'
)
{
try
{
try
{
const
x
=
callback
(
data
);
const
x
=
callback
(
data
);
if
(
x
!=
null
)
{
if
(
x
!=
null
)
{
...
@@ -974,7 +990,7 @@ export default class tableCom extends Component {
...
@@ -974,7 +990,7 @@ export default class tableCom extends Component {
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
e
,
);
);
}
}
...
@@ -986,7 +1002,7 @@ export default class tableCom extends Component {
...
@@ -986,7 +1002,7 @@ export default class tableCom extends Component {
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
e
,
);
);
}
}
...
@@ -996,14 +1012,14 @@ export default class tableCom extends Component {
...
@@ -996,14 +1012,14 @@ export default class tableCom extends Component {
return
'norefeshxxxxxxxxxxxxxxxxxxxx'
;
return
'norefeshxxxxxxxxxxxxxxxxxxxx'
;
}
}
const
url
=
queryApiActionPath
()
+
'/DataColumnApi/getSqlData'
;
const
url
=
queryApiActionPath
()
+
'/DataColumnApi/getSqlData'
;
this
.
setState
({
sqlKeys
},
()
=>
{
this
.
setState
({
sqlKeys
},
()
=>
{
const
umiRequest
=
extend
({
const
umiRequest
=
extend
({
errorHandler
,
// 默认错误处理
errorHandler
,
// 默认错误处理
credentials
:
options
.
credentials
||
'omit'
,
// 默认请求是否带上cookie
credentials
:
options
.
credentials
||
'omit'
,
// 默认请求是否带上cookie
mode
:
options
.
mode
||
'cors'
mode
:
options
.
mode
||
'cors'
});
});
const
allValues
=
JSON
.
stringify
({
const
allValues
=
JSON
.
stringify
({
...
this
.
props
.
obj
,
...
this
.
props
.
obj
,
...
@@ -1015,7 +1031,7 @@ export default class tableCom extends Component {
...
@@ -1015,7 +1031,7 @@ export default class tableCom extends Component {
if
(
getToken
()
!=
null
)
{
if
(
getToken
()
!=
null
)
{
pp
.
token
=
getToken
();
pp
.
token
=
getToken
();
}
}
umiRequest
(
url
,
{
umiRequest
(
url
,
{
data
:
pp
,
data
:
pp
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -1043,11 +1059,11 @@ export default class tableCom extends Component {
...
@@ -1043,11 +1059,11 @@ export default class tableCom extends Component {
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
e
,
);
);
}
}
}
else
if
(
json
.
comName
==
'Echart'
||
json
.
comName
==
'QRCode'
||
json
.
comName
==
"Graph"
)
{
}
else
if
(
json
.
comName
==
'Echart'
||
json
.
comName
==
'QRCode'
||
json
.
comName
==
"Graph"
)
{
try
{
try
{
const
x
=
callback
(
data
);
const
x
=
callback
(
data
);
if
(
x
!=
null
)
{
if
(
x
!=
null
)
{
...
@@ -1056,7 +1072,7 @@ export default class tableCom extends Component {
...
@@ -1056,7 +1072,7 @@ export default class tableCom extends Component {
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
e
,
);
);
}
}
...
@@ -1068,7 +1084,7 @@ export default class tableCom extends Component {
...
@@ -1068,7 +1084,7 @@ export default class tableCom extends Component {
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,回调函数内部错误,`
,
1
}
列:公式配置有误,回调函数内部错误,`
,
e
,
e
,
);
);
}
}
...
@@ -1082,7 +1098,7 @@ export default class tableCom extends Component {
...
@@ -1082,7 +1098,7 @@ export default class tableCom extends Component {
};
};
getFunctionValue
=
(
fun
,
column
,
json
,
callback
)
=>
{
getFunctionValue
=
(
fun
,
column
,
json
,
callback
)
=>
{
if
(
this
.
props
.
safe
)
return
if
(
this
.
props
.
safe
)
return
const
base52
=
column
.
base52
;
const
base52
=
column
.
base52
;
/**
/**
...
@@ -1121,7 +1137,7 @@ export default class tableCom extends Component {
...
@@ -1121,7 +1137,7 @@ export default class tableCom extends Component {
};
};
}
else
{
}
else
{
obj
=
{
obj
=
{
...(
this
.
props
.
fatherObj
?
this
.
props
.
fatherObj
:
{}),
...(
this
.
props
.
fatherObj
?
this
.
props
.
fatherObj
:
{}),
...
this
.
props
.
obj
,
...
this
.
props
.
obj
,
...
this
.
props
.
form
.
getFieldsValue
(),
...
this
.
props
.
form
.
getFieldsValue
(),
...
this
.
props
.
defaultValues
[
this
.
props
.
formKey
],
...
this
.
props
.
defaultValues
[
this
.
props
.
formKey
],
...
@@ -1147,7 +1163,7 @@ export default class tableCom extends Component {
...
@@ -1147,7 +1163,7 @@ export default class tableCom extends Component {
moment
:
moment
,
moment
:
moment
,
sql
:
this
.
sqlUtil
.
bind
(
this
,
base52
,
json
,
callback
),
sql
:
this
.
sqlUtil
.
bind
(
this
,
base52
,
json
,
callback
),
message
:
message
,
message
:
message
,
importExcel
:
this
.
props
.
importExcel
,
importExcel
:
this
.
props
.
importExcel
,
router
:
router
,
router
:
router
,
uuid
:
UUID
,
uuid
:
UUID
,
setValues
:
this
.
setValues
.
bind
(
this
,
base52
,
json
),
setValues
:
this
.
setValues
.
bind
(
this
,
base52
,
json
),
...
@@ -1182,7 +1198,7 @@ export default class tableCom extends Component {
...
@@ -1182,7 +1198,7 @@ export default class tableCom extends Component {
if
(
callback
)
callback
();
if
(
callback
)
callback
();
});
});
}
}
}
else
if
(
json
.
comName
==
'Echart'
||
json
.
comName
==
'QRCode'
||
json
.
comName
==
'Graph'
)
{
}
else
if
(
json
.
comName
==
'Echart'
||
json
.
comName
==
'QRCode'
||
json
.
comName
==
'Graph'
)
{
this
.
setState
({
option
:
value
});
this
.
setState
({
option
:
value
});
}
else
{
}
else
{
try
{
try
{
...
@@ -1190,7 +1206,7 @@ export default class tableCom extends Component {
...
@@ -1190,7 +1206,7 @@ export default class tableCom extends Component {
}
catch
{
}
catch
{
console
.
log
(
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,函数内部错误,`
,
1
}
列:公式配置有误,函数内部错误,`
,
e
,
e
,
);
);
}
}
...
@@ -1200,7 +1216,7 @@ export default class tableCom extends Component {
...
@@ -1200,7 +1216,7 @@ export default class tableCom extends Component {
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
console
.
log
(
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
`页面
${
this
.
props
.
currentFormTitle
}
${
this
.
props
.
formKey
}
${
json
.
comName
}
第
${
this
.
props
.
i
+
1
}
行,第
${
this
.
props
.
j
+
1
}
列:公式配置有误,暂存失败,`
,
1
}
列:公式配置有误,暂存失败,`
,
e
,
e
,
);
);
}
}
...
@@ -1227,9 +1243,9 @@ export default class tableCom extends Component {
...
@@ -1227,9 +1243,9 @@ export default class tableCom extends Component {
this
.
props
.
fatherCode
!=
null
this
.
props
.
fatherCode
!=
null
?
bindObj
?
bindObj
?
{
?
{
...
bindObj
,
...
bindObj
,
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
bindObj
.
base52
}
`
,
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
bindObj
.
base52
}
`
,
}
}
:
{
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
this
.
props
.
uuid
}
`
}
:
{
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
this
.
props
.
uuid
}
`
}
:
bindObj
;
:
bindObj
;
if
(
this
.
props
.
fatherCode
==
null
&&
dataColumn
==
null
)
if
(
this
.
props
.
fatherCode
==
null
&&
dataColumn
==
null
)
...
@@ -1428,7 +1444,7 @@ export default class tableCom extends Component {
...
@@ -1428,7 +1444,7 @@ export default class tableCom extends Component {
isEdit
,
isEdit
,
datas
,
datas
,
taskAssignee
,
taskAssignee
,
userId
,
i
,
userId
,
i
,
j
,
j
,
isPreview
,
isPreview
,
currentFormTitle
,
currentFormTitle
,
...
@@ -1474,7 +1490,7 @@ export default class tableCom extends Component {
...
@@ -1474,7 +1490,7 @@ export default class tableCom extends Component {
<
Neo4jD3Com
<
Neo4jD3Com
key=
{
this
.
props
.
uuid
}
key=
{
this
.
props
.
uuid
}
json=
{
json
}
json=
{
json
}
option=
{
this
.
state
.
option
||
[]
}
/>
option=
{
this
.
state
.
option
||
[]
}
/>
);
);
}
}
...
@@ -1495,7 +1511,7 @@ export default class tableCom extends Component {
...
@@ -1495,7 +1511,7 @@ export default class tableCom extends Component {
})(<
Input
type=
"hidden"
/>)
}{
' '
}
})(<
Input
type=
"hidden"
/>)
}{
' '
}
<
ZdyTable
<
ZdyTable
hfInstance=
{
this
.
props
.
hfInstance
}
hfInstance=
{
this
.
props
.
hfInstance
}
currentFormTitle=
{
this
.
props
.
getCurrentFormTitle
?
this
.
props
.
getCurrentFormTitle
(
fk
):
null
}
currentFormTitle=
{
this
.
props
.
getCurrentFormTitle
?
this
.
props
.
getCurrentFormTitle
(
fk
)
:
null
}
getCellValue=
{
getCellValue
}
getCellValue=
{
getCellValue
}
taskAssignee=
{
taskAssignee
}
taskAssignee=
{
taskAssignee
}
isWebPrint=
{
this
.
props
.
isWebPrint
||
false
}
isWebPrint=
{
this
.
props
.
isWebPrint
||
false
}
...
@@ -1521,9 +1537,9 @@ export default class tableCom extends Component {
...
@@ -1521,9 +1537,9 @@ export default class tableCom extends Component {
</>
</>
);
);
}
}
if
(
json
.
comName
==
'Excel'
)
{
if
(
json
.
comName
==
'Excel'
)
{
const
value
=
getCellValue
(
i
,
j
,
currentFormTitle
)
const
value
=
getCellValue
(
i
,
j
,
currentFormTitle
)
const
xx
=
<
div
style=
{
{
textAlign
:
"center"
,
height
:
value
==
null
?
20
:
null
}
}
>
{
value
}
</
div
>
const
xx
=
<
div
style=
{
{
textAlign
:
"center"
,
height
:
value
==
null
?
20
:
null
}
}
>
{
value
}
</
div
>
return
xx
;
return
xx
;
}
}
if
(
json
.
comName
==
'Label'
)
{
if
(
json
.
comName
==
'Label'
)
{
...
@@ -1633,8 +1649,8 @@ export default class tableCom extends Component {
...
@@ -1633,8 +1649,8 @@ export default class tableCom extends Component {
{
get
===
'mobile'
?
<
br
/>
:
''
}
{
get
===
'mobile'
?
<
br
/>
:
''
}
</
span
>
</
span
>
)
:
(
)
:
(
''
''
);
);
break
;
break
;
case
'UploadCom'
:
case
'UploadCom'
:
...
@@ -1783,8 +1799,8 @@ export default class tableCom extends Component {
...
@@ -1783,8 +1799,8 @@ export default class tableCom extends Component {
</
span
>
</
span
>
</>
</>
)
:
(
)
:
(
''
''
)
}
)
}
</
Col
>
</
Col
>
<
Col
<
Col
span=
{
json
.
wrapperSpan
}
span=
{
json
.
wrapperSpan
}
...
@@ -1851,9 +1867,9 @@ export default class tableCom extends Component {
...
@@ -1851,9 +1867,9 @@ export default class tableCom extends Component {
this
.
props
.
fatherCode
!=
null
this
.
props
.
fatherCode
!=
null
?
bindObj
?
bindObj
?
{
?
{
...
bindObj
,
...
bindObj
,
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
bindObj
.
base52
}
`
,
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
bindObj
.
base52
}
`
,
}
}
:
{
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
this
.
props
.
uuid
}
`
}
:
{
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
this
.
props
.
uuid
}
`
}
:
bindObj
;
:
bindObj
;
...
@@ -1962,18 +1978,18 @@ export default class tableCom extends Component {
...
@@ -1962,18 +1978,18 @@ export default class tableCom extends Component {
<
span
>
<
span
>
{
labels
!=
null
{
labels
!=
null
?
labels
.
map
((
r
,
i
)
=>
?
labels
.
map
((
r
,
i
)
=>
i
==
0
?
(
i
==
0
?
(
typeof
r
==
'string'
?
(
typeof
r
==
'string'
?
(
<
span
>
{
r
}
</
span
>
<
span
>
{
r
}
</
span
>
)
:
(
)
:
(
Object
.
values
(
r
)
Object
.
values
(
r
)
)
)
)
:
typeof
r
==
'string'
?
(
)
:
typeof
r
==
'string'
?
(
<
span
style=
{
{
marginLeft
:
12
}
}
>
{
r
}
</
span
>
<
span
style=
{
{
marginLeft
:
12
}
}
>
{
r
}
</
span
>
)
:
(
)
:
(
','
+
Object
.
values
(
r
)
','
+
Object
.
values
(
r
)
),
),
)
)
:
''
}
:
''
}
</
span
>
</
span
>
);
);
...
@@ -2051,8 +2067,8 @@ export default class tableCom extends Component {
...
@@ -2051,8 +2067,8 @@ export default class tableCom extends Component {
<
span
>
<
span
>
{
obj
[
dataColumn
.
base52
]
{
obj
[
dataColumn
.
base52
]
?
moment
(
+
new
Date
(
obj
[
dataColumn
.
base52
])).
format
(
?
moment
(
+
new
Date
(
obj
[
dataColumn
.
base52
])).
format
(
json
.
format
?
json
.
format
:
'YYYY-MM-DD HH:mm:ss'
,
json
.
format
?
json
.
format
:
'YYYY-MM-DD HH:mm:ss'
,
)
)
:
''
}
:
''
}
</
span
>
</
span
>
);
);
...
@@ -2166,11 +2182,11 @@ export default class tableCom extends Component {
...
@@ -2166,11 +2182,11 @@ export default class tableCom extends Component {
height=
{
json
.
height
}
height=
{
json
.
height
}
/>
/>
)
:
(
)
:
(
<
img
<
img
src=
{
config
.
httpServer
+
obj
[
dataColumn
.
base52
]
}
src=
{
config
.
httpServer
+
obj
[
dataColumn
.
base52
]
}
style=
{
{
width
:
json
.
width
,
height
:
json
.
height
}
}
style=
{
{
width
:
json
.
width
,
height
:
json
.
height
}
}
/>
/>
);
);
}
}
break
;
break
;
...
@@ -2193,7 +2209,7 @@ export default class tableCom extends Component {
...
@@ -2193,7 +2209,7 @@ export default class tableCom extends Component {
case
'ChildForm'
:
case
'ChildForm'
:
const
xxxxx
=
obj
[
dataColumn
.
base52
];
const
xxxxx
=
obj
[
dataColumn
.
base52
];
if
(
xxxxx
==
null
)
{
if
(
xxxxx
==
null
)
{
cm
=
<></>;
Chil
cm
=
<></>;
Chil
break
;
break
;
}
}
if
(
Object
.
keys
(
xxxxx
).
length
>
0
)
{
if
(
Object
.
keys
(
xxxxx
).
length
>
0
)
{
...
@@ -2403,7 +2419,7 @@ export default class tableCom extends Component {
...
@@ -2403,7 +2419,7 @@ export default class tableCom extends Component {
}
}
>
>
{
(
json
.
isMobileLabel
!=
null
&&
json
.
isMobileLabel
)
||
{
(
json
.
isMobileLabel
!=
null
&&
json
.
isMobileLabel
)
||
(
json
.
isMobileLabel
==
null
&&
json
.
isLabel
)
(
json
.
isMobileLabel
==
null
&&
json
.
isLabel
)
?
title
?
title
:
''
}
:
''
}
</
MobileList
.
Item
>
</
MobileList
.
Item
>
...
@@ -2600,25 +2616,25 @@ export default class tableCom extends Component {
...
@@ -2600,25 +2616,25 @@ export default class tableCom extends Component {
getPopupContainer=
{
getPopupContainer=
{
this
.
props
.
isDynamic
&&
document
.
querySelector
(
'#dynamic_div'
)
this
.
props
.
isDynamic
&&
document
.
querySelector
(
'#dynamic_div'
)
?
()
=>
{
?
()
=>
{
return
document
.
querySelector
(
'#dynamic_div'
);
return
document
.
querySelector
(
'#dynamic_div'
);
}
}
:
''
:
''
}
}
onFocus=
{
()
=>
{
onFocus=
{
()
=>
{
get
===
'mobile'
// 移动端取消输入键盘弹出
get
===
'mobile'
// 移动端取消输入键盘弹出
?
setTimeout
(()
=>
{
?
setTimeout
(()
=>
{
if
(
document
.
querySelectorAll
(
`.ant-select-search__field`
).
length
>
0
)
{
if
(
document
.
querySelectorAll
(
`.ant-select-search__field`
).
length
>
0
)
{
let
ary
=
[...
document
.
querySelectorAll
(
`.ant-select-search__field`
)];
let
ary
=
[...
document
.
querySelectorAll
(
`.ant-select-search__field`
)];
ary
.
map
(
item
=>
{
ary
.
map
(
item
=>
{
item
.
setAttribute
(
'readonly'
,
'readonly'
);
item
.
setAttribute
(
'readonly'
,
'readonly'
);
// setTimeout(() =>
{
// setTimeout(() =>
{
// ary.map(arr =>
{
// ary.map(arr =>
{
// arr.removeAttribute('readonly');
// arr.removeAttribute('readonly');
//
})
//
})
//
});
//
});
});
});
}
}
})
})
:
null
;
:
null
;
}
}
}
}
filterOption=
{
(
input
,
option
)
=>
filterOption=
{
(
input
,
option
)
=>
...
@@ -2629,10 +2645,10 @@ export default class tableCom extends Component {
...
@@ -2629,10 +2645,10 @@ export default class tableCom extends Component {
>
>
{
options
{
options
?
options
.
map
(
r
=>
(
?
options
.
map
(
r
=>
(
<
Option
key=
{
r
.
value
}
value=
{
r
.
value
}
>
<
Option
key=
{
r
.
value
}
value=
{
r
.
value
}
>
{
r
.
label
}
{
r
.
label
}
</
Option
>
</
Option
>
))
))
:
''
}
:
''
}
</
Select
>,
</
Select
>,
);
);
...
@@ -2665,22 +2681,22 @@ export default class tableCom extends Component {
...
@@ -2665,22 +2681,22 @@ export default class tableCom extends Component {
json
.
vlds
&&
json
.
vlds
.
length
>
0
json
.
vlds
&&
json
.
vlds
.
length
>
0
?
json
.
vlds
?
json
.
vlds
:
[
:
[
{
{
validator
:
(
rule
,
value
,
callback
)
=>
{
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
if
(
(
Object
.
keys
(
value
).
length
==
0
||
(
Object
.
keys
(
value
).
length
==
0
||
Object
.
keys
(
value
.
selects
).
length
==
0
)
&&
Object
.
keys
(
value
.
selects
).
length
==
0
)
&&
required
!=
null
&&
required
!=
null
&&
required
required
)
{
)
{
var
errors
=
[];
var
errors
=
[];
errors
.
push
(
new
Error
(
'请选择至少一个'
,
rule
.
field
));
errors
.
push
(
new
Error
(
'请选择至少一个'
,
rule
.
field
));
}
}
callback
(
errors
);
callback
(
errors
);
},
required
:
required
,
},
},
],
required
:
required
,
},
],
})(
})(
<
TableSelect
<
TableSelect
get=
{
get
}
get=
{
get
}
...
@@ -2795,21 +2811,21 @@ export default class tableCom extends Component {
...
@@ -2795,21 +2811,21 @@ export default class tableCom extends Component {
onOpenChange=
{
onOpenChange=
{
get
===
'mobile'
get
===
'mobile'
?
()
=>
{
?
()
=>
{
// 取消唤起移动端小键盘
// 取消唤起移动端小键盘
setTimeout
(()
=>
{
setTimeout
(()
=>
{
if
(
document
.
querySelector
(
'.ant-calendar-input '
))
{
if
(
document
.
querySelector
(
'.ant-calendar-input '
))
{
document
.
querySelector
(
'.ant-calendar-input '
)
.
setAttribute
(
'readonly'
,
'readonly'
);
setTimeout
(()
=>
{
document
document
.
querySelector
(
'.ant-calendar-input '
)
.
querySelector
(
'.ant-calendar-input '
)
.
setAttribute
(
'readonly'
,
'readonly'
);
.
removeAttribute
(
'readonly'
);
setTimeout
(()
=>
{
});
document
}
.
querySelector
(
'.ant-calendar-input '
)
});
.
removeAttribute
(
'readonly'
);
}
});
:
()
=>
{
}
}
});
}
:
()
=>
{}
}
}
format=
{
json
.
format
?
json
.
format
:
'YYYY-MM-DD HH:mm:ss'
}
format=
{
json
.
format
?
json
.
format
:
'YYYY-MM-DD HH:mm:ss'
}
/>,
/>,
...
@@ -3100,8 +3116,8 @@ export default class tableCom extends Component {
...
@@ -3100,8 +3116,8 @@ export default class tableCom extends Component {
/>
/>
</
FormModal
>
</
FormModal
>
)
:
(
)
:
(
''
''
)
}
)
}
<
Card
.
Header
title=
{
<
span
style=
{
{
fontSize
:
14
}
}
>
{
title
}
:
</
span
>
}
/>
<
Card
.
Header
title=
{
<
span
style=
{
{
fontSize
:
14
}
}
>
{
title
}
:
</
span
>
}
/>
<
Card
.
Body
>
{
cm
}
</
Card
.
Body
>
<
Card
.
Body
>
{
cm
}
</
Card
.
Body
>
</
Card
>
</
Card
>
...
@@ -3179,8 +3195,8 @@ export default class tableCom extends Component {
...
@@ -3179,8 +3195,8 @@ export default class tableCom extends Component {
/>
/>
</
FormModal
>
</
FormModal
>
)
:
(
)
:
(
''
''
)
}
)
}
</
Row
>
</
Row
>
);
);
}
else
{
}
else
{
...
@@ -3213,8 +3229,8 @@ export default class tableCom extends Component {
...
@@ -3213,8 +3229,8 @@ export default class tableCom extends Component {
/>
/>
</
FormModal
>
</
FormModal
>
)
:
(
)
:
(
''
''
)
}
)
}
<
Form
.
Item
<
Form
.
Item
labelCol=
{
{
span
:
json
.
labelSpan
}
}
labelCol=
{
{
span
:
json
.
labelSpan
}
}
wrapperCol=
{
{
span
:
json
.
wrapperSpan
}
}
wrapperCol=
{
{
span
:
json
.
wrapperSpan
}
}
...
@@ -3255,8 +3271,8 @@ export default class tableCom extends Component {
...
@@ -3255,8 +3271,8 @@ export default class tableCom extends Component {
/>
/>
</
FormModal
>
</
FormModal
>
)
:
(
)
:
(
''
''
)
}
)
}
{
cm
}
{
cm
}
</>
</>
);
);
...
@@ -3291,8 +3307,8 @@ export default class tableCom extends Component {
...
@@ -3291,8 +3307,8 @@ export default class tableCom extends Component {
/>
/>
</
FormModal
>
</
FormModal
>
)
:
(
)
:
(
''
''
)
}
)
}
{
json
.
isMobileLabel
&&
!
isEdit
&&
get
==
'mobile'
?
(
{
json
.
isMobileLabel
&&
!
isEdit
&&
get
==
'mobile'
?
(
<
MobileItem
<
MobileItem
isPreview=
{
isPreview
}
isPreview=
{
isPreview
}
...
@@ -3312,11 +3328,11 @@ export default class tableCom extends Component {
...
@@ -3312,11 +3328,11 @@ export default class tableCom extends Component {
{
cm
}
{
cm
}
</
Form
.
Item
>
</
Form
.
Item
>
)
:
(
)
:
(
<
Form
.
Item
>
{
cm
}
</
Form
.
Item
>
<
Form
.
Item
>
{
cm
}
</
Form
.
Item
>
)
)
)
:
(
)
:
(
cm
cm
)
}
)
}
</>
</>
);
);
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论