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
ffbd3384
Commit
ffbd3384
authored
Jun 03, 2021
by
潘际乾
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://114.115.138.98:8900/fukai/vue-gjjs
parents
6b02978c
4ab1c7a8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
65 additions
and
68 deletions
+65
-68
commonApi.js
src/mixin/commonApi.js
+12
-0
Check.js
src/model/Ditopn/Check.js
+0
-0
Default.js
src/model/Ditopn/Default.js
+0
-0
Default.js
src/model/Sptsel/Default.js
+11
-22
Default.js
src/model/Trnrel/Default.js
+14
-10
Event.js
src/model/Trnrel/Event.js
+16
-14
index.vue
src/views/Business/Sptsel/index.vue
+6
-10
index.vue
src/views/Business/Trnrel/index.vue
+6
-12
No files found.
src/mixin/commonApi.js
View file @
ffbd3384
...
@@ -5,6 +5,9 @@ export default {
...
@@ -5,6 +5,9 @@ export default {
data
(){
data
(){
return
{}
return
{}
},
},
mounted
(){
this
.
restoreDisplay
()
},
methods
:{
methods
:{
init
(
params
){
init
(
params
){
params
=
params
||
{}
params
=
params
||
{}
...
@@ -41,6 +44,14 @@ export default {
...
@@ -41,6 +44,14 @@ export default {
params
=
params
||
{}
params
=
params
||
{}
let
data
=
Utils
.
flatObject
(
this
.
model
)
let
data
=
Utils
.
flatObject
(
this
.
model
)
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/pending"
,{...
data
,
params
})
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/pending"
,{...
data
,
params
})
},
restoreDisplay
()
{
let
inr
=
this
.
$route
.
query
.
trn
if
(
!
inr
)
return
let
data
=
Api
.
post
(
"display/"
+
inr
)
console
.
log
(
data
)
}
}
}
}
}
}
\ No newline at end of file
src/model/Ditopn/Check.js
View file @
ffbd3384
This diff is collapsed.
Click to expand it.
src/model/Ditopn/Default.js
View file @
ffbd3384
This diff is collapsed.
Click to expand it.
src/model/Sptsel/Default.js
View file @
ffbd3384
...
@@ -40,34 +40,23 @@ function defaultDlmft() {
...
@@ -40,34 +40,23 @@ function defaultDlmft() {
function
defaultButimg
()
{
function
defaultButimg
()
{
}
}
async
function
defaultDflg
()
{
async
function
defaultDflg
()
{
let
rtnmsg
=
await
Api
.
post
(
"sptsel/default/dflg"
,
Utils
.
flatObject
(
this
.
model
))
const
that
=
this
;
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
that
.
executeDefault
(
"dflg"
).
then
(
res
=>
{
//TODO 处理数据逻辑
that
.
model
.
dflg
=
res
.
data
.
dflg
;
//this.model = Utils.copyValueFromVO(this.model, rtnmsg.data);
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
}
async
function
defaultYptinf
()
{
async
function
defaultYptinf
()
{
let
rtnmsg
=
await
Api
.
post
(
"sptsel/default/yptinf"
,
Utils
.
flatObject
(
this
.
model
))
const
that
=
this
;
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
that
.
executeDefault
(
"yptinf"
).
then
(
res
=>
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
//this.model = Utils.copyValueFromVO(this.model, rtnmsg.data);
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
}
function
defaultUsfmodUsrExtkey
()
{
function
defaultUsfmodUsrExtkey
()
{
}
}
async
function
defaultCheckbox
()
{
async
function
defaultCheckbox
()
{
let
rtnmsg
=
await
Api
.
post
(
"sptsel/default/sptstm"
,
Utils
.
flatObject
(
this
.
model
))
const
that
=
this
;
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
that
.
executeDefault
(
"sptstm"
).
then
(
res
=>
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
this
.
model
.
stmData
.
data
=
rtnmsg
.
data
.
sptstm
.
rows
;
that
.
$refs
.
Menu
.
stmData
.
data
=
res
.
data
.
sptstm
.
rows
;
}
})
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
}
src/model/Trnrel/Default.js
View file @
ffbd3384
...
@@ -56,7 +56,11 @@ function defaultTrnInfdsp() {
...
@@ -56,7 +56,11 @@ function defaultTrnInfdsp() {
}
}
function
defaultRecpanIncben
()
{
function
defaultRecpanIncben
()
{
}
}
function
defaultUsrcon
()
{
async
function
defaultUsrcon
()
{
const
that
=
this
;
that
.
executeDefault
(
"usrcon"
).
then
(
res
=>
{
this
.
model
.
usrcon
=
res
.
data
.
usrcon
;
})
}
}
function
defaultImgmodHisimg
()
{
function
defaultImgmodHisimg
()
{
}
}
...
@@ -73,20 +77,20 @@ function defaultImgmodNewhisimg() {
...
@@ -73,20 +77,20 @@ function defaultImgmodNewhisimg() {
function
defaultRecpanCpltxt
()
{
function
defaultRecpanCpltxt
()
{
}
}
async
function
defaultTrncorcoDflg
()
{
async
function
defaultTrncorcoDflg
()
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/default/trncorco.dflg"
,
Utils
.
flatObject
(
this
.
model
))
const
that
=
this
;
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
that
.
executeDefault
(
"trncorco.dflg"
).
then
(
res
=>
{
//TODO 处理数据逻辑
that
.
model
.
trncorco
.
dflg
=
res
.
data
.
trncorco_dflg
;
this
.
model
=
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
}
function
defaultOrddsp
()
{
function
defaultOrddsp
()
{
}
}
function
defaultRecpanUsrExtkey
()
{
function
defaultRecpanUsrExtkey
()
{
}
}
function
defaultAtptxt
()
{
async
function
defaultAtptxt
()
{
const
that
=
this
;
that
.
executeDefault
(
"atptxt"
).
then
(
res
=>
{
that
.
model
.
atptxt
=
res
.
data
.
atptxt
;
})
}
}
function
defaultRecpanAckgrpRecSndref
()
{
function
defaultRecpanAckgrpRecSndref
()
{
}
}
...
...
src/model/Trnrel/Event.js
View file @
ffbd3384
...
@@ -5,28 +5,30 @@ export default {
...
@@ -5,28 +5,30 @@ export default {
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/executeRule/searow"
,
Utils
.
flatObject
(
this
.
model
))
const
that
=
this
.
$parent
.
$parent
.
$parent
.
$parent
;
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
that
.
executeRule
(
"searow"
).
then
(
res
=>
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
this
.
stmData
.
data
=
rtnmsg
.
data
.
trncorco_trnstm
.
rows
;
that
.
$refs
.
inftrnps
.
stmData
.
data
=
res
.
data
.
trncorco_trnstm
.
rows
;
}
})
else
{
// let rtnmsg = await Api.post("trnrel/executeRule/searow", Utils.flatObject(this.model))
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
// if (rtnmsg.respCode == "AAAAAA") {
}
// //TODO 处理数据逻辑
// this.stmData.data = rtnmsg.data.trncorco_trnstm.rows;
// }
// else {
// this.$notify.error({ title: '错误', message: '服务请求失败!' });
// }
})
})
},
},
onSeajbh
()
{
onSeajbh
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/seajbh"
,
Utils
.
flatObject
(
this
.
model
))
const
that
=
this
.
$parent
.
$parent
.
$parent
.
$parent
;
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
that
.
executeRule
(
"seajbh"
).
then
(
res
=>
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
that
.
$refs
.
inftrnps
.
stmData
.
data
=
res
.
data
.
trncorco_trnstm
.
rows
;
}
})
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
})
},
},
onSeactr
()
{
onSeactr
()
{
...
...
src/views/Business/Sptsel/index.vue
View file @
ffbd3384
...
@@ -31,6 +31,7 @@ export default {
...
@@ -31,6 +31,7 @@ export default {
},
},
data
(){
data
(){
return
{
return
{
trnName
:
"sptsel"
,
model
:
new
Sptsel
().
data
,
model
:
new
Sptsel
().
data
,
checkRules
:
Check
,
checkRules
:
Check
,
defaultRules
:
Default
,
defaultRules
:
Default
,
...
@@ -45,17 +46,12 @@ export default {
...
@@ -45,17 +46,12 @@ export default {
methods
:{...
Event
},
methods
:{...
Event
},
mounted
:
async
function
(){
mounted
:
async
function
(){
console
.
log
(
"进入sptsel交易"
);
console
.
log
(
"进入sptsel交易"
);
let
rtnmsg
=
await
Api
.
post
(
"sptsel/init"
,
Utils
.
flatObject
(
this
.
model
))
const
that
=
this
;
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
that
.
init
(
that
.
model
).
then
(
res
=>
{
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
this
.
model
=
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
)
that
.
model
=
Utils
.
copyValueFromVO
(
that
.
model
,
res
.
data
)
this
.
$refs
.
Menu
.
stmData
.
columns
=
rtnmsg
.
data
.
sptstm
.
rows
;
that
.
$refs
.
Menu
.
stmData
.
columns
=
res
.
data
.
sptstm
.
rows
;
}
})
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
}
}
}
</
script
>
</
script
>
...
...
src/views/Business/Trnrel/index.vue
View file @
ffbd3384
...
@@ -47,6 +47,7 @@ export default {
...
@@ -47,6 +47,7 @@ export default {
},
},
data
(){
data
(){
return
{
return
{
trnName
:
"trnrel"
,
model
:
new
Trnrel
().
data
,
model
:
new
Trnrel
().
data
,
checkRules
:
Check
,
checkRules
:
Check
,
defaultRules
:
Default
,
defaultRules
:
Default
,
...
@@ -65,19 +66,12 @@ export default {
...
@@ -65,19 +66,12 @@ export default {
},
},
mounted
:
async
function
(){
mounted
:
async
function
(){
console
.
log
(
"进入trnrel交易"
);
console
.
log
(
"进入trnrel交易"
);
const
that
=
this
;
that
.
init
(
that
.
model
).
then
(
res
=>
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/init"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
that
.
model
=
Utils
.
copyValueFromVO
(
that
.
model
,
res
.
data
)
this
.
$refs
.
inftrnps
.
stmData
.
columns
=
rtnmsg
.
data
.
trncorco_trnstm
.
rows
that
.
$refs
.
inftrnps
.
stmData
.
columns
=
res
.
data
.
trncorco_trnstm
.
rows
}
})
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
}
}
}
</
script
>
</
script
>
...
...
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