vue2-client 1.15.116 → 1.15.117

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.117",
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>
@@ -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,7 +56,7 @@ 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'),
@@ -66,7 +66,7 @@ path: 'example',
66
66
  // component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
67
67
  // component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
68
68
  // component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue'),
69
- // component: () => import('@vue2-client/base-client/components/his/XImportExcelButton/XFrontImportExcelDemo.vue'),
69
+ component: () => import('@vue2-client/base-client/components/his/XImportExcelButton/XFrontImportExcelDemo.vue'),
70
70
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
71
71
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
72
72
  // component: () => import('@vue2-client/pages/XPageViewExample/index.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
  }