Sfoglia il codice sorgente

调整表格字段顺序

梁展鹏 3 anni fa
parent
commit
5b65936378

+ 12 - 12
src/views/baseManagement/bannerManagement/index.vue

@@ -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

+ 6 - 6
src/views/photoManagement/eventsList/index.vue

@@ -36,9 +36,9 @@ export default {
     return {
       columns: [
         {
-          key: 'name',
-          name: '活动名称',
-          minWidth: this.$col.b
+          key: 'kindergartenName',
+          name: '所属场景',
+          width: this.$col.b
         },
         {
           key: 'cover',
@@ -62,9 +62,9 @@ export default {
             })
         },
         {
-          key: 'kindergartenName',
-          name: '所属场景',
-          width: this.$col.b
+          key: 'name',
+          name: '活动名称',
+          minWidth: this.$col.b
         },
         {
           key: 'createBy',

+ 5 - 5
src/views/photoManagement/eventsList/toolbar.vue

@@ -12,17 +12,17 @@ export default {
     return {
       fields: [
         {
-          type: 'text',
-          name: 'name',
-          label: '活动名称'
-        },
-        {
           // TODO 场景选择框
           type: 'text',
           name: 'status',
           label: '所属场景'
         },
         {
+          type: 'text',
+          name: 'name',
+          label: '活动名称'
+        },
+        {
           type: 'select',
           name: 'isShow',
           label: '状态',

+ 7 - 7
src/views/photoManagement/imageGoodsManagement/index.vue

@@ -32,6 +32,13 @@ export default {
     return {
       columns: [
         {
+          key: 'location',
+          name: '上传位置',
+          minWidth: this.$col.b,
+          render: (h, { row }) =>
+            h('span', `${row.kindergartenName}/${row.activityName}`)
+        },
+        {
           key: 'listPreview',
           name: '图片',
           width: this.$col.b,
@@ -53,13 +60,6 @@ export default {
             })
         },
         {
-          key: 'location',
-          name: '上传位置',
-          minWidth: this.$col.b,
-          render: (h, { row }) =>
-            h('span', `${row.kindergartenName}/${row.activityName}`)
-        },
-        {
           key: 'createAt',
           name: '上传时间',
           width: this.$col.b

+ 7 - 7
src/views/photoManagement/photoVerifyManagement/index.vue

@@ -32,6 +32,13 @@ export default {
     return {
       columns: [
         {
+          key: 'location',
+          name: '上传位置',
+          minWidth: this.$col.b,
+          render: (h, { row }) =>
+            h('span', `${row.kindergartenName}/${row.activityName}`)
+        },
+        {
           key: 'listPreview',
           name: '图片',
           width: this.$col.b,
@@ -53,13 +60,6 @@ export default {
             })
         },
         {
-          key: 'location',
-          name: '上传位置',
-          minWidth: this.$col.b,
-          render: (h, { row }) =>
-            h('span', `${row.kindergartenName}/${row.activityName}`)
-        },
-        {
           key: 'createAt',
           name: '上传时间',
           width: this.$col.b

+ 7 - 7
src/views/photographerManagement/photoVerify/index.vue

@@ -32,6 +32,13 @@ export default {
     return {
       columns: [
         {
+          key: 'location',
+          name: '上传位置',
+          minWidth: this.$col.b,
+          render: (h, { row }) =>
+            h('span', `${row.kindergartenName}/${row.activityName}`)
+        },
+        {
           key: 'listPreview',
           name: '图片',
           width: this.$col.b,
@@ -53,13 +60,6 @@ export default {
             })
         },
         {
-          key: 'location',
-          name: '上传位置',
-          minWidth: this.$col.b,
-          render: (h, { row }) =>
-            h('span', `${row.kindergartenName}/${row.activityName}`)
-        },
-        {
           key: 'createAt',
           name: '上传时间',
           width: this.$col.b