|
|
@@ -1,20 +1,320 @@
|
|
|
<template>
|
|
|
- <div class="">
|
|
|
- 厂商链接上传
|
|
|
+ <div class="upload_Link_Distributor">
|
|
|
+ <span><b>厂商链接上传</b></span>
|
|
|
+ <div class="Head">
|
|
|
+ <div class="search HeadLeft">
|
|
|
+ <div class="input">
|
|
|
+ <img src="../../img/search.png" />
|
|
|
+ <input
|
|
|
+ type="text"
|
|
|
+ @focus="focusInput"
|
|
|
+ v-model="inputValue"
|
|
|
+ placeholder="DLR Code / 经销商"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="HeadCenter">
|
|
|
+ <span>所属区域</span>
|
|
|
+ <select name="" id="">
|
|
|
+ <option value="">请选择</option>
|
|
|
+ <option value="">汽车之家</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="HeadRight">
|
|
|
+ <span>选择时间段</span>
|
|
|
+ <input type="datetimeNew" name="beginTime" placeholder="开始时间" />
|
|
|
+ <span>至</span>
|
|
|
+ <input type="datetimeNew" name="endTime" placeholder="结束时间" />
|
|
|
+ </div>
|
|
|
+ <div class="current_button" @click="search">确定</div>
|
|
|
+ </div>
|
|
|
+ <div class="tableTitle"><b>针对论坛及其他平台链接上传</b></div>
|
|
|
+ <div class="tableBox">
|
|
|
+ <table class="distributorLinkTable">
|
|
|
+ <thead class="theadStyle">
|
|
|
+ <tr class="tableHeadStyle1">
|
|
|
+ <td>基础信息</td>
|
|
|
+ <td>论坛传播情况汇总</td>
|
|
|
+ </tr>
|
|
|
+ <tr class="tableHeadStyle2">
|
|
|
+ <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: !discolor && index % 2 === 0 }"
|
|
|
+ >
|
|
|
+ <td v-if="flag">{{ index + 1 }}</td>
|
|
|
+ <td v-for="(item, i) in obj" :key="i">{{item}}</td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
export default {
|
|
|
+ props: {
|
|
|
+ isManufacturer: {
|
|
|
+ type: String,
|
|
|
+ default: "distributor",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ components: {},
|
|
|
data() {
|
|
|
return {
|
|
|
- }
|
|
|
+ inputValue: '请输入要搜索的资料名',
|
|
|
+ // 表格配置
|
|
|
+ sum: 240, // 一共有多少条数据
|
|
|
+ pageSize: 20, // 每页展示的数据
|
|
|
+ discolor: false, // false是隔行变色
|
|
|
+ currentPage: 1,
|
|
|
+ tableHeader: [
|
|
|
+ "NO.",
|
|
|
+ "DLR Code",
|
|
|
+ "经销商名称",
|
|
|
+ "所属区域",
|
|
|
+ "发布日期",
|
|
|
+ "资料名称",
|
|
|
+ "反馈日期",
|
|
|
+ "车系",
|
|
|
+ "车型",
|
|
|
+ "发布平台",
|
|
|
+ "发布版块",
|
|
|
+ "项目分类",
|
|
|
+ "内容分类1",
|
|
|
+ "内容分类2",
|
|
|
+ "标题",
|
|
|
+ ],
|
|
|
+ tableData: [
|
|
|
+ {
|
|
|
+ code: "L2021",
|
|
|
+ name: "雷克萨斯ES上市",
|
|
|
+ area: "雷克萨斯ES",
|
|
|
+ date: "2021/03/04",
|
|
|
+ dataName: "雷克萨斯ES",
|
|
|
+ feedbackTime: "2021/03/04",
|
|
|
+ carSeries: "雷克萨斯ES",
|
|
|
+ carType: "ES雷克萨斯",
|
|
|
+ releaseMedia: "S雷克萨斯",
|
|
|
+ releasePlate: "东区",
|
|
|
+ projectClass: "东区",
|
|
|
+ contentClass1: "ES雷克萨斯",
|
|
|
+ contentClass2: "ES雷克萨斯",
|
|
|
+ articleTitle: "S雷克萨斯",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ code: "L2021",
|
|
|
+ name: "雷克萨斯ES上市",
|
|
|
+ area: "雷克萨斯ES",
|
|
|
+ date: "2021/03/04",
|
|
|
+ dataName: "雷克萨斯ES",
|
|
|
+ feedbackTime: "2021/03/04",
|
|
|
+ carSeries: "雷克萨斯ES",
|
|
|
+ carType: "ES雷克萨斯",
|
|
|
+ releaseMedia: "S雷克萨斯",
|
|
|
+ releasePlate: "东区",
|
|
|
+ projectClass: "东区",
|
|
|
+ contentClass1: "ES雷克萨斯",
|
|
|
+ contentClass2: "ES雷克萨斯",
|
|
|
+ articleTitle: "S雷克萨斯",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ code: "L2021",
|
|
|
+ name: "雷克萨斯ES上市",
|
|
|
+ area: "雷克萨斯ES",
|
|
|
+ date: "2021/03/04",
|
|
|
+ dataName: "雷克萨斯ES",
|
|
|
+ feedbackTime: "2021/03/04",
|
|
|
+ carSeries: "雷克萨斯ES",
|
|
|
+ carType: "ES雷克萨斯",
|
|
|
+ releaseMedia: "S雷克萨斯",
|
|
|
+ releasePlate: "东区",
|
|
|
+ projectClass: "东区",
|
|
|
+ contentClass1: "ES雷克萨斯",
|
|
|
+ contentClass2: "ES雷克萨斯",
|
|
|
+ articleTitle: "S雷克萨斯",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ flag: true,
|
|
|
+ };
|
|
|
},
|
|
|
- mounted() {
|
|
|
- }
|
|
|
-}
|
|
|
+ methods: {
|
|
|
+ focusInput: function () {
|
|
|
+ this.inputValue = "";
|
|
|
+ },
|
|
|
+ search: function () {
|
|
|
+ console.log(this.inputValue);
|
|
|
+ this.inputValue = "请输入要搜索的资料名";
|
|
|
+ },
|
|
|
+ getIndex: function (index) {
|
|
|
+ console.log("inGetIndex", index);
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="less">
|
|
|
+.Head {
|
|
|
+ height: 55px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+.Head 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-color: #00549f;
|
|
|
+}
|
|
|
+
|
|
|
+.tableBox table td {
|
|
|
+ border: 1px solid #ccc;
|
|
|
+ border-right: 0px;
|
|
|
+ border-bottom: 0px;
|
|
|
+ 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;
|
|
|
+}
|
|
|
+.tableHeadStyle1 td:nth-child(1) {
|
|
|
+ border-right: 0px;
|
|
|
+ border-bottom: 0px;
|
|
|
+}
|
|
|
+.tableHeadStyle1 td:nth-child(2) {
|
|
|
+ border-right: 0px;
|
|
|
+ border-bottom: 0px;
|
|
|
+}
|
|
|
+.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(12) {
|
|
|
+ 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;
|
|
|
+ height: 20px;
|
|
|
+}
|
|
|
|
|
|
+/* 搜索栏 */
|
|
|
+.search {
|
|
|
+ padding: 10px 15px 10px 10px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ .input {
|
|
|
+ background-color: #fff;
|
|
|
+ padding: 2px;
|
|
|
+ display: flex;
|
|
|
+ img {
|
|
|
+ width: 16px;
|
|
|
+ height: 16px;
|
|
|
+ border: 1px solid #ccc;
|
|
|
+ border-radius: 4px;
|
|
|
+ }
|
|
|
+ input {
|
|
|
+ background-color: #fff;
|
|
|
+ border: 0px solid #ccc;
|
|
|
+ padding-left: 4px;
|
|
|
+ color: #555;
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+.current_button {
|
|
|
+ width: 58px;
|
|
|
+ height: 24px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ border-radius: 4px;
|
|
|
+}
|
|
|
+.HeadCenter span {
|
|
|
+ padding: 10px;
|
|
|
+}
|
|
|
+.HeadCenter select {
|
|
|
+ width: 80px;
|
|
|
+ margin-right: 15px;
|
|
|
+}
|
|
|
+.HeadRight span {
|
|
|
+ padding: 10px;
|
|
|
+}
|
|
|
+.HeadRight input {
|
|
|
+ margin-right: 15px;
|
|
|
+ padding-left: 4px;
|
|
|
+}
|
|
|
+.tableTitle {
|
|
|
+ margin-bottom: 4px;
|
|
|
+}
|
|
|
+.distributorLinkTable{
|
|
|
+ height: 800px;
|
|
|
+}
|
|
|
</style>
|