|
@@ -37,6 +37,18 @@ export default {
|
|
|
return {
|
|
|
columns: [
|
|
|
{
|
|
|
+ key: 'type',
|
|
|
+ name: '位置',
|
|
|
+ minWidth: this.$col.s,
|
|
|
+ render: (h, { row }) => {
|
|
|
+ const item = this.options.find(x => x.value === row.type);
|
|
|
+ if (item) {
|
|
|
+ return h('span', item.label);
|
|
|
+ }
|
|
|
+ return h('span', '-');
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
key: 'imgUrl',
|
|
|
name: '图片',
|
|
|
width: this.$col.b,
|
|
@@ -58,18 +70,6 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
{
|
|
|
- key: 'type',
|
|
|
- name: '位置',
|
|
|
- minWidth: this.$col.s,
|
|
|
- render: (h, { row }) => {
|
|
|
- const item = this.options.find(x => x.value === row.type);
|
|
|
- if (item) {
|
|
|
- return h('span', item.label);
|
|
|
- }
|
|
|
- return h('span', '-');
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
key: 'name',
|
|
|
name: '标题',
|
|
|
minWidth: this.$col.s
|