30413
This commit is contained in:
@@ -79,6 +79,7 @@ export default {
|
|||||||
integral: '',
|
integral: '',
|
||||||
},
|
},
|
||||||
dialog: false,
|
dialog: false,
|
||||||
|
flag: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -113,15 +114,19 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onConfirm() {
|
onConfirm() {
|
||||||
let formData = JSON.stringify(this.form)
|
|
||||||
this.$refs['form'].validate(valid => {
|
this.$refs['form'].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.flag = true
|
||||||
this.instance.post(`/app/apppartyintegralinfo/changeIntegral`, this.form ).then(res => {
|
this.instance.post(`/app/apppartyintegralinfo/changeIntegral`, this.form ).then(res => {
|
||||||
if (res?.code == 0) {
|
if (res?.code == 0) {
|
||||||
this.$message.success("添加成功")
|
this.$message.success("添加成功")
|
||||||
this.dialog = false
|
this.dialog = false
|
||||||
this.getList()
|
this.getList()
|
||||||
|
} else {
|
||||||
|
this.flag = false
|
||||||
}
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.flag = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -232,7 +232,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();
|
||||||
}
|
}
|
||||||
@@ -242,8 +242,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?partyOrgId=${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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user