Commit 5019da51 by wangna

bopsel查询、修改、删除跳转

parent 035d250b
......@@ -292,6 +292,7 @@ import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bopsel/Event";
import Utils from "~/utils";
export default {
inject: ["root"],
......@@ -349,41 +350,97 @@ export default {
};
},
methods: { ...Event ,
// async onWaitDetail(idx, row) {
// console.log(idx);
// console.log(row);
// console.log(row.申报类型);
// let business=row.申报类型.toLowerCase() +"inf";
// let url = "/business/"+business;
// console.log(url);
// //url ="/business/"+"litopn";
// console.log(url);
// this.$router.history.push(url);
// },
async onWaitDetail(idx, row) {
console.log(idx);
console.log(row);
console.log(row.申报类型);
let business=row.申报类型.toLowerCase() +"inf";
let url = "/business/"+business;
console.log(url);
//url ="/business/"+"litopn";
console.log(url);
this.$router.history.push(url);
let business=row.申报类型.toLowerCase() +"inf";
let viewurl = "/business/"+business;
const selIds = [idx + 1];
const selDst = "dblstm" //列表对应后台模型中的stream
let params = { selDst, selIds };
this.executeRule("dtlbut",params).then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
// this.$router.push({ path: "business/inftrnpsDetail", query: { idx: idx}});
this.$router.push({ path: viewurl, query: {} });
}else{
const h = this.$createElement;
const msg = res.respMsg||'请求执行失败!'
this.$notify.error({ title: '错误', message: h('p',{style: 'word-break:break-all;'}, msg) })
}
});
},
async onWaitAmend(idx, row) {
console.log(idx);
console.log(row);
console.log(row.申报类型);
let business=row.申报类型.toLowerCase() +"ame";
let url = "/business/"+business;
console.log(url);
//url ="/business/"+"litopn";
console.log(url);
this.$router.history.push(url);
let business=row.申报类型.toLowerCase() +"ame";
let viewurl = "/business/"+business;
const selIds = [idx + 1];
const selDst = "dblstm" //列表对应后台模型中的stream
let params = { selDst, selIds };
this.executeRule("amebut",params).then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
// this.$router.push({ path: "business/inftrnpsDetail", query: { idx: idx}});
this.$router.push({ path: viewurl, query: {} });
}else{
const h = this.$createElement;
const msg = res.respMsg||'请求执行失败!'
this.$notify.error({ title: '错误', message: h('p',{style: 'word-break:break-all;'}, msg) })
}
});
},
async onWaitDelete(idx, row) {
console.log(idx);
console.log(row);
console.log(row.申报类型);
let business=row.申报类型.toLowerCase() +"del";
let url = "/business/"+business;
console.log(url);
//url ="/business/"+"litopn";
console.log(url);
this.$router.history.push(url);
let business=row.申报类型.toLowerCase() +"del";
let viewurl = "/business/"+business;
const selIds = [idx + 1];
const selDst = "dblstm" //列表对应后台模型中的stream
let params = { selDst, selIds };
this.executeRule("delbut",params).then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
// this.$router.push({ path: "business/inftrnpsDetail", query: { idx: idx}});
this.$router.push({ path: viewurl, query: {} });
}else{
const h = this.$createElement;
const msg = res.respMsg||'请求执行失败!'
this.$notify.error({ title: '错误', message: h('p',{style: 'word-break:break-all;'}, msg) })
}
});
},
// async onWaitAmend(idx, row) {
// console.log(idx);
// console.log(row);
// console.log(row.申报类型);
// let business=row.申报类型.toLowerCase() +"ame";
// let url = "/business/"+business;
// console.log(url);
// //url ="/business/"+"litopn";
// console.log(url);
// this.$router.history.push(url);
// },
// async onWaitDelete(idx, row) {
// console.log(idx);
// console.log(row);
// console.log(row.申报类型);
// let business=row.申报类型.toLowerCase() +"del";
// let url = "/business/"+business;
// console.log(url);
// //url ="/business/"+"litopn";
// console.log(url);
// this.$router.history.push(url);
// },
},
created: function () {
this.model.bopquep.boptyp = "ALL";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment