wui-components-v2 1.2.77 → 1.2.78
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.
|
@@ -50,6 +50,11 @@ const props = defineProps({
|
|
|
50
50
|
type: Boolean,
|
|
51
51
|
default: false,
|
|
52
52
|
},
|
|
53
|
+
// 是否请求用户实体数据(/v3/mstruc/data,用于取姓名/账号/维修厂):默认请求
|
|
54
|
+
fetchUserEntity: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: true,
|
|
57
|
+
},
|
|
53
58
|
// 是否显示"修改传感器配置"
|
|
54
59
|
showSensorConfig: {
|
|
55
60
|
type: Boolean,
|
|
@@ -118,8 +123,9 @@ async function fetchUserInfo() {
|
|
|
118
123
|
}
|
|
119
124
|
// 查询用户实体,实体字段为中文 key(姓名/账号/维修厂等),
|
|
120
125
|
// sourceId 为用户实体 x4u6aJ6IQQ,按实体 code 字段匹配当前用户 id
|
|
126
|
+
// fetchUserEntity 为 false 时跳过用户实体查询,仅使用 getUserConfig 返回的信息
|
|
121
127
|
const sourceId = 'x4u6aJ6IQQ'
|
|
122
|
-
if (user.id) {
|
|
128
|
+
if (props.fetchUserEntity && user.id) {
|
|
123
129
|
const entityRes = await req({
|
|
124
130
|
url: `/v3/mstruc/data?sourceId=${sourceId}&depth=1&pageNo=1&pageSize=1&c_唯一编码_equals=${user.id}&c_标记删除_equals=否`,
|
|
125
131
|
method: 'GET',
|