修改bug

This commit is contained in:
yangjun 2023-10-18 13:50:33 +08:00
parent ae0e65a573
commit f2b1cfaddd
2 changed files with 7 additions and 7 deletions

View File

@ -40,10 +40,10 @@
<!-- <a-col :span="24" > --> <!-- <a-col :span="24" > -->
<a-row style="text-align: center;"> <a-row style="text-align: center;">
<a-col :span="12"> <a-col :span="12">
<a-button type="primary" class="yyyClass" @click="toLivePage(item)" :disabled="!item.jsbh || !item.zhjsId">听课</a-button> <a-button type="primary" class="yyyClass" @click="toLivePage(item)" :disabled="!item.jsbh || !item.zhjsId || item.sftkb=='1'" style="color: white;">听课</a-button>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-button type="primary" class="bcClass" @click="funpingjia(item)" >评价</a-button> <a-button type="primary" class="bcClass" @click="funpingjia(item)" :disabled="item.sftkb=='1'" style="color: white;">评价</a-button>
</a-col> </a-col>
<!-- <a-col :span="8"> <!-- <a-col :span="8">
<a-button type="primary" class="bcClass" @click="handleBaocuo(item)">报错</a-button> <a-button type="primary" class="bcClass" @click="handleBaocuo(item)">报错</a-button>
@ -57,16 +57,16 @@
<!-- 正在上课的就给个评价 --> <!-- 正在上课的就给个评价 -->
<!-- <a-button type="primary" class="bcClass" @click="funpingjia(item)" >评价</a-button> --> <!-- <a-button type="primary" class="bcClass" @click="funpingjia(item)" >评价</a-button> -->
<a-button type="primary" class="bcClass" @click="funpingjia(item)" v-if="pjDisabled" style="background-color: #dfdfdf;" disabled>评价</a-button> <a-button type="primary" class="bcClass" @click="funpingjia(item)" v-if="pjDisabled" style="background-color: #dfdfdf;" disabled>评价</a-button>
<a-button type="primary" class="bcClass" @click="funpingjia(item)" v-else >评价</a-button> <a-button type="primary" class="bcClass" @click="funpingjia(item)" v-else style="color: white;" :disabled="item.sftkb=='1'">评价</a-button>
</span> </span>
<span v-else> <span v-else>
<a-button type="primary" class="yyyClass" disabled v-if="item.sfyy==1 && item.isdeleted==0">已预约</a-button> <a-button type="primary" class="yyyClass" disabled v-if="item.sfyy==1 && item.isdeleted==0">已预约</a-button>
<a-button type="primary" class="yyClass" @click="funYuyue(item)" v-if="item.sfyy==0 || (item.sfyy==1 && item.isdeleted==1)">预约</a-button> <a-button type="primary" class="yyClass" @click="funYuyue(item)" v-if="item.sfyy==0 || (item.sfyy==1 && item.isdeleted==1)" :disabled="item.sftkb=='1'" style="color: white;">预约</a-button>
</span> </span>
</div> </div>
<div v-show="isNow(item)"> <div v-show="isNow(item)">
<a-button type="primary" class="bcClass" @click="funpingjia(item)" v-if="pjDisabled" style="background-color: #dfdfdf;" disabled>评价</a-button> <a-button type="primary" class="bcClass" @click="funpingjia(item)" v-if="pjDisabled" style="background-color: #dfdfdf;" disabled>评价</a-button>
<a-button type="primary" class="bcClass" @click="funpingjia(item)" v-else >评价</a-button> <a-button type="primary" class="bcClass" @click="funpingjia(item)" v-else :disabled="item.sftkb=='1'" style="color: white;">评价</a-button>
</div> </div>
<!-- <a-col :span="24"> --> <!-- <a-col :span="24"> -->
<!-- <a-button type="primary" class="bcClass" @click="handleBaocuo(item)">报错</a-button> --> <!-- <a-button type="primary" class="bcClass" @click="handleBaocuo(item)">报错</a-button> -->

View File

@ -35,10 +35,10 @@
<a-col :span="24" > <a-col :span="24" >
<a-row style="text-align: center;" v-if="!isNow(item)"> <a-row style="text-align: center;" v-if="!isNow(item)">
<a-col :span="12" style="text-align: center;"> <a-col :span="12" style="text-align: center;">
<a-button type="primary" class="yyyClass" @click="toLivePage(item)">听课</a-button> <a-button type="primary" class="yyyClass" @click="toLivePage(item)" style="color: white;" :disabled="item.sftkb=='1'">听课</a-button>
</a-col> </a-col>
<a-col :span="12" style="text-align: center;"> <a-col :span="12" style="text-align: center;">
<a-button type="primary" class="yyClass" @click="funpingjia(item)">评价</a-button> <a-button type="primary" class="yyClass" @click="funpingjia(item)" style="color: white;" :disabled="item.sftkb=='1'">评价</a-button>
</a-col> </a-col>
<!-- <a-col :span="8"> <!-- <a-col :span="8">
<a-button type="primary" class="bcClass" @click="handleBaocuo(item)">报错</a-button> <a-button type="primary" class="bcClass" @click="handleBaocuo(item)">报错</a-button>