prod
lily.zhang 3 years ago
parent cc3d7729c9
commit cf99d1de09

@ -1,7 +1,7 @@
<!--
* @Author: your name
* @Date: 2021-10-08 08:41:57
* @LastEditTime: 2021-10-29 14:48:11
* @LastEditTime: 2021-10-29 18:06:01
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/public/index.html
@ -13,7 +13,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>sws_32.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
<title>硕为思汽车智能洞察系统</title>
</head>
<body>
<noscript>

@ -51,9 +51,11 @@
color: #fff !important;
}
.ant-table-thead > tr > th {
background: #14325d !important;
background: #0c203b !important;
color: #3373CC !important;
border-style: none !important;
position:sticky !important;
top: 0 !important;
}
.evenRow{
background: #010e1f;

@ -1,7 +1,7 @@
<!--
* @Author: xw
* @Date: 2021-10-08 09:17:42
* @LastEditTime: 2021-10-28 19:03:45
* @LastEditTime: 2021-10-29 18:00:24
* @LastEditors: Please set LastEditors
* @Description: 行业洞察
* @FilePath: /data-show/src/views/Index/index.vue
@ -31,12 +31,14 @@
</div>
<!--对话框-->
<v-modal :eleStyle="{ width: '86rem', height: '50rem' }" :visible.sync="modalObj.visible" :title="modalObj.title">
<div slot="body" :style="{padding: '16px'}">
<v-table :columns="columns" :data="tbData" :loading="tableLoading" :pagination="false" row-key="id">
<template slot="titlex" slot-scope="text, record">
<a :href="record.url" style="color: #fff" target="_blank">{{ text }}</a>
</template>
</v-table>
<div slot="body" :style="{padding: '1rem', height: '47rem'}">
<vue-scroll ref="vs">
<v-table :columns="columns" :data="tbData" :loading="tableLoading" :pagination="false" row-key="id">
<template slot="titlex" slot-scope="text, record">
<a :href="record.url" style="color: #fff" target="_blank">{{ text }}</a>
</template>
</v-table>
</vue-scroll>
</div>
</v-modal>
</div>
@ -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;
// }
</style>

@ -1,7 +1,7 @@
<!--
* @Author: xw
* @Date: 2021-10-08 15:56:35
* @LastEditTime: 2021-10-28 14:15:00
* @LastEditTime: 2021-10-29 17:59:37
* @LastEditors: Please set LastEditors
* @Description: 实时事件
* @FilePath: /data-show/src/views/Index/realTimeEvent/index.vue
@ -44,7 +44,7 @@ export default {
arr.push(a);
});
this.config = {
headerBGC: "#1b4062",
headerBGC: "#0c203b",
oddRowBGC: "#173b6d",
evenRowBGC: "rgba(69, 149, 244, 0)",
columnWidth: [230],

Loading…
Cancel
Save