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
89688815
Commit
89688815
authored
May 31, 2021
by
liuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
js文件调整
parent
d4030fd0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
89 additions
and
71 deletions
+89
-71
Default.js
src/model/Ditopn/Default.js
+1
-0
Event.js
src/model/Ditopn/Event.js
+0
-0
Default.js
src/model/Sptsel/Default.js
+10
-1
Event.js
src/model/Sptsel/Event.js
+77
-68
Default.js
src/model/Trnrel/Default.js
+1
-2
Event.js
src/model/Trnrel/Event.js
+0
-0
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
This diff is collapsed.
Click to expand it.
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
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/usfmod_shwflt"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
onUsfmodShwflt
(){
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/usfmod_shwflt"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onButypt
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/butypt"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onButypt
(){
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/butypt"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onDlmft
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/dlmft"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onDlmft
(){
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/dlmft"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onDlaxq
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/dlaxq"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onDlaxq
(){
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/dlaxq"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onButimg
()
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/butimg"
,
{
data
:
this
.
model
})
if
(
rtnmsg
.
retcod
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
onButimg
(){
this
.
$parent
.
$parent
.
$parent
.
$parent
.
$refs
.
modelForm
.
validate
(
async
valid
=>
{
if
(
!
valid
)
return
;
let
rtnmsg
=
await
Api
.
post
(
"sptsel/butimg"
,
Utils
.
flatObject
(
this
.
model
))
if
(
rtnmsg
.
respCode
==
"AAAAAA"
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
tabClick
()
{
},
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
})
},
}
\ 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
This diff is collapsed.
Click to expand it.
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