|
@@ -2,20 +2,19 @@
|
|
|
<div>
|
|
<div>
|
|
|
<div>
|
|
<div>
|
|
|
<el-card style="font-family: 'Microsoft YaHei'; font-weight: 600">
|
|
<el-card style="font-family: 'Microsoft YaHei'; font-weight: 600">
|
|
|
- <div style="display: flex; margin: 10px">
|
|
|
|
|
- <div style="width: 100px; height: 100px; display: flex; justify-content: center; align-items: center">
|
|
|
|
|
- <i class="el-icon-date" style="font-size: 36px; color: #03803b"></i>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div style="margin-left: 20px; display: flex; justify-content: space-between; width: 100%">
|
|
|
|
|
- <div>
|
|
|
|
|
- <div v-for="(item, index) in data" :key="index">
|
|
|
|
|
- <div>{{ item.title }}</div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div>
|
|
|
|
|
- <el-link style="color: #03803b;font-size: 20px;font-weight: 600;" type="success" @click="inPage"> 更多公告 </el-link>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div slot="header" style="font-size: 18px">
|
|
|
|
|
+ <span>公告栏</span>
|
|
|
|
|
+ <el-button style="float: right; padding: 3px 0; font-weight: 600" type="text" @click="inPage"
|
|
|
|
|
+ >更多公告</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div v-for="item in data" :key="item.id" style="font-size: 14px">
|
|
|
|
|
+ <span style="cursor: pointer" @click="rowEdit(item)">
|
|
|
|
|
+ {{ item.title }}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div v-if="data.length == 0" style="font-size: 14px; color: #c0c4cc">
|
|
|
|
|
+ <div>暂无公告</div>
|
|
|
</div>
|
|
</div>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
</div>
|
|
</div>
|
|
@@ -49,7 +48,15 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
inPage() {
|
|
inPage() {
|
|
|
- this.$router.push('/bulletin/index')
|
|
|
|
|
|
|
+ this.$router.push("/bulletin/index");
|
|
|
|
|
+ },
|
|
|
|
|
+ rowEdit(row) {
|
|
|
|
|
+ this.$router.push({
|
|
|
|
|
+ path: `/bulletin/details`,
|
|
|
|
|
+ query: {
|
|
|
|
|
+ id: row.id,
|
|
|
|
|
+ },
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|