task#14072,后台进入没有返回按钮,终止原因放进弹框
This commit is contained in:
@ -101,7 +101,15 @@
|
|||||||
<div class="btnWrap" v-if="detailInfo.states == 3">
|
<div class="btnWrap" v-if="detailInfo.states == 3">
|
||||||
<div class="stoping pass" @click="show=true">维保终止</div>
|
<div class="stoping pass" @click="show=true">维保终止</div>
|
||||||
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -119,6 +127,7 @@ export default {
|
|||||||
detailInfo:'',
|
detailInfo:'',
|
||||||
show:false,
|
show:false,
|
||||||
auditRemark:'',
|
auditRemark:'',
|
||||||
|
reason:'',
|
||||||
// activeIndex:'',
|
// activeIndex:'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -154,7 +163,7 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
async handleConfirm(){
|
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){
|
if (res.code==200){
|
||||||
this.show=false
|
this.show=false
|
||||||
await this.getDetail();
|
await this.getDetail();
|
||||||
|
@ -61,7 +61,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
if(urlParams.get('id')){//后台进入此页面没有返回按钮
|
if(urlParams.get('status')){//后台进入此页面没有返回按钮
|
||||||
this.isShowBackBtn=false
|
this.isShowBackBtn=false
|
||||||
}else{
|
}else{
|
||||||
this.isShowBackBtn=true
|
this.isShowBackBtn=true
|
||||||
@ -159,10 +159,10 @@ export default {
|
|||||||
.navBar{
|
.navBar{
|
||||||
height: 46px;
|
height: 46px;
|
||||||
}
|
}
|
||||||
.listWrap{
|
/*.listWrap{
|
||||||
height: calc(100% - 100px);
|
height: calc(100% - 100px);
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}*/
|
||||||
.listItem{
|
.listItem{
|
||||||
padding: 11px 28px 11px 23px;
|
padding: 11px 28px 11px 23px;
|
||||||
div{
|
div{
|
||||||
|
Reference in New Issue
Block a user