Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
527edf1e
提交
527edf1e
编写于
3月 29, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新建项目 项目类型问题
上级
747977b2
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
41 行增加
和
10 行删除
+41
-10
add-manager.vue
src/views/education/add-manager.vue
+41
-10
未找到文件。
src/views/education/add-manager.vue
浏览文件 @
527edf1e
...
@@ -438,6 +438,14 @@
...
@@ -438,6 +438,14 @@
</div>
</div>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
<el-dialog
title
:visible
.
sync=
"dialogShow"
width=
"40%"
center
>
<p
class=
"dialog-p"
>
设定范围数据已经被其他管理员修改,是否强制提交进行覆盖
</p>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"default"
size=
"small"
@
click=
"dialogShow = false"
>
取消
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"coverData()"
>
确定
</el-button>
</span>
</el-dialog>
</div>
</div>
<div
class=
"third-step"
v-else-if=
"active === 2"
>
<div
class=
"third-step"
v-else-if=
"active === 2"
>
<el-form
<el-form
...
@@ -658,6 +666,7 @@ export default {
...
@@ -658,6 +666,7 @@ export default {
changedPerson2
:
[],
changedPerson2
:
[],
//dialog
//dialog
dialogShow
:
false
,
dialogShow
:
false
,
flagCover
:
0
,
//记录上次
//记录上次
scopeOfOrganizationLast
:
[],
scopeOfOrganizationLast
:
[],
scopeOfPeopleLast
:
[],
scopeOfPeopleLast
:
[],
...
@@ -932,6 +941,7 @@ export default {
...
@@ -932,6 +941,7 @@ export default {
//console.log(res);
//console.log(res);
this
.
projectId
=
res
.
data
.
id
;
this
.
projectId
=
res
.
data
.
id
;
this
.
projectStatus
=
res
.
data
.
projectStatus
;
this
.
projectStatus
=
res
.
data
.
projectStatus
;
this
.
idTypeProject
=
res
.
data
.
idType
;
this
.
operationLast
();
this
.
operationLast
();
if
(
option
!=
"storage"
&&
option
!=
"storageEdit"
)
{
if
(
option
!=
"storage"
&&
option
!=
"storageEdit"
)
{
this
.
active
++
;
this
.
active
++
;
...
@@ -1067,7 +1077,8 @@ export default {
...
@@ -1067,7 +1077,8 @@ export default {
setKindOfAdministrative
:
this
.
getKind
(
"administrativeScope"
),
setKindOfAdministrative
:
this
.
getKind
(
"administrativeScope"
),
setKindOfOrganization
:
this
.
getKind
(
"organization"
),
setKindOfOrganization
:
this
.
getKind
(
"organization"
),
setKindOfDepartment
:
this
.
getKind
(
"department"
),
setKindOfDepartment
:
this
.
getKind
(
"department"
),
setKindOfPeople
:
this
.
getKind
(
"person"
)
setKindOfPeople
:
this
.
getKind
(
"person"
),
flag
:
this
.
flagCover
,
};
};
if
(
req
.
setKindOfAdministrative
==
3
)
{
if
(
req
.
setKindOfAdministrative
==
3
)
{
req
.
scopeOfAdministrative
=
this
.
getScope
(
"administrativeUpdate"
);
req
.
scopeOfAdministrative
=
this
.
getScope
(
"administrativeUpdate"
);
...
@@ -1117,6 +1128,12 @@ export default {
...
@@ -1117,6 +1128,12 @@ export default {
this
.
componentDraft
(
2
);
this
.
componentDraft
(
2
);
}
}
},
},
//覆盖数据
coverData
()
{
this
.
dialogShow
=
false
;
this
.
flagCover
=
1
;
this
.
nextStep
();
},
//点击下一步
//点击下一步
nextStep
()
{
nextStep
()
{
if
(
this
.
active
==
0
)
{
if
(
this
.
active
==
0
)
{
...
@@ -1173,8 +1190,9 @@ export default {
...
@@ -1173,8 +1190,9 @@ export default {
//scopeOfOrganization: "2|3|4|5|6|7",
//scopeOfOrganization: "2|3|4|5|6|7",
setKindOfDepartment
:
this
.
getKind
(
"department"
),
setKindOfDepartment
:
this
.
getKind
(
"department"
),
//scopeOfDepartment: "54",
//scopeOfDepartment: "54",
setKindOfPeople
:
this
.
getKind
(
"person"
)
setKindOfPeople
:
this
.
getKind
(
"person"
)
,
//scopeOfPeople: ""
//scopeOfPeople: ""
flag
:
this
.
flagCover
,
};
};
if
(
req
.
setKindOfAdministrative
==
3
)
{
if
(
req
.
setKindOfAdministrative
==
3
)
{
req
.
scopeOfAdministrative
=
this
.
getScope
(
"administrativeUpdate"
);
req
.
scopeOfAdministrative
=
this
.
getScope
(
"administrativeUpdate"
);
...
@@ -1200,8 +1218,8 @@ export default {
...
@@ -1200,8 +1218,8 @@ export default {
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
//移动到选择项目组件
//移动到选择项目组件
//console.log(res);
//console.log(res);
this
.
scopeStatus
(
res
.
data
.
status
);
let
statusMove
=
this
.
scopeStatus
(
res
.
data
.
status
);
if
(
res
.
data
.
status
===
0
)
{
if
(
statusMove
===
0
)
{
this
.
active
++
;
this
.
active
++
;
this
.
stepData
=
[
false
,
false
,
true
];
this
.
stepData
=
[
false
,
false
,
true
];
}
else
{
}
else
{
...
@@ -1229,7 +1247,8 @@ export default {
...
@@ -1229,7 +1247,8 @@ export default {
setKindOfAdministrative
:
0
,
setKindOfAdministrative
:
0
,
setKindOfOrganization
:
this
.
getKind
(
"organization"
),
setKindOfOrganization
:
this
.
getKind
(
"organization"
),
setKindOfDepartment
:
this
.
getKind
(
"department"
),
setKindOfDepartment
:
this
.
getKind
(
"department"
),
setKindOfPeople
:
this
.
getKind
(
"person"
)
setKindOfPeople
:
this
.
getKind
(
"person"
),
flag
:
this
.
flagCover
,
};
};
if
(
if
(
req
.
setKindOfOrganization
==
2
||
req
.
setKindOfOrganization
==
2
||
...
@@ -1248,8 +1267,8 @@ export default {
...
@@ -1248,8 +1267,8 @@ export default {
vm
.
POST
(
"portal/scope"
,
req
).
then
(
res
=>
{
vm
.
POST
(
"portal/scope"
,
req
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
//移动到选择项目组件
//移动到选择项目组件
this
.
scopeStatus
(
res
.
data
.
status
);
let
statusMove
=
this
.
scopeStatus
(
res
.
data
.
status
);
if
(
res
.
data
.
status
===
0
)
{
if
(
statusMove
===
0
)
{
this
.
active
++
;
this
.
active
++
;
this
.
stepData
=
[
false
,
false
,
true
];
this
.
stepData
=
[
false
,
false
,
true
];
}
else
{
}
else
{
...
@@ -2317,17 +2336,23 @@ export default {
...
@@ -2317,17 +2336,23 @@ export default {
},
},
//scope的不同status操作
//scope的不同status操作
scopeStatus
(
data
)
{
scopeStatus
(
data
)
{
console
.
log
(
data
);
//console.log('范围提交status:'+
data);
let
status
=
data
;
let
status
=
data
;
if
(
status
===
1
)
{
//console.log('范围提交status:'+status);
if
(
status
===
0
)
{
this
.
flagCover
=
0
;
}
else
if
(
status
===
1
)
{
vm
.
$message
({
vm
.
$message
({
type
:
"info"
,
type
:
"info"
,
message
:
"您已被上级管理员移除项目,暂无权限操作"
,
message
:
"您已被上级管理员移除项目,暂无权限操作"
,
});
});
this
.
$router
.
push
(
"item-manager"
);
this
.
$router
.
push
(
"item-manager"
);
}
else
if
(
status
===
2
)
{
}
else
if
(
status
===
2
)
{
console
.
log
(
'弹框'
);
this
.
flagCover
=
1
;
this
.
dialogShow
=
true
;
}
}
return
status
;
},
},
//选择项目组件
//选择项目组件
//改变组件选择情况
//改变组件选择情况
...
@@ -2506,6 +2531,12 @@ export default {
...
@@ -2506,6 +2531,12 @@ export default {
}
}
.second-step
{
.second-step
{
margin
:
10px
0
0
20px
;
margin
:
10px
0
0
20px
;
.dialog-p
{
text-align
:
center
;
span
{
color
:
#449284
;
}
}
//隐藏树展开
//隐藏树展开
.table-empty
{
.table-empty
{
img
{
img
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录