|
|
@@ -4,7 +4,7 @@
|
|
|
:close-on-click-modal="false"
|
|
|
:visible.sync="visible"
|
|
|
:append-to-body="true"
|
|
|
- width="50%"
|
|
|
+ width="85%"
|
|
|
>
|
|
|
<div class="mod-order-orderPromotion">
|
|
|
<!-- 列表相关区域 -->
|
|
|
@@ -25,17 +25,64 @@
|
|
|
<span>{{ scope.row.orderNumber}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <!-- 产品 -->
|
|
|
+ <el-table-column label="产品" prop="prodName" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ scope.row.prodName}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <!-- 博主名称 -->
|
|
|
+ <el-table-column label="博主" prop="upName" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ scope.row.upName}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <!-- 链接名称 -->
|
|
|
+ <el-table-column label="链接名称" prop="linkName" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ scope.row.linkName}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <!-- 点赞数量 -->
|
|
|
+ <el-table-column label="点赞数" prop="likeNums" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ scope.row.likeNums}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <!-- 收藏数量 -->
|
|
|
+ <el-table-column label="收藏数" prop="collectionNums" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ scope.row.collectionNums}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <!-- 收藏数量 -->
|
|
|
+ <el-table-column label="推广平台" prop="platform" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ scope.row.platform}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <!-- 推广风格 -->
|
|
|
+ <el-table-column label="推广风格" prop="type" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ scope.row.type}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<!-- 推广链接 -->
|
|
|
<el-table-column label="推广链接" prop="promotionLink" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" @click="openLink(scope.row.promotionLink)">{{ scope.row.promotionLink}}</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" fixed="right" :label="$t('publics.operating')" width="auto">
|
|
|
+ <!-- 发布时间 -->
|
|
|
+ <el-table-column label="发布时间" prop="publishTime" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ scope.row.publishTime}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column fixed="right" align="center" :label="$t('publics.operating')" style="width: 200px">
|
|
|
<template slot-scope="scope">
|
|
|
- <div class="text-btn-con">
|
|
|
- <div class="default-btn text-btn" @click.stop="deleteHandle(scope.row.id)">{{$t("text.delBtn")}}</div>
|
|
|
- </div>
|
|
|
+ <el-button type="text" @click="addOrUpdateHandle(scope.row.id)">编辑</el-button>
|
|
|
+ <el-button type="text" @click="deleteHandle(scope.row.id, false)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -70,6 +117,7 @@ export default {
|
|
|
},
|
|
|
visible: false,
|
|
|
orderNumber: null,
|
|
|
+ prodName: null,
|
|
|
searchForm: {}, // 搜索
|
|
|
dataListLoading: false,
|
|
|
addOrUpdateVisible: false
|
|
|
@@ -84,7 +132,8 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
init (params) {
|
|
|
- this.orderNumber = params.orderNumber
|
|
|
+ this.orderNumber = params.orderNumber;
|
|
|
+ this.prodName = params.prodName;
|
|
|
this.visible = true
|
|
|
if (this.orderNumber) {
|
|
|
this.indexs = 0
|
|
|
@@ -131,10 +180,10 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
// 新增 / 修改
|
|
|
- addOrUpdateHandle (orderNumber) {
|
|
|
+ addOrUpdateHandle (id) {
|
|
|
this.addOrUpdateVisible = true
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.addOrUpdate.init(this.orderNumber)
|
|
|
+ this.$refs.addOrUpdate.init(id, this.orderNumber, this.prodName)
|
|
|
})
|
|
|
},
|
|
|
deleteHandle (id) {
|