htui-yllkbz 1.3.96 → 1.3.97
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/lib/htui.common.js +46 -36
- package/lib/htui.common.js.gz +0 -0
- package/lib/htui.css +1 -1
- package/lib/htui.umd.js +46 -36
- package/lib/htui.umd.js.gz +0 -0
- package/lib/htui.umd.min.js +4 -4
- package/lib/htui.umd.min.js.gz +0 -0
- package/package.json +1 -1
- package/src/packages/HtSelectBaseData/index.vue +2 -1
- package/src/packages/HtShowBaseData/index.vue +9 -1
package/lib/htui.umd.min.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @Author: hutao
|
|
5
5
|
* @Date: 2021-12-30 15:47:47
|
|
6
6
|
* @LastEditors: hutao
|
|
7
|
-
* @LastEditTime: 2023-02-
|
|
7
|
+
* @LastEditTime: 2023-02-12 11:03:28
|
|
8
8
|
-->
|
|
9
9
|
|
|
10
10
|
<template>
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
<div v-else>
|
|
42
42
|
<HtShowBaseData
|
|
43
43
|
:hide-code="hideCode"
|
|
44
|
+
:dataTypeId="dataTypeId"
|
|
44
45
|
:show-all-level="showAllLevels"
|
|
45
46
|
:base-data-id="!byCode ? value : undefined"
|
|
46
47
|
:base-data-value="byCode ? value : undefined"
|
|
@@ -141,6 +141,8 @@ export default class CommonDatas extends Vue {
|
|
|
141
141
|
@Prop() baseDataValue?: string;
|
|
142
142
|
/** 基础数据name */
|
|
143
143
|
@Prop() baseDataName?: string;
|
|
144
|
+
/** 基础数据分组key */
|
|
145
|
+
@Prop() dataTypeId?: string;
|
|
144
146
|
/** 基础数据详情,显示名称加编码 */
|
|
145
147
|
@Prop({ default: false }) baseDataInfo?: boolean;
|
|
146
148
|
/** 人员 */
|
|
@@ -193,7 +195,13 @@ export default class CommonDatas extends Vue {
|
|
|
193
195
|
// const list = this.state.resData.baseData.items || []
|
|
194
196
|
list.forEach((item) => {
|
|
195
197
|
this.state.baseDataItem[item.id || ''] = item;
|
|
196
|
-
this.
|
|
198
|
+
if (this.dataTypeId && this.dataTypeId === item.category) {
|
|
199
|
+
this.state.baseDataItem[item.value || ''] = item;
|
|
200
|
+
}
|
|
201
|
+
if (!this.dataTypeId) {
|
|
202
|
+
this.state.baseDataItem[item.value || ''] = item;
|
|
203
|
+
}
|
|
204
|
+
|
|
197
205
|
this.state.baseDataItem[item.name || ''] = item;
|
|
198
206
|
if (item.children) {
|
|
199
207
|
this.getBaseDataItem(item.children);
|