Browse Source

拓展过滤字段

梁展鹏 3 years ago
parent
commit
da37d4451f

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

@@ -101,6 +101,14 @@ export default {
           width: this.$col.m
         },
         {
+          key: 'isTake',
+          name: '随手拍',
+          width: this.$col.s,
+          type: 'tag',
+          fetchTagType: val => (val ? 'success' : 'info'),
+          tagName: row => (row.isTake ? '是' : '否')
+        },
+        {
           key: 'isBeautiful',
           name: '精选',
           width: this.$col.m,
@@ -119,14 +127,6 @@ export default {
           // tagName: row => (row.isBeautiful ? '是' : '否')
         },
         {
-          key: 'isTake',
-          name: '随手拍',
-          width: this.$col.s,
-          type: 'tag',
-          fetchTagType: val => (val ? 'success' : 'info'),
-          tagName: row => (row.isTake ? '是' : '否')
-        },
-        {
           key: 'isReady',
           name: '裂变',
           width: this.$col.s,

+ 15 - 3
src/views/photoManagement/imageGoodsManagement/toolbar.vue

@@ -28,13 +28,25 @@ export default {
           apiName: ['startTime', 'endTime']
         },
         {
-          label: '精选'
+          type: 'select',
+          name: 'isTake',
+          label: '随手拍',
+          options: setStatus(['是', '否'], [true, false]),
+          format: val => (val !== null && val !== '' ? !!val : null)
         },
         {
-          label: '随手拍'
+          type: 'select',
+          name: 'isBeautiful',
+          label: '精选',
+          options: setStatus(['是', '否'], [true, false]),
+          format: val => (val !== null && val !== '' ? !!val : null)
         },
         {
-          label: '裂变'
+          type: 'select',
+          name: 'isReady',
+          label: '裂变',
+          options: setStatus(['是', '否'], [true, false]),
+          format: val => (val !== null && val !== '' ? !!val : null)
         }
       ]
     };