提交 00f78bfd 编写于 作者: qian.jie's avatar qian.jie

优化样式及传参

上级 a23c7c65
<template> <template>
<div class="depart-doctor"> <div class="depart-doctor">
<el-tabs v-model="activeMoutendName" @tab-click="handleClick"> <el-tabs v-model="activeMoutendName">
<el-tab-pane v-for="item in departDoctorList" :key="item.departmentId" :label="item.department + ' ' + item.checkDoctorIdListByDepartment.length + '/' +item.allNum" :name="item.departmentId"> <el-tab-pane v-for="item in departDoctorList" :key="item.departmentId" :label="item.department + ' ' + item.checkDoctorIdListByDepartment.length + '/' +item.allNum" :name="item.departmentId">
<el-checkbox <el-checkbox
v-model="item.checkAll" v-model="item.checkAll"
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
:label="itemChild.doctorId" :label="itemChild.doctorId"
:disabled="itemChild.disabled" :disabled="itemChild.disabled"
> >
{{ itemChild.doctorName + ' ' }}{{ ' ' +itemChild.doctorId}} {{ itemChild.doctorName + ' ' }}{{ ' ' +itemChild.doctorId }}
</el-checkbox> </el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</el-tab-pane> </el-tab-pane>
...@@ -58,9 +58,6 @@ ...@@ -58,9 +58,6 @@
}, },
methods: { methods: {
handleClick(value) {
console.log(value, 'value');
},
handleCheckAllChange(value, item) { handleCheckAllChange(value, item) {
let itemNameList = []; let itemNameList = [];
if (value) { if (value) {
...@@ -93,5 +90,19 @@ ...@@ -93,5 +90,19 @@
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" >
.depart-doctor{
.el-checkbox__input.is-disabled .el-checkbox__inner{
border-color: #D9D9D9 !important;
background: #fff !important;
}
.el-checkbox.is-disabled .el-checkbox__label{
color: #D9D9D9 !important;
}
.el-radio__input.is-checked+.el-radio__label, .el-tabs__item.is-active {
color: #0D9078 !important;
font-size:16px !important ;
}
}
</style> </style>
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
currentCalListNew: [ currentCalListNew: [
{ {
id: 3, id: 3,
name: '全部订单', name: '医生认领',
}, },
{ {
id: 1, id: 1,
...@@ -294,7 +294,6 @@ ...@@ -294,7 +294,6 @@
}, },
watch: {}, watch: {},
created() { created() {
console.log('currentDiagList---------------------', this.currentDiagList);
this.operatId = this.$route.query.id; this.operatId = this.$route.query.id;
this.tabPositionValue = this.$route.query.type || '3'; this.tabPositionValue = this.$route.query.type || '3';
}, },
...@@ -378,7 +377,6 @@ ...@@ -378,7 +377,6 @@
confirmDoctorList() { confirmDoctorList() {
const userInfo = storejs.get('initSocketInfo'); const userInfo = storejs.get('initSocketInfo');
const {userId, userName} = userInfo; const {userId, userName} = userInfo;
console.log(userId, userName, 'userInfo');
const params = { const params = {
cancelDoctorIdList:this.cancelCheckList || [], cancelDoctorIdList:this.cancelCheckList || [],
insertDoctorIdList:this.newCheckList || [], insertDoctorIdList:this.newCheckList || [],
...@@ -387,20 +385,17 @@ ...@@ -387,20 +385,17 @@
}; };
doctorListAnd(params).then(res => { doctorListAnd(params).then(res => {
if (res.code == '000000') { if (res.code == '000000') {
console.log(res);
this.doctorDeparList(); this.doctorDeparList();
} }
}); });
}, },
initCard() { initCard() {
console.log(this.isShowCardData);
const parms = { const parms = {
bizType: this.tabPositionValue, // 1,异常的列表 2,不需要处理的列表 bizType: this.tabPositionValue, // 1,异常的列表 2,不需要处理的列表
userId: this.userInfo.userId || this.operateUserId, // userId userId: this.userInfo.userId || this.operateUserId, // userId
condition: this.orderOrName || '', condition: this.orderOrName || '',
}; };
// this.currentDiagList = this.mockData;
conditionNewList(parms) conditionNewList(parms)
.then((res) => { .then((res) => {
if (res.code === '000000') { if (res.code === '000000') {
...@@ -420,14 +415,12 @@ ...@@ -420,14 +415,12 @@
}); });
}, },
handleData(data) { handleData(data) {
console.log(data, 'data');
this.currentDiagList = []; this.currentDiagList = [];
data.forEach((item, index) => { data.forEach((item, index) => {
item.diagnoseLogId = '--' + Math.random() * 10; item.diagnoseLogId = '--' + Math.random() * 10;
item['definitionRandom'] = Math.random() * 10; item['definitionRandom'] = Math.random() * 10;
this.$set(this.currentDiagList, index, item); this.$set(this.currentDiagList, index, item);
}); });
console.log('this.currentDiagList', this.currentDiagList);
this.isShowCardData = true; this.isShowCardData = true;
// this.$nextTick(() => { // this.$nextTick(() => {
// }); // });
...@@ -435,12 +428,8 @@ ...@@ -435,12 +428,8 @@
getSerachValue(value) { getSerachValue(value) {
this.orderOrName = value; this.orderOrName = value;
}, },
handleCheckedCitiesChange(value) {
console.log(value, 'value11');
},
getSearchValue() { getSearchValue() {
if (!this.orderOrName) { if (!this.orderOrName) {
console.log(789, this.departmentId);
return this.$message({ return this.$message({
message: '医生名字或订单号不能为空', message: '医生名字或订单号不能为空',
type: 'warning', type: 'warning',
...@@ -451,7 +440,6 @@ ...@@ -451,7 +440,6 @@
} }
}, },
tabChange(val) { tabChange(val) {
console.log(val, 'val1111====');
this.tabPositionValue = val; this.tabPositionValue = val;
if (val != 3) { if (val != 3) {
this.initCard(); this.initCard();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册