|
@@ -79,6 +79,46 @@
|
|
|
|
|
|
|
|
</a-tab-pane>
|
|
</a-tab-pane>
|
|
|
<a-tab-pane tab="订单消息" key="4">
|
|
<a-tab-pane tab="订单消息" key="4">
|
|
|
|
|
+ <a-list>
|
|
|
|
|
+ <a-list-item
|
|
|
|
|
+ :key="index"
|
|
|
|
|
+ v-for="(record, index) in announcement2"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div style="margin-left: 5%; width: 80%">
|
|
|
|
|
+ <p>
|
|
|
|
|
+ <a @click="showAnnouncement(record)">{{ record.titile }}</a>
|
|
|
|
|
+ </p>
|
|
|
|
|
+ <p style="color: rgba(0, 0, 0, 0.45); margin-bottom: 0px">
|
|
|
|
|
+ {{ record.createTime }} 发布
|
|
|
|
|
+ </p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div style="text-align: right">
|
|
|
|
|
+ <a-tag
|
|
|
|
|
+ @click="showAnnouncement(record)"
|
|
|
|
|
+ v-if="record.priority === 'L'"
|
|
|
|
|
+ color="blue"
|
|
|
|
|
+ >一般消息</a-tag
|
|
|
|
|
+ >
|
|
|
|
|
+ <a-tag
|
|
|
|
|
+ @click="showAnnouncement(record)"
|
|
|
|
|
+ v-if="record.priority === 'M'"
|
|
|
|
|
+ color="orange"
|
|
|
|
|
+ >重要消息</a-tag
|
|
|
|
|
+ >
|
|
|
|
|
+ <a-tag
|
|
|
|
|
+ @click="showAnnouncement(record)"
|
|
|
|
|
+ v-if="record.priority === 'H'"
|
|
|
|
|
+ color="red"
|
|
|
|
|
+ >紧急消息</a-tag
|
|
|
|
|
+ >
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </a-list-item>
|
|
|
|
|
+ <div style="margin-top: 5px; text-align: center">
|
|
|
|
|
+ <a-button @click="toMyAnnouncement()" type="dashed" block
|
|
|
|
|
+ >查看更多</a-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </a-list>
|
|
|
|
|
|
|
|
</a-tab-pane>
|
|
</a-tab-pane>
|
|
|
<a-tab-pane tab="商城消息" key="5">
|
|
<a-tab-pane tab="商城消息" key="5">
|
|
@@ -94,46 +134,6 @@
|
|
|
|
|
|
|
|
</a-tab-pane>
|
|
</a-tab-pane>
|
|
|
<a-tab-pane :tab="msg2Title" key="2">
|
|
<a-tab-pane :tab="msg2Title" key="2">
|
|
|
- <a-list>
|
|
|
|
|
- <a-list-item
|
|
|
|
|
- :key="index"
|
|
|
|
|
- v-for="(record, index) in announcement2"
|
|
|
|
|
- >
|
|
|
|
|
- <div style="margin-left: 5%; width: 80%">
|
|
|
|
|
- <p>
|
|
|
|
|
- <a @click="showAnnouncement(record)">{{ record.titile }}</a>
|
|
|
|
|
- </p>
|
|
|
|
|
- <p style="color: rgba(0, 0, 0, 0.45); margin-bottom: 0px">
|
|
|
|
|
- {{ record.createTime }} 发布
|
|
|
|
|
- </p>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div style="text-align: right">
|
|
|
|
|
- <a-tag
|
|
|
|
|
- @click="showAnnouncement(record)"
|
|
|
|
|
- v-if="record.priority === 'L'"
|
|
|
|
|
- color="blue"
|
|
|
|
|
- >一般消息</a-tag
|
|
|
|
|
- >
|
|
|
|
|
- <a-tag
|
|
|
|
|
- @click="showAnnouncement(record)"
|
|
|
|
|
- v-if="record.priority === 'M'"
|
|
|
|
|
- color="orange"
|
|
|
|
|
- >重要消息</a-tag
|
|
|
|
|
- >
|
|
|
|
|
- <a-tag
|
|
|
|
|
- @click="showAnnouncement(record)"
|
|
|
|
|
- v-if="record.priority === 'H'"
|
|
|
|
|
- color="red"
|
|
|
|
|
- >紧急消息</a-tag
|
|
|
|
|
- >
|
|
|
|
|
- </div>
|
|
|
|
|
- </a-list-item>
|
|
|
|
|
- <div style="margin-top: 5px; text-align: center">
|
|
|
|
|
- <a-button @click="toMyAnnouncement()" type="dashed" block
|
|
|
|
|
- >查看更多</a-button
|
|
|
|
|
- >
|
|
|
|
|
- </div>
|
|
|
|
|
- </a-list>
|
|
|
|
|
</a-tab-pane>
|
|
</a-tab-pane>
|
|
|
</a-tabs>
|
|
</a-tabs>
|
|
|
</a-spin>
|
|
</a-spin>
|
|
@@ -201,7 +201,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
this.loadData();
|
|
this.loadData();
|
|
|
- //this.timerFun();
|
|
|
|
|
|
|
+ this.timerFun();
|
|
|
this.initWebSocket();
|
|
this.initWebSocket();
|
|
|
// this.heartCheckFun();
|
|
// this.heartCheckFun();
|
|
|
},
|
|
},
|