|
@@ -51,6 +51,12 @@
|
|
<span>数据列表</span>
|
|
<span>数据列表</span>
|
|
<el-button
|
|
<el-button
|
|
class="btn-add"
|
|
class="btn-add"
|
|
|
|
+ @click="handleImportProduct()"
|
|
|
|
+ size="mini">
|
|
|
|
+ 导入
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ class="btn-add"
|
|
@click="handleAddProduct()"
|
|
@click="handleAddProduct()"
|
|
size="mini">
|
|
size="mini">
|
|
添加
|
|
添加
|
|
@@ -69,7 +75,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="产品图片" width="120" align="center">
|
|
<el-table-column label="产品图片" width="120" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-image v-if="scope.row.systemFileList && scope.row.systemFileList.length>0" style="height: 80px" :src="$commonJS.getFile(scope.row.systemFileList[0].guid)"/>
|
|
|
|
|
|
+ <el-image v-if="scope.row.systemFileList && scope.row.systemFileList.length>0" style="height: 80px" :preview-src-list="scope.row.systemFileList.map(item=>{return $commonJS.getFile(item.guid)})" :src="$commonJS.getFile(scope.row.systemFileList[0].guid)"/>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="产品名称/销冠品牌" align="center">
|
|
<el-table-column label="产品名称/销冠品牌" align="center">
|
|
@@ -94,51 +100,36 @@
|
|
v-model="scope.row.publishStatus">
|
|
v-model="scope.row.publishStatus">
|
|
</el-switch>
|
|
</el-switch>
|
|
</p>
|
|
</p>
|
|
- <!-- <p>新品:
|
|
|
|
- <el-switch
|
|
|
|
- @change="handleNewStatusChange(scope.$index, scope.row)"
|
|
|
|
- :active-value="1"
|
|
|
|
- :inactive-value="0"
|
|
|
|
- v-model="scope.row.newStatus">
|
|
|
|
- </el-switch>
|
|
|
|
- </p> -->
|
|
|
|
- <!-- <p>推荐:
|
|
|
|
- <el-switch
|
|
|
|
- @change="handleRecommendStatusChange(scope.$index, scope.row)"
|
|
|
|
- :active-value="1"
|
|
|
|
- :inactive-value="0"
|
|
|
|
- v-model="scope.row.recommandStatus">
|
|
|
|
- </el-switch>
|
|
|
|
- </p> -->
|
|
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="排序" width="100" align="center">
|
|
|
|
|
|
+ <!-- <el-table-column label="排序" width="100" align="center">
|
|
<template slot-scope="scope">{{scope.row.sort}}</template>
|
|
<template slot-scope="scope">{{scope.row.sort}}</template>
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="销量" width="100" align="center">
|
|
|
|
- <template slot-scope="scope">{{scope.row.sale}}</template>
|
|
|
|
|
|
+ </el-table-column> -->
|
|
|
|
+ <el-table-column label="售卖平台/平台链接" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <p v-if="scope.row.sellPlatform">售卖平台:{{ scope.row.sellPlatform }}</p>
|
|
|
|
+ <p v-if="scope.row.platformLink">平台链接:{{ scope.row.platformLink }}</p>
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column label="操作" width="160" align="center">
|
|
<el-table-column label="操作" width="160" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<p>
|
|
<p>
|
|
- <el-button
|
|
|
|
|
|
+ <!-- <el-button
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleShowProduct(scope.$index, scope.row)">查看
|
|
@click="handleShowProduct(scope.$index, scope.row)">查看
|
|
- </el-button>
|
|
|
|
|
|
+ </el-button> -->
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleUpdateProduct(scope.$index, scope.row)">编辑
|
|
@click="handleUpdateProduct(scope.$index, scope.row)">编辑
|
|
</el-button>
|
|
</el-button>
|
|
- </p>
|
|
|
|
- <p>
|
|
|
|
-
|
|
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="danger"
|
|
type="danger"
|
|
@click="handleDelete(scope.$index, scope.row)">删除
|
|
@click="handleDelete(scope.$index, scope.row)">删除
|
|
</el-button>
|
|
</el-button>
|
|
</p>
|
|
</p>
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -297,6 +288,8 @@
|
|
handleAddProduct() {
|
|
handleAddProduct() {
|
|
this.$router.push({path:'/pms/addProduct'});
|
|
this.$router.push({path:'/pms/addProduct'});
|
|
},
|
|
},
|
|
|
|
+ //导入爆款产品
|
|
|
|
+ handleImportProduct(){},
|
|
//批量操作
|
|
//批量操作
|
|
handleBatchOperate() {
|
|
handleBatchOperate() {
|
|
if(this.operateType==null){
|
|
if(this.operateType==null){
|
|
@@ -368,7 +361,7 @@
|
|
ids:ids,
|
|
ids:ids,
|
|
ifShow:publishStatus
|
|
ifShow:publishStatus
|
|
}
|
|
}
|
|
- updatePublishStatus(params).then(response => {
|
|
|
|
|
|
+ this.$api.updateProductIfShow(params).then(response => {
|
|
this.$message({
|
|
this.$message({
|
|
message: '修改成功',
|
|
message: '修改成功',
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -400,7 +393,7 @@
|
|
var params = {
|
|
var params = {
|
|
ids:ids
|
|
ids:ids
|
|
}
|
|
}
|
|
- updateDeleteStatus(params).then(response => {
|
|
|
|
|
|
+ this.$api.deleteHotProduct(params).then(response => {
|
|
this.$message({
|
|
this.$message({
|
|
message: '删除成功',
|
|
message: '删除成功',
|
|
type: 'success',
|
|
type: 'success',
|