积分规则调整
This commit is contained in:
@@ -37,8 +37,7 @@
|
|||||||
<ai-table
|
<ai-table
|
||||||
:tableData="tableData"
|
:tableData="tableData"
|
||||||
:col-configs="colConfigs"
|
:col-configs="colConfigs"
|
||||||
:total="total"
|
:total="total" :dict="dict"
|
||||||
ref="aitableex"
|
|
||||||
:current.sync="search.current"
|
:current.sync="search.current"
|
||||||
:size.sync="search.size"
|
:size.sync="search.size"
|
||||||
@getList="getList">
|
@getList="getList">
|
||||||
@@ -54,7 +53,9 @@
|
|||||||
<el-table-column slot="options" label="操作" align="center" fixed="right" width="200">
|
<el-table-column slot="options" label="操作" align="center" fixed="right" width="200">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<div class="table-options">
|
<div class="table-options">
|
||||||
<el-button type="text" :disabled="!$permissions('app_appvillagerintegralrule_edit')" @click="changeStatus(row.id, 0)" v-if="row.ruleStatus == 1">停用</el-button>
|
<el-button type="text" :disabled="!$permissions('app_appvillagerintegralrule_edit')" @click="changeStatus(row.id, 0)"
|
||||||
|
v-if="row.ruleStatus == 1">停用
|
||||||
|
</el-button>
|
||||||
<el-button type="text" :disabled="!$permissions('app_appvillagerintegralrule_edit')" @click="changeStatus(row.id, 1)" v-else>启用</el-button>
|
<el-button type="text" :disabled="!$permissions('app_appvillagerintegralrule_edit')" @click="changeStatus(row.id, 1)" v-else>启用</el-button>
|
||||||
<el-button type="text" :disabled="!$permissions('app_appvillagerintegralrule_edit')" @click="toEdit(row)">编辑</el-button>
|
<el-button type="text" :disabled="!$permissions('app_appvillagerintegralrule_edit')" @click="toEdit(row)">编辑</el-button>
|
||||||
<el-button type="text" :disabled="!$permissions('app_appvillagerintegralrule_del')" @click="remove(row.id)">删除</el-button>
|
<el-button type="text" :disabled="!$permissions('app_appvillagerintegralrule_del')" @click="remove(row.id)">删除</el-button>
|
||||||
@@ -199,39 +200,14 @@ export default {
|
|||||||
},
|
},
|
||||||
total: 10,
|
total: 10,
|
||||||
colConfigs: [
|
colConfigs: [
|
||||||
{
|
{prop: "classification", label: "类型", width: 168, dict: "atWillReportType"},
|
||||||
prop: "classification", label: "类型", width: 168,
|
{prop: "ruleName", label: "事项", showOverflowTooltip: true, width: 260},
|
||||||
formart: (classification) =>
|
|
||||||
this.dict.getLabel("atWillReportType", classification),
|
|
||||||
},
|
|
||||||
{prop: "ruleName", label: "事项", "show-overflow-tooltip": true, width: 260},
|
|
||||||
{prop: "ruleDescription", label: "规则说明", width: 390},
|
{prop: "ruleDescription", label: "规则说明", width: 390},
|
||||||
{
|
{prop: "integralType", label: "类型", width: 60, dict: "integralIntegralType"},
|
||||||
prop: "integralType",
|
|
||||||
label: "类型",
|
|
||||||
width: 60,
|
|
||||||
formart: (integralType) =>
|
|
||||||
this.dict.getLabel("integralIntegralType", integralType),
|
|
||||||
},
|
|
||||||
{slot: "integral", label: "分值", width: 70},
|
{slot: "integral", label: "分值", width: 70},
|
||||||
{prop: "doTime", label: "最后编辑时间", width: 160},
|
{prop: "doTime", label: "最后编辑时间", width: 160},
|
||||||
{prop: "doUserName", label: "操作人", width: 120},
|
{prop: "doUserName", label: "操作人", width: 120},
|
||||||
{
|
{prop: "ruleStatus", label: "状态", align: "center", width: 96, dict: "integralRuleStatus", fixed: "right"},
|
||||||
prop: "ruleStatus",
|
|
||||||
label: "状态",
|
|
||||||
align: "center",
|
|
||||||
width: 96,
|
|
||||||
fixed: "right",
|
|
||||||
render: (h, params) => {
|
|
||||||
return h(
|
|
||||||
"span",
|
|
||||||
{
|
|
||||||
class: "status-" + params.row.ruleStatus,
|
|
||||||
},
|
|
||||||
this.dict.getLabel("integralRuleStatus", params.row.ruleStatus)
|
|
||||||
);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{slot: "options", label: "操作", align: "center"},
|
{slot: "options", label: "操作", align: "center"},
|
||||||
],
|
],
|
||||||
tableData: [],
|
tableData: [],
|
||||||
@@ -255,28 +231,14 @@ export default {
|
|||||||
doUserName: '',
|
doUserName: '',
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
classification: [
|
classification: [{required: true, message: "请选择类型", trigger: "change"}],
|
||||||
{required: true, message: "请选择类型", trigger: "change"},
|
|
||||||
],
|
|
||||||
ruleName: [{required: true, message: "请输入事项", trigger: "blur"}],
|
ruleName: [{required: true, message: "请输入事项", trigger: "blur"}],
|
||||||
ruleDescription: [
|
ruleDescription: [{required: true, message: "请输入规则说明", trigger: "blur"}],
|
||||||
{required: true, message: "请输入规则说明", trigger: "blur"},
|
integralType: [{required: true, message: "请选择类型", trigger: "change"}],
|
||||||
],
|
integralValueType: [{required: true, message: "请选择分值类型", trigger: "change"}],
|
||||||
integralType: [
|
integral: [{required: true, validator: integralPass, trigger: "change"}],
|
||||||
{required: true, message: "请选择类型", trigger: "change"},
|
integralStart: [{required: true, validator: integralStartPass, trigger: "change"}],
|
||||||
],
|
integralEnd: [{required: true, validator: integralEndPass, trigger: "change"}],
|
||||||
integralValueType: [
|
|
||||||
{required: true, message: "请选择分值类型", trigger: "change"},
|
|
||||||
],
|
|
||||||
integral: [
|
|
||||||
{required: true, validator: integralPass, trigger: "change"},
|
|
||||||
],
|
|
||||||
integralStart: [
|
|
||||||
{required: true, validator: integralStartPass, trigger: "change"},
|
|
||||||
],
|
|
||||||
integralEnd: [
|
|
||||||
{required: true, validator: integralEndPass, trigger: "change"},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -388,13 +350,8 @@ export default {
|
|||||||
// this.dialogInfo.integralEnd = "";
|
// this.dialogInfo.integralEnd = "";
|
||||||
},
|
},
|
||||||
|
|
||||||
init(formName) {
|
init() {
|
||||||
this.$refs[formName].clearValidate();
|
this.dialogInfo = {integralType: '1', integralValueType: '0'}
|
||||||
Object.keys(this.dialogInfo).forEach((e) => {
|
|
||||||
this.dialogInfo[e] = "";
|
|
||||||
});
|
|
||||||
this.dialogInfo.integralType = '1'
|
|
||||||
this.dialogInfo.integralValueType = '0'
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user