|
@@ -81,7 +81,7 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
|
|
|
layout: 'auto',
|
|
|
},
|
|
|
columns: {
|
|
|
- _index: {
|
|
|
+ /* _index: {
|
|
|
title: '序号',
|
|
|
form: { show: false },
|
|
|
column: {
|
|
@@ -90,6 +90,13 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
|
|
|
width: '70px',
|
|
|
columnSetDisabled: true, //禁止在列设置中选择
|
|
|
},
|
|
|
+ }, */
|
|
|
+ id: {
|
|
|
+ title: 'ID',
|
|
|
+ form: { show: false },
|
|
|
+ column: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
},
|
|
|
name: {
|
|
|
title: '标签名称',
|
|
@@ -109,26 +116,6 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
|
|
|
],
|
|
|
},
|
|
|
},
|
|
|
- description: {
|
|
|
- title: '描述',
|
|
|
- search: {
|
|
|
- show: true,
|
|
|
- component: {
|
|
|
- placeholder: '请输入描述',
|
|
|
- },
|
|
|
- },
|
|
|
- type: 'textarea',
|
|
|
- column: {
|
|
|
- minWidth: 150,
|
|
|
- showOverflowTooltip: true,
|
|
|
- },
|
|
|
- form: {
|
|
|
- component: {
|
|
|
- span: 24,
|
|
|
- placeholder: '请输入标签描述',
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
category_id: {
|
|
|
title: '分类',
|
|
|
search: {
|
|
@@ -137,13 +124,16 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
|
|
|
type: 'dict-select',
|
|
|
column: {
|
|
|
minWidth: 120,
|
|
|
+ show:false,
|
|
|
+ // component: {
|
|
|
+ // name: 'fs-dict-label',
|
|
|
+ // },
|
|
|
},
|
|
|
- dict:dict({
|
|
|
- url: '/api/categories', // 获取数据的接口
|
|
|
- // 或者使用方法
|
|
|
+ dict: dict({
|
|
|
getData: async () => {
|
|
|
const res = await api.GetcategoryList({page:1,limit:1000,tenant_id:1});
|
|
|
- return res.data.items;
|
|
|
+ console.log(res.data.items);
|
|
|
+ return res.data.items || [];
|
|
|
},
|
|
|
label: 'name',
|
|
|
value: 'id'
|
|
@@ -154,15 +144,16 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
|
|
|
],
|
|
|
},
|
|
|
},
|
|
|
- /* category_name: {
|
|
|
+ category_name: {
|
|
|
title: '分类名称',
|
|
|
column: {
|
|
|
minWidth: 120,
|
|
|
+
|
|
|
},
|
|
|
form: {
|
|
|
show: false, // 表单中不显示,由category_id自动关联
|
|
|
},
|
|
|
- }, */
|
|
|
+ },
|
|
|
/* color: {
|
|
|
title: '标签颜色',
|
|
|
type: 'colorpicker',
|
|
@@ -235,6 +226,26 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
|
|
|
show: false, // 表单中不显示,由系统自动更新
|
|
|
},
|
|
|
},
|
|
|
+ description: {
|
|
|
+ title: '描述',
|
|
|
+ search: {
|
|
|
+ show: true,
|
|
|
+ component: {
|
|
|
+ placeholder: '请输入描述',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ type: 'textarea',
|
|
|
+ column: {
|
|
|
+ minWidth: 150,
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ },
|
|
|
+ form: {
|
|
|
+ component: {
|
|
|
+ span: 24,
|
|
|
+ placeholder: '请输入标签描述',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
};
|