no message
This commit is contained in:
@@ -198,7 +198,7 @@ export default {
|
|||||||
scoringCycle: [{required: true, message: "请选择周期范围" }],
|
scoringCycle: [{required: true, message: "请选择周期范围" }],
|
||||||
integral: [{required: true, pattern: /^\d*[.\d]\d?$/, message: "请输入积分分值,最多保留一位小数"}],
|
integral: [{required: true, pattern: /^\d*[.\d]\d?$/, message: "请输入积分分值,最多保留一位小数"}],
|
||||||
numberLimit: [{pattern: /^\d*$/, message: "请输入正整数"}],
|
numberLimit: [{pattern: /^\d*$/, message: "请输入正整数"}],
|
||||||
integralArr: [{required: true, message: "请输入积分分值"}],
|
integralArr: [{required: true, message: "请输入积分分值", trigger: "change"}],
|
||||||
ladderIntegral: [{required: true, message: "请输入积分分值"}]
|
ladderIntegral: [{required: true, message: "请输入积分分值"}]
|
||||||
},
|
},
|
||||||
cacheOps: [],
|
cacheOps: [],
|
||||||
@@ -266,14 +266,6 @@ export default {
|
|||||||
this.form.ladderRule = []
|
this.form.ladderRule = []
|
||||||
},
|
},
|
||||||
|
|
||||||
handleInputFrom(event) {
|
|
||||||
this.$emit('focusfrom', event)
|
|
||||||
},
|
|
||||||
|
|
||||||
handleInputTo(event) {
|
|
||||||
this.$emit('blurto', event)
|
|
||||||
},
|
|
||||||
|
|
||||||
remove(id) {
|
remove(id) {
|
||||||
this.$confirm("删除后不可恢复,是否要删除该事项?", {
|
this.$confirm("删除后不可恢复,是否要删除该事项?", {
|
||||||
type: 'error'
|
type: 'error'
|
||||||
@@ -281,7 +273,7 @@ export default {
|
|||||||
this.instance
|
this.instance
|
||||||
.post(`/app/apppartyintegralrule/delete?ids=${id}`)
|
.post(`/app/apppartyintegralrule/delete?ids=${id}`)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 0) {
|
if (res?.code == 0) {
|
||||||
this.$message.success("删除成功!");
|
this.$message.success("删除成功!");
|
||||||
this.getList();
|
this.getList();
|
||||||
}
|
}
|
||||||
@@ -291,8 +283,8 @@ export default {
|
|||||||
changeStatus(id, status) {
|
changeStatus(id, status) {
|
||||||
let text = status == 1 ? '启用' : '停用'
|
let text = status == 1 ? '启用' : '停用'
|
||||||
this.$confirm(`确定${text}该条规则?`).then(() => {
|
this.$confirm(`确定${text}该条规则?`).then(() => {
|
||||||
this.instance.post(`/apppartyintegralrule/enableOrDisable?id=${id}`).then((res) => {
|
this.instance.post(`/app/apppartyintegralrule/enableOrDisable?id=${id}`).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res?.code == 0) {
|
||||||
this.$message.success(`${text}成功!`)
|
this.$message.success(`${text}成功!`)
|
||||||
this.getList();
|
this.getList();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -242,7 +242,7 @@ export default {
|
|||||||
changeStatus(id, status) {
|
changeStatus(id, status) {
|
||||||
let text = status == 1 ? '启用' : '停用'
|
let text = status == 1 ? '启用' : '停用'
|
||||||
this.$confirm(`确定${text}该条规则?`).then(() => {
|
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) {
|
if (res.code == 0) {
|
||||||
this.$message.success(`${text}成功!`)
|
this.$message.success(`${text}成功!`)
|
||||||
this.getList();
|
this.getList();
|
||||||
|
|||||||
Reference in New Issue
Block a user