Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
2651542b
提交
2651542b
authored
4月 26, 2020
作者:
徐立
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
完成中台函数库 数据断言函数封装
上级
cc906839
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
19 行增加
和
8 行删除
+19
-8
index.jsx
one_stop_public/Table/index.jsx
+13
-2
functionList.js
one_stop_public/excelInitFuc/functionList.js
+0
-0
index.jsx
one_stop_public/tableCompon/index.jsx
+3
-2
request.js
one_stop_public/utils/request.js
+3
-4
没有找到文件。
one_stop_public/Table/index.jsx
浏览文件 @
2651542b
...
...
@@ -358,7 +358,15 @@ export default class ZdyTable extends Component {
render
()
{
let
{
width
,
isBorder
,
sqlData
,
mapData
,
defaultBinds
,
defaultValues
,
items
,
init
,
currentFormKey
,
isEdit
,
datas
,
isReady
,
formConfig
,
formCode
,
formId
}
=
this
.
state
let
{
border
,
get
,
obj
,
index
,
fatherCode
,
routerState
}
=
this
.
props
let
{
border
,
get
,
obj
,
index
,
fatherCode
,
routerState
,
// 场景设计器共享路由参数
messageData
,
// 场景设计器共享变量参数 设计器监听到参数发生变化后会重新渲染组件
}
=
this
.
props
let
style
=
{}
if
(
formConfig
.
style
!=
null
)
{
try
{
...
...
@@ -481,6 +489,7 @@ export default class ZdyTable extends Component {
sqlData=
{
sqlData
}
defaultValues=
{
defaultValues
||
{}
}
// 接口中的默认值
routerState=
{
routerState
}
// 兼容表单设计器路由传参
messageData=
{
messageData
}
// 场景设计器共享变量参数
/>
</
td
>
}
...
...
@@ -561,7 +570,9 @@ export default class ZdyTable extends Component {
json=
{
ary
.
content
}
uuid=
{
ary
.
uuid
}
routerState=
{
routerState
}
// 兼容表单设计器路由传参
defaultValues=
{
defaultValues
||
{}
}
/></>
defaultValues=
{
defaultValues
||
{}
}
messageData=
{
messageData
}
// 场景设计器共享变量参数
/></>
})
}
</
div
>)
...
...
one_stop_public/excelInitFuc/functionList.js
浏览文件 @
2651542b
差异被折叠。
点击展开。
one_stop_public/tableCompon/index.jsx
浏览文件 @
2651542b
...
...
@@ -1127,7 +1127,7 @@ export default class tableCom extends Component {
})
})
try
{
var
fun1
=
new
Function
(
"obj"
,
"init"
,
"defaultValues"
,
"env"
,
"index"
,
"fatherCode"
,
"utils"
,
"$"
,
"routerState"
,
fun
);
var
fun1
=
new
Function
(
"obj"
,
"init"
,
"defaultValues"
,
"env"
,
"index"
,
"fatherCode"
,
"utils"
,
"$"
,
"routerState"
,
'shareData'
,
fun
);
let
obj
if
(
!
this
.
props
.
isEdit
&&
this
.
props
.
fatherCode
){
...
...
@@ -1150,7 +1150,8 @@ export default class tableCom extends Component {
render
:
this
.
getRender
,
base64
:
getBase64
,
},
functionObj
,
this
.
props
.
routerState
this
.
props
.
routerState
,
this
.
props
.
messageData
,
)
if
(
base52
)
{
...
...
one_stop_public/utils/request.js
浏览文件 @
2651542b
...
...
@@ -33,12 +33,11 @@ var canReportError = true;
const
errorHandler
=
error
=>
{
const
{
response
}
=
error
;
console
.
log
(
process
.
env
.
NODE_ENV
)
if
(
response
&&
response
.
status
)
{
const
errorText
=
codeMessage
[
response
.
status
]
||
response
.
statusText
;
notification
.
error
({
message
:
`请求错误`
,
description
:
process
.
env
.
NODE_ENV
===
'development'
?
errorText
:
''
,
description
:
errorText
,
});
if
(
response
.
status
===
401
)
{
...
...
@@ -98,14 +97,14 @@ export const request = (url, data, options = {}) => {
if
(
response
.
errCode
||
response
.
errMsg
)
{
notification
.
error
({
message
:
`请求错误`
,
description
:
process
.
env
.
NODE_ENV
===
'development'
?
response
.
errMsg
:
''
,
description
:
response
.
errMsg
,
});
return
;
}
if
(
response
.
errcode
)
{
notification
.
error
({
message
:
`请求错误`
,
description
:
process
.
env
.
NODE_ENV
===
'development'
?
response
.
errmsg
:
''
,
description
:
response
.
errmsg
,
});
return
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论