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
b9a31392
Commit
b9a31392
authored
Jun 10, 2021
by
潘际乾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
checkAll的开关
parent
2d7a8217
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
16 deletions
+42
-16
commonApi.js
src/mixin/commonApi.js
+6
-2
commonProcess.js
src/mixin/commonProcess.js
+19
-3
Default.js
src/model/Ditopn/Default.js
+1
-1
index.vue
src/views/Business/Ditopn/index.vue
+16
-10
No files found.
src/mixin/commonApi.js
View file @
b9a31392
...
...
@@ -35,10 +35,14 @@ export default {
let
data
=
Utils
.
flatObject
(
this
.
model
)
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/executeRule/"
+
rulePath
,{...
data
,
params
})
},
checkAll
(
params
){
async
checkAll
(
params
){
params
=
params
||
{}
let
data
=
Utils
.
flatObject
(
this
.
model
)
return
Api
.
post
(
this
.
declareParams
.
trnName
+
"/checkAll"
,{...
data
,
params
})
const
res
=
await
Api
.
post
(
this
.
declareParams
.
trnName
+
"/checkAll"
,{...
data
,
params
})
if
(
res
.
respCode
===
SUCCESS
)
{
this
.
changeFormValidateDisabled
(
false
);
}
return
res
},
pedding
(
params
){
params
=
params
||
{}
...
...
src/mixin/commonProcess.js
View file @
b9a31392
...
...
@@ -5,22 +5,31 @@ export default {
mixins
:
[
commonApi
,
commonDeclare
],
data
:
function
()
{
return
{
defFlag
:
true
}
},
created
:
function
()
{},
moun
ted
()
{
//
created: function () {},
crea
ted
()
{
if
(
!
this
.
isInDisplay
){
this
.
ruleWatcher
()
this
.
ruleCheck
()
}
},
methods
:
{
openWatch
(
flag
){
this
.
defFlag
=
!!
flag
},
ruleWatcher
()
{
if
(
!
this
.
defaultRules
)
return
const
that
=
this
;
Object
.
keys
(
that
.
defaultRules
).
forEach
(
key
=>
{
that
.
$watch
(
"model."
+
key
,
_
.
debounce
(
that
.
defaultRules
[
key
],
1000
))
let
func
=
function
(){
if
(
!
that
.
defFlag
){
that
.
defaultRules
[
key
].
apply
(
that
)
}
}
that
.
$watch
(
"model."
+
key
,
_
.
debounce
(
func
,
1000
))
})
},
ruleCheck
()
{
...
...
@@ -46,6 +55,13 @@ export default {
}
}
this
.
rules
=
res
;
},
changeFormValidateDisabled
(
flag
)
{
const
fields
=
this
.
$refs
.
modelForm
.
fields
for
(
let
i
=
0
;
i
<
fields
.
length
;
i
++
)
{
const
field
=
fields
[
i
];
field
.
validateDisabled
=
flag
}
}
},
computed
:{
...
...
src/model/Ditopn/Default.js
View file @
b9a31392
...
...
@@ -15,7 +15,7 @@ export default {
"didgrp.rmb.pts.extkey"
:
defaultDidgrpRmbPtsExtkey
,
"setmod.dspflg"
:
defaultSetmodDspflg
,
"liaall.limmod.othp.det"
:
defaultLiaallLimmodOthpDet
,
"mtabut.coninf.oitinf.labinftxt"
:
defaultMtabutConinfOitinfLabinftxt
,
"mtabut.coninf.oitinf.labinftxt"
:
defaultMtabutConinfOitinfLabinftxt
,
"mtabut.coninf.oitset.labinftxt"
:
defaultMtabutConinfOitsetLabinftxt
,
"ditp.benp.det"
:
defaultDitpBenpDet
,
"liaall.limmod.limpts.lsh"
:
defaultLiaallLimmodLimptsLsh
,
...
...
src/views/Business/Ditopn/index.vue
View file @
b9a31392
...
...
@@ -172,13 +172,14 @@ export default {
},
methods
:{
tabClick
(
vm
){
this
.
$refs
.
modelForm
.
validate
(
valid
=>
{
if
(
valid
){
console
.
log
(
1
)
}
else
{
console
.
log
(
0
)
}
})
this
.
changeFormValidateDisabled
(
true
)
// this.$refs.modelForm.validate(valid => {
// if (valid){
// console.log(1)
// }else{
// console.log(0)
// }
// })
const
label
=
vm
.
label
if
(
label
===
"账务"
)
{
this
.
executeRule
(
"setmod.setpan"
).
then
(
res
=>
{
...
...
@@ -195,7 +196,8 @@ export default {
}
}
},
created
:
async
function
(){
mounted
:
async
function
(){
this
.
changeFormValidateDisabled
(
true
);
console
.
log
(
"进入ditopn交易"
);
let
rtnmsg
=
await
this
.
init
()
if
(
rtnmsg
.
respCode
==
SUCCESS
)
...
...
@@ -204,9 +206,13 @@ export default {
console
.
log
(
rtnmsg
)
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
)
console
.
log
(
this
.
model
);
if
(
this
.
isInDisplay
)
if
(
this
.
isInDisplay
)
{
this
.
restoreDisplay
()
}
const
that
=
this
;
this
.
$nextTick
(()
=>
{
that
.
openWatch
(
false
);
})
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment