Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fukai
vue-gjjs
Commits
5019da51
Commit
5019da51
authored
Nov 10, 2022
by
wangna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bopsel查询、修改、删除跳转
parent
035d250b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
84 additions
and
27 deletions
+84
-27
Selp.vue
src/views/Business/Bopsel/Selp.vue
+84
-27
No files found.
src/views/Business/Bopsel/Selp.vue
View file @
5019da51
...
...
@@ -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"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment