提交 46ec2e60 编写于 作者: lyf's avatar lyf

添加标题

上级 d8b498a6
<template> <template>
<div class="operation"> <div class="operation">
<el-alert <div class="operation-title">医助管理</div>
:closable="false"
title="注:去掉勾选后,系统将自动不分配给该人员,请谨慎操作"
type="info"
>
</el-alert>
<div class="checkbox-container">
<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">
<el-checkbox :label="item.id">{{ item.name }}</el-checkbox>
</div>
</div>
</el-checkbox-group> <div class="operation-content">
<el-alert
</div> :closable="false"
<div class="bottom-button"> title="注:去掉勾选后,系统将自动不分配给该人员,请谨慎操作"
<el-button @click="cancel">取消</el-button> type="info"
<el-button @click="sumbitmatch" type="primary">确定</el-button> >
</el-alert>
<div class="checkbox-container">
<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"
>
<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>
</div> </div>
</template> </template>
...@@ -35,33 +45,32 @@ export default { ...@@ -35,33 +45,32 @@ export default {
}, },
mounted() { mounted() {
this.getCheckList(); this.getCheckList();
this.getAdminList() this.getAdminList();
}, },
methods: { methods: {
cancel(){ cancel() {
this.$confirm('取消后将不保存本次操作内容', '确认取消吗?',{ this.$confirm("取消后将不保存本次操作内容", "确认取消吗?", {
confirmButtonText: '确定', confirmButtonText: "确定",
cancelButtonText: '取消', cancelButtonText: "取消",
type: 'warning' type: "warning",
}).then(() => { }).then(() => {
this.getCheckList() this.getCheckList();
}) });
}, },
changefuc(){ changefuc() {
// console.log("checklist",this.checklist) // console.log("checklist",this.checklist)
}, },
sumbitmatch(){ sumbitmatch() {
let url= SET_MATCH_URL let url = SET_MATCH_URL;
let params={ let params = {
bizType:1, bizType: 1,
userIds:this.checklist userIds: this.checklist,
} };
this.POST(url,params) this.POST(url, params)
.then((res) => { .then((res) => {
if (res.code == "000000") { if (res.code == "000000") {
this.$message.success('保存成功'); this.$message.success("保存成功");
} }
}) })
.catch((err) => { .catch((err) => {
...@@ -75,7 +84,7 @@ export default { ...@@ -75,7 +84,7 @@ export default {
this.GET(url) this.GET(url)
.then((res) => { .then((res) => {
if (res.code == "000000") { if (res.code == "000000") {
this.checklist=res.data this.checklist = res.data;
} }
}) })
.catch((err) => { .catch((err) => {
...@@ -101,25 +110,34 @@ export default { ...@@ -101,25 +110,34 @@ export default {
.operation { .operation {
min-height: 80%; min-height: 80%;
padding: 20px; padding: 20px;
background: #ffffff;
.checkbox-container {
margin-top: 20px;
.checkbox-content{
display: flex;
flex-direction: row;
justify-content: flex-start;
flex-wrap: wrap;
.checkbox-item{
width: 200px;
margin-bottom: 10px;
}
}
.operation-title {
background: #ffffff;
padding: 20px;
margin-bottom: 20px;
} }
.bottom-button{ .operation-content {
display: flex; padding: 20px;
justify-content: center; background: #ffffff;
align-items: center;
.checkbox-container {
margin-top: 20px;
.checkbox-content {
display: flex;
flex-direction: row;
justify-content: flex-start;
flex-wrap: wrap;
.checkbox-item {
width: 200px;
margin-bottom: 10px;
}
}
}
.bottom-button {
display: flex;
justify-content: center;
align-items: center;
}
} }
} }
</style> </style>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册