优化数据管理

This commit is contained in:
zjl 2024-12-12 15:42:25 +08:00
parent 9026f05899
commit dd224de407
7 changed files with 44 additions and 8 deletions

View File

@ -23,9 +23,9 @@
:load="loadTree" :load="loadTree"
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
> >
<el-table-column label="城市名称" prop="name" min-width="150" show-overflow-tooltip /> <el-table-column label="城市名称" prop="name" min-width="250" show-overflow-tooltip />
<el-table-column label="城市拼音" prop="pinyin" min-width="150" show-overflow-tooltip /> <el-table-column label="城市拼音" prop="pinyin" min-width="150" show-overflow-tooltip />
<el-table-column align="center" label="城市级别" prop="level" min-width="80"> <el-table-column align="center" label="城市级别" prop="level" min-width="100">
<template #default="{ row }"> <template #default="{ row }">
<div v-if="row.level == 0">省份</div> <div v-if="row.level == 0">省份</div>
<div v-else-if="row.level == 1">城市</div> <div v-else-if="row.level == 1">城市</div>
@ -35,7 +35,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="城市区号" prop="cityCode" min-width="100" /> <el-table-column align="center" label="城市区号" prop="cityCode" min-width="100" />
<el-table-column align="center" label="行政编码" prop="areaCode" min-width="100" /> <el-table-column align="center" label="行政编码" prop="areaCode" min-width="150" />
<el-table-column align="center" label="城市邮编" prop="zipCode" min-width="100" /> <el-table-column align="center" label="城市邮编" prop="zipCode" min-width="100" />
<el-table-column align="center" label="操作" width="300" fixed="right"> <el-table-column align="center" label="操作" width="300" fixed="right">
<template #default="{ row }"> <template #default="{ row }">

View File

@ -8,17 +8,22 @@ export const columns = [
{ {
label: 'ID', label: 'ID',
prop: 'id', prop: 'id',
fixed: 'left',
width: 50,
}, },
{ {
label: '配置名称', label: '配置名称',
prop: 'name', prop: 'name',
width: 100,
}, },
{ {
label: '配置编码', label: '配置编码',
prop: 'code', prop: 'code',
width: 100,
}, },
{ {
label: '排序', label: '排序',
prop: 'sort', prop: 'sort',
width: 100,
}, },
]; ];

View File

@ -7,23 +7,28 @@ export const columns = [
{ {
label: 'ID', label: 'ID',
prop: 'id', prop: 'id',
width: 100, fixed: 'left',
width: 50,
}, },
{ {
label: '配置项名称', label: '配置项名称',
prop: 'name', prop: 'name',
width: 100,
}, },
{ {
label: '配置项编码', label: '配置项编码',
prop: 'code', prop: 'code',
width: 150,
}, },
{ {
label: '配置项值', label: '配置项值',
prop: 'value', prop: 'value',
width: 200,
}, },
{ {
label: '配置项类型', label: '配置项类型',
prop: 'type', prop: 'type',
width: 150,
render(record) { render(record) {
let typeText = ''; let typeText = '';
switch (record.row.type) { switch (record.row.type) {
@ -90,6 +95,7 @@ export const columns = [
{ {
label: '配置项状态', label: '配置项状态',
prop: 'status', prop: 'status',
width: 100,
render(record) { render(record) {
return h( return h(
ElTag, ElTag,
@ -105,5 +111,6 @@ export const columns = [
{ {
label: '排序', label: '排序',
prop: 'sort', prop: 'sort',
width: 100,
}, },
]; ];

View File

@ -5,31 +5,38 @@ export const columns = [
{ {
label: 'ID', label: 'ID',
prop: 'id', prop: 'id',
width: 100, fixed: 'left',
width: 50,
}, },
{ {
label: '字典名称', label: '字典名称',
prop: 'name', prop: 'name',
width: 100,
}, },
{ {
label: '字典项值', label: '字典项值',
prop: 'value', prop: 'value',
width: 100,
}, },
{ {
label: '字典编码', label: '字典编码',
prop: 'dictCode', prop: 'dictCode',
width: 100,
}, },
{ {
label: '排序', label: '排序',
prop: 'sort', prop: 'sort',
width: 100,
}, },
{ {
label: '备注', label: '备注',
prop: 'note', prop: 'note',
width: 200,
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -8,15 +8,18 @@ export const columns = [
{ {
label: 'ID', label: 'ID',
prop: 'id', prop: 'id',
width: 100, fixed: 'left',
width: 50,
}, },
{ {
label: '消息标题', label: '消息标题',
prop: 'title', prop: 'title',
width: 250,
}, },
{ {
label: '消息类型', label: '消息类型',
prop: 'type', prop: 'type',
width: 100,
render(record) { render(record) {
let typeText = ''; let typeText = '';
switch (record.row.type) { switch (record.row.type) {
@ -38,6 +41,7 @@ export const columns = [
{ {
label: '业务类型', label: '业务类型',
prop: 'status', prop: 'status',
width: 100,
render(record) { render(record) {
return h('span', record.row.bizType === 1 ? '订单' : '其他'); return h('span', record.row.bizType === 1 ? '订单' : '其他');
}, },
@ -45,6 +49,7 @@ export const columns = [
{ {
label: '消息状态', label: '消息状态',
prop: 'status', prop: 'status',
width: 100,
render(record) { render(record) {
return h('span', record.row.status === 1 ? '已读' : '未读'); return h('span', record.row.status === 1 ? '已读' : '未读');
}, },
@ -53,6 +58,7 @@ export const columns = [
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -13,11 +13,12 @@ export const columns = [
{ {
label: '通知标题', label: '通知标题',
prop: 'title', prop: 'title',
width: 300, width: 250,
}, },
{ {
label: '通知封面', label: '通知封面',
prop: 'cover', prop: 'cover',
width: 100,
render(record) { render(record) {
return h(ElAvatar, { return h(ElAvatar, {
size: 48, size: 48,
@ -26,7 +27,6 @@ export const columns = [
fit: 'fill', fit: 'fill',
}); });
}, },
width: 100,
}, },
{ {
label: '通知类型', label: '通知类型',
@ -49,6 +49,7 @@ export const columns = [
{ {
label: '通知状态', label: '通知状态',
prop: 'status', prop: 'status',
width: 100,
// render(record) { // render(record) {
// return h('span', record.row.status === 1 ? '正常' : '关闭') // return h('span', record.row.status === 1 ? '正常' : '关闭')
// }, // },
@ -67,10 +68,12 @@ export const columns = [
{ {
label: '点击率', label: '点击率',
prop: 'clickNum', prop: 'clickNum',
width: 100,
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -13,18 +13,22 @@ export const columns = [
{ {
label: '参数名称', label: '参数名称',
prop: 'name', prop: 'name',
width: 200,
}, },
{ {
label: '参数编码', label: '参数编码',
prop: 'code', prop: 'code',
width: 250,
}, },
{ {
label: '参数值', label: '参数值',
prop: 'value', prop: 'value',
width: 200,
}, },
{ {
label: '参数类型', label: '参数类型',
prop: 'type', prop: 'type',
width: 100,
render(record) { render(record) {
return h( return h(
ElTag, ElTag,
@ -40,6 +44,7 @@ export const columns = [
{ {
label: '参数状态', label: '参数状态',
prop: 'status', prop: 'status',
width: 100,
render(record) { render(record) {
return h( return h(
ElTag, ElTag,
@ -55,14 +60,17 @@ export const columns = [
{ {
label: '排序', label: '排序',
prop: 'sort', prop: 'sort',
width: 100,
}, },
{ {
label: '备注', label: '备注',
prop: 'note', prop: 'note',
width: 150,
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100,
}, },
{ {
label: '创建时间', label: '创建时间',