Browse Source

消息图标

Shannon_mu 3 years ago
parent
commit
cc49d2811a

+ 1 - 1
energyManagement/src/components/common/Header.vue

@@ -28,7 +28,7 @@
                         <p>消息通知</p>
                         <ul>
                             <li v-for="(items, index) in messageList" :key="index" @click="toUrl(items.typeId)" style="cursor: pointer">
-                                <img :src="'@/assets/img/icon_msg' + items.typeId + '.png'" style="width: 30px; height: 30px" />
+                                <img :src="imgList[items.typeId - 1]" style="width: 30px; height: 30px" />
                                 <div>
                                     <span class="cont">【{{ items.shortName }}】{{ items.messageContent }}</span>
                                     <span class="time">{{ items.dateCreate }}</span>

+ 1 - 1
operationSupport/src/components/common/Header.vue

@@ -28,7 +28,7 @@
                         <p>消息通知</p>
                         <ul>
                             <li v-for="(items, index) in messageList" :key="index" @click="toUrl(items.typeId)" style="cursor: pointer">
-                                <img :src="'@/assets/img/icon_msg' + items.typeId + '.png'" style="width: 30px; height: 30px" />
+                                <img :src="imgList[items.typeId - 1]" style="width: 30px; height: 30px" />
                                 <div>
                                     <span class="cont">【{{ items.shortName }}】{{ items.messageContent }}</span>
                                     <span class="time">{{ items.dateCreate }}</span>

+ 1 - 1
userCenter/src/components/common/Header.vue

@@ -30,7 +30,7 @@
                         <p>消息通知</p>
                         <ul>
                             <li v-for="(items, index) in messageList" :key="index" @click="toUrl(items.typeId)" style="cursor: pointer">
-                                <img :src="'@/assets/img/icon_msg' + items.typeId + '.png'" style="width: 30px; height: 30px" />
+                                <img :src="imgList[items.typeId - 1]" style="width: 30px; height: 30px" />
                                 <div>
                                     <span class="cont">【{{ items.shortName }}】{{ items.messageContent }}</span>
                                     <span class="time">{{ items.dateCreate }}</span>