diff --git a/project/sanjianxi/apps/AppPartyScoreRules/components/applyForIntegral.vue b/project/sanjianxi/apps/AppPartyScoreRules/components/applyForIntegral.vue index 92eb2b53..f32b32f2 100644 --- a/project/sanjianxi/apps/AppPartyScoreRules/components/applyForIntegral.vue +++ b/project/sanjianxi/apps/AppPartyScoreRules/components/applyForIntegral.vue @@ -198,7 +198,7 @@ export default { scoringCycle: [{required: true, message: "请选择周期范围" }], integral: [{required: true, pattern: /^\d*[.\d]\d?$/, message: "请输入积分分值,最多保留一位小数"}], numberLimit: [{pattern: /^\d*$/, message: "请输入正整数"}], - integralArr: [{required: true, message: "请输入积分分值"}], + integralArr: [{required: true, message: "请输入积分分值", trigger: "change"}], ladderIntegral: [{required: true, message: "请输入积分分值"}] }, cacheOps: [], @@ -266,14 +266,6 @@ export default { this.form.ladderRule = [] }, - handleInputFrom(event) { - this.$emit('focusfrom', event) - }, - - handleInputTo(event) { - this.$emit('blurto', event) - }, - remove(id) { this.$confirm("删除后不可恢复,是否要删除该事项?", { type: 'error' @@ -281,7 +273,7 @@ export default { this.instance .post(`/app/apppartyintegralrule/delete?ids=${id}`) .then((res) => { - if (res.code == 0) { + if (res?.code == 0) { this.$message.success("删除成功!"); this.getList(); } @@ -291,8 +283,8 @@ export default { changeStatus(id, status) { let text = status == 1 ? '启用' : '停用' this.$confirm(`确定${text}该条规则?`).then(() => { - this.instance.post(`/apppartyintegralrule/enableOrDisable?id=${id}`).then((res) => { - if (res.code == 0) { + this.instance.post(`/app/apppartyintegralrule/enableOrDisable?id=${id}`).then((res) => { + if (res?.code == 0) { this.$message.success(`${text}成功!`) this.getList(); } diff --git a/project/sanjianxi/apps/AppPartyScoreRules/components/automaticallyAddCent.vue b/project/sanjianxi/apps/AppPartyScoreRules/components/automaticallyAddCent.vue index 3395316c..6e8dcdcc 100644 --- a/project/sanjianxi/apps/AppPartyScoreRules/components/automaticallyAddCent.vue +++ b/project/sanjianxi/apps/AppPartyScoreRules/components/automaticallyAddCent.vue @@ -242,7 +242,7 @@ export default { changeStatus(id, status) { let text = status == 1 ? '启用' : '停用' this.$confirm(`确定${text}该条规则?`).then(() => { - this.instance.post(`/app/appvillagerintegralrule/enableOrDisable?id=${id}`).then((res) => { + this.instance.post(`/apppartyintegralrule/enableOrDisable?partyOrgId=${id}`).then((res) => { if (res.code == 0) { this.$message.success(`${text}成功!`) this.getList();