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
zhouqian
vue-gjjs
Commits
4ab1c7a8
Commit
4ab1c7a8
authored
Jun 03, 2021
by
liuxin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
d9690ed7
98cd4a95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
commonApi.js
src/mixin/commonApi.js
+12
-0
No files found.
src/mixin/commonApi.js
View file @
4ab1c7a8
...
@@ -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
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