|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<!--
|
|
|
|
|
* @Author: your name
|
|
|
|
|
* @Date: 2021-10-18 10:56:38
|
|
|
|
|
* @LastEditTime: 2021-11-15 16:18:25
|
|
|
|
|
* @LastEditTime: 2021-12-16 15:58:18
|
|
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
|
|
* @Description: In User Settings Edit
|
|
|
|
|
* @FilePath: /data-show/src/views/EventComparison/eventRecommendationList/index.vue
|
|
|
|
@ -10,6 +10,7 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="erl-outter">
|
|
|
|
|
<v-label-div title="事件推荐列表">
|
|
|
|
|
<v-btn @click="handlerBegin">开始对比</v-btn>
|
|
|
|
|
</v-label-div>
|
|
|
|
|
<div class="erl-inner">
|
|
|
|
|
<a-form-model layout="inline" :model="formInline">
|
|
|
|
@ -78,7 +79,7 @@ export default {
|
|
|
|
|
pagination: {
|
|
|
|
|
current: 1,
|
|
|
|
|
total: 0,
|
|
|
|
|
pageSize: 5,
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
"show-total": (total) => `共 ${total} 条`,
|
|
|
|
|
},
|
|
|
|
|
columns: [
|
|
|
|
@ -270,7 +271,16 @@ export default {
|
|
|
|
|
arr[n] = {...obj};
|
|
|
|
|
this.chooseList = arr;
|
|
|
|
|
this.$emit('change', this.chooseList);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 开始对比
|
|
|
|
|
handlerBegin() {
|
|
|
|
|
if(this.chooseList.length < 2 || (this.getEComparison[0].events_id == "" || this.getEComparison[1].events_id == "")) {
|
|
|
|
|
this.$message.warning('至少2个事件进行对比');
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.setEComparison(this.chooseList);
|
|
|
|
|
this.$router.push({path: '/eventComparison'})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
@ -278,17 +288,17 @@ export default {
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.erl-outter {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 530px;
|
|
|
|
|
height: auto;
|
|
|
|
|
border: 2px solid #0f2a4d;
|
|
|
|
|
margin-top: 16px;
|
|
|
|
|
.erl-inner {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: calc(100% - 48px);
|
|
|
|
|
height: auto;
|
|
|
|
|
padding: 16px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/deep/ .ant-table-body {
|
|
|
|
|
height: 340px;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
}
|
|
|
|
|
// /deep/ .ant-table-body {
|
|
|
|
|
// height: 340px;
|
|
|
|
|
// overflow: auto;
|
|
|
|
|
// }
|
|
|
|
|
</style>
|
|
|
|
|