|
@@ -12,7 +12,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="infolist">
|
|
|
<el-col :span="24" class="button">
|
|
|
- <el-button class="icon" style="margin: 0 43px 0 0;"><i class="el-icon-plus"></i></el-button>
|
|
|
+ <el-button class="icon" style="margin: 0 43px 0 0;"><i class="el-icon-plus" @click="turnTo()"></i></el-button>
|
|
|
<!-- <el-button class="icon" style="margin: 0 10px;"><i class="el-icon-arrow-right"></i></el-button> -->
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="noticelist">
|
|
@@ -64,6 +64,14 @@ export default {
|
|
|
}
|
|
|
this.$emit('search', { skip: this.skip, limit: this.limit });
|
|
|
},
|
|
|
+ turnTo() {
|
|
|
+ if (this.noticelist.length > 0) {
|
|
|
+ if (this.noticelist[0].children.length > 0) {
|
|
|
+ let column = this.noticelist[0].children[0].id;
|
|
|
+ this.$router.push({ path: `/master/notice/${column}`, query: { news_type: '0', title: '最新公告' } });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|