af-mobile-client-vue3 1.1.18 → 1.1.20
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
|
@@ -578,6 +578,7 @@ function evaluateCustomFunction(funcString: string | undefined, record: any, ind
|
|
|
578
578
|
height: calc(94vh - var(--van-nav-bar-height) - 5px);
|
|
579
579
|
--van-search-padding:5px;
|
|
580
580
|
--van-dropdown-menu-title-padding: 5px;
|
|
581
|
+
--van-cell-vertical-padding: 0px;
|
|
581
582
|
.main {
|
|
582
583
|
overflow-y: auto;
|
|
583
584
|
height: 100%;
|
|
@@ -116,8 +116,14 @@ const formSelectDefaultValue = ref([])
|
|
|
116
116
|
// 选择-查询
|
|
117
117
|
const querySelectDefaultValue = ref([])
|
|
118
118
|
|
|
119
|
-
//
|
|
119
|
+
// 登录信息 (可以在配置的动态函数中使用 this.setupState 获取到当前组件内的全部函数和变量 例:this.setupState.userState)
|
|
120
|
+
const userState = useUserStore().getLogin()
|
|
120
121
|
const currUser = computed(() => userState.f.resources.id)
|
|
122
|
+
const userInfo = computed(() => ({
|
|
123
|
+
orgId: userState.f.resources.orgid,
|
|
124
|
+
userId: userState.f.resources.id,
|
|
125
|
+
}))
|
|
126
|
+
|
|
121
127
|
// 是否展示当前项
|
|
122
128
|
const showItem = ref(true)
|
|
123
129
|
|
|
@@ -372,7 +378,7 @@ const labelData = computed(() => {
|
|
|
372
378
|
})
|
|
373
379
|
// 是否展示表单左侧label文字
|
|
374
380
|
const labelAlign = computed(() => {
|
|
375
|
-
return attr.labelAlign ? attr.labelAlign : '
|
|
381
|
+
return attr.labelAlign ? attr.labelAlign : 'left'
|
|
376
382
|
})
|
|
377
383
|
// 是否只读
|
|
378
384
|
const readonly = computed(() => {
|
|
@@ -385,8 +391,6 @@ const placeholder = computed(() => {
|
|
|
385
391
|
else
|
|
386
392
|
return attr.placeholder ? attr.placeholder : `请选择${attr.name}`
|
|
387
393
|
})
|
|
388
|
-
// 登录信息 (可以在配置的动态函数中使用 this.setupState 获取到当前组件内的全部函数和变量 例:this.setupState.userState)
|
|
389
|
-
const userState = useUserStore().getLogin()
|
|
390
394
|
|
|
391
395
|
const formatDate = date => `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()}`
|
|
392
396
|
|
|
@@ -504,8 +508,8 @@ function getData(value, callback) {
|
|
|
504
508
|
// 调用logic前设置参数
|
|
505
509
|
if (getDataParams && getDataParams[attr.model])
|
|
506
510
|
Object.assign(value, getDataParams[attr.model])
|
|
507
|
-
|
|
508
|
-
runLogic(logic, value, serviceName).then((res) => {
|
|
511
|
+
Object.assign(value, userInfo.value)
|
|
512
|
+
runLogic(logic, value.value, serviceName).then((res) => {
|
|
509
513
|
callback(res)
|
|
510
514
|
})
|
|
511
515
|
}
|