prod
lily.zhang 3 years ago
parent 797198a57d
commit 5f4184f072

@ -30,7 +30,7 @@
</a-select-option> </a-select-option>
</a-select> </a-select>
<a-range-picker show-time v-model="selTime" :disabled-date="disabledDate" style="margin-left: 0.8rem" @calendarChange="calendarPriceRangeChange" :size="$vuiSize" valueFormat="YYYY-MM-DD HH:mm:ss" v-if="form.sTimeType == selVal" @change="handlerChangeTime"> <a-range-picker show-time v-model="selTime" :disabled-date="disabledDate" style="margin-left: 0.8rem" @calendarChange="calendarPriceRangeChange" :size="$vuiSize" valueFormat="YYYY-MM-DD HH:mm:ss" v-if="form.sTimeType == selVal && timeShow" @change="handlerChangeTime">
<a-icon slot="suffixIcon" type="calendar" /> <a-icon slot="suffixIcon" type="calendar" />
</a-range-picker> </a-range-picker>

@ -1,7 +1,7 @@
<!-- <!--
* @Author: xw * @Author: xw
* @Date: 2021-10-12 10:50:44 * @Date: 2021-10-12 10:50:44
* @LastEditTime: 2021-11-01 09:58:55 * @LastEditTime: 2021-11-17 15:56:14
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 热门事件列表 * @Description: 热门事件列表
* @FilePath: /data-show/src/views/BrandInsight/popularEventsList/index.vue * @FilePath: /data-show/src/views/BrandInsight/popularEventsList/index.vue
@ -11,7 +11,7 @@
<div class="pe-ouuter" v-loading="load"> <div class="pe-ouuter" v-loading="load">
<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>
<div class="pe-inner"> <div class="pe-inner">
<dv-scroll-board :config="config" :style="{ width: '100%', height: '20rem' }" /> <dv-scroll-board :config="config" :style="{ width: '100%', height: '20rem' }" @click="handlerItem"/>
</div> </div>
</div> </div>
</template> </template>
@ -31,6 +31,7 @@ export default {
iPageSize: 100, iPageSize: 100,
}, },
config: {}, config: {},
darr: []
}; };
}, },
created() { created() {
@ -45,20 +46,30 @@ export default {
getHotEventsList0528(obj).then((res) => { getHotEventsList0528(obj).then((res) => {
let data = res.data || []; let data = res.data || [];
let arr = []; let arr = [];
let arr2 = [];
data.forEach((ele) => { data.forEach((ele) => {
let a = [ let a = [
ele.events_title, `<span style='cursor: pointer;'>${ele.events_title}</span>`,
ele.count,
ele.ctime,
ele.events_series
];
let b = [
`<span style='cursor: pointer;'>${ele.events_title}</span>`,
ele.count, ele.count,
ele.ctime, ele.ctime,
ele.events_series, ele.events_series,
ele.events_id
]; ];
arr.push(a); arr.push(a);
arr2.push(b);
}); });
this.darr = arr2;
this.config = { this.config = {
headerBGC: "#1b4062", headerBGC: "#1b4062",
oddRowBGC: "#173b6d", oddRowBGC: "#173b6d",
evenRowBGC: "rgba(69, 149, 244, 0)", evenRowBGC: "rgba(69, 149, 244, 0)",
columnWidth: [400], columnWidth: [300, 200, 120],
rowNum: 6, rowNum: 6,
header: ["事件列表", "影响力", "时间", "关联车型"], header: ["事件列表", "影响力", "时间", "关联车型"],
data: arr, data: arr,
@ -66,6 +77,13 @@ export default {
this.load = false; this.load = false;
}); });
}, },
handlerItem(row) {
let ele = this.darr[row.rowIndex];
if(row.columnIndex === 0) {
let id = ele[4];
this.$router.push({path: '/eventDEC', query: {events_id: id}});
}
}
}, },
}; };
</script> </script>

@ -1,7 +1,7 @@
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-10-20 09:39:28 * @Date: 2021-10-20 09:39:28
* @LastEditTime: 2021-11-17 14:58:16 * @LastEditTime: 2021-11-17 16:20:52
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: /data-show/src/views/EventDEC/mediaInterpretationED/index.vue * @FilePath: /data-show/src/views/EventDEC/mediaInterpretationED/index.vue
@ -49,7 +49,7 @@
<div class="d1-inner"> <div class="d1-inner">
<div class="pv-item" v-for="(item,index) in list" :key="index"> <div class="pv-item" v-for="(item,index) in list" :key="index">
<div class="dm"> <div class="dm">
<img class="mm1" :src="item._source.profileimgurl" width="100%" height="100%"> <img class="mm1" :src="item._source.profileimgurl" width="100%" height="100%" v-if="item._source.profileimgurl">
</div> </div>
<div class="d-f"> <div class="d-f">
<div class="d1">{{item._source.user_author}}</div> <div class="d1">{{item._source.user_author}}</div>
@ -115,6 +115,7 @@ export default {
let obj = Object.assign({}, this.form); let obj = Object.assign({}, this.form);
getDiffuseZhuTi(obj).then((res) => { getDiffuseZhuTi(obj).then((res) => {
let data = res.data; let data = res.data;
console.log(data)
this.countObj.sum = data.sum; this.countObj.sum = data.sum;
this.countObj.volume = data.volume; this.countObj.volume = data.volume;
this.countObj.total = data.total; this.countObj.total = data.total;
@ -126,13 +127,14 @@ export default {
let edges = listPid; let edges = listPid;
getCoreDiffuseWeiBo.forEach((ele) => { getCoreDiffuseWeiBo.forEach((ele) => {
let _source = ele._source; let _source = ele._source;
let xgmid = _source.xgmid; let xgmid = _source.xgmid || "";
let row = nodes.find((e) => e.id === xgmid); nodes.forEach(e => {
if (row) { if(e.id === xgmid) {
row.value = _source.volume; e.value = _source.volume
} else { } else {
row.value = 0; e.value = 0
} }
})
}); });
nodes.forEach((ele) => { nodes.forEach((ele) => {
let colorSet = new Set(this.colors); let colorSet = new Set(this.colors);

@ -1,7 +1,7 @@
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-10-20 11:19:00 * @Date: 2021-10-20 11:19:00
* @LastEditTime: 2021-11-17 14:23:06 * @LastEditTime: 2021-11-17 16:03:44
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: /data-show/src/views/EventDEC/tailAnalysisED/index.vue * @FilePath: /data-show/src/views/EventDEC/tailAnalysisED/index.vue
@ -66,7 +66,6 @@ export default {
this.load = true; this.load = true;
getSourcetypeTime1(obj).then((res) => { getSourcetypeTime1(obj).then((res) => {
let data = res.data || []; let data = res.data || [];
console.log(data);
let dx = []; let dx = [];
let ds = []; let ds = [];
data.forEach((ele) => { data.forEach((ele) => {

@ -1,7 +1,7 @@
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-10-13 11:54:38 * @Date: 2021-10-13 11:54:38
* @LastEditTime: 2021-11-09 11:56:11 * @LastEditTime: 2021-11-17 15:57:45
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: /data-show/src/views/EventDetails/hotOther/index.vue * @FilePath: /data-show/src/views/EventDetails/hotOther/index.vue
@ -10,11 +10,11 @@
<div class="ho-outter" v-loading="load"> <div class="ho-outter" v-loading="load">
<v-label-div title="热点事件传播导向" /> <v-label-div title="热点事件传播导向" />
<div class="ho-bd"> <div class="ho-bd">
<dv-scroll-board :config="config" :style="{ width: '100%', height: '27rem' }" /> <dv-scroll-board :config="config" :style="{ width: '100%', height: '27rem' }" @click="handlerItem"/>
</div> </div>
<div class="ho-footer"> <div class="ho-footer">
<span class="ho-f-s1"> <span style="color: #2c66b5;">{{total}}</span> </span> <span class="ho-f-s1"> <span style="color: #2c66b5;">{{total}}</span> </span>
<a-pagination v-model="form.iPageIndex" :total="total" show-less-items @change="handlerPagnation"/> <a-pagination v-model="form.iPageIndex" :pageSize="form.iPageSize" :total="total" show-less-items @change="handlerPagnation"/>
</div> </div>
</div> </div>
</template> </template>
@ -36,6 +36,7 @@ export default {
total: 0, total: 0,
config: { config: {
}, },
darr: []
}; };
}, },
created() { created() {
@ -53,15 +54,25 @@ export default {
let totalNum = res.totalNum || 0; let totalNum = res.totalNum || 0;
this.total = totalNum; this.total = totalNum;
let arr = []; let arr = [];
let arr2 = [];
data.forEach((ele) => { data.forEach((ele) => {
let a = [ let a = [
ele.events_title, `<span style='cursor: pointer;'>${ele.events_title}</span>`,
ele.events_influence, ele.events_influence,
ele.maxSourcetime, ele.maxSourcetime,
ele.events_brand, ele.events_brand,
]; ];
let b = [
`<span style='cursor: pointer;'>${ele.events_title}</span>`,
ele.events_influence,
ele.maxSourcetime,
ele.events_brand,
ele.events_id
];
arr.push(a); arr.push(a);
arr2.push(b);
}); });
this.darr = arr2;
this.config = { this.config = {
headerBGC: "#0c203b", headerBGC: "#0c203b",
oddRowBGC: "#173b6d", oddRowBGC: "#173b6d",
@ -78,6 +89,13 @@ export default {
handlerPagnation(page) { handlerPagnation(page) {
this.form.iPageIndex = page; this.form.iPageIndex = page;
this.getDdta() this.getDdta()
},
handlerItem(row) {
let ele = this.darr[row.rowIndex];
if(row.columnIndex === 0) {
let id = ele[4];
this.$router.push({path: '/eventDEC', query: {events_id: id}});
}
} }
}, },
}; };

@ -1,7 +1,7 @@
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-10-27 15:26:21 * @Date: 2021-10-27 15:26:21
* @LastEditTime: 2021-11-16 14:03:35 * @LastEditTime: 2021-11-17 16:03:54
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: /data-show/src/views/IndustryDataExport/getApiData.js * @FilePath: /data-show/src/views/IndustryDataExport/getApiData.js
@ -167,7 +167,6 @@ export default {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
getToExcelField({sType: sType, token: token}).then(res => { getToExcelField({sType: sType, token: token}).then(res => {
let data = res.data; let data = res.data;
console.log(data)
let arr = []; let arr = [];
data.forEach((ele) => { data.forEach((ele) => {
let obj = { let obj = {

@ -1,7 +1,7 @@
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-10-13 11:54:38 * @Date: 2021-10-13 11:54:38
* @LastEditTime: 2021-11-08 17:52:40 * @LastEditTime: 2021-11-17 16:02:33
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: /data-show/src/views/EventDetails/hotOther/index.vue * @FilePath: /data-show/src/views/EventDetails/hotOther/index.vue
@ -10,11 +10,11 @@
<div class="ho-outter"> <div class="ho-outter">
<v-label-div title="热点事件传播导向" /> <v-label-div title="热点事件传播导向" />
<div class="ho-bd"> <div class="ho-bd">
<dv-scroll-board :config="config" :style="{ width: '100%', height: '27rem' }" /> <dv-scroll-board :config="config" :style="{ width: '100%', height: '27rem' }" @click="handlerItem"/>
</div> </div>
<div class="ho-footer"> <div class="ho-footer">
<span class="ho-f-s1"> <span style="color: #2c66b5;">{{total}}</span> </span> <span class="ho-f-s1"> <span style="color: #2c66b5;">{{total}}</span> </span>
<a-pagination v-model="form.iPageIndex" :total="total" show-less-items @change="handlerPagnation"/> <a-pagination v-model="form.iPageIndex" :pageSize="form.iPageSize" :total="total" show-less-items @change="handlerPagnation"/>
</div> </div>
</div> </div>
</template> </template>
@ -36,6 +36,7 @@ export default {
total: 0, total: 0,
config: { config: {
}, },
darr: []
}; };
}, },
created() { created() {
@ -53,15 +54,25 @@ export default {
let totalNum = res.totalNum || 0; let totalNum = res.totalNum || 0;
this.total = totalNum; this.total = totalNum;
let arr = []; let arr = [];
let arr2 = [];
data.forEach((ele) => { data.forEach((ele) => {
let a = [ let a = [
ele.events_title, `<span style='cursor: pointer;'>${ele.events_title}</span>`,
ele.events_influence,
ele.maxSourcetime,
ele.events_brand
];
let b = [
`<span style='cursor: pointer;'>${ele.events_title}</span>`,
ele.events_influence, ele.events_influence,
ele.maxSourcetime, ele.maxSourcetime,
ele.events_brand, ele.events_brand,
ele.events_id
]; ];
arr.push(a); arr.push(a);
arr2.push(b);
}); });
this.darr = arr2;
this.config = { this.config = {
headerBGC: "#0c203b", headerBGC: "#0c203b",
oddRowBGC: "#173b6d", oddRowBGC: "#173b6d",
@ -77,6 +88,13 @@ export default {
handlerPagnation(page) { handlerPagnation(page) {
this.form.iPageIndex = page; this.form.iPageIndex = page;
this.getDdta() this.getDdta()
},
handlerItem(row) {
let ele = this.darr[row.rowIndex];
if(row.columnIndex === 0) {
let id = ele[4];
this.$router.push({path: '/eventDEC', query: {events_id: id}});
}
} }
}, },
}; };

@ -1,7 +1,7 @@
<!-- <!--
* @Author: xw * @Author: xw
* @Date: 2021-10-12 10:50:44 * @Date: 2021-10-12 10:50:44
* @LastEditTime: 2021-11-01 17:59:06 * @LastEditTime: 2021-11-17 16:00:09
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 热门事件列表 * @Description: 热门事件列表
* @FilePath: /data-show/src/views/BrandInsight/popularEventsList/index.vue * @FilePath: /data-show/src/views/BrandInsight/popularEventsList/index.vue
@ -11,7 +11,7 @@
<div class="pe-ouuter" v-loading="load"> <div class="pe-ouuter" v-loading="load">
<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>
<div class="pe-inner"> <div class="pe-inner">
<dv-scroll-board :config="config" :style="{ width: '100%', height: '20rem' }" /> <dv-scroll-board :config="config" :style="{ width: '100%', height: '20rem' }" @click="handlerItem"/>
</div> </div>
</div> </div>
</template> </template>
@ -30,8 +30,8 @@ export default {
token: "", token: "",
}, },
config: { config: {
}, },
darr: []
}; };
}, },
watch: { watch: {
@ -54,15 +54,25 @@ export default {
getHotEventsList0528(obj).then((res) => { getHotEventsList0528(obj).then((res) => {
let data = res.data || []; let data = res.data || [];
let arr = []; let arr = [];
let arr2 = [];
data.forEach((ele) => { data.forEach((ele) => {
let a = [ let a = [
ele.events_title, `<span style='cursor: pointer;'>${ele.events_title}</span>`,
ele.count, ele.count,
ele.ctime, ele.ctime,
ele.events_series, ele.events_series
]; ];
let b = [
`<span style='cursor: pointer;'>${ele.events_title}</span>`,
ele.count,
ele.ctime,
ele.events_series,
ele.events_id
]
arr.push(a); arr.push(a);
arr2.push(b)
}); });
this.darr = arr2;
this.config = { this.config = {
headerBGC: "#1b4062", headerBGC: "#1b4062",
oddRowBGC: "#173b6d", oddRowBGC: "#173b6d",
@ -75,6 +85,13 @@ export default {
this.load = false; this.load = false;
}); });
}, },
handlerItem(row) {
let ele = this.darr[row.rowIndex];
if(row.columnIndex === 0) {
let id = ele[4];
this.$router.push({path: '/eventDEC', query: {events_id: id}});
}
}
}, },
}; };
</script> </script>

@ -1,7 +1,7 @@
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-10-14 19:15:58 * @Date: 2021-10-14 19:15:58
* @LastEditTime: 2021-11-11 10:46:45 * @LastEditTime: 2021-11-17 16:23:34
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: /data-show/src/views/WeiboDetails/weiboSpreadFission/index.vue * @FilePath: /data-show/src/views/WeiboDetails/weiboSpreadFission/index.vue
@ -60,13 +60,14 @@ export default {
let edges = listPid; let edges = listPid;
getCoreDiffuseWeiBo.forEach((ele) => { getCoreDiffuseWeiBo.forEach((ele) => {
let _source = ele._source; let _source = ele._source;
let xgmid = _source.xgmid; let xgmid = _source.xgmid || "";
let row = nodes.find((e) => e.id === xgmid); nodes.forEach(e => {
if (row) { if(e.id === xgmid) {
row.value = _source.volume; e.value = _source.volume;
} else { } else {
row.value = 0; e.value = 0
} }
})
}); });
nodes.forEach((ele) => { nodes.forEach((ele) => {
let colorSet = new Set(this.colors); let colorSet = new Set(this.colors);

@ -1,7 +1,7 @@
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-10-14 19:15:58 * @Date: 2021-10-14 19:15:58
* @LastEditTime: 2021-11-11 09:45:04 * @LastEditTime: 2021-11-17 16:27:37
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: /data-show/src/views/WeiboDetails/weiboSpreadFission/index.vue * @FilePath: /data-show/src/views/WeiboDetails/weiboSpreadFission/index.vue
@ -61,12 +61,13 @@ export default {
getCoreDiffuseWeiBo.forEach((ele) => { getCoreDiffuseWeiBo.forEach((ele) => {
let _source = ele._source; let _source = ele._source;
let xgmid = _source.xgmid; let xgmid = _source.xgmid;
let row = nodes.find((e) => e.id === xgmid); nodes.forEach(e => {
if (row) { if(e.id === xgmid) {
row.value = _source.volume; e.value = _source.volume
} else { } else {
row.value = 0; e.value = 0
} }
})
}); });
nodes.forEach((ele) => { nodes.forEach((ele) => {
let colorSet = new Set(this.colors); let colorSet = new Set(this.colors);

Loading…
Cancel
Save