diff --git a/packages/conv/creditScore/scoreRules/AppScoreRules.vue b/packages/conv/creditScore/scoreRules/AppScoreRules.vue
index 75237fb9..a53c0f33 100644
--- a/packages/conv/creditScore/scoreRules/AppScoreRules.vue
+++ b/packages/conv/creditScore/scoreRules/AppScoreRules.vue
@@ -83,7 +83,7 @@
-
+
删除
@@ -145,8 +145,8 @@ export default {
search: {status: "", eventType: null},
page: {current: 1, size: 10, total: 0},
colConfigs: [
- {prop: "event", label: "事件", dict: "integralRuleEvent"},
- {prop: "type", label: "类型", dict: "integralRuleEventType"},
+ {prop: "event", label: "事件", dict: "partyIntegralRuleEvent"},
+ {prop: "type", label: "类型", dict: "integralRuleEvent4"},
{prop: "ruleType", label: "规则", dict: "integralRuleRuleType"},
{prop: "scoringCycle", label: "周期范围", dict: "integralRuleScoringCycle"},
{prop: "status", label: "状态", align: "center", width: 96, dict: "integralRuleStatus"},
diff --git a/project/sanjianxi/apps/AppPartyScore/psDetail.vue b/project/sanjianxi/apps/AppPartyScore/psDetail.vue
index cd8663cb..9947253a 100644
--- a/project/sanjianxi/apps/AppPartyScore/psDetail.vue
+++ b/project/sanjianxi/apps/AppPartyScore/psDetail.vue
@@ -16,25 +16,6 @@
-
diff --git a/project/sanjianxi/apps/AppScoreRules/AppScoreRules.vue b/project/sanjianxi/apps/AppScoreRules/AppScoreRules.vue
index 951ca700..c0f9799b 100644
--- a/project/sanjianxi/apps/AppScoreRules/AppScoreRules.vue
+++ b/project/sanjianxi/apps/AppScoreRules/AppScoreRules.vue
@@ -1,7 +1,7 @@
-
+
-
@@ -21,7 +21,7 @@ import automaticallyAddCent from "./components/automaticallyAddCent.vue";
import { mapState } from 'vuex'
export default {
- name: 'AppScoreManage',
+ name: 'AppScoreRules',
label: "积分规则(三涧溪)",
components: { applyForIntegral, automaticallyAddCent},
props: {
@@ -71,4 +71,5 @@ export default {
diff --git a/project/sanjianxi/apps/AppScoreRules/components/applyForIntegral.vue b/project/sanjianxi/apps/AppScoreRules/components/applyForIntegral.vue
index d30e2694..b9c178d7 100644
--- a/project/sanjianxi/apps/AppScoreRules/components/applyForIntegral.vue
+++ b/project/sanjianxi/apps/AppScoreRules/components/applyForIntegral.vue
@@ -12,8 +12,8 @@
-
+
@@ -96,7 +96,7 @@
添加
+ @click="addIntegral">添加
@@ -120,9 +120,6 @@
-
-
-
@@ -162,13 +159,15 @@ export default {
},
data() {
return {
- search: {status: "", eventType: null},
+ search: {status: "", eventName: ""},
page: {current: 1, size: 10, total: 0},
colConfigs: [
- {prop: "event", label: "事件名称", dict: "integralRuleEvent"},
- {prop: "type", label: "简介", dict: "integralRuleEventType"},
- {prop: "ruleType", label: "规则", dict: "integralRuleRuleType"},
- {prop: "scoringCycle", label: "周期范围", dict: "integralRuleScoringCycle"},
+ // {prop: "event", label: "事件", dict: "integralRuleEvent", align: "center"},
+ // {prop: "type", label: "类型", dict: "integralRuleEventType", align: "center"},
+ {prop: "eventName", label: "事件名称", dict: "integralRuleEvent", align: "center"},
+ {prop: "eventDesc", label: "简介", dict: "integralRuleEventType", align: "center"},
+ {prop: "ruleType", label: "规则", dict: "integralRuleRuleType", align: "center"},
+ {prop: "scoringCycle", label: "周期范围", dict: "integralRuleScoringCycle", align: "center"},
{prop: "status", label: "状态", align: "center", width: 96, dict: "integralRuleStatus"},
{slot: "options", label: "操作", align: "center"},
],
@@ -180,6 +179,7 @@ export default {
tableData: [],
dialog: false,
form: {
+ classify: 0,
eventName: '',
eventDesc: '',
ruleType: 0,
@@ -218,7 +218,7 @@ export default {
},
methods: {
getList() {
- this.instance.post(`/app/appvillagerintegralrule/list`, null, {
+ this.instance.post(`/app/apppartyintegralrule/list?classify=0`, null, {
params: {...this.search, ...this.page},
}).then(res => {
if (res?.data) {
@@ -227,34 +227,31 @@ export default {
}
});
},
+ addIntegral() {
+ this.form.ladderIntegral.push({ viewCount: null, integral: null })
+ },
toEdit(row) {
- this.form = this.$copy(row)
- let {ladderRule, event, type} = this.form,
- dict = 'integralRuleEvent' + event
- this.dict.load(dict).then(() => {
- this.form.eventType = [event, type]
- this.form.ladderRule = JSON.parse(ladderRule || "[]")
- this.cacheOps = this.dict.getDict('integralRuleEvent').map(e => {
- if (e.dictValue == event) {
- e.children = this.dict.getDict(dict).map(d => ({...d, leaf: true}))
- }
- return e
- })
- this.$nextTick(() => {
- this.dialog = true
- })
- })
+ console.log(row);
+ this.form = { ...row }
+ this.form.ruleType = row.ruleType
+ this.dialog = true
+ // let {ladderRule, event, type} = this.form,
+ // dict = 'integralRuleEvent' + event
+ // this.dict.load(dict).then(() => {
+ // this.form.eventType = [event, type]
+ // this.form.ladderRule = JSON.parse(ladderRule || "[]")
+ // this.cacheOps = this.dict.getDict('integralRuleEvent').map(e => {
+ // if (e.dictValue == event) {
+ // e.children = this.dict.getDict(dict).map(d => ({...d, leaf: true}))
+ // }
+ // return e
+ // })
+ // this.$nextTick(() => {
+ // this.dialog = true
+ // })
+ // })
},
- // 保存
- save() {
- this.$refs.innerForm.validate((valid)=>{
- if (valid) {
- this.innerData.push(this.table)
- }
- this.innerVisible = false
- })
- },
-
+
close() {
this.form = {
eventName: '',
@@ -292,7 +289,7 @@ export default {
type: 'error'
}).then(() => {
this.instance
- .post(`/app/appvillagerintegralrule/delete?ids=${id}`)
+ .post(`/app/apppartyintegralrule/delete?ids=${id}`)
.then((res) => {
if (res.code == 0) {
this.$message.success("删除成功!");
@@ -319,7 +316,7 @@ export default {
this.search.ruleStatus = ""
this.getList();
},
- onConfirm() {
+ onConfirm(id) {
this.$refs.DialogForm.validate((valid) => {
if (valid) {
this.form.integralMin = this.form.integralArr[0]
@@ -328,11 +325,12 @@ export default {
this.instance.post(`/app/apppartyintegralrule/addOrUpdate`, {
...this.form,
+ id: id || ''
}).then((res) => {
if (res.code == 0) {
this.$message.success(`${this.isEdit ? '编辑成功' : '添加成功'}`)
- this.onReset()
this.dialog = false;
+ this.getList()
}
});
} else {
diff --git a/project/sanjianxi/apps/AppScoreRules/components/automaticallyAddCent.vue b/project/sanjianxi/apps/AppScoreRules/components/automaticallyAddCent.vue
index 1167a6fe..a54cbf24 100644
--- a/project/sanjianxi/apps/AppScoreRules/components/automaticallyAddCent.vue
+++ b/project/sanjianxi/apps/AppScoreRules/components/automaticallyAddCent.vue
@@ -1,18 +1,29 @@
-
-
-
+
+
+
+
+
+
+
+
+
添加
-
-
+
+
启用
- 编辑
+ 编辑
删除
-
-
-
+
+
+
+
+
\ No newline at end of file