Browse Source

重构产品管理

dev
qb 2 months ago
parent
commit
c31a9dd851
  1. 22
      src/api/basicdata/basicdataCategory.js
  2. 229
      src/option/basicdata/basicdataCategory.js
  3. 998
      src/views/basicdata/brand/basicdataCategory.vue

22
src/api/basicdata/basicdataCategory.js

@ -1,14 +1,10 @@
import request from '@/axios'; import request from '@/axios';
export const getList = (current, size, params) => { export const getList = params => {
return request({ return request({
url: '/api/logpm-basicdata/basicdataCategory/list', url: '/api/logpm-basicdata/basicdataCategory/list',
method: 'get', method: 'get',
params: { params,
...params,
current,
size,
},
}); });
}; };
@ -60,6 +56,14 @@ export const update = row => {
}); });
}; };
export const submit = row => {
return request({
url: '/api/logpm-basicdata/basicdataCategory/submit',
method: 'post',
data: row,
});
};
export const getDeptLazyTree = parentId => { export const getDeptLazyTree = parentId => {
return request({ return request({
url: '/api/logpm-basicdata/basicdataCategory/lazy-tree', url: '/api/logpm-basicdata/basicdataCategory/lazy-tree',
@ -80,10 +84,10 @@ export const getDownTemplate = () => {
responseType: 'blob', responseType: 'blob',
}); });
}; };
export const $_getList = (params) => { export const $_getList = params => {
return request({ return request({
url: '/api/logpm-basicdata/basicdataCategory/list', url: '/api/logpm-basicdata/basicdataCategory/list',
method: 'get', method: 'get',
params params,
}); });
}; };

229
src/option/basicdata/basicdataCategory.js

@ -1,180 +1,49 @@
export default { export const columnList = [
height: 'auto', {
calcHeight: 30, prop: '',
tip: false, label: '复选框',
searchShow: false, type: 0,
searchMenuSpan: 6, width: 55,
indexLabel: '序号', fixed: true,
indexWidth: 80, },
border: true, {
index: true, prop: '',
viewBtn: true, label: '序号',
selection: true, type: 12,
dialogClickModal: false, values: '',
column: [ width: 55,
{ fixed: true,
label: '主键', },
prop: 'id', {
type: 'input', label: '名称',
addDisplay: false, prop: 'name',
editDisplay: false, type: 2,
viewDisplay: false, values: '',
hide: true, width: '150',
width: 'fit-content', checkarr: [],
}, fixed: false,
{ sortable: true,
label: '租户号', isTitleSearch: true,
prop: 'tenantId', },
type: 'input', {
addDisplay: false, label: '类型',
editDisplay: false, prop: 'typeName',
viewDisplay: false, type: 3,
hide: true, values: '',
width: 'fit-content', width: '150',
}, checkarr: [],
{ fixed: false,
label: '创建人', sortable: true,
prop: 'createUser', isTitleSearch: true,
type: 'input', },
addDisplay: false, {
editDisplay: false, label: '操作',
viewDisplay: false, prop: '',
hide: true, type: 6,
width: 'fit-content', values: '',
}, width: '150',
{ checkarr: [],
label: '创建时间', fixed: false,
prop: 'createTime', sortable: true,
type: 'input', },
addDisplay: false, ];
editDisplay: false,
viewDisplay: false,
hide: true,
width: 'fit-content',
},
{
label: '更新人',
prop: 'updateUser',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
width: 'fit-content',
},
{
label: '更新时间',
prop: 'updateTime',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
width: 'fit-content',
},
{
label: '状态',
prop: 'status',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
width: 'fit-content',
},
{
label: '是否已删除',
prop: 'isDeleted',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
width: 'fit-content',
},
{
label: '创建部门',
prop: 'createDept',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
width: 'fit-content',
},
{
label: '预留1',
prop: 'reserve1',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
width: 'fit-content',
},
{
label: '预留2',
prop: 'reserve2',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
width: 'fit-content',
},
{
label: '预留3',
prop: 'reserve3',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
width: 'fit-content',
},
{
label: '预留4',
prop: 'reserve4',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
width: 'fit-content',
},
{
label: '预留5',
prop: 'reserve5',
type: 'input',
addDisplay: false,
editDisplay: false,
viewDisplay: false,
hide: true,
width: 'fit-content',
},
{
label: '名称',
prop: 'name',
type: 'input',
search: true,
},
{
label: '类型',
prop: 'type',
type: 'select',
search: true,
dicUrl: '/api/blade-system/dict-biz/dictionary?code=category',
props: {
label: 'dictValue',
value: 'dictKey',
},
rules: [
{
required: true,
message: '请选择类型',
trigger: 'blur',
},
],
},
],
};

998
src/views/basicdata/brand/basicdataCategory.vue

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save