vue2-client 1.15.116 → 1.15.118

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.15.116",
3
+ "version": "1.15.118",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -8,55 +8,9 @@ export default {
8
8
  return {
9
9
  visible: false,
10
10
  userinfo: {
11
- f_userinfo_code: '11058432',
12
- f_user_name: '李四',
13
- f_userinfo_id: 88025,
14
- f_used_name: null,
15
- f_user_phone: '13201496890',
16
- f_user_state: '正常',
17
- f_idnumber: null,
18
- f_house_type: '楼房',
19
- f_people_num: 0,
20
- f_user_level: null,
21
- f_book_no: null,
22
- f_address: null,
23
- f_meter_type: null,
24
- f_meter_brand: null,
25
- f_meter_style: null,
26
- f_metertitles: null,
27
- f_aroundmeter: null,
28
- f_initial_base: null,
29
- f_bqf_type: null,
30
- f_gas_person: null,
31
- f_use_limit: null,
32
- f_gas_date: null,
33
- f_position: null,
34
- f_install_person: null,
35
- f_inputtor: null,
36
- f_book_name: null,
37
- f_adjustable_name: null,
38
- f_price_name: null,
39
- f_price_type: null,
40
- f_user_type: null,
41
- f_gasproperties: null,
42
- f_comments: null,
43
- f_price_detail: null,
44
- f_taxpayer_id: '123',
45
- f_paper_name: '123',
46
- f_address_phone: '111',
47
- f_paper_account: '111',
48
- f_rent_name: null,
49
- f_zuhu_phone: null,
50
- f_meternumber: null,
51
- devices: [
52
- {
53
- f_devices_type: '灶具',
54
- f_devices_no: null,
55
- f_brand: null,
56
- f_devices_model: '123',
57
- f_devices_num: null
58
- }
59
- ]
11
+ f_userinfo_code: '143400000003',
12
+ f_gasbrand: '测试表品牌',
13
+ f_address: '11'
60
14
  }
61
15
  }
62
16
  },
@@ -87,7 +41,7 @@ export default {
87
41
  :visible="visible"
88
42
  @close="()=>{visible = false}"
89
43
  >
90
- <x-descriptions-group config-name="用户详情描述列表" :showLeftTab="true" :data="userinfo" service-name="af-system"/>
44
+ <x-descriptions-group config-name="测试Config" :showLeftTab="true" :data="userinfo" service-name="af-system"/>
91
45
  </a-drawer>
92
46
  </div>
93
47
  </template>
@@ -887,7 +887,7 @@ export default {
887
887
  if (this.attr.showQueryFormItemFunc) {
888
888
  this.debouncedShowQueryFormItemFunc = debounce(this.showQueryFormItemFunc, 100)
889
889
  // 执行一次
890
- this.showFormItemFunc()
890
+ this.showQueryFormItemFunc()
891
891
  }
892
892
  // 人员联动框增加监听
893
893
  if (this?.attr?.keyName?.toString()?.startsWith('search@根据表单项[') && this?.attr?.keyName?.toString().endsWith(']联动人员')) {
@@ -906,7 +906,12 @@ export default {
906
906
  queryParamsName () {
907
907
  if (this.attr.keyName.startsWith('function')) {
908
908
  // 调用异步函数获取内容
909
- return executeStrFunctionByContext(this, this.attr.keyName, [this.form, runLogic, this.mode, getConfigByNameAsync])
909
+ const obj = executeStrFunctionByContext(this, this.attr.keyName, [this.form, runLogic, this.mode, getConfigByNameAsync])
910
+ // 处理同步返回值
911
+ return this.handleQueryParamsResult(obj)
912
+ } else if (this.attr.keyName.startsWith('async ')) {
913
+ console.warn('此处不支持异步操作')
914
+ return ''
910
915
  } else {
911
916
  // 按现有方式处理
912
917
  return this.attr.keyName.split('@')[this.attr.keyName.split('@').length - 1]
@@ -998,6 +1003,24 @@ export default {
998
1003
  }
999
1004
  },
1000
1005
  methods: {
1006
+ // 处理 queryParams 结果并更新 rowChooseFixedQueryValue
1007
+ handleQueryParamsResult (obj) {
1008
+ let configName = ''
1009
+ if (obj && typeof obj === 'object') {
1010
+ // obj 是一个对象,并且不是数组
1011
+ if (Object.prototype.hasOwnProperty.call(obj, 'configName')) {
1012
+ configName = obj?.configName
1013
+ }
1014
+ if (Object.prototype.hasOwnProperty.call(obj, 'fixedQueryForm')) {
1015
+ if (obj?.fixedQueryForm && typeof obj?.fixedQueryForm === 'object') {
1016
+ this.rowChooseFixedQueryValue = Object.assign({}, this.rowChooseFixedQueryValue, obj.fixedQueryForm)
1017
+ }
1018
+ }
1019
+ } else if (obj && typeof obj === 'string') {
1020
+ configName = obj
1021
+ }
1022
+ return configName
1023
+ },
1001
1024
  // 根据selectValueType预处理options数据
1002
1025
  processOptionsForValueType (options) {
1003
1026
  return this.selectValueTypeHandler.processOptions(options, this.attr.selectValueType)
@@ -8,7 +8,7 @@
8
8
  @action="action"
9
9
  @selectRow="selectRow"
10
10
  @columnClick="columnClick"
11
- serviceName="af-revenue"
11
+ serviceName="af-system"
12
12
  ref="xFormTable">
13
13
  </x-form-table>
14
14
  </a-card>
@@ -26,7 +26,7 @@ export default {
26
26
  data () {
27
27
  return {
28
28
  // 查询配置文件名
29
- queryParamsName: 'UserFilesListCRUD',
29
+ queryParamsName: 'ceshiCRUD',
30
30
  // 新增表单固定值
31
31
  fixedAddForm: {},
32
32
  // 是否显示详情抽屉
@@ -198,7 +198,6 @@ export default {
198
198
  address: '西安市',
199
199
  position: positions[0]
200
200
  }, result)
201
- console.warn(JSON.stringify(user))
202
201
  this.setUser(user)
203
202
  this.setPermissions(Vue.$login.r || [])
204
203
  this.setRoles(result.rolestr?.split(',') || [])
@@ -56,11 +56,11 @@ path: 'example',
56
56
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo2.vue'),
57
57
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
58
58
  // component: () => import('@vue2-client/pages/addressSelect/addressDemo.vue'),
59
- component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
59
+ // component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
60
60
  // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
61
61
  // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
62
62
  // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
63
- // component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
63
+ component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
64
64
  // component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
65
65
  // component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
66
66
  // component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
@@ -176,7 +176,7 @@ const loginGuard = (to, form, next, options) => {
176
176
  }
177
177
  next()
178
178
  } else {
179
- const { store, message } = options
179
+ const { message } = options
180
180
  if (
181
181
  (!loginIgnore.includes(to) || to.name === '404') &&
182
182
  !checkAuthorization()
@@ -184,15 +184,15 @@ const loginGuard = (to, form, next, options) => {
184
184
  message.warning('登录已失效,请重新登录')
185
185
  next({ path: '/login' })
186
186
  } else {
187
- const roles = store.getters['account/roles']
188
- if (roles.length === 0 && !loginIgnore.includes(to)) {
189
- message.warning('登录已失效,请重新登录')
190
- logout().finally((res) => {
191
- next({ path: '/login' })
192
- })
193
- } else {
187
+ // const roles = store.getters['account/roles']
188
+ // if (roles.length === 0 && !loginIgnore.includes(to)) {
189
+ // message.warning('登录已失效,请重新登录')
190
+ // logout().finally((res) => {
191
+ // next({ path: '/login' })
192
+ // })
193
+ // } else {
194
194
  next()
195
- }
195
+ // }
196
196
  }
197
197
  }
198
198
  }