chenrui 11 mesiacov pred
rodič
commit
ad3fdf1ed8

+ 8 - 0
src/views/promotionManagement/promotionInfo/edit.vue

@@ -0,0 +1,8 @@
+<template>
+</template>
+
+<script>
+</script>
+
+<style>
+</style>

+ 35 - 2
src/views/promotionManagement/promotionInfo/list.vue

@@ -85,6 +85,38 @@
           </div>
           <span v-else>--</span>
         </template>
+        <template slot="action" slot-scope="text, record">
+          <a-button
+            size="small"
+            type="link"
+            class="button-primary"
+            @click="handleWriteoff(record)"
+            id="productOnlineInfoList-detail-btn">发布</a-button>
+          <a-button
+            size="small"
+            type="link"
+            class="button-primary"
+            @click="handleEdit(record)"
+          >
+            编辑
+          </a-button>
+          <a-button
+            size="small"
+            type="link"
+            class="button-success"
+            @click="handleEdit(record)"
+          >
+            查看
+          </a-button>
+          <a-button
+            size="small"
+            type="link"
+            class="button-primary"
+            @click="handleEdit(record)"
+          >
+            变更
+          </a-button>
+        </template>
       </s-table>
     </a-spin>
     <promotion-desc-modal :con="descInfo" :openModal="openDescModal" @close="openDescModal = false"/>
@@ -127,8 +159,9 @@ export default {
         { title: '促销时间', scopedSlots: { customRender: 'promotionTime' }, width: '20%', align: 'center' },
         { title: '促销描述', scopedSlots: { customRender: 'desc' }, width: '20%', align: 'center' },
         { title: '促销展示', scopedSlots: { customRender: 'salesShow' }, width: '10%', align: 'center' },
-        { title: '显示状态', scopedSlots: { customRender: 'showStatus' }, width: '10%', align: 'center' },
-        { title: '状态', dataIndex: 'stateDictValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' } }
+        // { title: '显示状态', scopedSlots: { customRender: 'showStatus' }, width: '10%', align: 'center' },
+        { title: '状态', dataIndex: 'stateDictValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {