|
@@ -140,7 +140,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 提交 -->
|
|
|
- <div class="f-btns" v-if="allPf.length==zbItem.length">
|
|
|
+ <div class="f-btns">
|
|
|
<a-button size="large" @click="saveZbPlImgs" type="primary" block> 提交 </a-button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -179,18 +179,6 @@
|
|
|
let _this = this
|
|
|
moment.locale('zh-cn');
|
|
|
},
|
|
|
- computed: {
|
|
|
- // 判断是否全部评分
|
|
|
- finishPc() {
|
|
|
- let allPf = []
|
|
|
- this.zbItem.map(item=>{
|
|
|
- if(item.result&&item.result!=''){
|
|
|
- allPf.push(true)
|
|
|
- }
|
|
|
- })
|
|
|
- return allPf
|
|
|
- }
|
|
|
- },
|
|
|
methods: {
|
|
|
// 重置页面
|
|
|
resetPage() {
|
|
@@ -440,7 +428,18 @@
|
|
|
},
|
|
|
// 提交此次任务
|
|
|
submitTask() {
|
|
|
- this.sendMsg('submitTask', JSON.stringify(this.zbItem))
|
|
|
+ // 判断是否全部评分
|
|
|
+ let allPf = []
|
|
|
+ this.zbItem.map(item=>{
|
|
|
+ if(item.result&&item.result!=''){
|
|
|
+ allPf.push(true)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if(allPf.length == this.zbItem.length){
|
|
|
+ this.sendMsg('submitTask', JSON.stringify(this.zbItem))
|
|
|
+ }else{
|
|
|
+ this.sendMsg('toast', '请完成所有的项目')
|
|
|
+ }
|
|
|
},
|
|
|
}
|
|
|
})
|