af-mobile-client-vue3 1.1.12 → 1.1.14
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
|
@@ -388,6 +388,7 @@ const formatDate = date => `${date.getFullYear()}-${date.getMonth() + 1}-${date.
|
|
|
388
388
|
|
|
389
389
|
function onCalendarConfirm(values) {
|
|
390
390
|
localValue.value = [formatDate(values[0]), formatDate(values[1])]
|
|
391
|
+
pickerValue.value = `${formatDate(values[0])} ~ ${formatDate(values[1])}`
|
|
391
392
|
calendarShow.value = false
|
|
392
393
|
}
|
|
393
394
|
|
|
@@ -446,7 +447,7 @@ function init() {
|
|
|
446
447
|
}
|
|
447
448
|
if (attr.queryFormDefault) {
|
|
448
449
|
// console.log(querySelectDefaultValue.value)
|
|
449
|
-
querySelectDefaultValue.value.push(attr.queryFormDefault)
|
|
450
|
+
querySelectDefaultValue.value.push(...attr.queryFormDefault)
|
|
450
451
|
// querySelectDefaultValue.value = attr.queryFormDefault
|
|
451
452
|
}
|
|
452
453
|
}
|
|
@@ -806,7 +807,7 @@ function handleAddressConfirm(location) {
|
|
|
806
807
|
<!-- 日历选择-查询 -->
|
|
807
808
|
<VanField
|
|
808
809
|
v-if="attr.type === 'rangePicker' && mode === '查询' && showItem"
|
|
809
|
-
v-model="(
|
|
810
|
+
v-model="(pickerValue as string | number)"
|
|
810
811
|
is-link
|
|
811
812
|
readonly
|
|
812
813
|
name="rangePicker"
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import XCellList from '@af-mobile-client-vue3/components/data/XCellList/index.vue'
|
|
3
3
|
import NormalDataLayout from '@af-mobile-client-vue3/components/layout/NormalDataLayout/index.vue'
|
|
4
|
+
import { useUserStore } from '@af-mobile-client-vue3/stores/modules/user'
|
|
4
5
|
import { defineEmits, ref } from 'vue'
|
|
5
6
|
import { useRouter } from 'vue-router'
|
|
6
7
|
|
|
7
8
|
// 定义事件
|
|
8
9
|
const emit = defineEmits(['deleteRow'])
|
|
10
|
+
const userInfo = useUserStore().getUserInfo()
|
|
9
11
|
// 访问路由
|
|
10
12
|
const router = useRouter()
|
|
11
13
|
// 获取默认值
|
|
@@ -89,6 +91,7 @@ function addOption(callback) {
|
|
|
89
91
|
|
|
90
92
|
// 修改功能
|
|
91
93
|
function updateRow(result, callback) {
|
|
94
|
+
console.log('用户----', userInfo)
|
|
92
95
|
router.push({
|
|
93
96
|
name: 'XFormGroupView',
|
|
94
97
|
// params: { id: result.o_id, openid: result.o_id },
|
|
@@ -118,6 +121,7 @@ function deleteRow(result) {
|
|
|
118
121
|
:config-name="configName"
|
|
119
122
|
:service-name="serviceName"
|
|
120
123
|
:id-key="idKey"
|
|
124
|
+
:fix-query-form="{ u_f_price_state: ['生效', '待生效'] }"
|
|
121
125
|
@to-detail="toDetail"
|
|
122
126
|
@delete-row="deleteRow"
|
|
123
127
|
@update="updateRow"
|
|
@@ -159,6 +159,7 @@ function closeWindows() {
|
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
async function afterGeneral(result) {
|
|
162
|
+
console.log('用户根本---', result)
|
|
162
163
|
const user: UserInfo = {
|
|
163
164
|
id: result.id,
|
|
164
165
|
username: result.ename,
|
|
@@ -167,6 +168,10 @@ async function afterGeneral(result) {
|
|
|
167
168
|
avatar: result.avatar ? result.avatar : setting.getSetting()?.defaultAvatarUrl,
|
|
168
169
|
functions: result.functions,
|
|
169
170
|
rolestr: result.rolestr,
|
|
171
|
+
f_operator: result.name,
|
|
172
|
+
f_operatorid: result.id,
|
|
173
|
+
f_orgid: result.orgid,
|
|
174
|
+
f_orgname: result.orgs,
|
|
170
175
|
}
|
|
171
176
|
userState.setUserInfo(user)
|
|
172
177
|
// 如果result中没有返回 权限 需要主动获取权限列表
|