|
|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
<template> |
|
|
|
|
<div class="pro_con"> |
|
|
|
|
<div class="pro_box" v-for="item in proArr" :key="item.time"> |
|
|
|
|
<div class="pro_box" v-for="(item,index) in proArr" :key="item.time"> |
|
|
|
|
<div class="pro_top"> |
|
|
|
|
<div class="img_box"> |
|
|
|
|
<img src="~@/assets/image/time.png" alt="" /> |
|
|
|
|
@ -19,7 +19,7 @@ |
|
|
|
|
<div class="pro_pos">{{ item.cuAddr }}</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="pro_right"> |
|
|
|
|
<div class="cancel" @click="cancelButton(item)">取消项目</div> |
|
|
|
|
<div class="cancel" @click="cancelButton(index)">取消项目</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
@ -88,12 +88,14 @@ export default { |
|
|
|
|
// console.log("proArr",this.proArr) |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
cancelButton(val) { |
|
|
|
|
this.proArr = this.proArr.filter(item => item.name != val.name) |
|
|
|
|
if (this.proArr.length == 0) { |
|
|
|
|
this.$router.push({ |
|
|
|
|
name: 'examination' |
|
|
|
|
}) |
|
|
|
|
cancelButton(idx) { |
|
|
|
|
this.proArr.splice(idx,1); |
|
|
|
|
// this.proArr = this.proArr.filter(item => item.name != val.name) |
|
|
|
|
if (this.proArr.length === 0) { |
|
|
|
|
this.$router.go(-1); |
|
|
|
|
// this.$router.push({ |
|
|
|
|
// name: 'examination' |
|
|
|
|
// }) |
|
|
|
|
} |
|
|
|
|
// lightAppJssdk.notification.alert ({ |
|
|
|
|
// message: "这是一个弹窗", |
|
|
|
|
|