vue2-client 1.22.3 → 1.22.4

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 (88) 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/utils/login.js +11 -11
  17. package/.history/.eslintrc_20260521171150.js +0 -74
  18. package/.history/.eslintrc_20260521171213.js +0 -74
  19. package/.history/src/base-client/components/common/HIS/HAddNativeForm/HAddNativeForm_20260601154443.vue +0 -726
  20. package/.history/src/base-client/components/common/HIS/HAddNativeForm/HAddNativeForm_20260601154700.vue +0 -478
  21. package/.history/src/base-client/components/common/HIS/HButtons/HButtons_20260512175435.vue +0 -706
  22. package/.history/src/base-client/components/common/HIS/HButtons/HButtons_20260512175450.vue +0 -694
  23. package/.history/src/base-client/components/common/HIS/HButtons/HButtons_20260611152602.vue +0 -755
  24. package/.history/src/base-client/components/common/HIS/HForm/HForm_20260513145941.vue +0 -524
  25. package/.history/src/base-client/components/common/HIS/HForm/HForm_20260513153133.vue +0 -731
  26. package/.history/src/base-client/components/common/HIS/HForm/HForm_20260513160316.vue +0 -525
  27. package/.history/src/base-client/components/common/HIS/HForm/HForm_20260601144150.vue +0 -1046
  28. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260310142713.vue +0 -512
  29. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260310145118.vue +0 -511
  30. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260311094834.vue +0 -696
  31. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260320143028.vue +0 -693
  32. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260409101450.vue +0 -677
  33. package/.history/src/base-client/components/common/HIS/HTab/HTab_20260508164645.vue +0 -758
  34. package/.history/src/base-client/components/common/HIS/HTab/HTab_20260508164714.vue +0 -693
  35. package/.history/src/base-client/components/common/HIS/HTab/HTab_20260508171651.vue +0 -716
  36. package/.history/src/base-client/components/common/HIS/HTab/HTab_20260509133717.vue +0 -695
  37. package/.history/src/base-client/components/common/HIS/HTab/HTab_20260509171115.vue +0 -664
  38. package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513140637.vue +0 -1455
  39. package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513140935.vue +0 -1441
  40. package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513150818.vue +0 -1441
  41. package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513153119.vue +0 -1442
  42. package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513153126.vue +0 -1486
  43. package/.history/src/base-client/components/common/XForm/XFormItem_20260513140854.vue +0 -1607
  44. package/.history/src/base-client/components/common/XMarkdownViewer/XMarkdownViewer_20260519140403.vue +0 -643
  45. package/.history/src/base-client/components/common/XMarkdownViewer/XMarkdownViewer_20260519140829.vue +0 -628
  46. package/.history/src/base-client/components/common/XMarkdownViewer/demo_20260519142824.vue +0 -104
  47. package/.history/src/base-client/components/common/XMarkdownViewer/demo_20260519143155.vue +0 -102
  48. package/.history/src/base-client/components/common/XReportGrid/XReport_20260309171231.vue +0 -1241
  49. package/.history/src/base-client/components/common/XReportGrid/XReport_20260309171441.vue +0 -1223
  50. package/.history/src/base-client/components/his/HAi/HAi_20260612174826.vue +0 -472
  51. package/.history/src/base-client/components/his/HAi/HAi_20260612175839.vue +0 -538
  52. package/.history/src/base-client/components/his/HAi/HAi_20260615103331.vue +0 -650
  53. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260424134504.vue +0 -1469
  54. package/.history/src/base-client/components/his/XSidebar/XSidebar_20260610171133.vue +0 -788
  55. package/.history/src/base-client/components/his/XSidebar/XSidebar_20260610171151.vue +0 -780
  56. package/.history/src/base-client/components/his/XTransfer/XTransfer_20260511170841.vue +0 -585
  57. package/.history/src/base-client/components/his/XTransfer/XTransfer_20260511171138.vue +0 -787
  58. package/.history/src/base-client/components/his/XTransfer/XTransfer_20260512141830.vue +0 -739
  59. package/.history/src/components/STable/index_20260409155138.js +0 -806
  60. package/.history/src/components/STable/index_20260409155218.js +0 -814
  61. package/.history/src/expression/core/Expression_20260305164427.js +0 -1371
  62. package/.history/src/expression/core/Expression_20260305170258.js +0 -1358
  63. package/.history/src/expression/core/Program_20260305111830.js +0 -944
  64. package/.history/src/expression/core/Program_20260305112041.js +0 -931
  65. package/.history/src/logic/LogicRunner_20260304154306.js +0 -170
  66. package/.history/src/logic/LogicRunner_20260304155553.js +0 -112
  67. package/.history/src/logic/LogicRunner_20260305105834.js +0 -112
  68. package/.history/src/logic/LogicRunner_20260305112718.js +0 -129
  69. package/.history/src/logic/LogicRunner_20260305182436.js +0 -133
  70. package/.history/src/logic/LogicRunner_20260306151301.js +0 -213
  71. package/.history/src/logic/LogicRunner_20260306152419.js +0 -213
  72. package/.history/src/logic/plugins/common/DateTools_20260305154159.js +0 -61
  73. package/.history/src/logic/plugins/common/DateTools_20260305154217.js +0 -44
  74. package/.history/src/logic/plugins/common/DateTools_20260305161014.js +0 -44
  75. package/.history/src/logic/plugins/common/HttpTools_20260305164352.js +0 -80
  76. package/.history/src/logic/plugins/common/HttpTools_20260305170258.js +0 -75
  77. package/.history/src/logic/plugins/common/HttpTools_20260305171634.js +0 -75
  78. package/.history/src/logic/plugins/common/HttpTools_20260306152419.js +0 -72
  79. package/.history/src/services/api/restTools_20260427142149.js +0 -245
  80. package/.history/src/services/api/restTools_20260427142853.js +0 -230
  81. package/.history/src/services/api/restTools_20260519135558.js +0 -230
  82. package/.history/src/services/api/restTools_20260519140825.js +0 -230
  83. package/.history/src/services/api/restTools_20260519151223.js +0 -230
  84. package/.history/src/utils/indexedDB_20260306150918.js +0 -593
  85. package/.history/src/utils/indexedDB_20260306151301.js +0 -586
  86. package/.idea/codeStyles/Project.xml +0 -62
  87. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  88. package/preview-input-box.html +0 -180
@@ -55,15 +55,14 @@ function setSingleAuthorization(auth, authType = AUTH_TYPE.BEARER) {
55
55
  }
56
56
  }
57
57
 
58
- function setAccessToken(data) {
59
- if (data) {
60
- localStorage.setItem(ACCESS_TOKEN, data)
61
- let timestamp = new Date().getTime() // 当前的时间戳
62
- timestamp = timestamp + 12 * 60 * 60 * 1000
63
- // 格式化时间获取年月日, 登陆过期时间
64
- const dateAfter = new Date(timestamp)
65
- setSingleAuthorization({ token: data, expireAt: dateAfter })
66
- }
58
+ function setAccessToken(data, jwt) {
59
+ const token = jwt || data
60
+ localStorage.setItem(ACCESS_TOKEN, token)
61
+ let timestamp = new Date().getTime() // 当前的时间戳
62
+ timestamp = timestamp + 12 * 60 * 60 * 1000
63
+ // 格式化时间获取年月日, 登陆过期时间
64
+ const dateAfter = new Date(timestamp)
65
+ setSingleAuthorization({ token: token, expireAt: dateAfter })
67
66
  }
68
67
 
69
68
  function afterGeneral(result, options) {
@@ -108,11 +107,12 @@ function afterLogin(res, options) {
108
107
  const data = encrypt.encrypt(
109
108
  JSON.stringify({ username: name, password: password })
110
109
  )
110
+ const jwt = res.jwtNew
111
111
  // 获取路由配置
112
112
  getRoutesConfig(data, setting.routeName)
113
113
  .then((result) => {
114
114
  Vue.$login
115
- .login(result)
115
+ .login(result, jwt)
116
116
  .then(() => {
117
117
  // V3任何情况首位加入资源管理
118
118
  const resourceManageMain = {
@@ -123,7 +123,7 @@ function afterLogin(res, options) {
123
123
  }
124
124
  result.functions.unshift(resourceManageMain)
125
125
  afterGeneral(result, options)
126
- setAccessToken(data)
126
+ setAccessToken(data, jwt)
127
127
  if (result.deps === '用户工单登记') {
128
128
  router.push(setting.ticketPage).catch(() => {
129
129
  })
@@ -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
- }