|
@@ -4,10 +4,10 @@
|
|
|
|
|
|
<div class="login_form">
|
|
|
<div class="formBatch">
|
|
|
- <van-checkbox v-model="isAllChecked" @click="allChecked" shape="square" style="padding-left:3vw"></van-checkbox>
|
|
|
+ <van-checkbox v-model="isAllChecked" :disabled="report.length == 0" @click="allChecked" shape="square" style="padding-left:3vw"></van-checkbox>
|
|
|
<div style="padding:1vh 2vw">
|
|
|
- <van-button @click="batchAgree(true)" :disabled="!isCanAgree" type="info" size="small">批量通过</van-button>
|
|
|
- <van-button @click="batchAgree(false)" :disabled="!isCanAgree" type="danger" size="small" style="margin-left:2vw">批量驳回</van-button>
|
|
|
+ <van-button @click="batchAgree(true)" :disabled="!isCanAgree || report.length == 0" type="info" size="small">批量通过</van-button>
|
|
|
+ <van-button @click="batchAgree(false)" :disabled="!isCanAgree || report.length == 0" type="danger" size="small" style="margin-left:2vw">批量驳回</van-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<van-skeleton v-for="(item,index) in report" :key="index" title avatar :row="3" :loading="false">
|
|
@@ -247,6 +247,10 @@
|
|
|
if(res.code == "ok") {
|
|
|
this.$toast.clear();
|
|
|
this.report = res.data;
|
|
|
+ // this.isAllChecked = this.report.length == 0 ? false : true
|
|
|
+ if(this.report.length == 0){
|
|
|
+ this.isAllChecked = false
|
|
|
+ }
|
|
|
for(let i in this.report){
|
|
|
this.$set(this.report[i],'checked',false)
|
|
|
}
|