feat:
1. add category
This commit is contained in:
@@ -2,7 +2,7 @@ import request from '@/axios';
|
||||
|
||||
export const getList = (current, size, params) => {
|
||||
return request({
|
||||
url: '/blade-regionsinfo/regionsInfo/list',
|
||||
url: '/common/region/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
@@ -14,7 +14,7 @@ export const getList = (current, size, params) => {
|
||||
|
||||
export const getDetail = (id) => {
|
||||
return request({
|
||||
url: '/blade-regionsinfo/regionsInfo/detail',
|
||||
url: '/common/region/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
id
|
||||
@@ -24,7 +24,7 @@ export const getDetail = (id) => {
|
||||
|
||||
export const remove = (ids) => {
|
||||
return request({
|
||||
url: '/blade-regionsinfo/regionsInfo/remove',
|
||||
url: '/common/region/remove',
|
||||
method: 'post',
|
||||
params: {
|
||||
ids,
|
||||
@@ -34,7 +34,7 @@ export const remove = (ids) => {
|
||||
|
||||
export const add = (row) => {
|
||||
return request({
|
||||
url: '/blade-regionsinfo/regionsInfo/submit',
|
||||
url: '/common/region/submit',
|
||||
method: 'post',
|
||||
data: row
|
||||
})
|
||||
@@ -42,7 +42,7 @@ export const add = (row) => {
|
||||
|
||||
export const update = (row) => {
|
||||
return request({
|
||||
url: '/blade-regionsinfo/regionsInfo/submit',
|
||||
url: '/common/region/submit',
|
||||
method: 'post',
|
||||
data: row
|
||||
})
|
||||
|
||||
@@ -93,8 +93,9 @@ export default {
|
||||
},
|
||||
formatter: (row, value, cellValue) => {
|
||||
if (!Array.isArray(value)) return '';
|
||||
return value.map(s => `${s.attr}:${s.value}`).join('; ');
|
||||
return value.map(s => `${s.attr} : ${s.value}`).join('; ');
|
||||
},
|
||||
overHidden: true,
|
||||
},
|
||||
{
|
||||
label: "单位",
|
||||
|
||||
Reference in New Issue
Block a user