|
@@ -41,7 +41,11 @@
|
|
<el-table-column label="SKU" min-width="100" align="center" prop="sku" />
|
|
<el-table-column label="SKU" min-width="100" align="center" prop="sku" />
|
|
<el-table-column label="店铺名称" min-width="100" align="center" prop="storeName" />
|
|
<el-table-column label="店铺名称" min-width="100" align="center" prop="storeName" />
|
|
<el-table-column label="创建时间" min-width="100" align="center" prop="createTime" />
|
|
<el-table-column label="创建时间" min-width="100" align="center" prop="createTime" />
|
|
- <el-table-column label="下载次数" min-width="100" align="center" prop="downloadCount" />
|
|
|
|
|
|
+ <el-table-column label="下载次数" min-width="100" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{ scope.row.downlaodCount ? scope.row.downlaodCount : '-' }}
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<!-- <el-table-column label="优化建议" min-width="100" align="center" prop="createTime">
|
|
<!-- <el-table-column label="优化建议" min-width="100" align="center" prop="createTime">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<p v-if="roles.includes('superAdmin')">
|
|
<p v-if="roles.includes('superAdmin')">
|
|
@@ -77,6 +81,15 @@
|
|
<el-button type="danger" size="mini" icon="el-icon-delete-solid" circle
|
|
<el-button type="danger" size="mini" icon="el-icon-delete-solid" circle
|
|
@click="handleDelete(scope.row)" />
|
|
@click="handleDelete(scope.row)" />
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
|
|
+ <el-tooltip class="more" style="margin: 10px 0 0 0;" effect="dark" content="更多操作" placement="top">
|
|
|
|
+ <el-dropdown trigger="click" @command="command => handleAdvise(command, scope.row)">
|
|
|
|
+ <el-button size="mini" type="primary" icon="el-icon-more" circle title="更多操作" />
|
|
|
|
+ <el-dropdown-menu class="dropdown-menu" slot="dropdown">
|
|
|
|
+ <el-dropdown-item command="addAdvise">优化建议</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item command="editAdvise">查看建议</el-dropdown-item>
|
|
|
|
+ </el-dropdown-menu>
|
|
|
|
+ </el-dropdown>
|
|
|
|
+ </el-tooltip>
|
|
<!-- <el-tooltip class="more" effect="dark" content="更多" placement="top">
|
|
<!-- <el-tooltip class="more" effect="dark" content="更多" placement="top">
|
|
<el-dropdown trigger="click" @command="command => handleMore(command, scope.row)">
|
|
<el-dropdown trigger="click" @command="command => handleMore(command, scope.row)">
|
|
<el-button size="mini" type="primary" icon="el-icon-more" circle title="更多" />
|
|
<el-button size="mini" type="primary" icon="el-icon-more" circle title="更多" />
|
|
@@ -97,9 +110,9 @@
|
|
<video-player ref="videoPlayer" :video-url="currentVideoUrl" :video-title="currentVideoTitle"
|
|
<video-player ref="videoPlayer" :video-url="currentVideoUrl" :video-title="currentVideoTitle"
|
|
@close="handlePlayerClose" />
|
|
@close="handlePlayerClose" />
|
|
<!-- 优化建议 -->
|
|
<!-- 优化建议 -->
|
|
- <suggestion-table ref="suggestionTable" :rows="currentVideo" />
|
|
|
|
|
|
+ <suggestion-table ref="suggestionTable" />
|
|
<!-- 编辑优化建议 -->
|
|
<!-- 编辑优化建议 -->
|
|
- <edit-suggestion ref="editSuggestion" :rows="currentVideo" @confirm="handleCofirmSuggestion" />
|
|
|
|
|
|
+ <edit-suggestion ref="editSuggestion" @confirm="handleCofirmSuggestion" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -109,8 +122,8 @@ import swPage from "@/views/common/swPage";
|
|
import { auditStatus } from "@/constants/index";
|
|
import { auditStatus } from "@/constants/index";
|
|
import { getValueByKey } from "@/utils/index";
|
|
import { getValueByKey } from "@/utils/index";
|
|
// import ExcelImport from "@/components/ExcelImport";
|
|
// import ExcelImport from "@/components/ExcelImport";
|
|
-import EditSuggestion from "./component/editSuggestion";
|
|
|
|
-import SuggestionTable from "./component/suggestionTable";
|
|
|
|
|
|
+import EditSuggestion from "@/components/Suggestion/editSuggestion";
|
|
|
|
+import SuggestionTable from "@/components/Suggestion/suggestionTable";
|
|
|
|
|
|
import { fetchOralVideoList, deleteOralVideoList } from "@/api/video";
|
|
import { fetchOralVideoList, deleteOralVideoList } from "@/api/video";
|
|
import downloadUtil from "@/utils/downloadUtil";
|
|
import downloadUtil from "@/utils/downloadUtil";
|
|
@@ -152,8 +165,7 @@ export default {
|
|
// sku: null,
|
|
// sku: null,
|
|
},
|
|
},
|
|
currentVideoUrl: null,
|
|
currentVideoUrl: null,
|
|
- currentVideoTitle: null,
|
|
|
|
- currentVideo: {},
|
|
|
|
|
|
+ currentVideoTitle: null
|
|
};
|
|
};
|
|
},
|
|
},
|
|
//页面创建的时候执行
|
|
//页面创建的时候执行
|
|
@@ -230,6 +242,14 @@ export default {
|
|
});
|
|
});
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ handleAdvise(command, row) {
|
|
|
|
+ if (command == 'addAdvise') {
|
|
|
|
+ this.handleEditSuggestions(row)
|
|
|
|
+ }
|
|
|
|
+ if (command == 'editAdvise') {
|
|
|
|
+ this.handleViewSuggestions(row)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
//更多
|
|
//更多
|
|
handleMore(command, row) {
|
|
handleMore(command, row) {
|
|
if (command === "delete") {
|
|
if (command === "delete") {
|
|
@@ -239,12 +259,10 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handleViewSuggestions(row) {
|
|
handleViewSuggestions(row) {
|
|
- this.currentVideo = row
|
|
|
|
- this.$refs.suggestionTable.show();
|
|
|
|
|
|
+ this.$refs.suggestionTable.show(row);
|
|
},
|
|
},
|
|
handleEditSuggestions(row) {
|
|
handleEditSuggestions(row) {
|
|
- this.currentVideo = row
|
|
|
|
- this.$refs.editSuggestion.show();
|
|
|
|
|
|
+ this.$refs.editSuggestion.show(row);
|
|
},
|
|
},
|
|
handleCofirmSuggestion() {
|
|
handleCofirmSuggestion() {
|
|
this.retPage()
|
|
this.retPage()
|