master
chentaisen 2024-08-23 22:00:30 +08:00
parent da25d44398
commit a01ee9b660
2 changed files with 2 additions and 46 deletions

View File

@ -1,44 +0,0 @@
import request from '@/utils/request'
// 查询规则分类列表
export function listRuleType(query) {
return request({
url: '/rule/ruleType/list',
method: 'post',
params: query
})
}
// 查询规则分类详细
export function getRuleType(id) {
return request({
url: '/rule/ruleType/' + id,
method: 'get'
})
}
// 新增规则分类
export function addRuleType(data) {
return request({
url: '/rule/ruleType',
method: 'post',
data: data
})
}
// 修改规则分类
export function updateRuleType(data) {
return request({
url: '/rule/ruleType',
method: 'put',
data: data
})
}
// 删除规则分类
export function delRuleType(id) {
return request({
url: '/rule/ruleType/' + id,
method: 'delete'
})
}

View File

@ -190,8 +190,8 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
listRule(this.queryParams).then(response => { listRule(this.queryParams).then(response => {
this.ruleList = response.data.rows; this.ruleList = response.data;
this.total = response.data.total; this.total = response.data;
this.loading = false; this.loading = false;
}); });
}, },