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

添加标题

上级 d8b498a6
<template> <template>
<div class="operation"> <div class="operation">
<div class="operation-title">医助管理</div>
<div class="operation-content">
<el-alert <el-alert
:closable="false" :closable="false"
title="注:去掉勾选后,系统将自动不分配给该人员,请谨慎操作" title="注:去掉勾选后,系统将自动不分配给该人员,请谨慎操作"
...@@ -7,21 +10,28 @@ ...@@ -7,21 +10,28 @@
> >
</el-alert> </el-alert>
<div class="checkbox-container"> <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-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> <el-checkbox :label="item.id">{{ item.name }}</el-checkbox>
</div> </div>
</div> </div>
</el-checkbox-group> </el-checkbox-group>
</div> </div>
<div class="bottom-button"> <div class="bottom-button">
<el-button @click="cancel">取消</el-button> <el-button @click="cancel">取消</el-button>
<el-button @click="sumbitmatch" type="primary">确定</el-button> <el-button @click="sumbitmatch" type="primary">确定</el-button>
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
const GET_MATCH_URL = "/diagnose/match/1/"; const GET_MATCH_URL = "/diagnose/match/1/";
...@@ -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;
.operation-title {
background: #ffffff;
padding: 20px;
margin-bottom: 20px;
}
.operation-content {
padding: 20px;
background: #ffffff; background: #ffffff;
.checkbox-container { .checkbox-container {
margin-top: 20px; margin-top: 20px;
.checkbox-content{ .checkbox-content {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: flex-start; justify-content: flex-start;
flex-wrap: wrap; flex-wrap: wrap;
.checkbox-item{ .checkbox-item {
width: 200px; width: 200px;
margin-bottom: 10px; margin-bottom: 10px;
} }
} }
} }
.bottom-button{ .bottom-button {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
}
} }
</style> </style>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册