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
61653abf
Commit
61653abf
authored
Apr 03, 2023
by
chengzhuoshen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前端暂存代码
parent
944e6f03
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
2 deletions
+46
-2
index.js
src/business/gitopn/event/index.js
+28
-2
GitopnRequest.js
src/business/gitopn/model/GitopnRequest.js
+18
-0
No files found.
src/business/gitopn/event/index.js
View file @
61653abf
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
import
GitopnRequest
from
"../model/GitopnRequest"
export
default
{
export
default
{
methods
:
{
methods
:
{
//组GitopnRequest
buildGitopnRequest
()
{
let
gitopnRequest
=
new
GitopnRequest
().
data
;
gitopnRequest
.
transName
=
"GITOPN"
;
gitopnRequest
.
userId
=
window
.
sessionStorage
.
userId
||
'ZL'
;
gitopnRequest
.
liaccvg
=
this
.
model
.
liaccv
.
liaccvg
;
gitopnRequest
.
liaallg
=
this
.
model
.
liaall
.
liaallg
;
gitopnRequest
.
setfog
=
this
.
model
.
setmod
.
setfog
;
gitopnRequest
.
setfeg
=
this
.
model
.
setmod
.
setfeg
;
gitopnRequest
.
setglg
=
this
.
model
.
setmod
.
setglg
;
gitopnRequest
.
doceot
=
this
.
model
.
docpan
.
doceot
;
gitopnRequest
.
gidgrp
=
this
.
model
.
gidgrp
;
gitopnRequest
.
gitp
=
this
.
model
.
gitp
;
return
gitopnRequest
;
},
// 提交
// 提交
handleSubmit
()
{
handleSubmit
()
{
console
.
log
(
'提交'
,
this
.
model
)
console
.
log
(
'提交'
,
this
.
model
)
...
@@ -38,8 +54,18 @@ export default {
...
@@ -38,8 +54,18 @@ export default {
loading
.
close
()
loading
.
close
()
},
},
// 暂存
// 暂存
handleStash
()
{
async
handleStash
()
{
console
.
log
(
'暂存'
)
const
loading
=
this
.
loading
(
"正在暂存数据"
);
let
gitopnRequest
=
this
.
buildGitopnRequest
();
const
rtnmsg
=
await
Api
.
post
(
this
.
requestPrefix
+
"/txnHold"
,
gitopnRequest
);
if
(
rtnmsg
.
respCode
===
SUCCESS
)
{
this
.
$notify
({
title
:
"成功"
,
message
:
"暂存成功"
,
type
:
"success"
,
});
}
loading
.
close
();
},
},
// 点击获取按钮拉取当前key字段下的表单数据
// 点击获取按钮拉取当前key字段下的表单数据
queryFormData
(
key
)
{
queryFormData
(
key
)
{
...
...
src/business/gitopn/model/GitopnRequest.js
0 → 100644
View file @
61653abf
export
default
class
GitopnRequest
{
constructor
()
{
this
.
data
=
{
transName
:
""
,
userId
:
""
,
liaccvg
:
[],
liaallg
:
[],
setfog
:
{},
setfeg
:
{},
setglg
:
{},
doceot
:
[],
spt
:
{},
gidgrp
:
{},
gitp
:
{}
}
}
}
\ 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