Commit e5946d31 by denyu

添加rule check js

parent cf5bcd18
...@@ -51,8 +51,7 @@ export default { ...@@ -51,8 +51,7 @@ export default {
if(!inr) if(!inr)
return return
let data =await Api.post("display/"+inr) let data =await Api.post("display/"+inr)
Utils.copyValueFromVO(this.model,data.data) Utils.copyValueFromVO(this.model,JSON.parse(data.data))
console.log(data)
} }
} }
} }
\ No newline at end of file
...@@ -35,7 +35,7 @@ export default { ...@@ -35,7 +35,7 @@ export default {
for (let j = 0; j < this.checkRules[key].length; j++) { for (let j = 0; j < this.checkRules[key].length; j++) {
const check = this.checkRules[key][j]; const check = this.checkRules[key][j];
rule.push({ rule.push({
validator: check validator: check.bind(this)
}) })
} }
} }
......
...@@ -99,7 +99,7 @@ export default { ...@@ -99,7 +99,7 @@ export default {
"ditp.rmbp.ptsget.sdamod.dadsnd": [checkDitpRmbpPtsgetSdamodDadsndN100,], "ditp.rmbp.ptsget.sdamod.dadsnd": [checkDitpRmbpPtsgetSdamodDadsndN100,],
"didgrp.ben.pts.extact": [checkDidgrpBenPtsExtactN1001,], "didgrp.ben.pts.extact": [checkDidgrpBenPtsExtactN1001,],
"didgrp.blk.adlcnd": [checkDidgrpBlkAdlcndN100, checkDidgrpBlkAdlcndN100,], "didgrp.blk.adlcnd": [checkDidgrpBlkAdlcndN100, checkDidgrpBlkAdlcndN100,],
"litameadv": [checkLitameadvN100,], "litameadv": [checkLitameadvN100,ruleLitameadvN100,],
"liaall.liaccv.relcshpct": [checkLiaallLiaccvRelcshpctN100,], "liaall.liaccv.relcshpct": [checkLiaallLiaccvRelcshpctN100,],
} }
/** /**
...@@ -144,7 +144,7 @@ function checkDidgrpAplPtsYouzbmN100() { ...@@ -144,7 +144,7 @@ function checkDidgrpAplPtsYouzbmN100() {
*/ */
function checkAmeadvrmkN100() { function checkAmeadvrmkN100() {
const that = this; const that = this;
that.exeuteCheck("litameadv").then(res => { that.exeuteCheck("ameadvrmk").then(res => {
}) })
} }
/** /**
...@@ -858,6 +858,10 @@ function checkDidgrpBlkAdlcndN100() { ...@@ -858,6 +858,10 @@ function checkDidgrpBlkAdlcndN100() {
* *
*/ */
function checkLitameadvN100() { function checkLitameadvN100() {
const that = this;
that.exeuteCheck("litameadv").then(res => {
})
} }
/** /**
* source:liaccv.@0024.script * source:liaccv.@0024.script
...@@ -865,3 +869,10 @@ function checkLitameadvN100() { ...@@ -865,3 +869,10 @@ function checkLitameadvN100() {
*/ */
function checkLiaallLiaccvRelcshpctN100() { function checkLiaallLiaccvRelcshpctN100() {
} }
function ruleLitameadvN100() {
const that = this;
that.executeRule("litameadv").then(res => {
})
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment