vue2-client 1.22.3 → 1.22.5

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.
Files changed (90) hide show
  1. package/.env.his +19 -19
  2. package/.idea/.name +1 -0
  3. package/.idea/MarsCodeWorkspaceAppSettings.xml +8 -0
  4. package/.idea/deployment.xml +14 -0
  5. package/.idea/gradle.xml +7 -0
  6. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  7. package/.idea/libraries/contour_plot.xml +9 -0
  8. package/.idea/material_theme_project_new.xml +18 -0
  9. package/.idea/misc.xml +87 -5
  10. package/package.json +1 -1
  11. package/src/base-client/components/common/HIS/HForm/HForm.vue +1186 -1186
  12. package/src/base-client/components/common/XMarkdownViewer/demo.vue +102 -102
  13. package/src/base-client/components/his/HAi/HAi.vue +1177 -1177
  14. package/src/base-client/components/his/XTransfer/index.md +327 -327
  15. package/src/base-client/plugins/GetLoginInfoService.js +4 -4
  16. package/src/pages/login/Login.vue +9 -7
  17. package/src/pages/login/LoginV3.vue +9 -7
  18. package/src/utils/login.js +8 -19
  19. package/.history/.eslintrc_20260521171150.js +0 -74
  20. package/.history/.eslintrc_20260521171213.js +0 -74
  21. package/.history/src/base-client/components/common/HIS/HAddNativeForm/HAddNativeForm_20260601154443.vue +0 -726
  22. package/.history/src/base-client/components/common/HIS/HAddNativeForm/HAddNativeForm_20260601154700.vue +0 -478
  23. package/.history/src/base-client/components/common/HIS/HButtons/HButtons_20260512175435.vue +0 -706
  24. package/.history/src/base-client/components/common/HIS/HButtons/HButtons_20260512175450.vue +0 -694
  25. package/.history/src/base-client/components/common/HIS/HButtons/HButtons_20260611152602.vue +0 -755
  26. package/.history/src/base-client/components/common/HIS/HForm/HForm_20260513145941.vue +0 -524
  27. package/.history/src/base-client/components/common/HIS/HForm/HForm_20260513153133.vue +0 -731
  28. package/.history/src/base-client/components/common/HIS/HForm/HForm_20260513160316.vue +0 -525
  29. package/.history/src/base-client/components/common/HIS/HForm/HForm_20260601144150.vue +0 -1046
  30. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260310142713.vue +0 -512
  31. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260310145118.vue +0 -511
  32. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260311094834.vue +0 -696
  33. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260320143028.vue +0 -693
  34. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260409101450.vue +0 -677
  35. package/.history/src/base-client/components/common/HIS/HTab/HTab_20260508164645.vue +0 -758
  36. package/.history/src/base-client/components/common/HIS/HTab/HTab_20260508164714.vue +0 -693
  37. package/.history/src/base-client/components/common/HIS/HTab/HTab_20260508171651.vue +0 -716
  38. package/.history/src/base-client/components/common/HIS/HTab/HTab_20260509133717.vue +0 -695
  39. package/.history/src/base-client/components/common/HIS/HTab/HTab_20260509171115.vue +0 -664
  40. package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513140637.vue +0 -1455
  41. package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513140935.vue +0 -1441
  42. package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513150818.vue +0 -1441
  43. package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513153119.vue +0 -1442
  44. package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513153126.vue +0 -1486
  45. package/.history/src/base-client/components/common/XForm/XFormItem_20260513140854.vue +0 -1607
  46. package/.history/src/base-client/components/common/XMarkdownViewer/XMarkdownViewer_20260519140403.vue +0 -643
  47. package/.history/src/base-client/components/common/XMarkdownViewer/XMarkdownViewer_20260519140829.vue +0 -628
  48. package/.history/src/base-client/components/common/XMarkdownViewer/demo_20260519142824.vue +0 -104
  49. package/.history/src/base-client/components/common/XMarkdownViewer/demo_20260519143155.vue +0 -102
  50. package/.history/src/base-client/components/common/XReportGrid/XReport_20260309171231.vue +0 -1241
  51. package/.history/src/base-client/components/common/XReportGrid/XReport_20260309171441.vue +0 -1223
  52. package/.history/src/base-client/components/his/HAi/HAi_20260612174826.vue +0 -472
  53. package/.history/src/base-client/components/his/HAi/HAi_20260612175839.vue +0 -538
  54. package/.history/src/base-client/components/his/HAi/HAi_20260615103331.vue +0 -650
  55. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260424134504.vue +0 -1469
  56. package/.history/src/base-client/components/his/XSidebar/XSidebar_20260610171133.vue +0 -788
  57. package/.history/src/base-client/components/his/XSidebar/XSidebar_20260610171151.vue +0 -780
  58. package/.history/src/base-client/components/his/XTransfer/XTransfer_20260511170841.vue +0 -585
  59. package/.history/src/base-client/components/his/XTransfer/XTransfer_20260511171138.vue +0 -787
  60. package/.history/src/base-client/components/his/XTransfer/XTransfer_20260512141830.vue +0 -739
  61. package/.history/src/components/STable/index_20260409155138.js +0 -806
  62. package/.history/src/components/STable/index_20260409155218.js +0 -814
  63. package/.history/src/expression/core/Expression_20260305164427.js +0 -1371
  64. package/.history/src/expression/core/Expression_20260305170258.js +0 -1358
  65. package/.history/src/expression/core/Program_20260305111830.js +0 -944
  66. package/.history/src/expression/core/Program_20260305112041.js +0 -931
  67. package/.history/src/logic/LogicRunner_20260304154306.js +0 -170
  68. package/.history/src/logic/LogicRunner_20260304155553.js +0 -112
  69. package/.history/src/logic/LogicRunner_20260305105834.js +0 -112
  70. package/.history/src/logic/LogicRunner_20260305112718.js +0 -129
  71. package/.history/src/logic/LogicRunner_20260305182436.js +0 -133
  72. package/.history/src/logic/LogicRunner_20260306151301.js +0 -213
  73. package/.history/src/logic/LogicRunner_20260306152419.js +0 -213
  74. package/.history/src/logic/plugins/common/DateTools_20260305154159.js +0 -61
  75. package/.history/src/logic/plugins/common/DateTools_20260305154217.js +0 -44
  76. package/.history/src/logic/plugins/common/DateTools_20260305161014.js +0 -44
  77. package/.history/src/logic/plugins/common/HttpTools_20260305164352.js +0 -80
  78. package/.history/src/logic/plugins/common/HttpTools_20260305170258.js +0 -75
  79. package/.history/src/logic/plugins/common/HttpTools_20260305171634.js +0 -75
  80. package/.history/src/logic/plugins/common/HttpTools_20260306152419.js +0 -72
  81. package/.history/src/services/api/restTools_20260427142149.js +0 -245
  82. package/.history/src/services/api/restTools_20260427142853.js +0 -230
  83. package/.history/src/services/api/restTools_20260519135558.js +0 -230
  84. package/.history/src/services/api/restTools_20260519140825.js +0 -230
  85. package/.history/src/services/api/restTools_20260519151223.js +0 -230
  86. package/.history/src/utils/indexedDB_20260306150918.js +0 -593
  87. package/.history/src/utils/indexedDB_20260306151301.js +0 -586
  88. package/.idea/codeStyles/Project.xml +0 -62
  89. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  90. package/preview-input-box.html +0 -180
@@ -160,9 +160,10 @@ export default {
160
160
  const encrypt = new JSEncrypt()
161
161
  encrypt.setPublicKey('MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqPvovSfXcwBbW8cKMCgwqNpsYuzF8RPAPFb7LGsnVo44JhM/xxzDyzoYtdfNmtbIuKVi9PzIsyp6rg+09gbuI6UGwBZ5DWBDBMqv5MPdOF5dCQkB2Bbr5yPfURPENypUz+pBFBg41d+BC+rwRiXELwKy7Y9caD/MtJyHydj8OUwIDAQAB')
162
162
  const data = encrypt.encrypt(JSON.stringify({ username: name, password: password }))
163
+ const jwt = res.jwtNew
163
164
  // 获取路由配置
164
165
  getRoutesConfig(data, this.routeName).then(result => {
165
- this.$login.login(result).then(() => {
166
+ this.$login.login(result, jwt).then(() => {
166
167
  // V3任何情况首位加入资源管理
167
168
  const resourceManageMain = {
168
169
  name: '资源管理',
@@ -172,7 +173,7 @@ export default {
172
173
  }
173
174
  result.functions.unshift(resourceManageMain)
174
175
  this.afterGeneral(result)
175
- this.setAccessToken(data)
176
+ this.setAccessToken(data, jwt)
176
177
  if (result.deps === '用户工单登记') {
177
178
  this.$router.push(this.ticketPage).catch(() => {})
178
179
  } else {
@@ -216,14 +217,15 @@ export default {
216
217
  indexedDB.clear()
217
218
  this.$message.success(timeFix().CN + `,${result.name} 欢迎回来`, 3)
218
219
  },
219
- setAccessToken (data) {
220
- if (data) {
221
- localStorage.setItem(ACCESS_TOKEN, data)
222
- let timestamp = new Date().getTime()// 当前的时间戳
220
+ setAccessToken (data, jwt) {
221
+ const token = jwt || data
222
+ if (token) {
223
+ localStorage.setItem(ACCESS_TOKEN, token)
224
+ let timestamp = new Date().getTime() // 当前的时间戳
223
225
  timestamp = timestamp + 12 * 60 * 60 * 1000
224
226
  // 格式化时间获取年月日, 登陆过期时间
225
227
  const dateAfter = new Date(timestamp)
226
- setAuthorization({ token: data, expireAt: dateAfter })
228
+ setAuthorization({ token: token, expireAt: dateAfter })
227
229
  }
228
230
  }
229
231
  }
@@ -159,9 +159,10 @@ export default {
159
159
  const encrypt = new JSEncrypt()
160
160
  encrypt.setPublicKey('MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqPvovSfXcwBbW8cKMCgwqNpsYuzF8RPAPFb7LGsnVo44JhM/xxzDyzoYtdfNmtbIuKVi9PzIsyp6rg+09gbuI6UGwBZ5DWBDBMqv5MPdOF5dCQkB2Bbr5yPfURPENypUz+pBFBg41d+BC+rwRiXELwKy7Y9caD/MtJyHydj8OUwIDAQAB')
161
161
  const data = encrypt.encrypt(JSON.stringify({ username: name, password: password }))
162
+ const jwt = res.jwtNew
162
163
  // 获取路由配置
163
164
  getRoutesConfig(data, this.routeName).then(result => {
164
- this.$login.login(result).then(() => {
165
+ this.$login.login(result, jwt).then(() => {
165
166
  // V3任何情况首位加入资源管理
166
167
  const resourceManageMain = {
167
168
  name: '资源管理',
@@ -171,7 +172,7 @@ export default {
171
172
  }
172
173
  result.functions.unshift(resourceManageMain)
173
174
  this.afterGeneral(result)
174
- this.setAccessToken(data)
175
+ this.setAccessToken(data, jwt)
175
176
  if (result.deps === '用户工单登记') {
176
177
  this.$router.push(this.ticketPage).catch(() => {})
177
178
  } else {
@@ -215,14 +216,15 @@ export default {
215
216
  indexedDB.clear()
216
217
  this.$message.success(timeFix().CN + `,${result.name} 欢迎回来`, 3)
217
218
  },
218
- setAccessToken (data) {
219
- if (data) {
220
- localStorage.setItem(ACCESS_TOKEN, data)
221
- let timestamp = new Date().getTime()// 当前的时间戳
219
+ setAccessToken (data, jwt) {
220
+ const token = jwt || data
221
+ if (token) {
222
+ localStorage.setItem(ACCESS_TOKEN, token)
223
+ let timestamp = new Date().getTime() // 当前的时间戳
222
224
  timestamp = timestamp + 12 * 60 * 60 * 1000
223
225
  // 格式化时间获取年月日, 登陆过期时间
224
226
  const dateAfter = new Date(timestamp)
225
- setAuthorization({ token: data, expireAt: dateAfter })
227
+ setAuthorization({ token: token, expireAt: dateAfter })
226
228
  }
227
229
  }
228
230
  }
@@ -42,27 +42,15 @@ export function checkSingleAuthorization(authType = AUTH_TYPE.BEARER, token) {
42
42
  return false
43
43
  }
44
44
 
45
- function setSingleAuthorization(auth, authType = AUTH_TYPE.BEARER) {
46
- switch (authType) {
47
- case AUTH_TYPE.BEARER:
48
- localStorage.setItem(V4_ACCESS_TOKEN, 'Bearer ' + auth.token)
49
- break
50
- case AUTH_TYPE.BASIC:
51
- case AUTH_TYPE.AUTH1:
52
- case AUTH_TYPE.AUTH2:
53
- default:
54
- break
55
- }
56
- }
57
-
58
- function setAccessToken(data) {
59
- if (data) {
60
- localStorage.setItem(ACCESS_TOKEN, data)
45
+ function setAccessToken(data, jwt) {
46
+ const token = jwt || data
47
+ if (token) {
48
+ localStorage.setItem(ACCESS_TOKEN, token)
61
49
  let timestamp = new Date().getTime() // 当前的时间戳
62
50
  timestamp = timestamp + 12 * 60 * 60 * 1000
63
51
  // 格式化时间获取年月日, 登陆过期时间
64
52
  const dateAfter = new Date(timestamp)
65
- setSingleAuthorization({ token: data, expireAt: dateAfter })
53
+ setAuthorization({ token: token, expireAt: dateAfter })
66
54
  }
67
55
  }
68
56
 
@@ -108,11 +96,12 @@ function afterLogin(res, options) {
108
96
  const data = encrypt.encrypt(
109
97
  JSON.stringify({ username: name, password: password })
110
98
  )
99
+ const jwt = res.jwtNew
111
100
  // 获取路由配置
112
101
  getRoutesConfig(data, setting.routeName)
113
102
  .then((result) => {
114
103
  Vue.$login
115
- .login(result)
104
+ .login(result, jwt)
116
105
  .then(() => {
117
106
  // V3任何情况首位加入资源管理
118
107
  const resourceManageMain = {
@@ -123,7 +112,7 @@ function afterLogin(res, options) {
123
112
  }
124
113
  result.functions.unshift(resourceManageMain)
125
114
  afterGeneral(result, options)
126
- setAccessToken(data)
115
+ setAccessToken(data, jwt)
127
116
  if (result.deps === '用户工单登记') {
128
117
  router.push(setting.ticketPage).catch(() => {
129
118
  })
@@ -1,74 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- env: {
4
- node: true
5
- },
6
- // prettier 放最后,自动关闭所有与 Prettier 冲突的格式规则
7
- extends: ['plugin:vue/essential', 'plugin:vue/strongly-recommended', 'plugin:vue/vue3-recommended', '@vue/standard', 'prettier'],
8
- rules: {
9
- camelcase: 'off',
10
- 'comma-dangle': 'off',
11
- 'no-console': 'off',
12
- 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
13
- 'generator-star-spacing': 'off',
14
- 'no-mixed-operators': 0,
15
- 'vue/max-attributes-per-line': 'off',
16
- 'vue/attribute-hyphenation': 0,
17
- 'vue/html-self-closing': 0,
18
- 'vue/component-name-in-template-casing': 0,
19
- 'vue/html-closing-bracket-spacing': 0,
20
- 'vue/singleline-html-element-content-newline': 0,
21
- 'vue/no-unused-components': 0,
22
- 'vue/multiline-html-element-content-newline': 0,
23
- 'vue/no-use-v-if-with-v-for': 0,
24
- 'vue/html-closing-bracket-newline': 0,
25
- 'vue/no-parsing-error': 0,
26
- 'vue/name-property-casing': 0,
27
- 'vue/multi-word-component-names': 0,
28
- 'vue/no-mutating-props': 0,
29
- 'no-tabs': 0,
30
- 'multiline-ternary': 0,
31
- 'object-shorthand': 0,
32
- quotes: [
33
- 2,
34
- 'single',
35
- {
36
- avoidEscape: true,
37
- allowTemplateLiterals: true
38
- }
39
- ],
40
- semi: [
41
- 2,
42
- 'never',
43
- {
44
- beforeStatementContinuationChars: 'never'
45
- }
46
- ],
47
- 'no-delete-var': 2,
48
- 'prefer-const': [
49
- 2,
50
- {
51
- ignoreReadBeforeAssign: false
52
- }
53
- ],
54
- 'template-curly-spacing': 'off',
55
- indent: 'off',
56
- // 必须使用全等: false
57
- eqeqeq: 0,
58
- // 可以使用!! 双重否定
59
- 'no-extra-boolean-cast': 'off',
60
- // 关闭函数名后空格检查,跟随 Prettier 默认风格 function foo()
61
- 'space-before-function-paren': 'off'
62
- },
63
- parserOptions: {
64
- parser: '@babel/eslint-parser'
65
- },
66
- overrides: [
67
- {
68
- files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'],
69
- env: {
70
- jest: true
71
- }
72
- }
73
- ]
74
- }
@@ -1,74 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- env: {
4
- node: true
5
- },
6
- // prettier 放最后,自动关闭所有与 Prettier 冲突的格式规则
7
- extends: ['plugin:vue/essential', 'plugin:vue/strongly-recommended', '@vue/standard', 'prettier'],
8
- rules: {
9
- camelcase: 'off',
10
- 'comma-dangle': 'off',
11
- 'no-console': 'off',
12
- 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
13
- 'generator-star-spacing': 'off',
14
- 'no-mixed-operators': 0,
15
- 'vue/max-attributes-per-line': 'off',
16
- 'vue/attribute-hyphenation': 0,
17
- 'vue/html-self-closing': 0,
18
- 'vue/component-name-in-template-casing': 0,
19
- 'vue/html-closing-bracket-spacing': 0,
20
- 'vue/singleline-html-element-content-newline': 0,
21
- 'vue/no-unused-components': 0,
22
- 'vue/multiline-html-element-content-newline': 0,
23
- 'vue/no-use-v-if-with-v-for': 0,
24
- 'vue/html-closing-bracket-newline': 0,
25
- 'vue/no-parsing-error': 0,
26
- 'vue/name-property-casing': 0,
27
- 'vue/multi-word-component-names': 0,
28
- 'vue/no-mutating-props': 0,
29
- 'no-tabs': 0,
30
- 'multiline-ternary': 0,
31
- 'object-shorthand': 0,
32
- quotes: [
33
- 2,
34
- 'single',
35
- {
36
- avoidEscape: true,
37
- allowTemplateLiterals: true
38
- }
39
- ],
40
- semi: [
41
- 2,
42
- 'never',
43
- {
44
- beforeStatementContinuationChars: 'never'
45
- }
46
- ],
47
- 'no-delete-var': 2,
48
- 'prefer-const': [
49
- 2,
50
- {
51
- ignoreReadBeforeAssign: false
52
- }
53
- ],
54
- 'template-curly-spacing': 'off',
55
- indent: 'off',
56
- // 必须使用全等: false
57
- eqeqeq: 0,
58
- // 可以使用!! 双重否定
59
- 'no-extra-boolean-cast': 'off',
60
- // 关闭函数名后空格检查,跟随 Prettier 默认风格 function foo()
61
- 'space-before-function-paren': 'off'
62
- },
63
- parserOptions: {
64
- parser: '@babel/eslint-parser'
65
- },
66
- overrides: [
67
- {
68
- files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'],
69
- env: {
70
- jest: true
71
- }
72
- }
73
- ]
74
- }