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
89688815
Commit
89688815
authored
May 31, 2021
by
liuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
js文件调整
parent
d4030fd0
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
408 additions
and
311 deletions
+408
-311
Default.js
src/model/Ditopn/Default.js
+1
-0
Event.js
src/model/Ditopn/Event.js
+169
-130
Default.js
src/model/Sptsel/Default.js
+10
-1
Event.js
src/model/Sptsel/Event.js
+41
-34
Default.js
src/model/Trnrel/Default.js
+1
-2
Event.js
src/model/Trnrel/Event.js
+186
-144
No files found.
src/model/Ditopn/Default.js
View file @
89688815
...
...
@@ -3,6 +3,7 @@
* Ditopn Default规则
*/
import
Api
from
"~/service/Api"
;
import
Utils
from
"~/utils/index"
export
default
{
"didgrp.rec.resflg"
:
defaultDidgrpRecResflg
,
...
...
src/model/Ditopn/Event.js
View file @
89688815
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils/index"
export
default
{
onDitpButgetref
()
{
onDitpButgetref
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/ditp_butgetref"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/ditp_butgetref"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onAplpDet
()
{
onAplpDet
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/aplp_det"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/aplp_det"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onBenpDet
()
{
onBenpDet
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/benp_det"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/benp_det"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRevclauseButtxmsel
()
{
onRevclauseButtxmsel
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/revclause_buttxmsel"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/revclause_buttxmsel"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLcrgodButtxmsel
()
{
onLcrgodButtxmsel
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/lcrgod_buttxmsel"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/lcrgod_buttxmsel"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLcrdocButtxmsel
()
{
onLcrdocButtxmsel
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/lcrdoc_buttxmsel"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/lcrdoc_buttxmsel"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onAdlcndButtxmsel
()
{
onAdlcndButtxmsel
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/adlcnd_buttxmsel"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/adlcnd_buttxmsel"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onInsbnkButtxmsel
()
{
onInsbnkButtxmsel
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/insbnk_buttxmsel"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/insbnk_buttxmsel"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRmbpDet
()
{
onRmbpDet
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/rmbp_det"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/rmbp_det"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onDefdetButtxmsel
()
{
onDefdetButtxmsel
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/defdet_buttxmsel"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/defdet_buttxmsel"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onPreperButtxmsel
()
{
onPreperButtxmsel
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/preper_buttxmsel"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/preper_buttxmsel"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSetmodDet
()
{
onSetmodDet
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/setmod_det"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/setmod_det"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLiaallButmisamt
()
{
onLiaallButmisamt
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/liaall_butmisamt"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/liaall_butmisamt"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLiaallButmissig
()
{
onLiaallButmissig
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/liaall_butmissig"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/liaall_butmissig"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onWrkpDet
()
{
onWrkpDet
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/wrkp_det"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/wrkp_det"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onOthpDet
()
{
onOthpDet
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/othp_det"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/othp_det"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLimptsGet1
()
{
onLimptsGet1
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/limpts_get1"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/limpts_get1"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLimptsGet2
()
{
onLimptsGet2
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/limpts_get2"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/limpts_get2"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLimmodTrycal
()
{
onLimmodTrycal
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/limmod_trycal"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/limmod_trycal"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLiaccvAdd
()
{
onLiaccvAdd
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/liaccv_add"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/liaccv_add"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onLiaccvDel
()
{
onLiaccvDel
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"ditopn/liaccv_del"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"ditopn/liaccv_del"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSeainf
()
{
},
}
\ No newline at end of file
src/model/Sptsel/Default.js
View file @
89688815
...
...
@@ -3,6 +3,7 @@
* Sptsel Default规则
*/
import
Api
from
"~/service/Api"
;
import
Utils
from
"~/utils/index"
export
default
{
"sptstm"
:
defaultSptstm
,
...
...
@@ -31,7 +32,15 @@ function defaultDlmft() {
}
function
defaultButimg
()
{
}
function
defaultDflg
()
{
async
function
defaultDflg
()
{
let
rtnmsg
=
await
Api
.
post
(
"sptsel/default/dflg"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
retcod
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
this
.
model
=
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
function
defaultYptinf
()
{
console
.
log
(
this
.
model
.
yptinf
)
...
...
src/model/Sptsel/Event.js
View file @
89688815
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils/index"
export
default
{
onUsfmodShwflt
()
{
onUsfmodShwflt
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/usfmod_shwflt"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"sptsel/usfmod_shwflt"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onButypt
()
{
onButypt
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/butypt"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"sptsel/butypt"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onDlmft
()
{
onDlmft
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/dlmft"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"sptsel/dlmft"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onDlaxq
()
{
onDlaxq
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/dlaxq"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"sptsel/dlaxq"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onButimg
()
{
onButimg
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/butimg"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"sptsel/butimg"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
tabClick
()
{
},
}
\ No newline at end of file
src/model/Trnrel/Default.js
View file @
89688815
...
...
@@ -76,8 +76,7 @@ async function defaultTrncorcoDflg() {
let
rtnmsg
=
await
Api
.
post
(
"trnrel/default/trncorco.dflg"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
console
.
log
(
rtnmsg
)
console
.
log
(
rtnmsg
.
data
)
this
.
model
=
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
...
...
src/model/Trnrel/Event.js
View file @
89688815
import
Api
from
"~/service/Api"
;
import
Utils
from
"~/utils/index"
;
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils/index"
export
default
{
onSeaown
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
...
...
@@ -15,330 +15,373 @@ export default {
}
})
},
onSeajbh
()
{
onSeajbh
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/seajbh"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/seajbh"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSeactr
()
{
onSeactr
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/seactr"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/seactr"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSearow
()
{
onSearow
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/searow"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/searow"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onDsp
()
{
onDsp
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/dsp"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/dsp"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onImgmodNewimg
()
{
onImgmodNewimg
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/imgmod_newimg"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/imgmod_newimg"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onImgmodNewhisimg
()
{
onImgmodNewhisimg
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/imgmod_newhisimg"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/imgmod_newhisimg"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onDiaconButdia
()
{
onDiaconButdia
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/diacon_butdia"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/diacon_butdia"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onImgmodHisimg
()
{
onImgmodHisimg
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/imgmod_hisimg"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/imgmod_hisimg"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRelrow
()
{
onRelrow
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/relrow"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/relrow"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onPrinte
()
{
onPrinte
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/printe"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/printe"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onReprow
()
{
onReprow
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/reprow"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/reprow"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRejrow
()
{
onRejrow
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/rejrow"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/rejrow"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRelcor
()
{
onRelcor
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/relcor"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/relcor"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onExi
()
{
onExi
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/exi"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/exi"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRecpanDet
()
{
onRecpanDet
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_det"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_det"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSyswrnButshw
()
{
onSyswrnButshw
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/syswrn_butshw"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/syswrn_butshw"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRecpanNotmap
()
{
onRecpanNotmap
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_notmap"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_notmap"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRecpanButspt
()
{
onRecpanButspt
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_butspt"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_butspt"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRecpanInc
()
{
onRecpanInc
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_inc"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_inc"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRecpanButord
()
{
onRecpanButord
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_butord"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_butord"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onImgmodImage
()
{
onImgmodImage
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/imgmod_image"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/imgmod_image"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onRecpanIncben
()
{
onRecpanIncben
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_incben"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/recpan_incben"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onInftxtButtxmsel
()
{
onInftxtButtxmsel
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"trnrel/inftxt_buttxmsel"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
let
rtnmsg
=
await
Api
.
post
(
"trnrel/inftxt_buttxmsel"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onSeainf
()
{
},
}
\ 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