Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
2ac36d8c
提交
2ac36d8c
编写于
3月 26, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
次级管理员不能编辑基础信息
上级
a298c993
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
29 行增加
和
18 行删除
+29
-18
add-manager.vue
src/views/education/add-manager.vue
+27
-17
item-manager.vue
src/views/education/item-manager.vue
+2
-1
未找到文件。
src/views/education/add-manager.vue
浏览文件 @
2ac36d8c
...
...
@@ -34,6 +34,7 @@
v-model=
"formData.projectName"
placeholder=
"请输入项目名称"
style=
"width:83%;"
:disabled=
"peopleLevel == 'L3'"
></el-input>
<span
class=
"word-num"
>
{{
(
formData
.
projectName
).
replace
(
/
\s
+/g
,
""
).
length
}}
/20
</span>
</el-col>
...
...
@@ -49,6 +50,7 @@
value-format=
"yyyy-MM-dd HH:mm:ss"
:picker-options=
"pickerOptions0"
style=
"width: 100%;"
:disabled=
"peopleLevel == 'L3'"
></el-date-picker>
</el-form-item>
</el-col>
...
...
@@ -64,6 +66,7 @@
:picker-options=
"pickerOptions1"
default-time=
"23:59:59"
style=
"width: 100%;"
:disabled=
"peopleLevel == 'L3'"
></el-date-picker>
</el-form-item>
</el-col>
...
...
@@ -77,6 +80,7 @@
placeholder="请输入项目简介"
v-model="formData.projectIntro"
style="width:83%;"
:disabled="peopleLevel == 'L3'"
>
</el-input>
<span
class=
"word-num"
>
{{
(
formData
.
projectIntro
).
replace
(
/
\s
+/g
,
""
).
length
}}
/150
</span>
</el-col>
...
...
@@ -90,6 +94,7 @@
action=
"#"
:show-file-list=
"false"
:before-upload=
"beforeUploadListPic"
:disabled=
"peopleLevel == 'L3'"
>
<img
v-if=
"formData.attachmentUrl1"
:src=
"formData.attachmentUrl1"
class=
"bg-img"
>
<img
...
...
@@ -108,7 +113,7 @@
<p
class=
"upload-message"
v-if=
"uploadImgMessage"
>
请选择列表图片
</p>
</div>
<el-form-item
label=
"封面类型:"
>
<el-radio-group
size=
"mini"
v-model=
"formData.type"
@
change=
"changeCover"
>
<el-radio-group
size=
"mini"
v-model=
"formData.type"
@
change=
"changeCover"
:disabled=
"peopleLevel == 'L3'"
>
<el-radio
:label=
"1"
>
图片
</el-radio>
<el-radio
:label=
"2"
>
视频
</el-radio>
</el-radio-group>
...
...
@@ -122,6 +127,7 @@
action=
"#"
:show-file-list=
"false"
:before-upload=
"beforeUploadCoverPic"
:disabled=
"peopleLevel == 'L3'"
>
<img
v-if=
"formData.type == 1 && formData.attachmentUrl2"
...
...
@@ -170,6 +176,7 @@
multiple
:on-exceed=
"handleExceed"
:file-list=
"fileList"
:disabled=
"peopleLevel == 'L3'"
>
<el-button
class=
"choose-button"
plain
icon=
"el-icon-document"
>
选择文件
</el-button>
<div
slot=
"tip"
class=
"el-upload__tip"
>
支持文件类型:pdf
</div>
...
...
@@ -504,6 +511,7 @@ export default {
itemOrganization
:
itemOrganization
,
itemPerson
:
itemPerson
,
projectId
:
null
,
peopleLevel
:
null
,
//面包屑
curmbFirst
:
"教培项目"
,
curmbSecond
:
"新建项目"
,
...
...
@@ -688,7 +696,8 @@ export default {
created
()
{
vm
=
this
;
(
this
.
projectId
=
vm
.
getUrlSearch
(
window
.
location
.
href
,
"projectId"
)),
this
.
editManager
();
(
this
.
peopleLevel
=
vm
.
getUrlSearch
(
window
.
location
.
href
,
"level"
));
this
.
editManager
();
this
.
changeOnStep
(
this
.
active
);
this
.
getComponentInfo
();
this
.
idTypeValue
=
vm
.
idType
;
...
...
@@ -885,13 +894,15 @@ export default {
//查询上次设定范围
operationLast
()
{
let
req
=
{};
vm
.
GET
(
"portal/scope/v1/"
+
this
.
projectId
+
"/operation/last"
,
req
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
scopeReq
=
res
.
data
.
scopeReq
;
console
.
log
(
this
.
scopeReq
);
//operationData.getAdministrative(res.data.scopeReq.scopeOfAdministrative);
vm
.
GET
(
"portal/scope/v1/"
+
this
.
projectId
+
"/operation/last"
,
req
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
scopeReq
=
res
.
data
.
scopeReq
;
console
.
log
(
this
.
scopeReq
);
//operationData.getAdministrative(res.data.scopeReq.scopeOfAdministrative);
}
}
}
);
);
},
//查询组件证书信息
getComponentInfo
()
{
...
...
@@ -1454,17 +1465,17 @@ export default {
}
},
//子节点选中
appendCheck
(
administrative
,
checked
)
{
appendCheck
(
administrative
,
checked
)
{
//console.log(checked,administrative)
let
checkList
=
[];
checkList
=
this
.
$refs
.
tree
.
getCheckedKeys
();
if
(
checked
)
{
for
(
let
i
=
0
;
i
<
administrative
.
length
;
i
++
)
{
if
(
checked
)
{
for
(
let
i
=
0
;
i
<
administrative
.
length
;
i
++
)
{
checkList
.
push
(
administrative
[
i
].
id
);
// console.log(checkList);
}
}
this
.
$nextTick
(
function
(){
this
.
$nextTick
(
function
()
{
this
.
$refs
.
tree
.
setCheckedKeys
(
checkList
);
});
},
...
...
@@ -1479,8 +1490,8 @@ export default {
{
id
:
id
,
label
:
"22"
,
children
:
[]
}
];
let
statusValue
=
0
;
if
(
node
.
checked
==
true
)
{
statusValue
=
1
if
(
node
.
checked
==
true
)
{
statusValue
=
1
;
}
//data.children.push(newChild);
let
req
=
{
...
...
@@ -1494,7 +1505,7 @@ export default {
//console.log(administrative);
data
.
children
=
administrative
;
//data.children.push(newChild);
this
.
appendCheck
(
administrative
,
node
.
checked
);
this
.
appendCheck
(
administrative
,
node
.
checked
);
}
});
}
...
...
@@ -1854,7 +1865,6 @@ export default {
this
.
changedOrganization
[
this
.
formOrganization
.
pageNum
]
!=
undefined
)
{
let
rowCheck
=
this
.
changedOrganization
[
this
.
formOrganization
.
pageNum
][
0
];
...
...
@@ -2100,7 +2110,7 @@ export default {
},
//选择组件数据绑定
handleCloseComponent
(
tag
)
{
if
(
this
.
projectStatus
!=
4
)
{
if
(
this
.
projectStatus
!=
4
)
{
this
.
tagsComponent
.
splice
(
this
.
tagsComponent
.
indexOf
(
tag
),
1
);
this
.
formComponent
.
component
=
[];
for
(
let
j
=
0
;
j
<
this
.
tagsComponent
.
length
;
j
++
)
{
...
...
src/views/education/item-manager.vue
浏览文件 @
2ac36d8c
...
...
@@ -333,9 +333,10 @@ export default {
//改变状态
changeStatus
(
row
,
type
)
{
let
projectId
=
row
.
id
;
let
level
=
row
.
level
;
if
(
type
===
0
)
{
//编辑
this
.
$router
.
push
(
"add-manager?projectId="
+
projectId
);
this
.
$router
.
push
(
"add-manager?projectId="
+
projectId
+
"&level="
+
level
);
}
else
if
(
type
===
7
)
{
//提醒审核
let
req
=
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录