From cf99d1de09cb19ac92f611b1c169959bf44d4b65 Mon Sep 17 00:00:00 2001 From: "lily.zhang" Date: Fri, 29 Oct 2021 18:08:00 +0800 Subject: [PATCH] cxw-010203 --- public/index.html | 4 +- src/styles/antd.less | 4 +- src/views/Index/index.vue | 61 ++++++++++++++----------- src/views/Index/realTimeEvent/index.vue | 4 +- 4 files changed, 41 insertions(+), 32 deletions(-) diff --git a/public/index.html b/public/index.html index d09e2e5..9a485d6 100644 --- a/public/index.html +++ b/public/index.html @@ -1,7 +1,7 @@ -
- - - +
+ + + + +
@@ -83,7 +85,7 @@ export default { key: "title", dataIndex: "title", scopedSlots: { customRender: "titlex" }, - ellipsis: true, + ellipsis: true, }, { title: "发布时间", @@ -115,26 +117,31 @@ export default { this.form.sQuDao = key; this.getTableList().then(() => { this.modalObj.visible = true; - }) - + this.$nextTick(() => { + console.log(this.$refs["vs"]) + this.$refs["vs"].scrollTo({y: 20},300,"easeInQuad") + }) + }); }, getTableList() { return new Promise((resolve, reject) => { let obj = Object.assign({}, this.getCommTime, this.form); - this.tableLoading= true; - getHomeList0528(obj).then((res) => { - let data = res.data || []; - let arr = []; - data.forEach((ele) => { - let _source = ele._source; - arr.push(_source); + this.tableLoading = true; + getHomeList0528(obj) + .then((res) => { + let data = res.data || []; + let arr = []; + data.forEach((ele) => { + let _source = ele._source; + arr.push(_source); + }); + this.tbData = arr; + this.tableLoading = false; + resolve(arr); + }) + .catch(() => { + reject(false); }); - this.tbData = arr; - this.tableLoading = false; - resolve(arr) - }).catch(() => { - reject(false) - }); }); }, }, @@ -159,8 +166,8 @@ export default { } } } -/deep/ .ant-table-body { - max-height: 670px; - overflow: auto; -} +// /deep/ .ant-table-body { +// max-height: 670px; +// overflow: auto; +// } \ No newline at end of file diff --git a/src/views/Index/realTimeEvent/index.vue b/src/views/Index/realTimeEvent/index.vue index 0a14188..676801d 100644 --- a/src/views/Index/realTimeEvent/index.vue +++ b/src/views/Index/realTimeEvent/index.vue @@ -1,7 +1,7 @@