ci-plus 1.3.2 → 1.3.3

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": "ci-plus",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "ci组件库",
5
5
  "main": "./index.ts",
6
6
  "scripts": {
@@ -12,6 +12,14 @@ import apis from '@/utils/baseApi'
12
12
  import axios from 'axios'
13
13
  import { ref } from 'vue'
14
14
  const { storageModule } = apis
15
+ const UserData = JSON.parse(localStorage.getItem('UserData') as string)
16
+ let users = {
17
+ org_id: UserData.orgId || '',
18
+ user_code: UserData.loginName || '',
19
+ user_name: UserData.name || '',
20
+ deptId: UserData.deptId || '',
21
+ }
22
+ let user = JSON.parse(JSON.stringify(users))
15
23
 
16
24
  let baseUrls = storageModule //new URL(storageModule).origin + '/' // 图片的地址前缀
17
25
  let apiurl = storageModule + 'scan_card_code_get/'
@@ -28,6 +36,7 @@ export const cardPrint = (
28
36
  params: {
29
37
  page: 1,
30
38
  ...cParams,
39
+ ...user,
31
40
  },
32
41
  })
33
42
  .then((_res: { data: { code: number; data: any[]; msg: MessageParamsWithType } }) => {