提交 240fbb9c 编写于 作者: yi.li's avatar yi.li

添加选择居民弹层

上级 3241777b
<template> <template>
<div class="label-list-wrap label-detail-wrap"> <div class="label-list-wrap label-detail-wrap">
<bread-crumb <bread-crumb
:curmbFirst="curmbFirst" :curmbFirst="curmbFirst"
:curmbSecond="curmbSecond" :curmbSecond="curmbSecond"
:curmbThird="curmbThird" :curmbThird="curmbThird"
:jumPathThird="jumPathThird"> :jumPathThird="jumPathThird">
</bread-crumb> </bread-crumb>
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
<p class="title">分组成员:</p> <p class="title">分组成员:</p>
<p class="member-number">{{searchData.totalRows}}</p> <p class="member-number">{{searchData.totalRows}}</p>
<div class="right"> <div class="right">
<el-button type="primary" size="small" class="create-new-label" v-if="!isUngrouped" >添加居民</el-button> <el-button type="primary" size="small" class="create-new-label" v-if="!isUngrouped" @click="addPatientsHandler">添加居民</el-button>
<el-button type="default" size="small" class="create-new-label" v-if="!isUngrouped" @click="handleDeletePatients">批量删除</el-button> <el-button type="default" size="small" class="create-new-label" v-if="!isUngrouped" @click="handleDeletePatients">批量删除</el-button>
</div> </div>
</div> </div>
<el-table <el-table
ref="multipleTable" ref="multipleTable"
:data="searchData.tableData" :data="searchData.tableData"
...@@ -91,9 +91,9 @@ ...@@ -91,9 +91,9 @@
> >
<el-form> <el-form>
<el-form-item :class="changeNameClass"> <el-form-item :class="changeNameClass">
<el-input <el-input
type="textarea" type="textarea"
v-model="ruleForm.newLabelName" v-model="ruleForm.newLabelName"
placeholder="请填写分组名称,最多15个字符" placeholder="请填写分组名称,最多15个字符"
maxlength="15" maxlength="15"
> >
...@@ -135,18 +135,25 @@ ...@@ -135,18 +135,25 @@
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
<select-patient
:isShowSelectPatient="isShowSelectPatient"
:patientIdList="patientIdList"
@closeSelectPatient="closeSelectPatient"
@sureSelectPatient="sureSelectPatient(arguments)"
/>
</div> </div>
</template> </template>
<script> <script>
import BreadCrumb from "@/components/breadcrumb.vue"; import BreadCrumb from "@/components/breadcrumb.vue";
import * as commonUtil from "@/utils/utils"; import * as commonUtil from "@/utils/utils";
import { import {
getLabelDetail, getLabelDetail,
deleteCurrentLabel, deleteCurrentLabel,
changeLabelName, changeLabelName,
deleteCurrentPatients, deleteCurrentPatients,
} from '@/utils/patients/patientsapi' } from '@/utils/patients/patientsapi'
import SelectPatient from './dialog/select-patitents';
export default { export default {
...@@ -162,6 +169,8 @@ ...@@ -162,6 +169,8 @@
showChangeLabelNameDialog: false, showChangeLabelNameDialog: false,
centerDialogVisible: false, centerDialogVisible: false,
showDeletePatientsDialog: false, showDeletePatientsDialog: false,
isShowSelectPatient: false,
patientIdList: [],
searchData: { searchData: {
pageNo: 1, // 第几页 pageNo: 1, // 第几页
pageSize: 10, // 每页条数 pageSize: 10, // 每页条数
...@@ -176,6 +185,7 @@ ...@@ -176,6 +185,7 @@
}, },
components: { components: {
BreadCrumb, BreadCrumb,
SelectPatient,
}, },
computed: { computed: {
changeNameClass() { changeNameClass() {
...@@ -191,7 +201,7 @@ ...@@ -191,7 +201,7 @@
// 挂载到Dom完成时 // 挂载到Dom完成时
mounted() { mounted() {
commonUtil.resizeHeight(); commonUtil.resizeHeight();
}, },
methods: { methods: {
getDetail() { getDetail() {
let labelId = this.$route.query.labelId; let labelId = this.$route.query.labelId;
...@@ -370,7 +380,14 @@ ...@@ -370,7 +380,14 @@
}).catch(err => { }).catch(err => {
console.log('error: ', err) console.log('error: ', err)
}); });
} },
addPatientsHandler() {
this.isShowSelectPatient = true;
},
closeSelectPatient() {},
sureSelectPatient(arg) {
},
} }
} }
</script> </script>
...@@ -430,7 +447,7 @@ ...@@ -430,7 +447,7 @@
text-align: right; text-align: right;
} }
.table-empty{ .table-empty{
width: 100%; width: 100%;
height: auto; height: auto;
text-align: center; text-align: center;
.empty-pic{ .empty-pic{
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册