htui-yllkbz 1.3.56 → 1.3.58

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "htui-yllkbz",
3
- "version": "1.3.56",
3
+ "version": "1.3.58",
4
4
  "port": "8082",
5
5
  "typings": "types/index.d.ts",
6
6
  "main": "lib/htui.common.js",
@@ -4,7 +4,7 @@
4
4
  * @Author: hutao
5
5
  * @Date: 2021-12-30 15:47:47
6
6
  * @LastEditors: hutao
7
- * @LastEditTime: 2022-09-15 09:57:30
7
+ * @LastEditTime: 2022-09-15 10:04:16
8
8
  -->
9
9
 
10
10
  <template>
@@ -32,7 +32,6 @@
32
32
  </template>
33
33
  <div v-else>
34
34
  <HtShowBaseData
35
- v-if="value !== undefined && value !== null"
36
35
  :hide-code="hideCode"
37
36
  :show-all-level="showAllLevels"
38
37
  :base-data-id="value"
@@ -41,7 +40,7 @@
41
40
  style="font-size:12px"
42
41
  >
43
42
  </HtShowBaseData>
44
- <span>-</span>
43
+
45
44
  <!-- <div is='common-datas-info-id'
46
45
  com-style="font-size:12px"
47
46
  v-if="this.value"
@@ -25,7 +25,7 @@
25
25
  </span>
26
26
  </template>
27
27
  <!-- 基础数据,以id查找 -->
28
- <template v-if="baseDataId">
28
+ <template v-if="baseDataId !== undefined && baseDataId !== null">
29
29
  <span class="item" v-if="baseDataItem[baseDataId]">
30
30
  <!-- {{ baseDataItem[baseDataId].name || empty }}
31
31
  <span v-if="baseDataInfo&&!hideCode">
@@ -222,7 +222,7 @@ export default class CommonDatas extends Vue {
222
222
  }
223
223
  @Watch('baseDataItem')
224
224
  setText() {
225
- if (this.baseDataId) {
225
+ if (this.baseDataId !== undefined && this.baseDataId !== null) {
226
226
  const tempText = this.setAllLevel(this.baseDataId);
227
227
  this.state.text = tempText;
228
228
  } else {
@@ -231,7 +231,7 @@ export default class CommonDatas extends Vue {
231
231
  }
232
232
  @Watch('baseDataId')
233
233
  getText(val: string) {
234
- if (val && this.baseDataItem) {
234
+ if (val !== undefined && val !== null && this.baseDataItem) {
235
235
  const tempText = this.setAllLevel(val);
236
236
  this.state.text = tempText;
237
237
  } else {