Commit 9da809f0 authored by 黄奎's avatar 黄奎
parents 763e1935 7fb2c723
<template> <template>
<div class="appointmentBoard"> <div class="appointmentBoard" ref="appoint">
<div class="content"> <div class="content">
<div> <div>
<el-select class="w200" style="margin-right: 10px;" v-model="msg.StoreId" @change="getList" size="small" <el-select class="w200" style="margin-right: 10px;" v-model="msg.StoreId" @change="getList" size="small"
...@@ -14,10 +14,11 @@ ...@@ -14,10 +14,11 @@
</el-date-picker> </el-date-picker>
</div> </div>
</div> </div>
<table class="appointTable" border="0" cellspacing="0" cellpadding="0"> <div style="overflow:scroll;" :style="{'width':myWidth+'px'}">
<table class="appointTable" border="0" cellspacing="0" v-if="dataList.KanBanList&&dataList.KanBanList.length>0" cellpadding="0">
<tr> <tr>
<th style="width:100px;">服务</th> <th style="width:100px;">服务</th>
<th v-for="(subItem,subIndex) in dataList.KanBanList" :key="subIndex">{{subItem.Name}}</th> <th v-for="(subItem,subIndex) in dataList.KanBanList" style="width:200px;" :key="subIndex">{{subItem.Name}}</th>
</tr> </tr>
<tr v-for="(item,index) in dataList.allTime" :key="index"> <tr v-for="(item,index) in dataList.allTime" :key="index">
<td>{{item}}</td> <td>{{item}}</td>
...@@ -76,6 +77,10 @@ ...@@ -76,6 +77,10 @@
</tr> </tr>
</table> </table>
</div> </div>
<div v-if="dataList.KanBanList&&dataList.KanBanList.length==0" class="empty-text">
暂无数据
</div>
</div>
</div> </div>
</template> </template>
<script> <script>
...@@ -90,6 +95,7 @@ ...@@ -90,6 +95,7 @@
StoreList: [], //门店下拉 StoreList: [], //门店下拉
scheduleData: {}, scheduleData: {},
tipsInfo: {}, //提示信息 tipsInfo: {}, //提示信息
myWidth:0 //宽度
}; };
}, },
created() { created() {
...@@ -111,12 +117,6 @@ ...@@ -111,12 +117,6 @@
this.apipost("/api/MContent/GetStoresList", {}, res => { this.apipost("/api/MContent/GetStoresList", {}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.StoreList = res.data.data; this.StoreList = res.data.data;
// if(this.StoreList.length>0){
// this.msg.StoreId = this.StoreList[0].Id
// this.getList();
// }else{
// this.getList();
// }
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
...@@ -165,6 +165,8 @@ ...@@ -165,6 +165,8 @@
this.msg.WorkDate = year+'-'+month+'-'+day; this.msg.WorkDate = year+'-'+month+'-'+day;
this.getStoreList(); this.getStoreList();
this.getList(); this.getList();
this.myWidth = this.$refs.appoint.offsetWidth-50;
} }
}; };
...@@ -314,5 +316,11 @@ ...@@ -314,5 +316,11 @@
height: 100%; height: 100%;
background: #67C23A; background: #67C23A;
} }
.appointmentBoard .empty-text{
line-height: 60px;
color: #909399;
text-align: center;
border-bottom: 1px solid #EBEEF5;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment