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
f003373f
Commit
f003373f
authored
Dec 27, 2021
by
fukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支持setvalues设置集合
parent
8366ed5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
13 deletions
+48
-13
commonApi.js
src/mixin/commonApi.js
+48
-13
No files found.
src/mixin/commonApi.js
View file @
f003373f
import
Vue
from
"vue"
import
Api
from
"~/service/Api"
import
Utils
from
"../utils"
export
default
{
data
()
{
return
{}
return
{
codeSet
:{}
//setvalues的接收码表
}
},
mounted
()
{
//this.restoreDisplay()
},
methods
:
{
init
(
params
)
{
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/init"
,
{
params
})
updapteValueSet
(
values
){
if
(
!
values
){
return
}
for
(
let
key
in
values
){
Vue
.
set
(
this
.
codeSet
,
key
,
values
[
key
])
}
},
async
init
(
params
)
{
let
rtnmsg
=
await
Api
.
post
(
this
.
declareParams
.
trnName
+
"/init"
,
{
params
})
if
(
rtnmsg
.
respCode
==
SUCCESS
){
this
.
updapteValueSet
(
rtnmsg
.
codeSet
)
}
return
rtnmsg
},
save
(
params
)
{
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/saveData"
,
this
.
wrapper
(
params
))
},
executeCheck
(
rulePath
,
params
){
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/executeCheck/"
+
rulePath
,
this
.
wrapper
(
params
))
async
executeCheck
(
rulePath
,
params
){
let
rtnmsg
=
await
Api
.
post
(
this
.
declareParams
.
trnName
+
"/executeCheck/"
+
rulePath
,
this
.
wrapper
(
params
))
if
(
rtnmsg
.
respCode
==
SUCCESS
){
this
.
updapteValueSet
(
rtnmsg
.
codeSet
)
}
return
rtnmsg
},
executeDefault
(
rulePath
,
params
)
{
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/executeDefault/"
+
rulePath
,
this
.
wrapper
(
params
))
async
executeDefault
(
rulePath
,
params
)
{
let
rtnmsg
=
await
Api
.
post
(
this
.
declareParams
.
trnName
+
"/executeDefault/"
+
rulePath
,
this
.
wrapper
(
params
))
if
(
rtnmsg
.
respCode
==
SUCCESS
){
this
.
updapteValueSet
(
rtnmsg
.
codeSet
)
}
return
rtnmsg
},
executeRule
(
rulePath
,
params
,
delayCb
)
{
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/executeRule/"
+
rulePath
,
this
.
wrapper
(
params
,
delayCb
))
async
executeRule
(
rulePath
,
params
,
delayCb
)
{
let
rtnmsg
=
await
Api
.
post
(
this
.
declareParams
.
trnName
+
"/executeRule/"
+
rulePath
,
this
.
wrapper
(
params
,
delayCb
))
if
(
rtnmsg
.
respCode
==
SUCCESS
){
this
.
updapteValueSet
(
rtnmsg
.
codeSet
)
}
return
rtnmsg
},
async
checkAll
(
params
)
{
const
res
=
await
Api
.
post
(
this
.
declareParams
.
trnName
+
"/checkAll"
,
this
.
wrapper
(
params
))
return
res
const
rtnmsg
=
await
Api
.
post
(
this
.
declareParams
.
trnName
+
"/checkAll"
,
this
.
wrapper
(
params
))
if
(
rtnmsg
.
respCode
==
SUCCESS
){
this
.
updapteValueSet
(
rtnmsg
.
codeSet
)
}
return
rtnmsg
},
pedding
(
params
)
{
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/pending"
,
this
.
wrapper
(
params
))
...
...
@@ -38,8 +68,12 @@ export default {
let
data
=
await
Api
.
post
(
"display/"
+
inr
)
Utils
.
copyValueFromVO
(
this
.
model
,
JSON
.
parse
(
data
.
data
))
},
executeNotify
(
params
)
{
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/executeNotify"
,
this
.
wrapper
(
params
))
async
executeNotify
(
params
)
{
const
rtnmsg
=
await
Api
.
post
(
this
.
declareParams
.
trnName
+
"/executeNotify"
,
this
.
wrapper
(
params
))
if
(
rtnmsg
.
respCode
==
SUCCESS
){
this
.
updapteValueSet
(
rtnmsg
.
codeSet
)
}
return
rtnmsg
},
}
}
\ No newline at end of file
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