af-mobile-client-vue3 1.4.22 → 1.4.24
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
|
@@ -171,6 +171,7 @@ const showTreeSelect = ref(false)
|
|
|
171
171
|
const treeValue = ref('')
|
|
172
172
|
// 懒加载 最后检索版本
|
|
173
173
|
const lastFetchId = ref(0)
|
|
174
|
+
const customizeReadOnly = ref(false)
|
|
174
175
|
|
|
175
176
|
// 登录信息 (可以在配置的动态函数中使用 this.setupState 获取到当前组件内的全部函数和变量 例:this.setupState.userState)
|
|
176
177
|
const userState = useUserStore().getLogin()
|
|
@@ -203,7 +204,12 @@ async function showFormItemFunc() {
|
|
|
203
204
|
}
|
|
204
205
|
else if (obj && typeof obj === 'object') {
|
|
205
206
|
// obj 是一个对象,并且不是数组
|
|
206
|
-
|
|
207
|
+
if (Object.prototype.hasOwnProperty.call(obj, 'show')) {
|
|
208
|
+
showItem.value = obj?.show
|
|
209
|
+
}
|
|
210
|
+
if (Object.prototype.hasOwnProperty.call(obj, 'readOnly')) {
|
|
211
|
+
customizeReadOnly.value = obj?.readOnly
|
|
212
|
+
}
|
|
207
213
|
}
|
|
208
214
|
}
|
|
209
215
|
}
|
|
@@ -573,7 +579,7 @@ const labelAlign = computed(() => {
|
|
|
573
579
|
})
|
|
574
580
|
// 是否只读
|
|
575
581
|
const readonly = computed(() => {
|
|
576
|
-
return props.formReadonly || attr.addOrEdit === 'readonly' || mode === '预览'
|
|
582
|
+
return props.formReadonly || attr.addOrEdit === 'readonly' || mode === '预览' || customizeReadOnly.value
|
|
577
583
|
})
|
|
578
584
|
|
|
579
585
|
// 判断是否显示空提示(只读且值为空)
|
|
@@ -186,7 +186,7 @@ const webMobileConfig = useSettingStore().getSetting()
|
|
|
186
186
|
<h2 class="username">
|
|
187
187
|
{{ username }}
|
|
188
188
|
<span
|
|
189
|
-
v-if="locationStatus.statusTag"
|
|
189
|
+
v-if="roleName?.includes('需要定位人员') && locationStatus.statusTag"
|
|
190
190
|
class="upload-status-tag" :class="[locationStatus.statusTag.color]"
|
|
191
191
|
>
|
|
192
192
|
{{ locationStatus.statusTag.text }}
|