提交 841b42b0 编写于 作者: yi.li's avatar yi.li

预约列表多选优化及计划管理部分面包屑样式调整

上级 eaddb583
<template> <template>
<div class="plan-modify"> <div class="plan-modify">
<div class="bread-crumb"> <div class="bread-crumb">
<el-breadcrumb separator-class="el-icon-arrow-right" > <el-breadcrumb separator="/" >
<el-breadcrumb-item v-for="item in planModifyCrumb"> <el-breadcrumb-item v-for="item in planModifyCrumb">
<a v-if="item.href" :href="item.href">{{item.name}}</a> <a v-if="item.href" :href="item.href">{{item.name}}</a>
<span v-else >{{item.name}}</span> <span v-else >{{item.name}}</span>
......
<template> <template>
<div class="resident-detail"> <div class="resident-detail">
<div class="bread-crumb"> <div class="bread-crumb">
<el-breadcrumb separator-class="el-icon-arrow-right" > <el-breadcrumb separator="/">
<el-breadcrumb-item v-for="item in residentCrumb"> <el-breadcrumb-item v-for="item in residentCrumb">
<a v-if="item.href" :href="item.href">{{item.name}}</a> <a v-if="item.href" :href="item.href">{{item.name}}</a>
<span v-else >{{item.name}}</span> <span v-else >{{item.name}}</span>
......
<template> <template>
<div class="resident-list"> <div class="resident-list">
<div class="bread-crumb"> <div class="bread-crumb">
<el-breadcrumb separator-class="el-icon-arrow-right" > <el-breadcrumb separator="/" >
<el-breadcrumb-item v-for="item in residentCrumb"> <el-breadcrumb-item v-for="item in residentCrumb">
<a v-if="item.href" :href="item.href">{{item.name}}</a> <a v-if="item.href" :href="item.href">{{item.name}}</a>
<span v-else >{{item.name}}</span> <span v-else >{{item.name}}</span>
......
...@@ -61,10 +61,13 @@ ...@@ -61,10 +61,13 @@
:data="reservationList.enteringDtos" :data="reservationList.enteringDtos"
center center
style="width: 100%;margin-top: 20px;" style="width: 100%;margin-top: 20px;"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange"
:row-key="getRowKeys"
ref="multipleReservation">
<el-table-column <el-table-column
type="selection" type="selection"
align="center"> align="center"
:reserve-selection="true">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="nickname" prop="nickname"
...@@ -190,6 +193,9 @@ ...@@ -190,6 +193,9 @@
needPara: {}, needPara: {},
dialogDetailShow: false, dialogDetailShow: false,
validContents: [], validContents: [],
getRowKeys(row) {
return row.fuPlanPatientTimesId;
},
} }
}, },
created() { created() {
...@@ -295,17 +301,18 @@ ...@@ -295,17 +301,18 @@
} }
}, },
sendReservation() { sendReservation() {
if(this.selectionData.length > 0){ // console.log('选择人员长度',this.selectionData.length)
this.selectList = this.selectionData; if(this.selectionData.length > 100) {
// 发送预约校验 this.$message.warning('每次最多选择100条单条随访进行预约!');
this.initCheck(); return;
}else if(this.selectionData.length > 100){ }else if(this.selectionData.length <= 0){
this.$message.warning('每次最多选择100条单条随访进行预约!'); this.$message.warning('请选择要发送预约的居民!');
return false; return;
} else { }else{
this.$message.warning('请选择要发送预约的居民!'); this.selectList = this.selectionData;
return false; // 发送预约校验
} this.initCheck();
}
}, },
sendReservationRow(row){ sendReservationRow(row){
let newList = []; let newList = [];
...@@ -345,6 +352,7 @@ ...@@ -345,6 +352,7 @@
...this.setSearchData(), ...this.setSearchData(),
status: this.status, status: this.status,
}) })
this.$refs.multipleReservation.clearSelection();
}, },
closeTipsDialog(val){ closeTipsDialog(val){
this.isNoEnoughShow = val; this.isNoEnoughShow = val;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册