Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
97b766c0
提交
97b766c0
authored
4月 07, 2020
作者:
chscls@163.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复bug
上级
0f9cd389
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
50 行增加
和
20 行删除
+50
-20
index.jsx
one_stop_public/tableCompon/index.jsx
+50
-20
没有找到文件。
one_stop_public/tableCompon/index.jsx
浏览文件 @
97b766c0
...
@@ -479,8 +479,15 @@ export default class tableCom extends Component {
...
@@ -479,8 +479,15 @@ export default class tableCom extends Component {
return
return
}
}
var
dataColumn
const
bindObj
=
this
.
getColumn
(
'c1'
);
if
(
this
.
props
.
fatherCode
!=
null
)
{
let
dataColumn
=
this
.
props
.
fatherCode
!=
null
?
(
bindObj
?{...
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
)
dataColumn
=
{
base52
:
this
.
props
.
uuid
}
/* if (this.props.fatherCode != null) {
dataColumn = { base52: `${this.props.fatherCode}.[${this.props.index}].${this.props.uuid}` }
dataColumn = { base52: `${this.props.fatherCode}.[${this.props.index}].${this.props.uuid}` }
} else {
} else {
dataColumn = { base52: this.props.uuid }
dataColumn = { base52: this.props.uuid }
...
@@ -494,9 +501,17 @@ export default class tableCom extends Component {
...
@@ -494,9 +501,17 @@ export default class tableCom extends Component {
}
}
}
}
}
}
}
} */
if
(
!
this
.
props
.
isEdit
&&
this
.
props
.
fatherCode
)
{
var
base52
=
dataColumn
.
base52
if
(
bindObj
!=
null
){
dataColumn
.
base52
=
bindObj
.
base52
}
else
{
dataColumn
.
base52
=
this
.
props
.
uuid
}
}
if
(
this
.
dataFilter
.
includes
(
json
.
comName
)
||
json
.
comName
==
"TableSelect"
)
{
if
(
this
.
dataFilter
.
includes
(
json
.
comName
)
||
json
.
comName
==
"TableSelect"
)
{
const
obj2
=
{
...
obj
,
...
props
.
form
.
getFieldsValue
(),
...
props
.
defaultValues
[
this
.
props
.
formKey
]
}
const
obj2
=
{
...
obj
,
...
props
.
form
.
getFieldsValue
(),
...
props
.
defaultValues
[
this
.
props
.
formKey
]
}
this
.
getData
(
json
,
dataColumn
,
obj2
)
this
.
getData
(
json
,
dataColumn
,
obj2
)
...
@@ -659,9 +674,10 @@ export default class tableCom extends Component {
...
@@ -659,9 +674,10 @@ export default class tableCom extends Component {
}
}
break
;
break
;
case
"func"
:
case
"func"
:
if
(
json
.
funcs
!=
null
&&
json
.
funcs
!=
""
)
{
if
(
json
.
funcs
!=
null
&&
json
.
funcs
!=
""
)
{
let
enu
;
let
enu
;
try
{
try
{
this
.
getFunctionValue
(
json
.
funcs
,
{
base52
:
this
.
props
.
uuid
},
json
,()
=>
{
this
.
getFunctionValue
(
json
.
funcs
,
{
base52
:
this
.
props
.
uuid
},
json
,()
=>
{
if
(
init
!=
null
&&
Object
.
keys
(
init
).
length
>
0
)
{
if
(
init
!=
null
&&
Object
.
keys
(
init
).
length
>
0
)
{
...
@@ -687,11 +703,10 @@ export default class tableCom extends Component {
...
@@ -687,11 +703,10 @@ export default class tableCom extends Component {
this
.
setState
({
labels
:
labs
})
this
.
setState
({
labels
:
labs
})
}
else
if
(
!
this
.
props
.
isEdit
&&
Object
.
keys
(
obj
).
length
>
0
)
{
}
else
if
(
!
this
.
props
.
isEdit
&&
Object
.
keys
(
obj
).
length
>
0
)
{
let
base52
=
dataColumn
.
base52
let
base52
=
dataColumn
.
base52
if
(
this
.
props
.
fatherCode
)
{
const
x
=
base52
.
split
(
"."
)
base52
=
x
[
x
.
length
-
1
]
}
const
vlu
=
obj
[
base52
]
const
vlu
=
obj
[
base52
]
const
labs
=
[]
const
labs
=
[]
...
@@ -1098,7 +1113,7 @@ export default class tableCom extends Component {
...
@@ -1098,7 +1113,7 @@ export default class tableCom extends Component {
return
return
} */
} */
const
base52
=
column
.
base52
const
base52
=
column
.
base52
try
{
try
{
var
fun1
=
new
Function
(
"obj"
,
"init"
,
"defaultValues"
,
"env"
,
"index"
,
"fatherCode"
,
"utils"
,
fun
);
var
fun1
=
new
Function
(
"obj"
,
"init"
,
"defaultValues"
,
"env"
,
"index"
,
"fatherCode"
,
"utils"
,
fun
);
const
obj
=
{
...
this
.
props
.
obj
,
...
this
.
props
.
form
.
getFieldsValue
(),
...
this
.
props
.
defaultValues
[
this
.
props
.
formKey
]
}
const
obj
=
{
...
this
.
props
.
obj
,
...
this
.
props
.
form
.
getFieldsValue
(),
...
this
.
props
.
defaultValues
[
this
.
props
.
formKey
]
}
...
@@ -1180,8 +1195,16 @@ export default class tableCom extends Component {
...
@@ -1180,8 +1195,16 @@ export default class tableCom extends Component {
}
}
})
})
}
}
var
dataColumn
if
(
this
.
props
.
fatherCode
!=
null
)
{
const
bindObj
=
this
.
getColumn
(
'c1'
);
let
dataColumn
=
this
.
props
.
fatherCode
!=
null
?
(
bindObj
?{...
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
)
dataColumn
=
{
base52
:
this
.
props
.
uuid
}
/* if (this.props.fatherCode != null) {
dataColumn = { base52: `${this.props.fatherCode}.[${this.props.index}].${this.props.uuid}` }
dataColumn = { base52: `${this.props.fatherCode}.[${this.props.index}].${this.props.uuid}` }
} else {
} else {
dataColumn = { base52: this.props.uuid }
dataColumn = { base52: this.props.uuid }
...
@@ -1195,10 +1218,17 @@ export default class tableCom extends Component {
...
@@ -1195,10 +1218,17 @@ export default class tableCom extends Component {
}
}
}
}
}
}
} */
if
(
!
this
.
props
.
isEdit
&&
this
.
props
.
fatherCode
)
{
if
(
bindObj
!=
null
){
dataColumn
.
base52
=
bindObj
.
base52
}
else
{
dataColumn
.
base52
=
this
.
props
.
uuid
}
}
}
this
.
getData
(
json
,
dataColumn
,
obj
)
this
.
getData
(
json
,
dataColumn
,
obj
)
if
(
json
.
formula
!=
null
&&
json
.
formula
!=
""
)
{
if
(
json
.
formula
!=
null
&&
json
.
formula
!=
""
)
{
this
.
getFunctionValue
(
json
.
formula
,
dataColumn
,
json
)
this
.
getFunctionValue
(
json
.
formula
,
dataColumn
,
json
)
...
@@ -1237,7 +1267,7 @@ export default class tableCom extends Component {
...
@@ -1237,7 +1267,7 @@ export default class tableCom extends Component {
});
});
}
else
if
(
!
this
.
props
.
isEdit
&&
Object
.
keys
(
obj
).
length
>
0
)
{
}
else
if
(
!
this
.
props
.
isEdit
&&
Object
.
keys
(
obj
).
length
>
0
)
{
let
base52
=
dataColumn
.
base52
let
base52
=
dataColumn
.
base52
if
(
this
.
props
.
fatherCode
)
{
if
(
this
.
props
.
fatherCode
)
{
const
x
=
base52
.
split
(
"."
)
const
x
=
base52
.
split
(
"."
)
...
@@ -1373,7 +1403,7 @@ export default class tableCom extends Component {
...
@@ -1373,7 +1403,7 @@ export default class tableCom extends Component {
columnIds
[
key
]
==
null
||
columnIds
[
key
]
==
null
||
mapData
==
null
mapData
==
null
)
{
)
{
return
<></>
;
return
null
;
}
}
const
dataColumn
=
mapData
[
columnIds
[
key
][
columnIds
[
key
].
length
-
1
]];
const
dataColumn
=
mapData
[
columnIds
[
key
][
columnIds
[
key
].
length
-
1
]];
...
@@ -1653,7 +1683,7 @@ export default class tableCom extends Component {
...
@@ -1653,7 +1683,7 @@ export default class tableCom extends Component {
var
required
=
false
;
var
required
=
false
;
const
bindObj
=
this
.
getColumn
(
'c1'
);
const
bindObj
=
this
.
getColumn
(
'c1'
);
var
dataColumn
=
this
.
props
.
fatherCode
!=
null
?
(
bindObj
?{...
bindObj
,
base52
:
`
${
this
.
props
.
fatherCode
}
.[
${
this
.
props
.
index
}
].
${
bindObj
.
base52
}
`
}:
let
dataColumn
=
this
.
props
.
fatherCode
!=
null
?
(
bindObj
?{...
bindObj
,
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
}
`
})
...
@@ -1677,7 +1707,7 @@ export default class tableCom extends Component {
...
@@ -1677,7 +1707,7 @@ export default class tableCom extends Component {
var
initValue
;
var
initValue
;
if
(
init
!=
null
)
{
if
(
init
!=
null
)
{
if
(
this
.
props
.
fatherCode
!=
null
)
{
if
(
this
.
props
.
fatherCode
!=
null
)
{
initValue
=
init
[
this
.
props
.
index
]
!=
null
?
init
[
this
.
props
.
index
][
this
.
props
.
uuid
]
:
null
;
initValue
=
init
[
this
.
props
.
index
]
!=
null
?
init
[
this
.
props
.
index
][
bindObj
?
bindObj
.
base52
:
this
.
props
.
uuid
]
:
null
;
}
else
{
}
else
{
initValue
=
init
[
dataColumn
.
base52
];
initValue
=
init
[
dataColumn
.
base52
];
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论