vue2-client 1.22.21 → 1.22.22

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 (84) hide show
  1. package/.env.his +19 -19
  2. package/.idea/deployment.xml +14 -0
  3. package/.idea/inspectionProfiles/Project_Default.xml +11 -0
  4. package/.idea/misc.xml +5 -5
  5. package/package.json +1 -1
  6. package/src/base-client/components/common/HIS/HForm/HForm.vue +1186 -1186
  7. package/src/base-client/components/common/HIS/HTab/HTab.vue +790 -790
  8. package/src/base-client/components/common/XInspectionDetailDrawer/components/AiDeviceStatus.vue +25 -4
  9. package/src/base-client/components/common/XInspectionDetailDrawer/components/ImageAnnotationShow.vue +1371 -0
  10. package/src/base-client/components/common/XMarkdownViewer/demo.vue +102 -102
  11. package/src/base-client/components/his/XTransfer/index.md +327 -327
  12. package/src/utils/module-loader/VueSfcModuleCache.js +99 -99
  13. package/src/utils/module-loader/index.js +5 -5
  14. package/.history/.eslintrc_20260521171150.js +0 -74
  15. package/.history/.eslintrc_20260521171213.js +0 -74
  16. package/.history/src/base-client/components/common/HIS/HAddNativeForm/HAddNativeForm_20260601154443.vue +0 -726
  17. package/.history/src/base-client/components/common/HIS/HAddNativeForm/HAddNativeForm_20260601154700.vue +0 -478
  18. package/.history/src/base-client/components/common/HIS/HButtons/HButtons_20260512175435.vue +0 -706
  19. package/.history/src/base-client/components/common/HIS/HButtons/HButtons_20260512175450.vue +0 -694
  20. package/.history/src/base-client/components/common/HIS/HButtons/HButtons_20260611152602.vue +0 -755
  21. package/.history/src/base-client/components/common/HIS/HForm/HForm_20260513145941.vue +0 -524
  22. package/.history/src/base-client/components/common/HIS/HForm/HForm_20260513153133.vue +0 -731
  23. package/.history/src/base-client/components/common/HIS/HForm/HForm_20260513160316.vue +0 -525
  24. package/.history/src/base-client/components/common/HIS/HForm/HForm_20260601144150.vue +0 -1046
  25. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260310142713.vue +0 -512
  26. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260310145118.vue +0 -511
  27. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260311094834.vue +0 -696
  28. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260320143028.vue +0 -693
  29. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260409101450.vue +0 -677
  30. package/.history/src/base-client/components/common/HIS/HTab/HTab_20260625173703.vue +0 -767
  31. package/.history/src/base-client/components/common/HIS/HTab/HTab_20260626112425.vue +0 -803
  32. package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513140637.vue +0 -1455
  33. package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513140935.vue +0 -1441
  34. package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513150818.vue +0 -1441
  35. package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513153119.vue +0 -1442
  36. package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513153126.vue +0 -1486
  37. package/.history/src/base-client/components/common/XForm/XFormItem_20260513140854.vue +0 -1607
  38. package/.history/src/base-client/components/common/XMarkdownViewer/XMarkdownViewer_20260519140403.vue +0 -643
  39. package/.history/src/base-client/components/common/XMarkdownViewer/XMarkdownViewer_20260519140829.vue +0 -628
  40. package/.history/src/base-client/components/common/XMarkdownViewer/demo_20260519142824.vue +0 -104
  41. package/.history/src/base-client/components/common/XMarkdownViewer/demo_20260519143155.vue +0 -102
  42. package/.history/src/base-client/components/common/XReportGrid/XReport_20260309171231.vue +0 -1241
  43. package/.history/src/base-client/components/common/XReportGrid/XReport_20260309171441.vue +0 -1223
  44. package/.history/src/base-client/components/his/HAi/HAi_20260612174826.vue +0 -472
  45. package/.history/src/base-client/components/his/HAi/HAi_20260612175839.vue +0 -538
  46. package/.history/src/base-client/components/his/HAi/HAi_20260615103331.vue +0 -650
  47. package/.history/src/base-client/components/his/HAi/HAi_20260618140214.vue +0 -1396
  48. package/.history/src/base-client/components/his/HAi/HAi_20260618140556.vue +0 -1396
  49. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260424134504.vue +0 -1469
  50. package/.history/src/base-client/components/his/XSidebar/XSidebar_20260610171133.vue +0 -788
  51. package/.history/src/base-client/components/his/XSidebar/XSidebar_20260610171151.vue +0 -780
  52. package/.history/src/base-client/components/his/XTransfer/XTransfer_20260511170841.vue +0 -585
  53. package/.history/src/base-client/components/his/XTransfer/XTransfer_20260511171138.vue +0 -787
  54. package/.history/src/base-client/components/his/XTransfer/XTransfer_20260512141830.vue +0 -739
  55. package/.history/src/components/STable/index_20260409155138.js +0 -806
  56. package/.history/src/components/STable/index_20260409155218.js +0 -814
  57. package/.history/src/expression/core/Expression_20260305164427.js +0 -1371
  58. package/.history/src/expression/core/Expression_20260305170258.js +0 -1358
  59. package/.history/src/expression/core/Program_20260305111830.js +0 -944
  60. package/.history/src/expression/core/Program_20260305112041.js +0 -931
  61. package/.history/src/logic/LogicRunner_20260304154306.js +0 -170
  62. package/.history/src/logic/LogicRunner_20260304155553.js +0 -112
  63. package/.history/src/logic/LogicRunner_20260305105834.js +0 -112
  64. package/.history/src/logic/LogicRunner_20260305112718.js +0 -129
  65. package/.history/src/logic/LogicRunner_20260305182436.js +0 -133
  66. package/.history/src/logic/LogicRunner_20260306151301.js +0 -213
  67. package/.history/src/logic/LogicRunner_20260306152419.js +0 -213
  68. package/.history/src/logic/plugins/common/DateTools_20260305154159.js +0 -61
  69. package/.history/src/logic/plugins/common/DateTools_20260305154217.js +0 -44
  70. package/.history/src/logic/plugins/common/DateTools_20260305161014.js +0 -44
  71. package/.history/src/logic/plugins/common/HttpTools_20260305164352.js +0 -80
  72. package/.history/src/logic/plugins/common/HttpTools_20260305170258.js +0 -75
  73. package/.history/src/logic/plugins/common/HttpTools_20260305171634.js +0 -75
  74. package/.history/src/logic/plugins/common/HttpTools_20260306152419.js +0 -72
  75. package/.history/src/services/api/restTools_20260427142149.js +0 -245
  76. package/.history/src/services/api/restTools_20260427142853.js +0 -230
  77. package/.history/src/services/api/restTools_20260519135558.js +0 -230
  78. package/.history/src/services/api/restTools_20260519140825.js +0 -230
  79. package/.history/src/services/api/restTools_20260519151223.js +0 -230
  80. package/.history/src/utils/indexedDB_20260306150918.js +0 -593
  81. package/.history/src/utils/indexedDB_20260306151301.js +0 -586
  82. package/.idea/codeStyles/Project.xml +0 -62
  83. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  84. package/preview-input-box.html +0 -180
@@ -1,99 +1,99 @@
1
- /**
2
- * Vue SFC Module Cache 单例
3
- * 为 vue3-sfc-loader 提供统一的 moduleCache
4
- */
5
- import Vue from 'vue'
6
- import Vuex from 'vuex'
7
- import CloudVueSfcComponent from '@vue2-client/base-client/components/VueSfcComponent/CloudVueSfcComponent.vue'
8
- import Vue2ClientLoader from '@vue2-client/utils/module-loader/Vue2ClientModuleLoader'
9
-
10
- class VueSfcModuleCache {
11
- constructor() {
12
- if (VueSfcModuleCache.instance) {
13
- return VueSfcModuleCache.instance
14
- }
15
-
16
- this._cache = new Map()
17
- this._cachedObject = null
18
- this._initCache()
19
-
20
- VueSfcModuleCache.instance = this
21
- }
22
-
23
- /**
24
- * 初始化 moduleCache
25
- */
26
- _initCache() {
27
- this._cache.set('vue', Vue)
28
- this._cache.set('vuex', Vuex)
29
- this._cache.set('VueSfcModuleCache', this)
30
- this._cache.set('CloudVueSfcComponent', CloudVueSfcComponent)
31
-
32
- // 注入所有已缓存的 @vue2-client 组件
33
- const vue2ClientComponents = Vue2ClientLoader.getAllComponents()
34
- vue2ClientComponents.forEach((component, path) => {
35
- this._cache.set(path, component)
36
- })
37
- }
38
-
39
- /**
40
- * 获取缓存的模块
41
- * @param {string} key - 模块路径或名称
42
- * @returns {*}
43
- */
44
- get(key) {
45
- return this._cache.get(key)
46
- }
47
-
48
- /**
49
- * 设置缓存的模块
50
- * @param {string} key - 模块路径或名称
51
- * @param {*} value - 模块值
52
- */
53
- set(key, value) {
54
- this._cache.set(key, value)
55
- this._cachedObject = null
56
- }
57
-
58
- /**
59
- * 检查模块是否已缓存
60
- * @param {string} key - 模块路径或名称
61
- * @returns {boolean}
62
- */
63
- has(key) {
64
- return this._cache.has(key)
65
- }
66
-
67
- /**
68
- * 获取所有已缓存的模块(Map 格式)
69
- * @returns {Map}
70
- */
71
- getAll() {
72
- return new Map(this._cache)
73
- }
74
-
75
- /**
76
- * 获取所有已缓存的模块(普通对象格式,供 vue3-sfc-loader 使用)
77
- * @returns {Object}
78
- */
79
- toObject() {
80
- if (!this._cachedObject) {
81
- this._cachedObject = Object.fromEntries(this._cache)
82
- }
83
- return this._cachedObject
84
- }
85
-
86
- /**
87
- * 重置缓存
88
- */
89
- reset() {
90
- this._cache.clear()
91
- this._cachedObject = null
92
- this._initCache()
93
- }
94
- }
95
-
96
- // 创建单例
97
- const vueSfcModuleCache = new VueSfcModuleCache()
98
-
99
- export default vueSfcModuleCache
1
+ /**
2
+ * Vue SFC Module Cache 单例
3
+ * 为 vue3-sfc-loader 提供统一的 moduleCache
4
+ */
5
+ import Vue from 'vue'
6
+ import Vuex from 'vuex'
7
+ import CloudVueSfcComponent from '@vue2-client/base-client/components/VueSfcComponent/CloudVueSfcComponent.vue'
8
+ import Vue2ClientLoader from '@vue2-client/utils/module-loader/Vue2ClientModuleLoader'
9
+
10
+ class VueSfcModuleCache {
11
+ constructor() {
12
+ if (VueSfcModuleCache.instance) {
13
+ return VueSfcModuleCache.instance
14
+ }
15
+
16
+ this._cache = new Map()
17
+ this._cachedObject = null
18
+ this._initCache()
19
+
20
+ VueSfcModuleCache.instance = this
21
+ }
22
+
23
+ /**
24
+ * 初始化 moduleCache
25
+ */
26
+ _initCache() {
27
+ this._cache.set('vue', Vue)
28
+ this._cache.set('vuex', Vuex)
29
+ this._cache.set('VueSfcModuleCache', this)
30
+ this._cache.set('CloudVueSfcComponent', CloudVueSfcComponent)
31
+
32
+ // 注入所有已缓存的 @vue2-client 组件
33
+ const vue2ClientComponents = Vue2ClientLoader.getAllComponents()
34
+ vue2ClientComponents.forEach((component, path) => {
35
+ this._cache.set(path, component)
36
+ })
37
+ }
38
+
39
+ /**
40
+ * 获取缓存的模块
41
+ * @param {string} key - 模块路径或名称
42
+ * @returns {*}
43
+ */
44
+ get(key) {
45
+ return this._cache.get(key)
46
+ }
47
+
48
+ /**
49
+ * 设置缓存的模块
50
+ * @param {string} key - 模块路径或名称
51
+ * @param {*} value - 模块值
52
+ */
53
+ set(key, value) {
54
+ this._cache.set(key, value)
55
+ this._cachedObject = null
56
+ }
57
+
58
+ /**
59
+ * 检查模块是否已缓存
60
+ * @param {string} key - 模块路径或名称
61
+ * @returns {boolean}
62
+ */
63
+ has(key) {
64
+ return this._cache.has(key)
65
+ }
66
+
67
+ /**
68
+ * 获取所有已缓存的模块(Map 格式)
69
+ * @returns {Map}
70
+ */
71
+ getAll() {
72
+ return new Map(this._cache)
73
+ }
74
+
75
+ /**
76
+ * 获取所有已缓存的模块(普通对象格式,供 vue3-sfc-loader 使用)
77
+ * @returns {Object}
78
+ */
79
+ toObject() {
80
+ if (!this._cachedObject) {
81
+ this._cachedObject = Object.fromEntries(this._cache)
82
+ }
83
+ return this._cachedObject
84
+ }
85
+
86
+ /**
87
+ * 重置缓存
88
+ */
89
+ reset() {
90
+ this._cache.clear()
91
+ this._cachedObject = null
92
+ this._initCache()
93
+ }
94
+ }
95
+
96
+ // 创建单例
97
+ const vueSfcModuleCache = new VueSfcModuleCache()
98
+
99
+ export default vueSfcModuleCache
@@ -1,5 +1,5 @@
1
- /**
2
- * module-loader 模块统一导出
3
- */
4
- export { default as Vue2ClientLoader } from './Vue2ClientModuleLoader'
5
- export { default as VueSfcModuleCache } from './VueSfcModuleCache'
1
+ /**
2
+ * module-loader 模块统一导出
3
+ */
4
+ export { default as Vue2ClientLoader } from './Vue2ClientModuleLoader'
5
+ export { default as VueSfcModuleCache } from './VueSfcModuleCache'
@@ -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
- }