n20-common-lib 2.4.31 → 2.4.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.4.31",
3
+ "version": "2.4.33",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -1,11 +1,7 @@
1
1
  <template>
2
2
  <el-carousel height="50px" :interval="3000" direction="vertical" indicator-position="none" :autoplay="true">
3
3
  <el-carousel-item v-for="tip in tips" :key="tip.id">
4
- <div
5
- v-if="tip.isShow === '1'"
6
- v-title="`${tip.createTime}${enumData[tip.busState]}${tip.busCode !== 'D001' ? tip.currency || '' : ''}`"
7
- :class="`tip_color_${tip.style || 'default'}`"
8
- >
4
+ <div v-if="tip.isShow === '1'" v-title:br="list" :class="`tip_color_${tip.style || 'default'}`">
9
5
  {{ tip.busCode | busType }}
10
6
  </div>
11
7
  </el-carousel-item>
@@ -14,6 +10,7 @@
14
10
 
15
11
  <script>
16
12
  import axios from '../../utils/axios'
13
+ import cloneDeep from 'lodash/cloneDeep'
17
14
  let filterData
18
15
  let enumData = {
19
16
  D001: '营业中',
@@ -53,6 +50,7 @@ export default {
53
50
  return {
54
51
  enumData,
55
52
  tips: [],
53
+ list: '',
56
54
  interval: ''
57
55
  }
58
56
  },
@@ -69,6 +67,13 @@ export default {
69
67
  const { data } = await axios.get(`/bems/portal/portalTopShow/getShowTopAll`)
70
68
  this.tips = data
71
69
  filterData = data
70
+ this.list = cloneDeep(data)
71
+ .map((tip) => {
72
+ return `${tip.createTime}${tip.busNname}${enumData[tip.busState]}${
73
+ tip.busCode !== 'D001' ? tip.currency || '' : ''
74
+ }`
75
+ })
76
+ .join(',')
72
77
  }
73
78
  }
74
79
  }