|
|
@@ -1,216 +1,250 @@
|
|
|
-<template>
|
|
|
- <div class="upload_Link">
|
|
|
- <span><b>链接上传</b></span>
|
|
|
- <span><b>针对论坛及其他平台链接上传</b></span>
|
|
|
- <div class="contentHead">
|
|
|
- <span>上传平台</span>
|
|
|
- <select name="" id="">
|
|
|
- <option value="">汽车之家</option>
|
|
|
- <option value="">请选择</option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="tableBox">
|
|
|
- <table class="feedbackTable">
|
|
|
- <thead>
|
|
|
- <tr class="tableHeadStyle1">
|
|
|
- <td>论坛传播情况汇总</td>
|
|
|
- </tr>
|
|
|
- <tr class="tableHeadStyle2">
|
|
|
- <td v-for="(item, index) in tableHeader" :key="index">
|
|
|
- {{ item }}
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody class="bodyStyle">
|
|
|
- <tr
|
|
|
- class="tableHeadStyle2 bodyContent"
|
|
|
- v-for="(obj, index) in tableData"
|
|
|
- :key="index"
|
|
|
- :class="{ table_gray: !discolor && index % 2 === 0 }"
|
|
|
- >
|
|
|
- <td v-if="flag">{{ index + 1 }}</td>
|
|
|
- <td v-for="(item, index) in obj" :key="index" >
|
|
|
- {{ item }}
|
|
|
- </td>
|
|
|
- <td v-if="operation">
|
|
|
- <span
|
|
|
- v-for="(operationObj, index) in operation"
|
|
|
- :key="index"
|
|
|
- @click="operationObj.function"
|
|
|
- class="operationStyle"
|
|
|
- >{{ operationObj.name }}
|
|
|
- </span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-</template>
|
|
|
-
|
|
|
-<script>
|
|
|
-export default {
|
|
|
- props: {
|
|
|
- isManufacturer: {
|
|
|
- type: String,
|
|
|
- default: "distributor",
|
|
|
- },
|
|
|
- },
|
|
|
- components: {},
|
|
|
- data() {
|
|
|
- return {
|
|
|
- // 表格配置
|
|
|
- sum: 240, // 一共有多少条数据
|
|
|
- pageSize: 20, // 每页展示的数据
|
|
|
- discolor: false, // 是否隔行变色
|
|
|
- currentPage: 1,
|
|
|
- /* tableHeader: [
|
|
|
- "NO.",
|
|
|
- "DLR Code",
|
|
|
- "经销商名称",
|
|
|
- "所属区域",
|
|
|
- "发布日期",
|
|
|
- "资料名称",
|
|
|
- "反馈日期",
|
|
|
- "发布平台",
|
|
|
- "发布版块",
|
|
|
- "项目分类",
|
|
|
- ], */
|
|
|
- tableHeader: [
|
|
|
- "NO.",
|
|
|
- "发布日期",
|
|
|
- "资料名称",
|
|
|
- "车系",
|
|
|
- "车型",
|
|
|
- "发布版块",
|
|
|
- "项目分类",
|
|
|
- "内容分类1",
|
|
|
- "内容分类2",
|
|
|
- "标题",
|
|
|
- "链接",
|
|
|
- "操作",
|
|
|
- ],
|
|
|
- tableData: [
|
|
|
- {
|
|
|
- releaseTime: "2021/03/04",
|
|
|
- dataName: "雷克萨斯ES上市",
|
|
|
- carSeries: "雷克萨斯ES",
|
|
|
- carType: "ES雷克萨斯",
|
|
|
- releaseMedia: "S雷克萨斯",
|
|
|
- releasePlate: " d",
|
|
|
- projectClass: "东区",
|
|
|
- draftGenre: "雷克萨斯ES",
|
|
|
- contentClass: "ES雷克萨斯",
|
|
|
- articleTitle: "S雷克萨斯",
|
|
|
- //articleLink: "",
|
|
|
- },
|
|
|
- ],
|
|
|
- flag: true,
|
|
|
- operation: [
|
|
|
- {
|
|
|
- name: "查看",
|
|
|
- function: () => {
|
|
|
- this.showDetail();
|
|
|
- },
|
|
|
- },
|
|
|
- ],
|
|
|
- };
|
|
|
- },
|
|
|
- methods: {
|
|
|
- showDetail: () => {
|
|
|
- alert("展示详情");
|
|
|
- },
|
|
|
- },
|
|
|
-};
|
|
|
-</script>
|
|
|
-
|
|
|
-<style scoped lang="less">
|
|
|
-.contentHead {
|
|
|
- height: 55px;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
-}
|
|
|
-.contentHead span {
|
|
|
- margin-right: 15px;
|
|
|
-}
|
|
|
-.tableBox {
|
|
|
- width: 1030px;
|
|
|
- overflow: auto;
|
|
|
-}
|
|
|
-.tableBox {
|
|
|
- text-align: center;
|
|
|
- .table {
|
|
|
- table-layout: fixed;
|
|
|
- background-color: #fff;
|
|
|
- border-collapse: collapse;
|
|
|
- border: none;
|
|
|
- td {
|
|
|
- border: 1px solid #ccc;
|
|
|
- }
|
|
|
- span {
|
|
|
- &:hover {
|
|
|
- cursor: pointer;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-.table_gray {
|
|
|
- background: #f5f5f5;
|
|
|
-}
|
|
|
-
|
|
|
-.tableBox table td {
|
|
|
- border: 1px solid #ccc;
|
|
|
- text-overflow: ellipsis;
|
|
|
- overflow: hidden;
|
|
|
- white-space: nowrap;
|
|
|
-}
|
|
|
-// 表头样式
|
|
|
-.tableHeadStyle1 {
|
|
|
- background: #848484;
|
|
|
- height: 30px;
|
|
|
- color: #fff;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
-}
|
|
|
-.tableHeadStyle1 td {
|
|
|
- width: 100%;
|
|
|
- padding: 7px 5px;
|
|
|
-}
|
|
|
-.tableHeadStyle2 {
|
|
|
- background: #848484;
|
|
|
- height: 30px;
|
|
|
- color: #fff;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
-}
|
|
|
-.tableHeadStyle2 td {
|
|
|
- width: 60px;
|
|
|
- padding: 7px 5px;
|
|
|
-}
|
|
|
-.tableHeadStyle2 td:nth-child(10) {
|
|
|
- width: 100px;
|
|
|
- padding: 7px 5px;
|
|
|
-}
|
|
|
-.tableHeadStyle2 td:nth-child(11) {
|
|
|
- width: 100px;
|
|
|
- padding: 7px 5px;
|
|
|
-}
|
|
|
-.tableHeadStyle2 td:nth-child(2) {
|
|
|
- width: 100px;
|
|
|
- padding: 7px 5px;
|
|
|
-}
|
|
|
-.tableHeadStyle2 td:nth-child(3) {
|
|
|
- width: 100px;
|
|
|
- padding: 7px 5px;
|
|
|
-}
|
|
|
-.bodyStyle {
|
|
|
- display: block;
|
|
|
- background-color: #fff;
|
|
|
-}
|
|
|
-.bodyContent td {
|
|
|
- background-color: #fff;
|
|
|
-}
|
|
|
-.operationStyle {
|
|
|
- color: #0000ff;
|
|
|
-}
|
|
|
-</style>
|
|
|
+<template>
|
|
|
+ <div class="upload_Link">
|
|
|
+ <span><b>链接上传</b></span>
|
|
|
+ <span><b>针对论坛及其他平台链接上传</b></span>
|
|
|
+ <div class="contentHead">
|
|
|
+ <span>上传平台</span>
|
|
|
+ <select name="" id="">
|
|
|
+ <option value="">汽车之家</option>
|
|
|
+ <option value="">请选择</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="tableBox">
|
|
|
+ <table class="feedbackTable">
|
|
|
+ <thead class="theadStyle">
|
|
|
+ <tr class="tableHeadStyle1">
|
|
|
+ <td>论坛传播情况汇总</td>
|
|
|
+ </tr>
|
|
|
+ <tr class="tableHeadStyle2">
|
|
|
+ <td v-for="(item, index) in tableHeader" :key="index">
|
|
|
+ {{ item }}
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody class="bodyStyle">
|
|
|
+ <tr
|
|
|
+ class="tableHeadStyle2 bodyContent"
|
|
|
+ v-for="(obj, index) in tableData"
|
|
|
+ :key="index"
|
|
|
+ :class="{ table_gray: !discolor && index % 2 === 0 }"
|
|
|
+ >
|
|
|
+ <td v-if="flag">{{ index + 1 }}</td>
|
|
|
+ <td v-for="(item, index) in obj" :key="index">
|
|
|
+ {{ item }}
|
|
|
+ </td>
|
|
|
+ <td class="operationStyle">
|
|
|
+ <span @click="toggleModal">编辑</span>
|
|
|
+ <span>删除</span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <Modal v-show="showModal" v-on:closeme="closeme"></Modal>
|
|
|
+ <div class="fileOperation">
|
|
|
+ <span class="operationStyle">导入模板</span>
|
|
|
+ <button>导入</button>
|
|
|
+ <button>导出</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import Modal from "../../components/Modal";
|
|
|
+export default {
|
|
|
+ props: {
|
|
|
+ isManufacturer: {
|
|
|
+ type: String,
|
|
|
+ default: "distributor",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ components: {
|
|
|
+ Modal,
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ showModal: false,
|
|
|
+ // 表格配置
|
|
|
+ sum: 240, // 一共有多少条数据
|
|
|
+ pageSize: 20, // 每页展示的数据
|
|
|
+ discolor: false, // 是否隔行变色
|
|
|
+ currentPage: 1,
|
|
|
+ /* tableHeader: [
|
|
|
+ "NO.",
|
|
|
+ "DLR Code",
|
|
|
+ "经销商名称",
|
|
|
+ "所属区域",
|
|
|
+ "发布日期",
|
|
|
+ "资料名称",
|
|
|
+ "反馈日期",
|
|
|
+ "发布平台",
|
|
|
+ "发布版块",
|
|
|
+ "项目分类",
|
|
|
+ ], */
|
|
|
+ tableHeader: [
|
|
|
+ "NO.",
|
|
|
+ "发布日期",
|
|
|
+ "资料名称",
|
|
|
+ "车系",
|
|
|
+ "车型",
|
|
|
+ "发布版块",
|
|
|
+ "项目分类",
|
|
|
+ "内容分类1",
|
|
|
+ "内容分类2",
|
|
|
+ "标题",
|
|
|
+ "链接",
|
|
|
+ "操作",
|
|
|
+ ],
|
|
|
+ tableData: [
|
|
|
+ {
|
|
|
+ releaseTime: "2021/03/04",
|
|
|
+ dataName: "雷克萨斯ES上市",
|
|
|
+ carSeries: "雷克萨斯ES",
|
|
|
+ carType: "ES雷克萨斯",
|
|
|
+ releaseMedia: "S雷克萨斯",
|
|
|
+ // releasePlate: " ",
|
|
|
+ projectClass: "东区",
|
|
|
+ draftGenre: "雷克萨斯ES",
|
|
|
+ contentClass: "ES雷克萨斯",
|
|
|
+ articleTitle: "S雷克萨斯",
|
|
|
+ articleLink: "d",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ flag: true,
|
|
|
+ operation: [
|
|
|
+ {
|
|
|
+ name: "编辑",
|
|
|
+ function: () => {
|
|
|
+ this.EditForm();
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "删除",
|
|
|
+ function: () => {
|
|
|
+ this.showDetail();
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ EditForm: () => {
|
|
|
+ alert("编辑");
|
|
|
+ },
|
|
|
+ showDetail: () => {
|
|
|
+ alert("展示详情");
|
|
|
+ },
|
|
|
+ toggleModal: function () {
|
|
|
+ this.showModal = !this.showModal;
|
|
|
+ },
|
|
|
+ closeme: function () {
|
|
|
+ this.showModal = !this.showModal;
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped lang="less">
|
|
|
+.contentHead {
|
|
|
+ height: 55px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+.contentHead span {
|
|
|
+ margin-right: 15px;
|
|
|
+}
|
|
|
+.tableBox {
|
|
|
+ width: 1030px;
|
|
|
+ overflow: auto;
|
|
|
+}
|
|
|
+.tableBox {
|
|
|
+ text-align: center;
|
|
|
+ .table {
|
|
|
+ table-layout: fixed;
|
|
|
+ background-color: #fff;
|
|
|
+ border-collapse: collapse;
|
|
|
+ border: none;
|
|
|
+ td {
|
|
|
+ border: 1px solid #ccc;
|
|
|
+ }
|
|
|
+ span {
|
|
|
+ &:hover {
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+.table_gray {
|
|
|
+ background: #f5f5f5;
|
|
|
+}
|
|
|
+
|
|
|
+.tableBox table td {
|
|
|
+ border: 1px solid #ccc;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ overflow: hidden;
|
|
|
+ white-space: nowrap;
|
|
|
+}
|
|
|
+// 表头样式
|
|
|
+.theadStyle tr td {
|
|
|
+ color: white;
|
|
|
+}
|
|
|
+.tableHeadStyle1 {
|
|
|
+ background: #848484;
|
|
|
+ height: 30px;
|
|
|
+ color: #fff;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+.tableHeadStyle1 td {
|
|
|
+ width: 100%;
|
|
|
+ padding: 7px 5px;
|
|
|
+}
|
|
|
+.tableHeadStyle2 {
|
|
|
+ background: #848484;
|
|
|
+ height: 30px;
|
|
|
+ color: #fff;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+.tableHeadStyle2 td {
|
|
|
+ width: 60px;
|
|
|
+ padding: 7px 5px;
|
|
|
+}
|
|
|
+.tableHeadStyle2 td:nth-child(10) {
|
|
|
+ width: 100px;
|
|
|
+ padding: 7px 5px;
|
|
|
+}
|
|
|
+.tableHeadStyle2 td:nth-child(11) {
|
|
|
+ width: 100px;
|
|
|
+ padding: 7px 5px;
|
|
|
+}
|
|
|
+.tableHeadStyle2 td:nth-child(2) {
|
|
|
+ width: 100px;
|
|
|
+ padding: 7px 5px;
|
|
|
+}
|
|
|
+.tableHeadStyle2 td:nth-child(3) {
|
|
|
+ width: 100px;
|
|
|
+ padding: 7px 5px;
|
|
|
+}
|
|
|
+.bodyStyle {
|
|
|
+ display: block;
|
|
|
+ background-color: #fff;
|
|
|
+}
|
|
|
+.bodyContent td {
|
|
|
+ background-color: #fff;
|
|
|
+}
|
|
|
+.operationStyle {
|
|
|
+ color: #0000ff;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-around;
|
|
|
+}
|
|
|
+.operationStyle span {
|
|
|
+ color: #0000ff;
|
|
|
+}
|
|
|
+.fileOperation{
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-start;
|
|
|
+ margin: 10px;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+</style>
|