|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<el-card shadow="never" class="aui-card--fill"> |
|
|
|
<div class="mod-__pointsrule}"> |
|
|
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> |
|
|
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataListOnClickButton()"> |
|
|
|
<el-form-item label="积分编码"> |
|
|
|
<el-input v-model="dataForm.ruleCode" placeholder="请输入积分编码" clearable></el-input> |
|
|
|
</el-form-item> |
|
|
@ -29,7 +29,7 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button> |
|
|
|
<el-button @click="getDataListOnClickButton()">{{ $t('query') }}</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button v-if="$hasPermission('points:pointsrule:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button> |
|
|
@ -138,6 +138,24 @@ export default { |
|
|
|
if (row.enableFlag === '1') { |
|
|
|
return '是' |
|
|
|
} |
|
|
|
}, |
|
|
|
// 点击查询按钮获取信息 |
|
|
|
getDataListOnClickButton () { |
|
|
|
var param = { |
|
|
|
'ruleCode': this.dataForm.ruleCode, |
|
|
|
'ruleDesc': this.dataForm.ruleDesc, |
|
|
|
'operationType': this.dataForm.operationType, |
|
|
|
'enableFlag': this.dataForm.enableFlag, |
|
|
|
'page': 1, |
|
|
|
'limit': this.limit |
|
|
|
} |
|
|
|
this.$http.get(`/points/pointsrule/page`, { params: param }).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.dataList = res.data.list |
|
|
|
this.total = res.data.total |
|
|
|
}).catch(() => {}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|