|
|
@@ -33,7 +33,7 @@
|
|
|
<table class="distributorLinkTable">
|
|
|
<thead class="theadStyle">
|
|
|
<tr class="tableHeadStyle1">
|
|
|
- <td>基础信息</td>
|
|
|
+ <td style="width: 1069px">基础信息</td>
|
|
|
<td>论坛传播情况汇总</td>
|
|
|
</tr>
|
|
|
<tr class="tableHeadStyle2">
|
|
|
@@ -50,22 +50,25 @@
|
|
|
: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>
|
|
|
+ <td v-for="(item, i) in obj" :key="i">{{ item }}</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
- <TablePage
|
|
|
- :currentPage='currentPage'
|
|
|
- :totalPage='totalPage'
|
|
|
- @change_page='changePage'
|
|
|
- @jump_page='jumpPage'
|
|
|
- ></TablePage>
|
|
|
+ <div class="pageBottom">
|
|
|
+ <button>导出</button>
|
|
|
+ <TablePage
|
|
|
+ :currentPage="currentPage"
|
|
|
+ :totalPage="totalPage"
|
|
|
+ @change_page="changePage"
|
|
|
+ @jump_page="jumpPage"
|
|
|
+ ></TablePage>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import TablePage from '../../components/TablePage';
|
|
|
+import TablePage from "../../components/TablePage";
|
|
|
export default {
|
|
|
props: {
|
|
|
isManufacturer: {
|
|
|
@@ -74,11 +77,11 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
components: {
|
|
|
- TablePage
|
|
|
+ TablePage,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- inputValue: '请输入要搜索的资料名',
|
|
|
+ inputValue: "请输入要搜索的资料名",
|
|
|
// 表格配置
|
|
|
sum: 240, // 一共有多少条数据
|
|
|
pageSize: 20, // 每页展示的数据
|
|
|
@@ -154,10 +157,10 @@ export default {
|
|
|
flag: true,
|
|
|
};
|
|
|
},
|
|
|
- computed:{
|
|
|
+ computed: {
|
|
|
// 表格总页数
|
|
|
totalPage() {
|
|
|
- return Math.ceil(this.sum/this.pageSize);
|
|
|
+ return Math.ceil(this.sum / this.pageSize);
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -172,8 +175,8 @@ export default {
|
|
|
console.log("inGetIndex", index);
|
|
|
},
|
|
|
// 点击上一页,下一页,首页,尾页
|
|
|
- jumpPage: function(item) {
|
|
|
- switch(item) {
|
|
|
+ jumpPage: function (item) {
|
|
|
+ switch (item) {
|
|
|
case 1:
|
|
|
this.currentPage = 1;
|
|
|
break;
|
|
|
@@ -189,7 +192,7 @@ export default {
|
|
|
}
|
|
|
console.log(this.currentPage);
|
|
|
},
|
|
|
- changePage: function(page) {
|
|
|
+ changePage: function (page) {
|
|
|
this.currentPage = page;
|
|
|
console.log(page);
|
|
|
},
|
|
|
@@ -209,32 +212,21 @@ export default {
|
|
|
.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;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+}
|
|
|
+.tableBox table {
|
|
|
+ border-collapse: collapse;
|
|
|
+ border: none;
|
|
|
}
|
|
|
.table_gray {
|
|
|
background-color: #00549f;
|
|
|
}
|
|
|
-
|
|
|
-.tableBox table td {
|
|
|
+.tableBox td {
|
|
|
border: 1px solid #ccc;
|
|
|
- border-right: 0px;
|
|
|
border-bottom: 0px;
|
|
|
+ border-right: 0px;
|
|
|
+}
|
|
|
+.tableBox table td {
|
|
|
text-overflow: ellipsis;
|
|
|
overflow: hidden;
|
|
|
white-space: nowrap;
|
|
|
@@ -242,67 +234,62 @@ export default {
|
|
|
// 表头样式
|
|
|
.theadStyle tr td {
|
|
|
color: white;
|
|
|
+ background-color: #8d9092;
|
|
|
}
|
|
|
.tableHeadStyle1 {
|
|
|
background: #848484;
|
|
|
- height: 30px;
|
|
|
color: #fff;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
}
|
|
|
.tableHeadStyle1 td {
|
|
|
width: 100%;
|
|
|
- padding: 7px 5px;
|
|
|
}
|
|
|
-.tableHeadStyle1 td:nth-child(1) {
|
|
|
+/* .tableHeadStyle1 td:nth-child(1) {
|
|
|
border-right: 0px;
|
|
|
border-bottom: 0px;
|
|
|
-}
|
|
|
-.tableHeadStyle1 td:nth-child(2) {
|
|
|
+} */
|
|
|
+/* .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;
|
|
|
}
|
|
|
+/* .bodyStyle tr:nth-child(1) {
|
|
|
+ border-top: 0px;
|
|
|
+} */
|
|
|
.bodyContent td {
|
|
|
background-color: #fff;
|
|
|
height: 20px;
|
|
|
}
|
|
|
.bodyContent td:last-child {
|
|
|
- color: #027DB4;
|
|
|
+ color: #027db4;
|
|
|
}
|
|
|
|
|
|
/* 搜索栏 */
|
|
|
@@ -354,7 +341,22 @@ export default {
|
|
|
.tableTitle {
|
|
|
margin-bottom: 4px;
|
|
|
}
|
|
|
-.distributorLinkTable{
|
|
|
+.distributorLinkTable {
|
|
|
height: 600px;
|
|
|
}
|
|
|
+.distributorLinkTable td {
|
|
|
+ height: 36px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ padding: 0px 10px;
|
|
|
+}
|
|
|
+.pageBottom{
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+}
|
|
|
+.pageBottom button{
|
|
|
+ border-radius: 4px;
|
|
|
+ width: 80px;
|
|
|
+}
|
|
|
</style>
|