prod
校文 3 years ago
parent a5f6096069
commit f7e75976ff

@ -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>

@ -1,7 +1,7 @@
<!--
* @Author: your name
* @Date: 2021-10-18 09:55:16
* @LastEditTime: 2021-11-15 16:16:38
* @LastEditTime: 2021-12-16 15:47:26
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/views/EventComparison/index.vue
@ -12,10 +12,7 @@
<div class="ec-outter">
<ec-top ref="ect" @del="handlerDel"></ec-top>
<eventRecommendationList ref="erdl" @change="chooseChange"></eventRecommendationList>
<div align="center" class="ec-footer">
<!-- <img src="../../assets/images/EventInsight/img_sjdb_nor.png"/> -->
<img src="../../assets/images/EventInsight/img_sjdb_sel.png" @click="handlerBegin"/>
</div>
</div>
</div>
</template>
@ -50,15 +47,15 @@ export default {
})
},
//
handlerBegin() {
if(this.subList.length < 2 || (this.getEComparison[0].events_id == "" || this.getEComparison[1].events_id == "")) {
this.$message.warning('至少2个事件进行对比');
return
}
this.setEComparison(this.subList);
this.$router.push({path: '/eventComparison'})
}
// //
// handlerBegin() {
// if(this.subList.length < 2 || (this.getEComparison[0].events_id == "" || this.getEComparison[1].events_id == "")) {
// this.$message.warning('2');
// return
// }
// this.setEComparison(this.subList);
// this.$router.push({path: '/eventComparison'})
// }
}
};
</script>

Loading…
Cancel
Save