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
2c4d8c8c
Commit
2c4d8c8c
authored
Jun 01, 2021
by
liuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
js文件调整
parent
d811d516
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
75 additions
and
82 deletions
+75
-82
Event.js
src/model/Ditopn/Event.js
+0
-0
Event.js
src/model/Sptsel/Event.js
+69
-75
Event.js
src/model/Trnrel/Event.js
+0
-0
index.vue
src/views/Business/Sptsel/index.vue
+5
-4
index.vue
src/views/Business/Trnrel/index.vue
+1
-3
No files found.
src/model/Ditopn/Event.js
View file @
2c4d8c8c
This diff is collapsed.
Click to expand it.
src/model/Sptsel/Event.js
View file @
2c4d8c8c
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils/index"
import
Utils
from
"~/utils/index"
export
default
{
export
default
{
onUsfmodShwflt
(){
onUsfmodShwflt
()
{
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
(
"sptsel/usfmod_shwflt"
,
Utils
.
flatObject
(
this
.
model
))
let
rtnmsg
=
await
Api
.
post
(
"sptsel/usfmod_shwflt"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
}
}
else
else
{
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
})
})
},
},
onButypt
()
{
onButypt
(){
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
(
"sptsel/butypt"
,
Utils
.
flatObject
(
this
.
model
))
let
rtnmsg
=
await
Api
.
post
(
"sptsel/butypt"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
//TODO 处理数据逻辑
{
//TODO 处理数据逻辑
}
}
else
else
{
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
})
})
},
},
onDlmft
()
{
onDlmft
(){
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
(
"sptsel/dlmft"
,
Utils
.
flatObject
(
this
.
model
))
let
rtnmsg
=
await
Api
.
post
(
"sptsel/dlmft"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
//TODO 处理数据逻辑
{
//TODO 处理数据逻辑
}
}
else
else
{
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
})
})
},
},
onDlaxq
()
{
onDlaxq
(){
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
(
"sptsel/dlaxq"
,
Utils
.
flatObject
(
this
.
model
))
let
rtnmsg
=
await
Api
.
post
(
"sptsel/dlaxq"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
//TODO 处理数据逻辑
{
//TODO 处理数据逻辑
}
}
else
else
{
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
})
})
},
},
onButimg
()
{
onButimg
(){
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
(
"sptsel/butimg"
,
Utils
.
flatObject
(
this
.
model
))
let
rtnmsg
=
await
Api
.
post
(
"sptsel/butimg"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
//TODO 处理数据逻辑
{
//TODO 处理数据逻辑
}
}
else
else
{
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
})
})
},
},
tabClick
()
{
},
}
}
\ No newline at end of file
src/model/Trnrel/Event.js
View file @
2c4d8c8c
This diff is collapsed.
Click to expand it.
src/views/Business/Sptsel/index.vue
View file @
2c4d8c8c
...
@@ -15,6 +15,7 @@ import CodeTable from "~/config/CodeTable"
...
@@ -15,6 +15,7 @@ import CodeTable from "~/config/CodeTable"
import
Sptsel
from
"~/Model/Sptsel"
import
Sptsel
from
"~/Model/Sptsel"
import
CommonProcess
from
"~/mixin/CommonProcess.js"
import
CommonProcess
from
"~/mixin/CommonProcess.js"
import
Pattern
from
"~/Model/Sptsel/Pattern"
import
Pattern
from
"~/Model/Sptsel/Pattern"
import
Utils
from
"~/utils/index"
import
Default
from
"~/model/Sptsel/Default"
;
import
Default
from
"~/model/Sptsel/Default"
;
import
Check
from
"~/model/Sptsel/Check"
;
import
Check
from
"~/model/Sptsel/Check"
;
import
Menu
from
"./Menu"
import
Menu
from
"./Menu"
...
@@ -37,17 +38,17 @@ export default {
...
@@ -37,17 +38,17 @@ export default {
rules
:
null
,
rules
:
null
,
codes
:{
codes
:{
},
},
declareParams
:{
"fileName"
:
"sptsel.json"
,
"basePath"
:
"{{basePath}}"
,
"method"
:
"post"
,
"scheme"
:
"{{schemes}}"
,
"host"
:
"{{host}}"
,
"consume"
:
"0"
,
"produce"
:
"0"
,
"uri"
:
"/sptsel/init"
},
}
}
},
},
methods
:{...
Event
},
methods
:{...
Event
},
mounted
:
async
function
(){
mounted
:
async
function
(){
console
.
log
(
"进入sptsel交易"
);
console
.
log
(
"进入sptsel交易"
);
let
rtnmsg
=
await
Api
.
post
(
"sptsel/init"
,
{
params
:{}}
)
let
rtnmsg
=
await
Api
.
post
(
"sptsel/init"
,
Utils
.
flatObject
(
this
.
model
)
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
//this.model = Utils.copyValueFromVO(this.model, rtnmsg.data)
//console.log(this.model)
}
}
else
else
{
{
...
...
src/views/Business/Trnrel/index.vue
View file @
2c4d8c8c
...
@@ -53,9 +53,7 @@ export default {
...
@@ -53,9 +53,7 @@ export default {
pattern
:
Pattern
,
pattern
:
Pattern
,
rules
:
null
,
rules
:
null
,
codes
:
{
codes
:
{
},
},
declareParams
:{
"fileName"
:
"trnrel.json"
,
"basePath"
:
"{{basePath}}"
,
"method"
:
"post"
,
"scheme"
:
"{{schemes}}"
,
"host"
:
"{{host}}"
,
"consume"
:
"0"
,
"produce"
:
"0"
,
"uri"
:
"/trnrel/init"
},
}
}
},
},
methods
:{
methods
:{
...
...
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