Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
608ec1c7
提交
608ec1c7
编写于
9月 27, 2020
作者:
haochangdi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化开通权限代码逻辑
上级
19562f9a
变更
1
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
41 行增加
和
24 行删除
+41
-24
circle-limit.vue
src/views/system/circle-limit.vue
+41
-24
未找到文件。
src/views/system/circle-limit.vue
浏览文件 @
608ec1c7
...
...
@@ -5,7 +5,7 @@
<div
class=
"header-title"
>
新建小圈权限分配
</div>
<el-row
:gutter=
"30"
class=
"row"
type=
"flex"
style=
"margin-top: 10px;"
align=
'middle'
justify=
'space-around'
>
<el-form
ref=
"formInline"
:model=
"formInline"
label-width=
"75px"
style=
"width:100%;"
>
<el-col
:span=
"6"
style=
"min-width: 2
00px"
>
<el-col
style=
"width: 4
00px"
>
<el-form-item
label=
"手机号:"
>
<el-input
v-model=
"formInline.mobile"
size=
"small"
placeholder=
"请输入"
></el-input>
</el-form-item>
...
...
@@ -19,10 +19,10 @@
<el-table
:data=
"tableData"
style=
"width: 100%"
>
<el-table-column
prop=
"doctorName"
label=
"用户名"
align=
"center"
></el-table-column>
<el-table-column
prop=
"bizDepart"
label=
"对接部门"
align=
"center"
>
<template
slot-scope=
"scope"
>
<el-table-column
prop=
"bizDepart
Name
"
label=
"对接部门"
align=
"center"
>
<
!--
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
bizDepart
|
setDepartment
}}
</span>
</
template
>
</
template
>
-->
</el-table-column>
<el-table-column
prop=
"mobileMask"
label=
"手机号"
align=
"center"
></el-table-column>
<el-table-column
prop=
"hospitalName"
label=
"所属机构"
align=
"center"
></el-table-column>
...
...
@@ -165,7 +165,7 @@ export default {
vm
.
showMsg
=
1
}
openLoading
(
vm
);
vm
.
POST
(
"
/
circle/member/master/grant/list"
,
req
).
then
(
res
=>
{
vm
.
POST
(
"circle/member/master/grant/list"
,
req
).
then
(
res
=>
{
closeLoading
(
vm
);
if
(
res
.
code
==
"000000"
)
{
vm
.
tableData
=
res
.
data
.
grantListDtos
;
...
...
@@ -184,8 +184,12 @@ export default {
openFlag
(
row
)
{
vm
.
orgForm
.
org
=
''
vm
.
orgForm
.
openDoctorId
=
row
.
doctorId
if
(
row
.
bizDepart
)
{
vm
.
orgForm
.
org
=
row
.
bizDepart
vm
.
canfirmFn
()
}
else
{
vm
.
dialogVisible
=
true
// this.$refs.dialogForm.resetFields();
}
},
dialogClose
()
{
this
.
$refs
.
dialogForm
.
resetFields
();
...
...
@@ -194,7 +198,12 @@ export default {
handleClose
()
{
this
.
$refs
.
dialogForm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
vm
.
$confirm
(
'确认开通权限?允许用户创建小圈'
)
vm
.
canfirmFn
()
}
});
},
canfirmFn
()
{
vm
.
$confirm
(
'确认开通权限,允许用户创建小圈?'
)
.
then
(
_
=>
{
openLoading
(
vm
);
let
req
=
{
...
...
@@ -202,17 +211,23 @@ export default {
doctorId
:
vm
.
orgForm
.
openDoctorId
,
type
:
1
}
vm
.
POST
(
"/circle/member/master/grant"
,
req
).
then
(
res
=>
{
vm
.
POST
(
"circle/member/master/grant"
,
req
).
then
(
res
=>
{
this
.
$refs
.
dialogForm
.
resetFields
();
if
(
res
.
code
==
"000000"
)
{
vm
.
searchList
()
vm
.
dialogVisible
=
false
}
else
if
(
res
.
code
==
'224023'
){
this
.
$message
.
error
(
'无法开通权限,请该用户认证后重试'
);
vm
.
dialogVisible
=
false
}
else
{
this
.
$message
.
error
(
'开通权限失败,请稍后重试'
);
vm
.
dialogVisible
=
false
}
});
}).
catch
((
err
)
=>
{
console
.
log
(
err
);
})
})
.
catch
(
_
=>
{});
}
});
},
closeFlag
(
row
)
{
vm
.
$confirm
(
'确认关闭权限,禁止用户创建小圈?'
)
...
...
@@ -226,6 +241,8 @@ export default {
vm
.
POST
(
"/circle/member/master/grant"
,
req
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
vm
.
searchList
()
}
else
{
this
.
$message
.
error
(
'无法关闭权限,请稍后重试'
);
}
});
})
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录