Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-consultation
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
jingqi.liu
pica-admin-consultation
提交
46ec2e60
提交
46ec2e60
编写于
7月 22, 2021
作者:
lyf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加标题
上级
d8b498a6
变更
1
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
74 行增加
和
56 行删除
+74
-56
operation.vue
src/views/IM/diagnosis-admin/operation.vue
+74
-56
未找到文件。
src/views/IM/diagnosis-admin/operation.vue
浏览文件 @
46ec2e60
<
template
>
<div
class=
"operation"
>
<div
class=
"operation-title"
>
医助管理
</div>
<div
class=
"operation-content"
>
<el-alert
:closable=
"false"
title=
"注:去掉勾选后,系统将自动不分配给该人员,请谨慎操作"
...
...
@@ -7,21 +10,28 @@
>
</el-alert>
<div
class=
"checkbox-container"
>
<el-checkbox-group
v-model=
"checklist"
@
change=
"changefuc"
size=
"medium"
>
<el-checkbox-group
v-model=
"checklist"
@
change=
"changefuc"
size=
"medium"
>
<div
class=
"checkbox-content"
>
<div
class=
"checkbox-item"
v-for=
"(item, index) in adminList"
:key=
"index"
>
<div
class=
"checkbox-item"
v-for=
"(item, index) in adminList"
:key=
"index"
>
<el-checkbox
:label=
"item.id"
>
{{
item
.
name
}}
</el-checkbox>
</div>
</div>
</el-checkbox-group>
</div>
<div
class=
"bottom-button"
>
<el-button
@
click=
"cancel"
>
取消
</el-button>
<el-button
@
click=
"sumbitmatch"
type=
"primary"
>
确定
</el-button>
</div>
</div>
</div>
</
template
>
<
script
>
const
GET_MATCH_URL
=
"/diagnose/match/1/"
;
...
...
@@ -35,33 +45,32 @@ export default {
},
mounted
()
{
this
.
getCheckList
();
this
.
getAdminList
()
this
.
getAdminList
();
},
methods
:
{
cancel
(){
this
.
$confirm
(
'取消后将不保存本次操作内容'
,
'确认取消吗?'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
cancel
()
{
this
.
$confirm
(
"取消后将不保存本次操作内容"
,
"确认取消吗?"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
}).
then
(()
=>
{
this
.
getCheckList
()
})
this
.
getCheckList
();
});
},
changefuc
(){
changefuc
()
{
// console.log("checklist",this.checklist)
},
sumbitmatch
(){
let
url
=
SET_MATCH_URL
let
params
=
{
bizType
:
1
,
userIds
:
this
.
checklist
}
this
.
POST
(
url
,
params
)
sumbitmatch
()
{
let
url
=
SET_MATCH_URL
;
let
params
=
{
bizType
:
1
,
userIds
:
this
.
checklist
,
};
this
.
POST
(
url
,
params
)
.
then
((
res
)
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
$message
.
success
(
'保存成功'
);
this
.
$message
.
success
(
"保存成功"
);
}
})
.
catch
((
err
)
=>
{
...
...
@@ -75,7 +84,7 @@ export default {
this
.
GET
(
url
)
.
then
((
res
)
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
checklist
=
res
.
data
this
.
checklist
=
res
.
data
;
}
})
.
catch
((
err
)
=>
{
...
...
@@ -101,25 +110,34 @@ export default {
.operation {
min-height: 80%;
padding: 20px;
.operation-title {
background: #ffffff;
padding: 20px;
margin-bottom: 20px;
}
.operation-content {
padding: 20px;
background: #ffffff;
.checkbox-container {
margin-top: 20px;
.checkbox-content
{
.checkbox-content
{
display: flex;
flex-direction: row;
justify-content: flex-start;
flex-wrap: wrap;
.checkbox-item
{
.checkbox-item
{
width: 200px;
margin-bottom: 10px;
}
}
}
.bottom-button
{
.bottom-button
{
display: flex;
justify-content: center;
align-items: center;
}
}
}
</
style
>
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录