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
af947ea2
Commit
af947ea2
authored
Oct 26, 2021
by
潘际乾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Event.js的请求方式修改
parent
4b48e871
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1086 additions
and
1776 deletions
+1086
-1776
Event.js
src/model/Cptadv/Event.js
+181
-288
Event.js
src/model/Cptopn/Event.js
+194
-307
Event.js
src/model/Ditame/Event.js
+351
-560
Event.js
src/model/Ditopn/Event.js
+182
-276
Event.js
src/model/Infpta/Event.js
+64
-105
Event.js
src/model/Sptsel/Event.js
+45
-65
Event.js
src/model/Trnrel/Event.js
+69
-175
No files found.
src/model/Cptadv/Event.js
View file @
af947ea2
import
Api
from
"~/service/Api"
export
default
{
onCptpGetref
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/cptp_getref"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpGetinf
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/cptp_getinf"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpGetuetr
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/cptp_getuetr"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpSelbut
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/cptp_selbut"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpSelbut1
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/cptp_selbut1"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSndpDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/sndp_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onOripDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/orip_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpGetmod
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/cptp_getmod"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onOrcpDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/orcp_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onPyepDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/pyep_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpSerpty
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/cptp_serpty"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSetmodDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/setmod_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButshw
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/trndoc_butshw"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButadd
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/trndoc_butadd"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButnew
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/trndoc_butnew"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButattto
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/trndoc_butattto"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButdel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/trndoc_butdel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButatt
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptadv/trndoc_butatt"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
async
onCptpGetref
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_getref"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onCptpGetinf
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_getinf"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onCptpGetuetr
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_getuetr"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onCptpSelbut
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_selbut"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onCptpSelbut1
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_selbut1"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSndpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"sndp_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onOripDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"orip_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onCptpGetmod
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_getmod"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onOrcpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"orcp_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onPyepDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"pyep_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onCptpSerpty
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_serpty"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSetmodDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"setmod_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButshw
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butshw"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButadd
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butadd"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButnew
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butnew"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButattto
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butattto"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButdel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butdel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButatt
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butatt"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
}
\ No newline at end of file
src/model/Cptopn/Event.js
View file @
af947ea2
import
Api
from
"~/service/Api"
export
default
{
onCptpGetref
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/cptp_getref"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpGetinf
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/cptp_getinf"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpGetuetr
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/cptp_getuetr"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpSelbut
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/cptp_selbut"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpSelbut1
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/cptp_selbut1"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSndpDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/sndp_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onOripDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/orip_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpGetmod
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/cptp_getmod"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onOrcpDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/orcp_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onPyepDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/pyep_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpSerpty
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/cptp_serpty"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSetmodDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/setmod_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButshw
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/trndoc_butshw"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButadd
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/trndoc_butadd"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButnew
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/trndoc_butnew"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButattto
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/trndoc_butattto"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButdel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/trndoc_butdel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButatt
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/trndoc_butatt"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSeainf
()
{
},
onFippDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"cptopn/fipp_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCptpGetref
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_getref"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onCptpGetinf
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_getinf"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onCptpGetuetr
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_getuetr"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onCptpSelbut
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_selbut"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onCptpSelbut1
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_selbut1"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onSndpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"sndp_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onOripDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"orip_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onCptpGetmod
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_getmod"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onOrcpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"orcp_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onPyepDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"pyep_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onCptpSerpty
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"cptp_serpty"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onSetmodDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"setmod_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onTrndocButshw
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butshw"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onTrndocButadd
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butadd"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onTrndocButnew
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butnew"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onTrndocButattto
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butattto"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onTrndocButdel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butdel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onTrndocButatt
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butatt"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onSeainf
()
{
},
onFippDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"fipp_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
}
\ No newline at end of file
src/model/Ditame/Event.js
View file @
af947ea2
import
Api
from
"~/service/Api"
export
default
{
onDitpButgetref
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/ditp_butgetref"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onAplpDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/aplp_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onBenpDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/benp_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onDefdetButtxmsel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/defdet_buttxmsel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onPreperButtxmsel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/preper_buttxmsel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLcrgodButtxmsel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/lcrgod_buttxmsel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLcrdocButtxmsel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/lcrdoc_buttxmsel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onAdlcndButtxmsel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/adlcnd_buttxmsel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onInsbnkButtxmsel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/insbnk_buttxmsel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSav
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/sav"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onUsrcon
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/usrcon"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onChk
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/chk"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onUsrchk
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/usrchk"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSyswrnButshw
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/syswrn_butshw"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onPen
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/pen"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onCan
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/can"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLcrgodameButtxmsel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/lcrgodame_buttxmsel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLcrdocameButtxmsel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/lcrdocame_buttxmsel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onAdlcndameButtxmsel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/adlcndame_buttxmsel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLiaallButmisamt
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/liaall_butmisamt"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLiaallButmissig
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/liaall_butmissig"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLiaccvAdd
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/liaccv_add"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLiaccvDel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/liaccv_del"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSetmodDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/setmod_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButshw
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/trndoc_butshw"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButadd
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/trndoc_butadd"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButnew
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/trndoc_butnew"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButattto
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/trndoc_butattto"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButdel
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/trndoc_butdel"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onTrndocButatt
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/trndoc_butatt"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onWrkpDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/wrkp_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onOthpDet
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/othp_det"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLimptsGet1
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/limpts_get1"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLimptsGet2
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/limpts_get2"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLimmodTrycal
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditame/limmod_trycal"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
async
onDitpButgetref
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"ditp_butgetref"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onAplpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"aplp_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onBenpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"benp_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onDefdetButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"defdet_buttxmsel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onPreperButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"preper_buttxmsel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLcrgodButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"lcrgod_buttxmsel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLcrdocButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"lcrdoc_buttxmsel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onAdlcndButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"adlcnd_buttxmsel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onInsbnkButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"insbnk_buttxmsel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSav
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"sav"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onUsrcon
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"usrcon"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onChk
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"chk"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onUsrchk
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"usrchk"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSyswrnButshw
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"syswrn_butshw"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onPen
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"pen"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onCan
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"can"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLcrgodameButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"lcrgodame_buttxmsel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLcrdocameButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"lcrdocame_buttxmsel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onAdlcndameButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"adlcndame_buttxmsel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLiaallButmisamt
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"liaall_butmisamt"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLiaallButmissig
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"liaall_butmissig"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLiaccvAdd
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"liaccv_add"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLiaccvDel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"liaccv_del"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSetmodDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"setmod_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButshw
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butshw"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButadd
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butadd"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButnew
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butnew"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButattto
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butattto"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButdel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butdel"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onTrndocButatt
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"trndoc_butatt"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onWrkpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"wrkp_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onOthpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"othp_det"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLimptsGet1
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"limpts_get1"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLimptsGet2
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"limpts_get2"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLimmodTrycal
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"limmod_trycal"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
}
\ No newline at end of file
src/model/Ditopn/Event.js
View file @
af947ea2
...
...
@@ -2,10 +2,10 @@ import Api from "~/service/Api"
import
Utils
from
"~/utils/index"
export
default
{
async
onDitpButgetref
()
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeRule/ditp.butgetref"
,
this
.
wrapper
()
)
let
rtnmsg
=
await
this
.
executeRule
(
"ditp.butgetref"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
this
.
model
.
didgrp
.
rec
.
ownref
=
rtnmsg
.
data
.
didgrp_rec_ownref
this
.
model
.
didgrp
.
rec
.
ownref
=
rtnmsg
.
data
.
didgrp_rec_ownref
this
.
$message
({
type
:
'success'
,
message
:
'获取成功!'
...
...
@@ -16,7 +16,7 @@ export default {
}
},
async
onAplpDet
()
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeRule/ditp.aplp.det"
,
this
.
wrapper
()
)
let
rtnmsg
=
await
this
.
executeRule
(
"ditp.aplp.det"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
// console.log(rtnmsg.data);
...
...
@@ -25,285 +25,191 @@ export default {
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onBenpDet
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/benp_det"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onBenpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"benp_det"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onRevclauseButtxmsel
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/revclause_buttxmsel"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onRevclauseButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"revclause_buttxmsel"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onLcrgodButtxmsel
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/lcrgod_buttxmsel"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onLcrgodButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"lcrgod_buttxmsel"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onLcrdocButtxmsel
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/lcrdoc_buttxmsel"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onLcrdocButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"lcrdoc_buttxmsel"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onAdlcndButtxmsel
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/adlcnd_buttxmsel"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onAdlcndButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"adlcnd_buttxmsel"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onInsbnkButtxmsel
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/insbnk_buttxmsel"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onInsbnkButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"insbnk_buttxmsel"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onRmbpDet
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/rmbp_det"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onRmbpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"rmbp_det"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onDefdetButtxmsel
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/defdet_buttxmsel"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onDefdetButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"defdet_buttxmsel"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onPreperButtxmsel
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/preper_buttxmsel"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onPreperButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"preper_buttxmsel"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onSetmodDet
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/setmod_det"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onSetmodDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"setmod_det"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onLiaallButmisamt
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/liaall_butmisamt"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onLiaallButmisamt
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"liaall_butmisamt"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onLiaallButmissig
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/liaall_butmissig"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onLiaallButmissig
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"liaall_butmissig"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onWrkpDet
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/wrkp_det"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onWrkpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"wrkp_det"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onOthpDet
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/othp_det"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onOthpDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"othp_det"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onLimptsGet1
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/limpts_get1"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onLimptsGet1
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"limpts_get1"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onLimptsGet2
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/limpts_get2"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onLimptsGet2
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"limpts_get2"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onLimmodTrycal
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/limmod_trycal"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onLimmodTrycal
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"limmod_trycal"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLiaccvAdd
()
{
// this.root.$refs.modelForm.validate(async valid => {
// if (!valid)
// return;
// let rtnmsg = await Api.post("ditopn/liaccv_add", this.wrapper())
// if (rtnmsg.respCode == "AAAAAA") {
// //TODO 处理数据逻辑
// }
// else {
// this.$notify.error({ title: '错误', message: '服务请求失败!' });
// }
// })
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeRule/liaall.liaccv.add"
,
this
.
wrapper
())
let
rtnmsg
=
await
this
.
executeRule
(
"liaall.liaccv.add"
)
//const that = this.root;
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
debugger
;
this
.
stmData
.
data
=
rtnmsg
.
data
.
liaall_liaccv_stgstm
.
rows
;
this
.
dialogTableVisible
=
true
;
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onLiaccvDel
()
{
// this.root.$refs.modelForm.validate(async valid => {
// if (!valid)
// return;
// let rtnmsg = await Api.post("ditopn/executeRule/liaall.liaccv.del", this.wrapper())
// if (rtnmsg.respCode == "AAAAAA") {
// //TODO 处理数据逻辑
// }
// else {
// this.$notify.error({ title: '错误', message: '服务请求失败!' });
// }
// })
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeRule/liaall.liaccv.del"
,
this
.
wrapper
())
let
rtnmsg
=
await
this
.
executeRule
(
"liaall.liaccv.del"
)
//const that = this.root;
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
...
...
@@ -313,7 +219,7 @@ export default {
message
:
'删除成功!'
});
//this.model.liaall.liaccv.liaccvg = [];
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
}
else
{
...
...
@@ -323,12 +229,12 @@ export default {
onSeainf
()
{
},
async
handleDisplay
(
index
,
row
){
async
handleDisplay
(
index
,
row
)
{
let
cortyp
=
row
.
cortyp
let
rtnmsg
if
(
cortyp
==
'SWT'
||
cortyp
==
'FMT'
||
cortyp
==
'CMT'
)
{
if
(
cortyp
==
'SWT'
||
cortyp
==
'FMT'
||
cortyp
==
'CMT'
)
{
this
.
model
.
setmod
.
msgmod
.
doccod
=
row
.
id
rtnmsg
=
await
Api
.
post
(
'cptopn/msgmod_butshw'
,
{
data
:
this
.
wrapper
()
}
)
rtnmsg
=
await
Api
.
post
(
'cptopn/msgmod_butshw'
,
this
.
wrapper
()
)
}
else
{
this
.
model
.
trnmod
.
trndoc
.
doccod
=
row
.
id
this
.
model
.
trnmod
.
trndoc
.
cortyp
=
cortyp
...
...
@@ -339,40 +245,40 @@ export default {
}
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
if
(
cortyp
==
'SWT'
||
cortyp
==
'FMT'
||
cortyp
==
'CMT'
)
{
let
viewurl
=
rtnmsg
.
data
.
setmod_msgmod_docpth
;
let
viewurl
=
rtnmsg
.
data
.
setmod_msgmod_docpth
;
this
.
viewurl
=
viewurl
this
.
title
=
"报文"
this
.
title
=
"报文"
//window.open(viewurl, 'newwindow', 'height=1200,width=800,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
else
if
(
cortyp
==
'ELC'
)
{
Modal
.
info
({
title
:
'电证报文'
,
content
:
<
div
style
=
{{
height
:
400
,
overflow
:
'auto'
}}
><
ELCMessage
mty
=
{
row
.
id
}
message
=
{
rtnmsg
.
data
[
"
\\
trnmod
\\
trndoc
\\
docinf"
]}
/></
div
>
,
width
:
1000
,
})
}
else
if
(
cortyp
==
'ELC'
)
{
Modal
.
info
(
{
title
:
'电证报文'
,
content
:
<
div
style
=
{{
height
:
400
,
overflow
:
'auto'
}}
><
ELCMessage
mty
=
{
row
.
id
}
message
=
{
rtnmsg
.
data
[
"
\\
trnmod
\\
trndoc
\\
docinf"
]}
/></
div
>
,
width
:
1000
,
})
}
else
{
// let url = rtnmsg.data.trnmod_trndoc_smh_docpth;
this
.
title
=
"面函"
let
viewurl
=
"/#/docpan/show"
;
let
XMLdata
;
if
(
row
.
pandsc
==
"国内信用证"
)
{
if
(
row
.
pandsc
==
"国内信用证"
)
{
window
.
sessionStorage
.
docTXT
=
''
window
.
sessionStorage
.
docXML
=
rtnmsg
.
data
.
litbenl1blk
;
}
else
if
(
row
.
pandsc
==
"开立国内信用证备查表"
)
{
else
if
(
row
.
pandsc
==
"开立国内信用证备查表"
)
{
window
.
sessionStorage
.
docTXT
=
''
window
.
sessionStorage
.
docXML
=
rtnmsg
.
data
.
litapll1blk
window
.
sessionStorage
.
docXML
=
rtnmsg
.
data
.
litapll1blk
}
else
if
(
row
.
pandsc
==
"elcs.101.001.01"
)
{
else
if
(
row
.
pandsc
==
"elcs.101.001.01"
)
{
window
.
sessionStorage
.
docXML
=
''
window
.
sessionStorage
.
docTXT
=
''
rtnmsg
.
data
.
trnmod_trndoc_doceot
[
index
].
doctxt
.
rows
.
forEach
(
element
=>
{
window
.
sessionStorage
.
docTXT
+=
element
+
"
\
r
\
n"
window
.
sessionStorage
.
docTXT
+=
element
+
"
\
r
\
n"
});
}
else
if
(
row
.
pandsc
==
"MT799"
)
{
}
else
if
(
row
.
pandsc
==
"MT799"
)
{
window
.
sessionStorage
.
docTXT
=
''
XMLdata
=
rtnmsg
.
data
.
litbenl1blk
}
...
...
@@ -380,17 +286,17 @@ export default {
// console.log( window.sessionStorage.docXML);
window
.
open
(
viewurl
,
'newwindow'
,
'height=1200,width=800,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no'
);
}
this
.
dialogOpen
=
true
this
.
dialogOpen
=
true
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
})
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
})
}
},
async
handleDetail
(
index
,
row
){
async
handleDetail
(
index
,
row
)
{
const
params
=
{
index
:
index
}
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeDocpanDetail"
,
{
...
this
.
wrapper
(),
params
}
)
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeDocpanDetail"
,
this
.
wrapper
(
params
)
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
this
.
title
=
row
.
pandsc
...
...
@@ -399,47 +305,46 @@ export default {
this
.
index
=
index
}
},
async
BlurBennam
(
e
){
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeDefault/ditp.remark"
,
this
.
wrapper
()
)
async
BlurBennam
(
e
)
{
let
rtnmsg
=
await
this
.
executeDefault
(
"ditp.remark"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
this
.
model
.
ditp
.
remark
=
rtnmsg
.
data
.
ditp_remark
}
},
async
BlurAplname
(
e
){
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeDefault/ditp.remark"
,
this
.
wrapper
()
)
async
BlurAplname
(
e
)
{
let
rtnmsg
=
await
this
.
executeDefault
(
"ditp.remark"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
this
.
model
.
ditp
.
remark
=
rtnmsg
.
data
.
ditp_remark
}
},
async
BlurSignam
(
e
){
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeDefault/ditp.remark"
,
this
.
wrapper
()
)
async
BlurSignam
(
e
)
{
let
rtnmsg
=
await
this
.
executeDefault
(
"ditp.remark"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
this
.
model
.
ditp
.
remark
=
rtnmsg
.
data
.
ditp_remark
}
},
async
onExtkey
(
e
){
async
onExtkey
(
e
)
{
},
async
pickDepItem
(
row
){
async
pickDepItem
(
row
)
{
debugger
;
var
params
=
{
'selsptinr'
:
row
[
0
]
};
var
params
=
{
'selsptinr'
:
row
[
0
]
};
//{params:{'selsptinr':row[0]}}
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeRule/liaall.liaccv.add"
,{...
Utils
.
flatObject
(
this
.
model
),
params
})
let
rtnmsg
=
await
this
.
executeRule
(
"liaall.liaccv.add"
,
{
params
})
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
this
.
dialogTableVisible
=
false
;
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
}
},
// didgrp.iss.pts.extkey
async
changeExtkey
(
){
let
rtnmsg
=
await
Api
.
post
(
"ditopn/executeRule/didgrp.iss.pts.extkey"
,{...
this
.
wrapper
()})
async
changeExtkey
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"didgrp.iss.pts.extkey"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
}
}
}
\ No newline at end of file
src/model/Infpta/Event.js
View file @
af947ea2
import
Api
from
"~/service/Api"
export
default
{
onInfbutSearow
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"infpta/infbut_searow"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
async
onInfbutSearow
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"infbut_searow"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onInfbutDsp
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"infpta/infbut_dsp"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onInfbutDsp
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"infbut_dsp"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onInfbutUserow
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"infpta/infbut_userow"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onInfbutUserow
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"infbut_userow"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onInfbutClr
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"infpta/infbut_clr"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onInfbutClr
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"infbut_clr"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onInfbutButprt
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"infpta/infbut_butprt"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onInfbutButprt
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"infbut_butprt"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onInfbutExi
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"infpta/infbut_exi"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onInfbutExi
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"infbut_exi"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRecpanLnkinfptm
(){
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"infpta/recpan_lnkinfptm"
,{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onRecpanLnkinfptm
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"recpan_lnkinfptm"
)
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
}
\ No newline at end of file
src/model/Sptsel/Event.js
View file @
af947ea2
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils/index"
export
default
{
onUsfmodShwflt
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/usfmod_shwflt"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onUsfmodShwflt
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"usfmod_shwflt"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onButypt
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/butypt"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onButypt
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"butypt"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onDlmft
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/dlmft"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onDlmft
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"dlmft"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onDlaxq
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/dlaxq"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onDlaxq
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"dlaxq"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onButimg
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/butimg"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onButimg
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"butimg"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
tabClick
()
{
},
async
continueEdit
(
row
){
//let rtnmsg = await Api.post("
sptsel/
getPendingData",{params:{'selsptinr':row[0]}})
async
continueEdit
(
row
)
{
//let rtnmsg = await Api.post("getPendingData",{params:{'selsptinr':row[0]}})
//if (rtnmsg.respCode == "AAAAAA") {
//var cacheFileName = rtnmsg.data.cacheFileName;
let
viewurl
=
"/business/ditopn?selsptinr="
+
row
[
0
];
this
.
$router
.
push
(
viewurl
);
//var cacheFileName = rtnmsg.data.cacheFileName;
let
viewurl
=
"/business/ditopn?selsptinr="
+
row
[
0
];
this
.
$router
.
push
(
viewurl
);
//}
}
...
...
src/model/Trnrel/Event.js
View file @
af947ea2
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils/index"
export
default
{
onSeaown
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
const
that
=
this
.
root
;
async
onSeaown
()
{
const
that
=
this
.
root
;
that
.
executeRule
(
"searow"
).
then
(
res
=>
{
//TODO 处理数据逻辑
that
.
$refs
.
inftrnps
.
stmData
.
data
=
res
.
data
.
trncorco_trnstm
.
rows
;
this
.
model
.
trncorco
.
trnstm
=
res
.
data
.
trncorco_trnstm
;
})
// let rtnmsg = await Api.post("trnrel/executeRule/searow", this.wrapper())
// if (rtnmsg.respCode == "AAAAAA") {
// //TODO 处理数据逻辑
// this.stmData.data = rtnmsg.data.trncorco_trnstm.rows;
// }
// else {
// this.$notify.error({ title: '错误', message: '服务请求失败!' });
// }
})
},
onSeajbh
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
const
that
=
this
.
root
;
async
onSeajbh
()
{
const
that
=
this
.
root
;
that
.
executeRule
(
"seajbh"
).
then
(
res
=>
{
//TODO 处理数据逻辑
that
.
$refs
.
inftrnps
.
stmData
.
data
=
res
.
data
.
trncorco_trnstm
.
rows
;
})
})
},
onSeactr
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/seactr"
,
this
.
wrapper
())
async
onSeactr
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"seactr"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
...
...
@@ -44,14 +25,9 @@ export default {
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSearow
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/searow"
,
this
.
wrapper
())
async
onSearow
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"searow"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
...
...
@@ -59,13 +35,9 @@ export default {
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onDsp
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/dsp"
,
this
.
wrapper
())
async
onDsp
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"dsp"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
...
...
@@ -73,27 +45,19 @@ export default {
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onImgmodNewimg
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/imgmod_newimg"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
async
onImgmodNewimg
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"imgmod_newimg"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
onImgmodNewhisimg
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/imgmod_newhisimg"
,
this
.
wrapper
())
async
onImgmodNewhisimg
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"imgmod_newhisimg"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
...
...
@@ -101,13 +65,9 @@ export default {
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onDiaconButdia
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/diacon_butdia"
,
this
.
wrapper
())
async
onDiaconButdia
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"diacon_butdia"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
...
...
@@ -115,13 +75,9 @@ export default {
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onImgmodHisimg
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/imgmod_hisimg"
,
this
.
wrapper
())
async
onImgmodHisimg
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"imgmod_hisimg"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
...
...
@@ -129,34 +85,28 @@ export default {
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRelrow
()
{
async
onRelrow
()
{
const
that
=
this
that
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
that
.
model
.
trncorco
.
selinr
=
{
"rows"
:
that
.
multipleSelection
.
map
(
idx
=>
that
.
model
.
trncorco
.
trnstm
.
rows
[
idx
])
}
const
data
=
this
.
wrapper
()
let
rtnmsg
=
await
Api
.
post
(
"/trnrel/executeRule/relrow"
,
data
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
that
.
model
.
trncorco
.
selinr
=
{
"rows"
:
that
.
multipleSelection
.
map
(
idx
=>
that
.
model
.
trncorco
.
trnstm
.
rows
[
idx
])
}
let
rtnmsg
=
await
this
.
executeRule
(
"relrow"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
this
.
$message
({
type
:
'success'
,
message
:
'Release成功!'
});
await
this
.
sleep
(
2000
);
this
.
$router
.
go
(
0
);
this
.
$message
({
type
:
'success'
,
message
:
'Release成功!'
});
await
this
.
sleep
(
2000
);
this
.
$router
.
go
(
0
);
}
else
{
that
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
)
}
else
{
that
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
sleep
(
ms
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
...
...
@@ -165,11 +115,8 @@ export default {
},
ms
)
})
},
onPrinte
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/printe"
,
this
.
wrapper
())
async
onPrinte
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"printe"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
...
...
@@ -177,13 +124,9 @@ export default {
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onReprow
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/reprow"
,
this
.
wrapper
())
async
onReprow
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"reprow"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
...
...
@@ -191,15 +134,11 @@ export default {
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRejrow
()
{
async
onRejrow
()
{
console
.
log
(
this
.
getSelectedData
())
this
.
model
.
trncorco
.
selinr
[
'rows'
]
=
this
.
getSelectedData
();
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
// if (!valid)
// return;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/rejrow"
,
this
.
wrapper
())
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
...
...
@@ -225,13 +164,9 @@ export default {
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRelcor
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/relcor"
,
this
.
wrapper
())
async
onRelcor
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"relcor"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
...
...
@@ -239,13 +174,9 @@ export default {
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onExi
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/exi"
,
this
.
wrapper
())
async
onExi
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"exi"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
...
...
@@ -253,14 +184,10 @@ export default {
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRecpanDet
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_det"
,
this
.
wrapper
())
async
onRecpanDet
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"recpan_det"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
...
...
@@ -268,13 +195,9 @@ export default {
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSyswrnButshw
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/syswrn_butshw"
,
this
.
wrapper
())
async
onSyswrnButshw
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"syswrn_butshw"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
...
...
@@ -282,13 +205,9 @@ export default {
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRecpanNotmap
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_notmap"
,
this
.
wrapper
())
async
onRecpanNotmap
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"recpan_notmap"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
...
...
@@ -296,13 +215,9 @@ export default {
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRecpanButspt
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_butspt"
,
this
.
wrapper
())
async
onRecpanButspt
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"recpan_butspt"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
...
...
@@ -310,13 +225,9 @@ export default {
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRecpanInc
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_inc"
,
this
.
wrapper
())
async
onRecpanInc
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"recpan_inc"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
...
...
@@ -324,13 +235,9 @@ export default {
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRecpanButord
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_butord"
,
this
.
wrapper
())
async
onRecpanButord
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"recpan_butord"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
...
...
@@ -338,13 +245,9 @@ export default {
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onImgmodImage
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/imgmod_image"
,
this
.
wrapper
())
async
onImgmodImage
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"imgmod_image"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
...
...
@@ -352,13 +255,9 @@ export default {
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRecpanIncben
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_incben"
,
this
.
wrapper
())
async
onRecpanIncben
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"recpan_incben"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
...
...
@@ -366,13 +265,9 @@ export default {
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onInftxtButtxmsel
()
{
this
.
root
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/inftxt_buttxmsel"
,
this
.
wrapper
())
async
onInftxtButtxmsel
()
{
let
rtnmsg
=
await
this
.
executeRule
(
"inftxt_buttxmsel"
)
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
...
...
@@ -380,7 +275,6 @@ export default {
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSeainf
()
{
...
...
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