lrf 2 年之前
父節點
當前提交
4a278cd6a6

+ 5 - 1
src/views/platActivi/actTags/detail.vue

@@ -13,6 +13,9 @@
             <template #show_index>
               <el-option v-for="i in statusList" :key="i.model" :label="i.label" :value="i.value"></el-option>
             </template>
+            <template #show_goods>
+              <el-option v-for="i in statusList" :key="i.model" :label="i.label" :value="i.value"> </el-option>
+            </template>
           </data-form>
         </el-col>
       </el-col>
@@ -46,6 +49,7 @@ export default {
         { label: '状态', model: 'status', type: 'select' },
         { label: '标签图片(360*200)', model: 'file', type: 'upload', url: '/files/point/actTags/upload' },
         { label: '是否在首页展示', model: 'show_index', type: 'select' },
+        { label: '是否显示商品脚标', model: 'show_goods', type: 'select' },
       ],
       // 类型
       typeList: [],
@@ -68,7 +72,7 @@ export default {
           this.$set(this, `form`, res.data);
         }
       } else {
-        this.$set(this, `form`, { status: '0', show_index: '0' });
+        this.$set(this, `form`, { status: '0', show_index: '0', show_goods: '1' });
       }
     },
     // 提交

+ 9 - 0
src/views/platActivi/actTags/index.vue

@@ -76,6 +76,15 @@ export default {
             else return '暂无';
           },
         },
+        {
+          label: '是否显示商品脚标',
+          model: 'show_goods',
+          format: (i) => {
+            let data = that.statusList.find((f) => f.value == i);
+            if (data) return data.label;
+            else return '暂无';
+          },
+        },
       ],
       list: [],
       total: 0,

+ 3 - 1
src/views/platmanag/goods/index.vue

@@ -37,7 +37,9 @@
             <el-cascader v-model="form[item.model]" :options="tagsList" :props="props" clearable filterable :show-all-levels="false"></el-cascader>
           </template>
           <template #act_tags>
-            <el-option v-for="i in act_tagsList" :key="i.value" :label="i.label" :value="i.value"></el-option>
+            <el-option v-for="i in act_tagsList" :key="i.value" :label="i.label" :value="i.value">
+              {{ i.label }}{{ i.show_goods === '0' ? '(商品脚标)' : '' }}
+            </el-option>
           </template>
           <template #status>
             <el-option v-for="i in goodsStatusList" :key="i.value" :label="i.label" :value="i.value"></el-option>

+ 3 - 1
src/views/selfShop/goods/index.vue

@@ -43,7 +43,9 @@
             <el-cascader v-model="form[item.model]" :options="tagsList" :props="props" clearable filterable :show-all-levels="false"></el-cascader>
           </template>
           <template #act_tags>
-            <el-option v-for="i in act_tagsList" :key="i.value" :label="i.label" :value="i.value"></el-option>
+            <el-option v-for="i in act_tagsList" :key="i.value" :label="i.label" :value="i.value">
+              {{ i.label }}{{ i.show_goods === '0' ? '(商品脚标)' : '' }}
+            </el-option>
           </template>
           <template #status>
             <el-option v-for="i in goodsStatusList" :key="i.value" :label="i.label" :value="i.value"></el-option>