张雄 3 years ago
parent 393348f66b
commit 9c5ab91a08

@ -93,6 +93,7 @@ export default {
}, },
created() { created() {
this.getTime(); this.getTime();
this.sTimeType = this.getCommTime.sTimeType || 34; //
}, },
mounted() { mounted() {
this.intDt = self.setInterval(() => { this.intDt = self.setInterval(() => {

@ -46,7 +46,7 @@
<span class="s2">{{ week }}</span> <span class="s2">{{ week }}</span>
<img class="m1" src="../../assets/images/Index/ic_ry.png" /> <img class="m1" src="../../assets/images/Index/ic_ry.png" />
<span class="s3">{{getUser.UserName}}</span> <span class="s3">{{getUser.UserName}}</span>
<a-dropdown placement="bottomRight"> <a-dropdown placement="bottomRight" v-if="this.getToken">
<a class="ant-dropdown-link"> <a class="ant-dropdown-link">
<a-icon type="down" /> <a-icon type="down" />
</a> </a>
@ -59,6 +59,7 @@
</a-menu-item> </a-menu-item>
</a-menu> </a-menu>
</a-dropdown> </a-dropdown>
<a @click="goLogin" class="s4" v-if="!this.getToken"></a>
</div> </div>
</div> </div>
</template> </template>
@ -257,6 +258,12 @@ export default {
color: #ffffff; color: #ffffff;
margin-left: 8px; margin-left: 8px;
} }
.s4 {
display: inline-block;
font-size: 16px;
color: #ffffff;
margin-right: 8px;
}
.m1 { .m1 {
display: inline-block; display: inline-block;
margin-left: 60px; margin-left: 60px;

@ -42,7 +42,7 @@
<span class="s2">{{ week }}</span> <span class="s2">{{ week }}</span>
<img class="m1" src="../../assets/images/Index/ic_ry.png"/> <img class="m1" src="../../assets/images/Index/ic_ry.png"/>
<span class="s3">{{getUser.UserName}}</span> <span class="s3">{{getUser.UserName}}</span>
<a-dropdown placement="bottomRight"> <a-dropdown placement="bottomRight" v-if="this.getToken">
<a class="ant-dropdown-link"> <a class="ant-dropdown-link">
<a-icon type="down" /> <a-icon type="down" />
</a> </a>
@ -55,6 +55,7 @@
</a-menu-item> </a-menu-item>
</a-menu> </a-menu>
</a-dropdown> </a-dropdown>
<a @click="goLogin" class="s4" v-if="!this.getToken"></a>
</div> </div>
</div> </div>
</template> </template>
@ -228,6 +229,12 @@ export default {
color: #ffffff; color: #ffffff;
margin-left: 8px; margin-left: 8px;
} }
.s4 {
display: inline-block;
font-size: 16px;
color: #ffffff;
margin-right: 8px;
}
.m1 { .m1 {
display: inline-block; display: inline-block;
margin-left: 60px; margin-left: 60px;

@ -39,7 +39,7 @@
</template> </template>
<script> <script>
import { getUserBrand, getUserSeriesName } from "@/api/comm"; import { getUserBrand,getUserSeriesName} from "@/api/comm";
export default { export default {
name: "iSwitchBrand", name: "iSwitchBrand",
props: { props: {
@ -155,6 +155,7 @@ export default {
let data = res.data || []; let data = res.data || [];
this.models = data; this.models = data;
this.chooseModel = this.models[0]; this.chooseModel = this.models[0];
this.setModel(this.chooseModel);
}); });
}, },
// //

@ -78,18 +78,19 @@ export default {
pagination: { pagination: {
current: 1, current: 1,
total: 0, total: 0,
pageSize: 20, pageSize: 6,
"show-total": (total) => `${total}`, "show-total": (total) => `${total}`,
}, },
columns: [ columns: [
{ {
title: "事件类型", title: "事件类型",
width: 120,
dataIndex: "events_type", dataIndex: "events_type",
key: "events_type", key: "events_type",
}, },
{ {
title: "事件标题", title: "事件标题",
width: 230, width: 630,
dataIndex: "events_title", dataIndex: "events_title",
ellipsis: true, ellipsis: true,
key: "events_title", key: "events_title",
@ -107,16 +108,18 @@ export default {
{ {
title: "开始时间", title: "开始时间",
dataIndex: "minSourcetime", dataIndex: "minSourcetime",
width: 160, width: 240,
key: "minSourcetime", key: "minSourcetime",
}, },
{ {
title: "文章篇数(篇)", title: "文章篇数(篇)",
width: 120,
dataIndex: "events_count", dataIndex: "events_count",
key: "events_count", key: "events_count",
}, },
{ {
title: "传播周期(天)", title: "传播周期(天)",
width: 120,
dataIndex: "days", dataIndex: "days",
key: "days", key: "days",
}, },

@ -84,10 +84,7 @@ export default {
}) })
this.chooseBrand = row; this.chooseBrand = row;
}); });
this.getUserSeriesName(this.brandname); //this.getUserSeriesName(this.brandname);
//
this.chooseBrand = this.brandname;
this.chooseModel = this.modelName;
}, },
data() { data() {
return { return {

@ -1,3 +1,8 @@
.dv-scroll-board .header{
height: 3rem;
align-items: center;
}
.dv-scroll-board .header .header-item { .dv-scroll-board .header .header-item {
color: #3373CC; color: #3373CC;
font-weight: bold; font-weight: bold;

@ -132,8 +132,9 @@ export default {
.wtc-inner { .wtc-inner {
width: 100%; width: 100%;
height: calc(100% - 48px); height: calc(100% - 48px);
margin-left: -24px;
display: flex; display: flex;
justify-content: flex-start; justify-content: center;
align-items: center; align-items: center;
} }
} }

@ -69,7 +69,7 @@ export default {
headerBGC: "rgba(16,33,59)", headerBGC: "rgba(16,33,59)",
oddRowBGC: "#173b6d", oddRowBGC: "#173b6d",
evenRowBGC: "rgba(69, 149, 244, 0)", evenRowBGC: "rgba(69, 149, 244, 0)",
columnWidth: [440, 120, 120], columnWidth: [550,80,100,80],
rowNum: 6, rowNum: 6,
header: ["事件列表", "影响力", "时间", "关联车型"], header: ["事件列表", "影响力", "时间", "关联车型"],
data: arr, data: arr,

@ -13,7 +13,7 @@
<div class="mec-inner"> <div class="mec-inner">
<div class="dd1"> <div class="dd1">
<v-label-div title="媒体解读" :showLine="false" :eStyle="{'border-style': 'none'}"></v-label-div> <v-label-div title="媒体解读" :showLine="false" :eStyle="{'border-style': 'none'}"></v-label-div>
<dv-scroll-board :config="config" :style="{ width: '100%', height: '23rem' }" /> <dv-scroll-board :config="config" :style="{ width: '100%', height: '24.7rem' }" />
</div> </div>
<div class="dd1"> <div class="dd1">
<v-label-div title="词云" :showLine="false" :eStyle="{'border-style': 'none'}"> <v-label-div title="词云" :showLine="false" :eStyle="{'border-style': 'none'}">

@ -36,7 +36,7 @@ export default {
token: "", token: "",
ssBrand: "", ssBrand: "",
iPageIndex: 1, iPageIndex: 1,
iPageSize: 20, iPageSize: 6,
}, },
total: 0, total: 0,
tbData: [], tbData: [],
@ -45,7 +45,7 @@ export default {
title: "事件列表", title: "事件列表",
dataIndex: "events_title", dataIndex: "events_title",
key: "events_title", key: "events_title",
width: 200, width: 260,
scopedSlots: { customRender: "events_title" }, scopedSlots: { customRender: "events_title" },
ellipsis: true, ellipsis: true,
}, },
@ -58,13 +58,14 @@ export default {
title: "时间", title: "时间",
dataIndex: "maxSourcetime", dataIndex: "maxSourcetime",
key: "maxSourcetime", key: "maxSourcetime",
width: 160, width: 120,
}, },
{ {
title: "关联品牌", title: "关联品牌",
dataIndex: "events_brand", dataIndex: "events_brand",
scopedSlots: { customRender: "events_brand" }, scopedSlots: { customRender: "events_brand" },
key: "events_brand", key: "events_brand",
width: 90,
}, },
], ],
}; };
@ -133,7 +134,7 @@ export default {
} }
} }
/deep/ .ant-table-body { /deep/ .ant-table-body {
height: 432px; height: 480px;
overflow: auto; overflow: auto;
} }
</style> </style>

@ -61,7 +61,7 @@
<a-input v-model="execlForm.sFileName" disabled placeholder="请输入文件名称"></a-input> <a-input v-model="execlForm.sFileName" disabled placeholder="请输入文件名称"></a-input>
</a-form-item> </a-form-item>
<a-form-item label="导出格式"> <a-form-item label="导出格式">
<span style="color: #63aecc; font-size: 14px">xlsz</span> <span style="color: #63aecc; font-size: 14px">xlsx</span>
</a-form-item> </a-form-item>
<a-form-item label="导出字段" :wrapper-col="{ span: 21 }"> <a-form-item label="导出字段" :wrapper-col="{ span: 21 }">
<a-checkbox-group v-model="checkedIds" :options="plainOptions4" @change="fileTypeChange" /> <a-checkbox-group v-model="checkedIds" :options="plainOptions4" @change="fileTypeChange" />

@ -118,7 +118,11 @@ export default {
// 导出弹框 // 导出弹框
handlerExport() { handlerExport() {
this.getToExcelField(this.form.sType, this.form.token).then(() => { this.getToExcelField(this.form.sType, this.form.token).then(() => {
this.execlForm.sFileName = this.form.sBrand + this.form.sSeriesName + '事件洞察' + this.getDatetimeSs(); if(!this.form.sBrand && !this.form.sSeriesName) {
this.execlForm.sFileName = "事件数据" + this.getDatetimeSs();
} else {
this.execlForm.sFileName = this.form.sBrand + this.form.sSeriesName + this.getDatetimeSs();
}
this.execlForm.sCheckedIds = this.tableAll ? '' : this.secIds.toString(); this.execlForm.sCheckedIds = this.tableAll ? '' : this.secIds.toString();
this.execlForm.iNum = this.tableAll ? this.totalNum : this.secIds.length; this.execlForm.iNum = this.tableAll ? this.totalNum : this.secIds.length;
this.modalObj.visible = true; this.modalObj.visible = true;

@ -125,8 +125,9 @@ export default {
.bd-inner { .bd-inner {
width: 100%; width: 100%;
height: calc(100% - 48px); height: calc(100% - 48px);
margin-left: -24px;
display: flex; display: flex;
justify-content: flex-start; justify-content: center;
align-items: center; align-items: center;
} }
} }

@ -111,8 +111,9 @@ export default {
.wtc-inner { .wtc-inner {
width: 100%; width: 100%;
height: calc(100% - 48px); height: calc(100% - 48px);
margin-left: -24px;
display: flex; display: flex;
justify-content: flex-start; justify-content: center;
align-items: center; align-items: center;
} }
} }

@ -37,7 +37,7 @@ export default {
token: "", token: "",
ssBrand: "", ssBrand: "",
iPageIndex: 1, iPageIndex: 1,
iPageSize: 20, iPageSize: 6,
sSeriesName: "", sSeriesName: "",
}, },
total: 0, total: 0,
@ -47,7 +47,7 @@ export default {
title: "事件列表", title: "事件列表",
dataIndex: "events_title", dataIndex: "events_title",
key: "events_title", key: "events_title",
width: 200, width: 260,
scopedSlots: { customRender: "events_title" }, scopedSlots: { customRender: "events_title" },
ellipsis: true, ellipsis: true,
}, },
@ -60,13 +60,14 @@ export default {
title: "时间", title: "时间",
dataIndex: "maxSourcetime", dataIndex: "maxSourcetime",
key: "maxSourcetime", key: "maxSourcetime",
width: 160, width: 120,
}, },
{ {
title: "关联品牌", title: "关联品牌",
dataIndex: "events_brand", dataIndex: "events_brand",
scopedSlots: { customRender: "events_brand" }, scopedSlots: { customRender: "events_brand" },
key: "events_brand", key: "events_brand",
width: 90,
}, },
], ],
}; };

Loading…
Cancel
Save