I look at the details of a row in the X page of page A, which is the new page B. when I click confirm or return on page B, how do I return to the X page of page A.
Page A:
< script >
$(document).ready(function () {
$("-sharptable_list").bootstrapTable({method:"POST"...});
$("-sharptable_list").bootstrapTable("hideColumn", "roleId");
}
function viewDetail(id) { window.location.href="${appServer}/service/purchase/transferPlan/clientConfirmDetail.htm?id="+id;
}
< / script >
Page button B:
<div class="footer-btn" v-if="!isView">
<button type="button" class="btn btn-info" v-on:click="submitForm()"></button>
<button type="button" class="btn btn-info" v-on:click="cancel"></button>
</div>
methods: {
submitForm: function(){
var _this = this;
var isSuccess = this.validatePlan();
if (!isSuccess){
return false;
}
var planAttach = $(".file-container a:eq(0)");
if (_this.clientFile && !planAttach.text()){
layer.alert("");
return false;
}
var index = layer.confirm("", {
btn: ["",""] //
}, function(){
_this.submitDefinePlan();
}, function(){
layer.close(index);
});
},
cancel: function(){ window.location.href="${appServer}/service/purchase/transferPlan/clientConfirmReceiptList.htm";
},