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
3eb84f60
Commit
3eb84f60
authored
Jul 12, 2021
by
1377875331@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
08947264
6c3c40e5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
Event.js
src/model/Trnrel/Event.js
+21
-2
No files found.
src/model/Trnrel/Event.js
View file @
3eb84f60
...
@@ -50,6 +50,7 @@ export default {
...
@@ -50,6 +50,7 @@ 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/searow"
,
Utils
.
flatObject
(
this
.
model
))
let
rtnmsg
=
await
Api
.
post
(
"trnrel/searow"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
...
@@ -147,13 +148,23 @@ export default {
...
@@ -147,13 +148,23 @@ export default {
type
:
'success'
,
type
:
'success'
,
message
:
'Release成功!'
message
:
'Release成功!'
});
});
// this.onSearow();
await
this
.
sleep
(
2000
);
this
.
$router
.
go
(
0
);
}
}
else
{
else
{
that
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
that
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
})
})
},
},
sleep
(
ms
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
resolve
()
},
ms
)
})
},
onPrinte
()
{
onPrinte
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
...
@@ -194,7 +205,15 @@ export default {
...
@@ -194,7 +205,15 @@ export default {
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
var
cacheFileName
=
rtnmsg
.
data
.
cacheFileName
;
var
cacheFileName
=
rtnmsg
.
data
.
cacheFileName
;
Api
.
post
(
"trncor/init"
,
{
params
:{
"cacheFileName"
:
cacheFileName
}});
let
rejrowRtnmsg
=
await
Api
.
post
(
"trncor/init"
,
{
params
:{
"cacheFileName"
:
cacheFileName
}})
if
(
rejrowRtnmsg
.
respCode
==
"AAAAAA"
){
this
.
$message
({
type
:
'success'
,
message
:
'Reject成功!'
});
await
this
.
sleep
(
2000
);
this
.
$router
.
go
(
0
);
}
}
}
else
{
else
{
...
...
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