Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
f64436a2
提交
f64436a2
authored
12月 23, 2020
作者:
潘鹏
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
attributes
上级
35167d10
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
15 行增加
和
3 行删除
+15
-3
attributes.js
platform-admin/src/main/webapp/js/sys/attributes.js
+15
-3
没有找到文件。
platform-admin/src/main/webapp/js/sys/attributes.js
浏览文件 @
f64436a2
...
@@ -4,9 +4,17 @@ $(function () {
...
@@ -4,9 +4,17 @@ $(function () {
colModel
:
[
colModel
:
[
{
label
:
'id'
,
name
:
'id'
,
index
:
'id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'id'
,
name
:
'id'
,
index
:
'id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'属性名'
,
name
:
'attrName'
,
index
:
'attr_name'
,
width
:
80
},
{
label
:
'属性名'
,
name
:
'attrName'
,
index
:
'attr_name'
,
width
:
80
},
{
label
:
'属性描述'
,
name
:
'attrDesc'
,
index
:
'attr_desc'
,
width
:
80
},
{
label
:
'属性描述'
,
name
:
'descs'
,
index
:
'descs'
,
width
:
80
,
formatter
:
function
(
value
,
grid
,
rows
){
let
returnStr
=
''
;
value
.
forEach
(
item
=>
{
let
Str
=
`
${
item
.
attrValue
}
(
${
item
.
attrDesc
}
),`
returnStr
+=
Str
})
// returnStr=returnStr.split("undefined")[1]
return
returnStr
;
}},
{
label
:
'是否开启'
,
name
:
'status'
,
index
:
'status'
,
width
:
80
,
formatter
:
function
(
value
,
grid
,
rows
){
{
label
:
'是否开启'
,
name
:
'status'
,
index
:
'status'
,
width
:
80
,
formatter
:
function
(
value
,
grid
,
rows
){
var
returnStr
;
let
returnStr
;
if
(
value
==
'0'
)
{
if
(
value
==
'0'
)
{
returnStr
=
"<i-button class=
\"
ivu-btn ivu-btn-primary
\"
style='border-radius:25px;' type=
\"
info
\"
>已开启</i-button>"
;
returnStr
=
"<i-button class=
\"
ivu-btn ivu-btn-primary
\"
style='border-radius:25px;' type=
\"
info
\"
>已开启</i-button>"
;
}
else
if
(
value
==
'1'
)
{
}
else
if
(
value
==
'1'
)
{
...
@@ -15,7 +23,7 @@ $(function () {
...
@@ -15,7 +23,7 @@ $(function () {
return
returnStr
;
return
returnStr
;
}},
}},
{
label
:
'是否必填'
,
name
:
'need'
,
index
:
'need'
,
width
:
80
,
formatter
:
function
(
value
,
grid
,
rows
){
{
label
:
'是否必填'
,
name
:
'need'
,
index
:
'need'
,
width
:
80
,
formatter
:
function
(
value
,
grid
,
rows
){
var
returnStr
;
let
returnStr
;
if
(
value
==
false
)
{
if
(
value
==
false
)
{
returnStr
=
"<i-button class=
\"
ivu-btn ivu-btn-primary
\"
style='border-radius:25px;' type=
\"
info
\"
>非必填</i-button>"
;
returnStr
=
"<i-button class=
\"
ivu-btn ivu-btn-primary
\"
style='border-radius:25px;' type=
\"
info
\"
>非必填</i-button>"
;
}
else
if
(
value
==
true
)
{
}
else
if
(
value
==
true
)
{
...
@@ -86,6 +94,9 @@ let vm = new Vue({
...
@@ -86,6 +94,9 @@ let vm = new Vue({
}
else
{
}
else
{
flag
=
false
flag
=
false
}
}
if
(
!
item
.
attrDescId
){
item
.
attrDescId
=
""
}
})
})
let
arrs
=
[]
let
arrs
=
[]
vm
.
attrDesc
.
forEach
(
item
=>
{
vm
.
attrDesc
.
forEach
(
item
=>
{
...
@@ -193,6 +204,7 @@ let vm = new Vue({
...
@@ -193,6 +204,7 @@ let vm = new Vue({
// }
// }
obj
.
attrValue
=
item
.
attrValue
obj
.
attrValue
=
item
.
attrValue
obj
.
attrDesc
=
item
.
attrDesc
obj
.
attrDesc
=
item
.
attrDesc
obj
.
attrDescId
=
item
.
attrDescId
vm
.
attrDesc
.
push
(
obj
)
vm
.
attrDesc
.
push
(
obj
)
})
})
console
.
log
(
vm
.
attrDesc
)
console
.
log
(
vm
.
attrDesc
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论