Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
db96d045
提交
db96d045
编写于
3月 25, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
禁止编辑状态
上级
af882fee
变更
1
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
19 行增加
和
8 行删除
+19
-8
add-manager.vue
src/views/education/add-manager.vue
+19
-8
未找到文件。
src/views/education/add-manager.vue
浏览文件 @
db96d045
...
...
@@ -419,6 +419,7 @@
style=
"width: 350px"
placeholder=
"请选择组件"
@
change=
"changeValue"
:disabled=
"projectStatus == 4"
>
<el-option
v-for=
"item in optionsComponent"
...
...
@@ -442,7 +443,7 @@
</el-col>
</el-form-item>
<el-form-item
label=
"配置证书:"
>
<el-radio-group
v-model=
"formComponent.configure"
>
<el-radio-group
v-model=
"formComponent.configure"
:disabled=
"projectStatus == 4"
>
<el-radio
:label=
"1"
>
是
</el-radio>
<el-radio
:label=
"2"
>
否
</el-radio>
</el-radio-group>
...
...
@@ -453,6 +454,7 @@
v-model=
"formComponent.certificate"
placeholder=
"请选择证书"
style=
"width: 350px"
:disabled=
"projectStatus == 4"
>
<el-option
v-for=
"item in optionsCertificate"
...
...
@@ -1453,22 +1455,28 @@ export default {
}
}
}
},
appendCheck
()
{
},
//添加子节点
append
(
data
,
node
)
{
console
.
log
(
"data:"
,
data
);
//
console.log("node:", node);
console
.
log
(
"node:"
,
node
);
if
(
data
.
children
.
length
==
0
)
{
let
id
=
data
.
id
+
"add"
;
const
newChild
=
[
{
id
:
id
,
label
:
"testtest"
,
children
:
[]
},
{
id
:
id
,
label
:
"22"
,
children
:
[]
}
];
let
statusValue
=
0
;
if
(
node
.
checked
==
true
)
{
statusValue
=
1
}
//data.children.push(newChild);
let
req
=
{
id
:
data
.
id
,
status
:
data
.
status
,
status
:
statusValue
,
disabled
:
data
.
disabled
};
vm
.
GET
(
"portal/scope/v1/administrative/children"
,
req
).
then
(
res
=>
{
...
...
@@ -1477,6 +1485,7 @@ export default {
//console.log(administrative);
data
.
children
=
administrative
;
//data.children.push(newChild);
}
});
}
...
...
@@ -2105,6 +2114,7 @@ export default {
},
//选择组件数据绑定
handleCloseComponent
(
tag
)
{
if
(
this
.
projectStatus
!=
4
)
{
this
.
tagsComponent
.
splice
(
this
.
tagsComponent
.
indexOf
(
tag
),
1
);
this
.
formComponent
.
component
=
[];
for
(
let
j
=
0
;
j
<
this
.
tagsComponent
.
length
;
j
++
)
{
...
...
@@ -2112,6 +2122,7 @@ export default {
}
}
}
}
};
</
script
>
<
style
lang=
"scss"
>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录