n20-common-lib 2.4.29 → 2.4.31

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.29",
3
+ "version": "2.4.31",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -12,12 +12,10 @@
12
12
  </div>
13
13
  <div v-else class="n20-statis p-t-s p-b-s">
14
14
  <span class="m-r">
15
- {{ '当页: ' | $lc }}<span class="n20-primary">{{ pageSum }}</span
16
- >{{ '条' | $lc }}
15
+ {{ '当页:' | $lc }}<span class="n20-primary"> {{ pageSum }}</span> {{ '条' | $lc }}
17
16
  </span>
18
17
  <span class="m-r">
19
- {{ '全部: ' | $lc }}<span class="n20-primary">{{ totalSun }}</span
20
- >{{ '条' | $lc }}
18
+ {{ '全部:' | $lc }}<span class="n20-primary"> {{ totalSun }}</span> {{ '条' | $lc }}
21
19
  </span>
22
20
  </div>
23
21
  </div>
@@ -1,10 +1,10 @@
1
1
  <template>
2
- <el-carousel height="50px" interval="2000" direction="vertical" indicator-position="none" :autoplay="true">
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
4
  <div
5
5
  v-if="tip.isShow === '1'"
6
6
  v-title="`${tip.createTime}${enumData[tip.busState]}${tip.busCode !== 'D001' ? tip.currency || '' : ''}`"
7
- :class="`tip_color_${tip.busState}`"
7
+ :class="`tip_color_${tip.style || 'default'}`"
8
8
  >
9
9
  {{ tip.busCode | busType }}
10
10
  </div>
@@ -33,15 +33,15 @@ export default {
33
33
  switch (code) {
34
34
  case 'D001':
35
35
  item = filterData.find((c) => c.busCode === 'D001')
36
- value = `${item.busNname}${enumData[item.busState]}`
36
+ value = `${item.busNname}${enumData[item.busState]}${item.isError === '1' ? '(有异常)' : ''}`
37
37
  break
38
38
  case 'D002':
39
39
  item = filterData.find((c) => c.busCode === 'D002')
40
- value = `${item.busNname}${enumData[item.busState]}`
40
+ value = `${item.busNname}${enumData[item.busState]}${item.isError === '1' ? '(有异常)' : ''}`
41
41
  break
42
42
  case 'ce001':
43
43
  item = filterData.find((c) => c.busCode === 'ce001')
44
- value = `${item.busNname}${enumData[item.busState]}`
44
+ value = `${item.busNname}${enumData[item.busState]}${item.isError === '1' ? '(有异常)' : ''}`
45
45
  break
46
46
  default:
47
47
  break
@@ -87,19 +87,17 @@ export default {
87
87
  .el-carousel__item:nth-child(n) {
88
88
  background-color: #fff;
89
89
  }
90
- .tip_color_D001 {
90
+
91
+ .tip_color_1 {
91
92
  color: var(--color-success);
92
93
  }
93
- .tip_color_D002,
94
- .tip_color_D003,
95
- .tip_color_D004 {
94
+ .tip_color_2 {
96
95
  color: var(--color-info);
97
96
  }
98
- .tip_color_D005,
99
- .tip_color_D006 {
97
+ .tip_color_3 {
100
98
  color: var(--color-warning);
101
99
  }
102
- .tip_color_D007 {
100
+ .tip_color_4 {
103
101
  color: var(--color-danger);
104
102
  }
105
103
  </style>