task#14072,后台进入没有返回按钮,终止原因放进弹框

This commit is contained in:
2024-06-19 15:42:06 +08:00
parent 4ca4d51e29
commit 21e9d82923
2 changed files with 14 additions and 5 deletions

View File

@ -101,7 +101,15 @@
<div class="btnWrap" v-if="detailInfo.states == 3">
<div class="stoping pass" @click="show=true">维保终止</div>
</div>
<van-dialog v-model="show" title="请确认是否终止维保" show-cancel-button @confirm="handleConfirm"></van-dialog>
<van-dialog v-model="show" title="请确认是否终止维保" show-cancel-button @confirm="handleConfirm">
<van-field
type="text"
v-model="reason"
placeholder="请输入终止原因"
show-word-limit
class="message"
/>
</van-dialog>
</div>
</template>
@ -119,6 +127,7 @@ export default {
detailInfo:'',
show:false,
auditRemark:'',
reason:'',
// activeIndex:'',
}
},
@ -154,7 +163,7 @@ export default {
},
async handleConfirm(){
let res=await vehicleMaintenanceStop({id:this.rowInfo.id, vehicleId:this.rowInfo.vehicleId, auditRemark:this.auditRemark,})
let res=await vehicleMaintenanceStop({id:this.rowInfo.id, vehicleId:this.rowInfo.vehicleId, auditRemark:this.reason,})
if (res.code==200){
this.show=false
await this.getDetail();

View File

@ -61,7 +61,7 @@ export default {
},
mounted() {
const urlParams = new URLSearchParams(window.location.search);
if(urlParams.get('id')){//后台进入此页面没有返回按钮
if(urlParams.get('status')){//后台进入此页面没有返回按钮
this.isShowBackBtn=false
}else{
this.isShowBackBtn=true
@ -159,10 +159,10 @@ export default {
.navBar{
height: 46px;
}
.listWrap{
/*.listWrap{
height: calc(100% - 100px);
overflow-y: auto;
}
}*/
.listItem{
padding: 11px 28px 11px 23px;
div{