This commit is contained in:
shijingjing
2022-07-15 17:07:56 +08:00
parent 034e0e463a
commit 1a1af84b1a
2 changed files with 37 additions and 8 deletions

View File

@@ -21,7 +21,8 @@
<div class="pie_info">
<div class="tips">数据更新于<span>{{ info.remindTime }}</span></div>
<div class="pie_card">
<div id="pieEcharts"></div>
<div v-if="info.executedCount!=null" id="pieEcharts"></div>
<AiEmpty description="暂无数据" v-else />
<div class="pie_right">
<div>计划送达居民群: <span>{{ info.planCount || 0 }}</span></div>
<div>未送达居民群: <span>{{ info.unExecutedCount || 0 }}</span></div>
@@ -29,7 +30,7 @@
<div>无法送达居民群: <span>{{ info.cannotExecuteCount || 0 }}</span></div>
</div>
</div>
<div class="btn" @click="remindSend">提醒成员发送</div>
<div class="btn" v-if="info.status == 4" @click="remindSend">提醒成员发送</div>
</div>
</div>
@@ -268,12 +269,13 @@ export default {
width: 100%;
align-items: center;
#pieEcharts {
// flex: 1;
width: 60%;
height: 400px;
}
::v-deep .emptyWrap {
width: 60%;
}
.pie_right {
// flex: 1;
width: 40%;
div {
margin-bottom: 10px;

View File

@@ -38,7 +38,7 @@
</div>
</div>
</div>
<div class="btn">
<div class="btn" v-if="data.status==0 && data.haveExaminPower">
<div class="refuse" @click="refuseBtn">拒绝通过</div>
<div class="pass" @click="passBtn">审核通过</div>
</div>
@@ -68,9 +68,36 @@ export default {
}
})
},
// 拒绝通过
refuseBtn() {},
// 审核通过
// 拒绝
refuseBtn() {
this.pass = 0
this.$confirm('确定要审核拒绝该数据?').then(() => {
this.examine()
})
},
// 通过
passBtn() {
this.pass = 1
this.$confirm('确定审核通过该数据?').then(() => {
this.examine()
})
},
examine() {
this.$http.post(`/app/appmasssendingtask/examine`,null,{
params: {
pass: this.pass,
id: this.id,
options: this.options
}
}).then(res => {
if(res?.code == 0) {
this.$u.toast('审批成功')
this.getDetail()
}
}).catch(err=> {
console.log(err);
})
},
},
onShow() {
document.title = "群发审批"