Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
e07277f3
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1429
Star
162
Fork
130
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
e07277f3
编写于
6月 22, 2023
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
下拉框组件显示类型修改为文本显示
上级
5281d68b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
17 deletion
+10
-17
web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
...s/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
+10
-17
未找到文件。
web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
浏览文件 @
e07277f3
...
@@ -405,7 +405,7 @@ var dsFormUtil = {
...
@@ -405,7 +405,7 @@ var dsFormUtil = {
$
(
"
#
"
+
boxId
).
append
(
html
+
jsCon
);
$
(
"
#
"
+
boxId
).
append
(
html
+
jsCon
);
}
else
if
(
showType
==
-
1
)
{
}
else
if
(
showType
==
-
1
)
{
// 组件展示类型为【自定义】
// 组件展示类型为【自定义】
content
.
value
=
d
sFormUtil
.
getContentLinkedDataValue
(
content
,
value
,
data
)
;
content
.
value
=
d
ata
;
var
jsonStr
=
{
bean
:
content
};
var
jsonStr
=
{
bean
:
content
};
var
html
=
getDataUseHandlebars
(
'
{{#bean}}
'
+
component
.
detailHtmlContent
+
'
{{/bean}}
'
,
jsonStr
);
var
html
=
getDataUseHandlebars
(
'
{{#bean}}
'
+
component
.
detailHtmlContent
+
'
{{/bean}}
'
,
jsonStr
);
var
html_js
=
getDataUseHandlebars
(
'
{{#bean}}
'
+
component
.
detailJsContent
+
'
{{/bean}}
'
,
jsonStr
);
var
html_js
=
getDataUseHandlebars
(
'
{{#bean}}
'
+
component
.
detailJsContent
+
'
{{/bean}}
'
,
jsonStr
);
...
@@ -554,7 +554,7 @@ var dsFormUtil = {
...
@@ -554,7 +554,7 @@ var dsFormUtil = {
return
''
;
return
''
;
},
},
// 获取显示值
//
详情页
获取显示值
getContentLinkedDataValue
:
function
(
content
,
value
,
data
)
{
getContentLinkedDataValue
:
function
(
content
,
value
,
data
)
{
if
(
isNull
(
value
)
&&
value
+
''
!=
'
0
'
)
{
if
(
isNull
(
value
)
&&
value
+
''
!=
'
0
'
)
{
return
null
;
return
null
;
...
@@ -573,7 +573,7 @@ var dsFormUtil = {
...
@@ -573,7 +573,7 @@ var dsFormUtil = {
if
(
typeof
obj
==
'
string
'
)
{
if
(
typeof
obj
==
'
string
'
)
{
obj
=
JSON
.
parse
(
obj
);
obj
=
JSON
.
parse
(
obj
);
}
}
return
getInPoingArr
(
json
,
"
id
"
,
value
,
"
name
"
);
return
getInPoingArr
(
obj
,
"
id
"
,
value
,
"
name
"
);
}
else
if
(
dataType
==
2
)
{
}
else
if
(
dataType
==
2
)
{
// 枚举
// 枚举
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
customAttr
.
objectId
,
'
id
'
,
value
,
'
name
'
);
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
customAttr
.
objectId
,
'
id
'
,
value
,
'
name
'
);
...
@@ -582,20 +582,13 @@ var dsFormUtil = {
...
@@ -582,20 +582,13 @@ var dsFormUtil = {
return
sysDictDataUtil
.
getDictDataNameByCodeAndKey
(
customAttr
.
objectId
,
value
);
return
sysDictDataUtil
.
getDictDataNameByCodeAndKey
(
customAttr
.
objectId
,
value
);
}
else
if
(
dataType
==
4
)
{
}
else
if
(
dataType
==
4
)
{
// 自定义接口
// 自定义接口
var
businessApi
=
customAttr
.
businessApi
;
var
key
=
attrDefinition
.
attrKey
;
var
params
=
{};
key
=
dsFormUtil
.
getKeyIdToMation
(
key
);
$
.
each
(
businessApi
.
params
,
function
(
key
,
value
)
{
var
tmp
=
data
[
key
];
var
realValue
=
""
;
if
(
isNull
(
tmp
))
{
eval
(
'
realValue =
'
+
value
);
return
''
;
params
[
key
]
=
realValue
;
}
});
return
tmp
.
name
||
tmp
.
title
;
var
url
=
""
;
var
obj
=
[];
eval
(
'
url =
'
+
businessApi
.
serviceStr
+
'
+ "
'
+
businessApi
.
api
+
'
"
'
);
AjaxPostUtil
.
request
({
url
:
url
,
params
:
params
,
type
:
'
json
'
,
method
:
businessApi
.
method
,
callback
:
function
(
json
)
{
obj
=
json
.
rows
;
},
async
:
false
});
return
getInPoingArr
(
obj
,
"
id
"
,
value
,
"
name
"
);
}
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录