diff --git a/src/views/content/layout/columns.ts b/src/views/content/layout/columns.ts
index d112497..a4e013d 100644
--- a/src/views/content/layout/columns.ts
+++ b/src/views/content/layout/columns.ts
@@ -7,7 +7,8 @@ export const columns = [
},
{
label: 'ID',
- prop: 'id'
+ prop: 'id',
+ width: 100,
},
{
label: '位置编号',
@@ -28,5 +29,6 @@ export const columns = [
{
label: '创建时间',
prop: 'createTime',
+ width: 180,
},
];
diff --git a/src/views/content/layout/index.vue b/src/views/content/layout/index.vue
index 29d779e..7ad57d5 100644
--- a/src/views/content/layout/index.vue
+++ b/src/views/content/layout/index.vue
@@ -19,7 +19,7 @@
- 添加页面布局
+ 添加
@@ -64,7 +64,7 @@ const selectionData = ref([])
description:''
});
const actionColumn = reactive({
- width: 250,
+ width: 200,
label: '操作',
prop: 'action',
fixed: 'right',
diff --git a/src/views/content/layoutItem/columns.ts b/src/views/content/layoutItem/columns.ts
index d112497..a4e013d 100644
--- a/src/views/content/layoutItem/columns.ts
+++ b/src/views/content/layoutItem/columns.ts
@@ -7,7 +7,8 @@ export const columns = [
},
{
label: 'ID',
- prop: 'id'
+ prop: 'id',
+ width: 100,
},
{
label: '位置编号',
@@ -28,5 +29,6 @@ export const columns = [
{
label: '创建时间',
prop: 'createTime',
+ width: 180,
},
];
diff --git a/src/views/content/layoutItem/index.vue b/src/views/content/layoutItem/index.vue
index 44838a7..0a4dabd 100644
--- a/src/views/content/layoutItem/index.vue
+++ b/src/views/content/layoutItem/index.vue
@@ -19,7 +19,7 @@
- 添加页面推荐
+ 添加
@@ -66,7 +66,7 @@ const selectionData = ref([])
type:''
});
const actionColumn = reactive({
- width: 250,
+ width: 200,
label: '操作',
prop: 'action',
fixed: 'right',
diff --git a/src/views/content/link/columns.ts b/src/views/content/link/columns.ts
index acfbf0e..ba30dcd 100644
--- a/src/views/content/link/columns.ts
+++ b/src/views/content/link/columns.ts
@@ -7,35 +7,58 @@ export const columns = [
},
{
label: 'ID',
- prop: 'id'
+ prop: 'id',
+ width: 100,
},
{
- label: '名称',
+ label: '友链名称',
prop: 'name',
},
{
- label: '类型',
+ label: '友链类型',
prop: 'type',
render(record) {
return h('span', record.row.type === 1 ? '友情链接' : '合作伙伴')
},
},
{
- label: '类型',
+ label: '友链形式',
prop: 'form',
render(record) {
return h('span', record.row.form === 1 ? '文字链接' : '图片链接')
},
},
{
- label: 'URL',
+ label: '友链地址',
prop: 'url',
+ width: 200,
+ render(record) {
+ return h('a', {
+ href: record.row.url,
+ target:"_blank"
+ }, record.row.url);
+ },
},
+ // {
+ // label: '状态',
+ // prop: 'status',
+ // render(record) {
+ // return h('span', record.row.status === 1 ? '在用' : '停用')
+ // },
+ // },
{
label: '状态',
prop: 'status',
render(record) {
- return h('span', record.row.status === 1 ? '在用' : '停用')
+ return h(
+ ElTag,
+ {
+ type: record.row.status ==1 ? 'success' : 'danger',
+ },
+ {
+ default: () => (record.row.status ==1 ? '正常' : '停用'),
+ },
+ );
},
},
{
@@ -49,5 +72,6 @@ export const columns = [
{
label: '创建时间',
prop: 'createTime',
+ width: 180,
},
];
diff --git a/src/views/content/link/index.vue b/src/views/content/link/index.vue
index 4091bb2..8b3368e 100644
--- a/src/views/content/link/index.vue
+++ b/src/views/content/link/index.vue
@@ -19,7 +19,7 @@
- 添加友情链接
+ 添加
@@ -64,7 +64,7 @@ const selectionData = ref([])
name:''
});
const actionColumn = reactive({
- width: 250,
+ width: 200,
label: '操作',
prop: 'action',
fixed: 'right',