|
@@ -85,6 +85,38 @@
|
|
</div>
|
|
</div>
|
|
<span v-else>--</span>
|
|
<span v-else>--</span>
|
|
</template>
|
|
</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>
|
|
</s-table>
|
|
</a-spin>
|
|
</a-spin>
|
|
<promotion-desc-modal :con="descInfo" :openModal="openDescModal" @close="openDescModal = false"/>
|
|
<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: 'promotionTime' }, width: '20%', align: 'center' },
|
|
{ title: '促销描述', scopedSlots: { customRender: 'desc' }, width: '20%', align: 'center' },
|
|
{ title: '促销描述', scopedSlots: { customRender: 'desc' }, width: '20%', align: 'center' },
|
|
{ title: '促销展示', scopedSlots: { customRender: 'salesShow' }, width: '10%', 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 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|