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

添加选择居民弹层

上级 3241777b
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<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>
...@@ -135,6 +135,12 @@ ...@@ -135,6 +135,12 @@
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
<select-patient
:isShowSelectPatient="isShowSelectPatient"
:patientIdList="patientIdList"
@closeSelectPatient="closeSelectPatient"
@sureSelectPatient="sureSelectPatient(arguments)"
/>
</div> </div>
</template> </template>
...@@ -147,6 +153,7 @@ ...@@ -147,6 +153,7 @@
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() {
...@@ -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>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册