|
|
@@ -1,11 +1,11 @@
|
|
|
<template>
|
|
|
<div class="upload_Link">
|
|
|
- <!-- <span><b>经销商</b></span> -->
|
|
|
- <span>针对论坛及其他平台链接上传</span>
|
|
|
- <div class="contentHead">
|
|
|
+ <div v-if="isFather()">
|
|
|
+ <!-- <span><b>经销商</b></span> -->
|
|
|
+ <div class="topLeftTitle">针对论坛及其他平台链接上传</div>
|
|
|
+ <!-- <div class="contentHead">
|
|
|
<span>上传平台</span>
|
|
|
<select name="" id="" v-model="platformVal" @change="choosePlatform">
|
|
|
- <!-- <option value="">请选择</option> -->
|
|
|
<option
|
|
|
v-for="(item, index) in platform"
|
|
|
:key="index"
|
|
|
@@ -14,147 +14,176 @@
|
|
|
{{ item.platformName }}
|
|
|
</option>
|
|
|
</select>
|
|
|
- </div>
|
|
|
- <div class="tableBox">
|
|
|
- <table class="feedbackTable">
|
|
|
- <thead class="theadStyle">
|
|
|
- <tr class="tableHeadStyle1">
|
|
|
- <td>论坛传播情况汇总</td>
|
|
|
- </tr>
|
|
|
- <tr class="tableHeadStyle2 tableHeadStyle3">
|
|
|
- <td v-for="(item, index) in tableHeader" :key="index">
|
|
|
- {{ item }}
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody class="bodyStyle">
|
|
|
- <tr
|
|
|
- class="bodyContent tableHeadStyle2"
|
|
|
- v-for="(obj, index) in tableData"
|
|
|
- :key="index"
|
|
|
- :class="{ table_gray: index % 2 === 0 }"
|
|
|
- >
|
|
|
- <td v-if="flag">{{ index + 1 }}</td>
|
|
|
+ </div> -->
|
|
|
+ <div class="tableBox">
|
|
|
+ <table class="feedbackTable">
|
|
|
+ <thead class="theadStyle">
|
|
|
+ <tr class="tableHeadStyle1">
|
|
|
+ <td>论坛传播情况汇总</td>
|
|
|
+ </tr>
|
|
|
+ <tr class="tableHeadStyle2 tableHeadStyle3">
|
|
|
+ <td v-for="(item, index) in tableHeader" :key="index">
|
|
|
+ {{ item }}
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody class="bodyStyle">
|
|
|
+ <tr
|
|
|
+ class="bodyContent tableHeadStyle2"
|
|
|
+ v-for="(obj, index) in tableData"
|
|
|
+ :key="index"
|
|
|
+ :class="{ table_gray: index % 2 === 0 }"
|
|
|
+ >
|
|
|
+ <td v-if="flag">{{ index + 1 }}</td>
|
|
|
|
|
|
- <td>{{ obj.publishDate }}</td>
|
|
|
- <!-- 发布日期 -->
|
|
|
- <td>{{ obj.informationName }}</td>
|
|
|
- <!-- 资料名称 -->
|
|
|
- <td>{{ obj.carTypeName }}</td>
|
|
|
- <!-- 车系 -->
|
|
|
- <td>{{ obj.carPlatformName }}</td>
|
|
|
- <!-- 车型 -->
|
|
|
- <td>{{ obj.publishSourceName }}</td>
|
|
|
- <!-- 发布版块 -->
|
|
|
- <td>{{ obj.projectTypeName }}</td>
|
|
|
- <!-- 项目分类 -->
|
|
|
- <td>{{ obj.mediaTypeName }}</td>
|
|
|
- <!-- 内容分类1 -->
|
|
|
- <td>{{ obj.contentTypeName }}</td>
|
|
|
- <!-- 内容分类2 -->
|
|
|
- <td>{{ obj.mediaTitle }}</td>
|
|
|
- <!-- 稿件标题 -->
|
|
|
- <td>
|
|
|
- <a :href="obj.mediaUrl" target="blank">{{ obj.mediaUrl }}</a>
|
|
|
- </td>
|
|
|
- <!-- 链接 -->
|
|
|
+ <td>{{ obj.publishDate }}</td>
|
|
|
+ <!-- 发布日期 -->
|
|
|
+ <td>{{ obj.informationName }}</td>
|
|
|
+ <!-- 资料名称 -->
|
|
|
|
|
|
- <td class="operationStyle" style="cursor: pointer">
|
|
|
- <span @click="toggleModal(index)">编辑</span>
|
|
|
- <span @click="toggleModal2(index)">删除</span>
|
|
|
- <!-- 弹窗: 确定删除? -->
|
|
|
- <deleteModal
|
|
|
- v-if="showModal2"
|
|
|
- @dataDel="toDel"
|
|
|
- @hide_modal="closeme2"
|
|
|
- :LinkData="modalData"
|
|
|
- :showModalFlag="showModal2"
|
|
|
- :chooseItemIndex="nowIndex"
|
|
|
- ></deleteModal>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- <!-- 弹窗: 编辑表格内容 -->
|
|
|
- <Modal
|
|
|
- v-if="showModal"
|
|
|
- v-on:closeme="closeme"
|
|
|
- :LinkData="modalData"
|
|
|
- @update="editTitle"
|
|
|
- :selectedPlatform="selectedPlatform"
|
|
|
- :releaseMedia="releaseMedia"
|
|
|
- ></Modal>
|
|
|
+ <td>{{ obj.informationName }}</td>
|
|
|
+ <!-- 发布渠道 -->
|
|
|
|
|
|
- <div class="timeLimitStyle">
|
|
|
- <span>仅可对上传时间为{{ feedbackTimeLimit }}个月内的资料进行反馈</span>
|
|
|
- </div>
|
|
|
- <div class="pageBottom">
|
|
|
- <div class="fileOperation">
|
|
|
- <span
|
|
|
- class="operationStyle xiahuaxian"
|
|
|
- @click="importTemplate"
|
|
|
- style="cursor: pointer"
|
|
|
- >导入模板</span
|
|
|
- >
|
|
|
- <label
|
|
|
- for="fileInput"
|
|
|
- @change="getFileInfo($event)"
|
|
|
- class="uploadFile"
|
|
|
- style="cursor: pointer"
|
|
|
- >导入<input
|
|
|
- type="file"
|
|
|
- name="fileName"
|
|
|
- id="fileInput"
|
|
|
- accept=".xlsx, .xls"
|
|
|
- multiple
|
|
|
- /></label>
|
|
|
- <label for="fileOutput" @click="onOutputExcel()" style="cursor: pointer"
|
|
|
- >导出</label
|
|
|
- >
|
|
|
+ <td>{{ obj.publishSourceName }}</td>
|
|
|
+ <!-- 平台板块 发布版块-->
|
|
|
+
|
|
|
+ <td>{{ obj.informationName }}</td>
|
|
|
+ <!-- 阅读量 -->
|
|
|
+ <td>{{ obj.informationName }}</td>
|
|
|
+ <!-- 点赞 -->
|
|
|
+ <td>{{ obj.informationName }}</td>
|
|
|
+ <!-- 评论 -->
|
|
|
+ <td>{{ obj.informationName }}</td>
|
|
|
+ <!-- 在看/转发 -->
|
|
|
+
|
|
|
+ <!-- <td>{{ obj.carTypeName }}</td> -->
|
|
|
+ <!-- 车系 -->
|
|
|
+ <!-- <td>{{ obj.projectTypeName }}</td> -->
|
|
|
+ <!-- 项目分类 -->
|
|
|
+
|
|
|
+ <td>{{ obj.mediaTypeName }}</td>
|
|
|
+ <!-- 稿件类别 内容分类1 -->
|
|
|
+ <td>{{ obj.contentTypeName }}</td>
|
|
|
+ <!-- 内容分类 内容分类2 -->
|
|
|
+ <td>{{ obj.carPlatformName }}</td>
|
|
|
+ <!-- 车型 -->
|
|
|
+ <td>{{ obj.informationName }}</td>
|
|
|
+ <!-- 反馈状态 -->
|
|
|
+ <td>{{ obj.informationName }}</td>
|
|
|
+ <!-- 反馈截止日期 -->
|
|
|
+ <td>{{ obj.mediaTitle }}</td>
|
|
|
+ <!-- 稿件标题 -->
|
|
|
+ <td>
|
|
|
+ <a :href="obj.mediaUrl" target="blank">{{ obj.mediaUrl }}</a>
|
|
|
+ </td>
|
|
|
+ <!-- 链接 -->
|
|
|
+
|
|
|
+ <td class="operationStyle" style="cursor: pointer">
|
|
|
+ <span @click="toggleModal(index)">编辑</span>
|
|
|
+ <span @click="viewHistoryRecord(index)">查看</span>
|
|
|
+ <!-- <span @click="toggleModal2(index)">删除</span> -->
|
|
|
+ <!-- 弹窗: 确定删除? -->
|
|
|
+ <deleteModal
|
|
|
+ v-if="showModal2"
|
|
|
+ @dataDel="toDel"
|
|
|
+ @hide_modal="closeme2"
|
|
|
+ :LinkData="modalData"
|
|
|
+ :showModalFlag="showModal2"
|
|
|
+ :chooseItemIndex="nowIndex"
|
|
|
+ ></deleteModal>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
</div>
|
|
|
- <TablePage
|
|
|
- :currentPage="currentPage"
|
|
|
- :totalPage="totalPage"
|
|
|
- @change_page="changePage"
|
|
|
- @jump_page="jumpPage"
|
|
|
- class="tablePageStyle"
|
|
|
- ></TablePage>
|
|
|
- </div>
|
|
|
+ <!-- 弹窗: 编辑表格内容 -->
|
|
|
+ <Modal
|
|
|
+ v-if="showModal"
|
|
|
+ v-on:closeme="closeme"
|
|
|
+ :LinkData="modalData"
|
|
|
+ @update="editTitle"
|
|
|
+ :selectedPlatform="selectedPlatform"
|
|
|
+ :releaseMedia="releaseMedia"
|
|
|
+ ></Modal>
|
|
|
|
|
|
- <!-- 弹窗: 上传链接超过剩余限制数量,请修改后重新导入 -->
|
|
|
- <div class="modal-backdrop" v-show="showModal3">
|
|
|
- <div class="modal">
|
|
|
- <div class="modal-body">
|
|
|
- <div class="bodyRow">上传链接超过剩余限制数量,请修改后重新导入</div>
|
|
|
- </div>
|
|
|
- <div class="modal-footer">
|
|
|
- <button type="button" class="btn-confirm" @click="closeme3()">
|
|
|
- 确定
|
|
|
- </button>
|
|
|
- <button type="button" class="btn-close" @click="closeme3">
|
|
|
- 取消
|
|
|
- </button>
|
|
|
+ <div class="timeLimitStyle">
|
|
|
+ <span>仅可对上传时间为{{ feedbackTimeLimit }}个月内的资料进行反馈</span>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="pageBottom">
|
|
|
+ <div class="fileOperation">
|
|
|
+ <span
|
|
|
+ class="operationStyle xiahuaxian"
|
|
|
+ @click="importTemplate"
|
|
|
+ style="cursor: pointer"
|
|
|
+ >导入模板</span
|
|
|
+ >
|
|
|
+ <label
|
|
|
+ for="fileInput"
|
|
|
+ @change="getFileInfo($event)"
|
|
|
+ class="uploadFile"
|
|
|
+ style="cursor: pointer"
|
|
|
+ >导入<input
|
|
|
+ type="file"
|
|
|
+ name="fileName"
|
|
|
+ id="fileInput"
|
|
|
+ accept=".xlsx, .xls"
|
|
|
+ multiple
|
|
|
+ /></label>
|
|
|
+ <label
|
|
|
+ for="fileOutput"
|
|
|
+ @click="onOutputExcel()"
|
|
|
+ style="cursor: pointer"
|
|
|
+ >导出</label
|
|
|
+ >
|
|
|
</div>
|
|
|
+ <TablePage
|
|
|
+ :currentPage="currentPage"
|
|
|
+ :totalPage="totalPage"
|
|
|
+ @change_page="changePage"
|
|
|
+ @jump_page="jumpPage"
|
|
|
+ class="tablePageStyle"
|
|
|
+ ></TablePage>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <!-- 弹窗: 资料名称无法匹配,请修改后重新导入 -->
|
|
|
- <div class="modal-backdrop" v-show="showModal4">
|
|
|
- <div class="modal">
|
|
|
- <div class="modal-body">
|
|
|
- <div class="bodyRow">资料名称无法匹配,请修改后重新导入</div>
|
|
|
- <div class="bodyRow">成功{{ 1 }}条,失败{{ 1 }}条</div>
|
|
|
+
|
|
|
+ <!-- 弹窗: 上传链接超过剩余限制数量,请修改后重新导入 -->
|
|
|
+ <div class="modal-backdrop" v-show="showModal3">
|
|
|
+ <div class="modal">
|
|
|
+ <div class="modal-body">
|
|
|
+ <div class="bodyRow">
|
|
|
+ 上传链接超过剩余限制数量,请修改后重新导入
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer">
|
|
|
+ <button type="button" class="btn-confirm" @click="closeme3()">
|
|
|
+ 确定
|
|
|
+ </button>
|
|
|
+ <button type="button" class="btn-close" @click="closeme3">
|
|
|
+ 取消
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="modal-footer" style="position: relative; top: 95px">
|
|
|
- <button type="button" class="btn-confirm" @click="closeme4()">
|
|
|
- 确定
|
|
|
- </button>
|
|
|
- <button type="button" class="btn-close" @click="closeme4">
|
|
|
- 取消
|
|
|
- </button>
|
|
|
+ </div>
|
|
|
+ <!-- 弹窗: 资料名称无法匹配,请修改后重新导入 -->
|
|
|
+ <div class="modal-backdrop" v-show="showModal4">
|
|
|
+ <div class="modal">
|
|
|
+ <div class="modal-body">
|
|
|
+ <div class="bodyRow">资料名称无法匹配,请修改后重新导入</div>
|
|
|
+ <div class="bodyRow">成功{{ 1 }}条,失败{{ 1 }}条</div>
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer" style="position: relative; top: 95px">
|
|
|
+ <button type="button" class="btn-confirm" @click="closeme4()">
|
|
|
+ 确定
|
|
|
+ </button>
|
|
|
+ <button type="button" class="btn-close" @click="closeme4">
|
|
|
+ 取消
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <router-view></router-view>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -176,6 +205,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ isFatherFlag: true,
|
|
|
publishCount: "",
|
|
|
platform: [],
|
|
|
platformVal: "",
|
|
|
@@ -199,18 +229,23 @@ export default {
|
|
|
"NO.",
|
|
|
"发布日期",
|
|
|
"资料名称",
|
|
|
- "车系",
|
|
|
- "车型",
|
|
|
- "发布版块",
|
|
|
- "项目分类",
|
|
|
- "内容分类1",
|
|
|
- "内容分类2",
|
|
|
+ "发布渠道",
|
|
|
+ "平台板块",
|
|
|
+ "阅读量",
|
|
|
+ "点赞",
|
|
|
+ "评论",
|
|
|
+ "在看/转发",
|
|
|
+ "稿件类别",
|
|
|
+ "内容分类",
|
|
|
+ "涉及车型",
|
|
|
+ "反馈状态",
|
|
|
+ "反馈截止日期",
|
|
|
"标题",
|
|
|
"链接",
|
|
|
"操作",
|
|
|
],
|
|
|
tableData: [
|
|
|
- /* {
|
|
|
+ {
|
|
|
informationId: "2021/03/04",
|
|
|
publishDate: "雷克萨斯ES上市",
|
|
|
carTypeName: "雷克萨斯ES",
|
|
|
@@ -220,7 +255,7 @@ export default {
|
|
|
contentTypeName: "雷克萨斯ES",
|
|
|
mediaTitle: "ES雷克萨斯",
|
|
|
mediaUrl: "S雷克萨斯",
|
|
|
- },*/
|
|
|
+ },
|
|
|
],
|
|
|
flag: true,
|
|
|
modalData: {}, //17:44
|
|
|
@@ -309,20 +344,8 @@ export default {
|
|
|
|
|
|
toDel: function (n) {
|
|
|
console.log("inToDel:", n);
|
|
|
- //清空数据
|
|
|
- /* if (n == -2) {
|
|
|
- this.tableData = "";
|
|
|
- }
|
|
|
- //清空某一项数据
|
|
|
- {
|
|
|
- let obj = this.tableData[n];
|
|
|
- Object.keys(obj).forEach((key) => {
|
|
|
- obj[key] = "";
|
|
|
- });
|
|
|
- } */
|
|
|
this.showModal2 = !this.showModal2;
|
|
|
//更新数据
|
|
|
-
|
|
|
this.choosePlatform();
|
|
|
},
|
|
|
/* 表格翻页 */
|
|
|
@@ -425,40 +448,7 @@ export default {
|
|
|
let url = this.onlineUrl + "/exportNoFactory";
|
|
|
console.log("导出excel:", url);
|
|
|
window.open(url);
|
|
|
- /* this.$http({
|
|
|
- url: "/exportNoFactory",
|
|
|
- method: "get",
|
|
|
- params: {
|
|
|
- //id: this.selectedPlatformId //当期平台id
|
|
|
- },
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
- console.log(res);
|
|
|
- if (res.data.code === 200) {
|
|
|
- console.log(res.data);
|
|
|
- }
|
|
|
- })
|
|
|
- .catch((err) => {
|
|
|
- console.log(err);
|
|
|
- }); */
|
|
|
},
|
|
|
- //导入excel
|
|
|
- /* onImportExcel: function () {
|
|
|
- this.$http({
|
|
|
- url: "/importDealerFeedback",
|
|
|
- method: "get",
|
|
|
- params: {},
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
- console.log(res);
|
|
|
- if (res.data.code === 200) {
|
|
|
- console.log(res.data);
|
|
|
- }
|
|
|
- })
|
|
|
- .catch((err) => {
|
|
|
- console.log(err);
|
|
|
- });
|
|
|
- }, */
|
|
|
// 获取文件
|
|
|
getFileInfo: function (event) {
|
|
|
this.file = event.target.files;
|
|
|
@@ -559,7 +549,8 @@ export default {
|
|
|
.then((res) => {
|
|
|
if (res.data.code === 200) {
|
|
|
console.log(res);
|
|
|
- this.publishCount = res.data.data.length > 0 ? res.data.data[0].publishCount : 0;
|
|
|
+ this.publishCount =
|
|
|
+ res.data.data.length > 0 ? res.data.data[0].publishCount : 0;
|
|
|
let len = this.publishCount;
|
|
|
let l = this.tableData.length;
|
|
|
console.log("获取可发布数量", len, l);
|
|
|
@@ -603,44 +594,6 @@ export default {
|
|
|
let url = this.onlineUrl + "/downloadTemplate?templateName=" + str;
|
|
|
console.log("下载导入模板:", url);
|
|
|
window.open(url);
|
|
|
- /* this.$http({
|
|
|
- url: "/downloadTemplate",
|
|
|
- method: "get",
|
|
|
- params: {
|
|
|
- templateName: "反馈链接上传导入表模板(经销商).xlsx",
|
|
|
- },
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
- console.log(res);
|
|
|
- if (res.data.code === 200) {
|
|
|
- console.log(res.data);
|
|
|
- }
|
|
|
- })
|
|
|
- .catch((err) => {
|
|
|
- console.log(err);
|
|
|
- });
|
|
|
- /* return new Promise((resolve, reject) => {
|
|
|
- this.$http({
|
|
|
- url: "/exportNoFactory",
|
|
|
- method: "get",
|
|
|
- params: "反馈链接上传导入表模板(经销商).xlsx"
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
- console.log(res);
|
|
|
- resolve(res);
|
|
|
- let link = document.createElement("a");
|
|
|
- link.href = window.URL.createObjectURL(new Blob([res.data]));
|
|
|
- link.target = "_blank";
|
|
|
- //文件名和格式
|
|
|
- link.download = "文件模板.xlsx";
|
|
|
- document.body.appendChild(link);
|
|
|
- link.click();
|
|
|
- document.body.removeChild(link);
|
|
|
- })
|
|
|
- .catch((err) => {
|
|
|
- reject(err);
|
|
|
- });
|
|
|
- }); */
|
|
|
},
|
|
|
|
|
|
// 上传时间为xx个月内的资料进行反馈 获取内容分类、媒体平台、常用参数接口的标识,再调接口时需要用到
|
|
|
@@ -688,6 +641,15 @@ export default {
|
|
|
console.log(err);
|
|
|
});
|
|
|
},
|
|
|
+ viewHistoryRecord: function () {
|
|
|
+ this.$router.replace({
|
|
|
+ path: "/UploadLink/sonUploadLink",
|
|
|
+ });
|
|
|
+ },
|
|
|
+ isFather: function () {
|
|
|
+ console.log("isfffffff",this.$route.path.length)
|
|
|
+ return this.$route.path.length > 11 ? false: true;
|
|
|
+ },
|
|
|
},
|
|
|
mounted() {
|
|
|
let localUserId = localStorage.getItem("userId");
|
|
|
@@ -947,5 +909,10 @@ export default {
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
}
|
|
|
+.topLeftTitle {
|
|
|
+ height: 50px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ margin-bottom: 6px;
|
|
|
+}
|
|
|
</style>
|
|
|
->>>>>>> bae6c489b4e688f713ae10f965a0bd6e0884dcd4
|