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.
- package/.env.his +19 -19
- package/.idea/.name +1 -0
- package/.idea/MarsCodeWorkspaceAppSettings.xml +8 -0
- package/.idea/deployment.xml +14 -0
- package/.idea/gradle.xml +7 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/libraries/contour_plot.xml +9 -0
- package/.idea/material_theme_project_new.xml +18 -0
- package/.idea/misc.xml +87 -5
- package/package.json +1 -1
- package/src/base-client/components/common/HIS/HForm/HForm.vue +1186 -1186
- package/src/base-client/components/common/XMarkdownViewer/demo.vue +102 -102
- package/src/base-client/components/his/HAi/HAi.vue +1177 -1177
- package/src/base-client/components/his/XTransfer/index.md +327 -327
- package/src/base-client/plugins/GetLoginInfoService.js +4 -4
- package/src/utils/login.js +11 -11
- package/.history/.eslintrc_20260521171150.js +0 -74
- package/.history/.eslintrc_20260521171213.js +0 -74
- package/.history/src/base-client/components/common/HIS/HAddNativeForm/HAddNativeForm_20260601154443.vue +0 -726
- package/.history/src/base-client/components/common/HIS/HAddNativeForm/HAddNativeForm_20260601154700.vue +0 -478
- package/.history/src/base-client/components/common/HIS/HButtons/HButtons_20260512175435.vue +0 -706
- package/.history/src/base-client/components/common/HIS/HButtons/HButtons_20260512175450.vue +0 -694
- package/.history/src/base-client/components/common/HIS/HButtons/HButtons_20260611152602.vue +0 -755
- package/.history/src/base-client/components/common/HIS/HForm/HForm_20260513145941.vue +0 -524
- package/.history/src/base-client/components/common/HIS/HForm/HForm_20260513153133.vue +0 -731
- package/.history/src/base-client/components/common/HIS/HForm/HForm_20260513160316.vue +0 -525
- package/.history/src/base-client/components/common/HIS/HForm/HForm_20260601144150.vue +0 -1046
- package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260310142713.vue +0 -512
- package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260310145118.vue +0 -511
- package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260311094834.vue +0 -696
- package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260320143028.vue +0 -693
- package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260409101450.vue +0 -677
- package/.history/src/base-client/components/common/HIS/HTab/HTab_20260508164645.vue +0 -758
- package/.history/src/base-client/components/common/HIS/HTab/HTab_20260508164714.vue +0 -693
- package/.history/src/base-client/components/common/HIS/HTab/HTab_20260508171651.vue +0 -716
- package/.history/src/base-client/components/common/HIS/HTab/HTab_20260509133717.vue +0 -695
- package/.history/src/base-client/components/common/HIS/HTab/HTab_20260509171115.vue +0 -664
- package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513140637.vue +0 -1455
- package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513140935.vue +0 -1441
- package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513150818.vue +0 -1441
- package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513153119.vue +0 -1442
- package/.history/src/base-client/components/common/XAddNativeForm/XAddNativeForm_20260513153126.vue +0 -1486
- package/.history/src/base-client/components/common/XForm/XFormItem_20260513140854.vue +0 -1607
- package/.history/src/base-client/components/common/XMarkdownViewer/XMarkdownViewer_20260519140403.vue +0 -643
- package/.history/src/base-client/components/common/XMarkdownViewer/XMarkdownViewer_20260519140829.vue +0 -628
- package/.history/src/base-client/components/common/XMarkdownViewer/demo_20260519142824.vue +0 -104
- package/.history/src/base-client/components/common/XMarkdownViewer/demo_20260519143155.vue +0 -102
- package/.history/src/base-client/components/common/XReportGrid/XReport_20260309171231.vue +0 -1241
- package/.history/src/base-client/components/common/XReportGrid/XReport_20260309171441.vue +0 -1223
- package/.history/src/base-client/components/his/HAi/HAi_20260612174826.vue +0 -472
- package/.history/src/base-client/components/his/HAi/HAi_20260612175839.vue +0 -538
- package/.history/src/base-client/components/his/HAi/HAi_20260615103331.vue +0 -650
- package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260424134504.vue +0 -1469
- package/.history/src/base-client/components/his/XSidebar/XSidebar_20260610171133.vue +0 -788
- package/.history/src/base-client/components/his/XSidebar/XSidebar_20260610171151.vue +0 -780
- package/.history/src/base-client/components/his/XTransfer/XTransfer_20260511170841.vue +0 -585
- package/.history/src/base-client/components/his/XTransfer/XTransfer_20260511171138.vue +0 -787
- package/.history/src/base-client/components/his/XTransfer/XTransfer_20260512141830.vue +0 -739
- package/.history/src/components/STable/index_20260409155138.js +0 -806
- package/.history/src/components/STable/index_20260409155218.js +0 -814
- package/.history/src/expression/core/Expression_20260305164427.js +0 -1371
- package/.history/src/expression/core/Expression_20260305170258.js +0 -1358
- package/.history/src/expression/core/Program_20260305111830.js +0 -944
- package/.history/src/expression/core/Program_20260305112041.js +0 -931
- package/.history/src/logic/LogicRunner_20260304154306.js +0 -170
- package/.history/src/logic/LogicRunner_20260304155553.js +0 -112
- package/.history/src/logic/LogicRunner_20260305105834.js +0 -112
- package/.history/src/logic/LogicRunner_20260305112718.js +0 -129
- package/.history/src/logic/LogicRunner_20260305182436.js +0 -133
- package/.history/src/logic/LogicRunner_20260306151301.js +0 -213
- package/.history/src/logic/LogicRunner_20260306152419.js +0 -213
- package/.history/src/logic/plugins/common/DateTools_20260305154159.js +0 -61
- package/.history/src/logic/plugins/common/DateTools_20260305154217.js +0 -44
- package/.history/src/logic/plugins/common/DateTools_20260305161014.js +0 -44
- package/.history/src/logic/plugins/common/HttpTools_20260305164352.js +0 -80
- package/.history/src/logic/plugins/common/HttpTools_20260305170258.js +0 -75
- package/.history/src/logic/plugins/common/HttpTools_20260305171634.js +0 -75
- package/.history/src/logic/plugins/common/HttpTools_20260306152419.js +0 -72
- package/.history/src/services/api/restTools_20260427142149.js +0 -245
- package/.history/src/services/api/restTools_20260427142853.js +0 -230
- package/.history/src/services/api/restTools_20260519135558.js +0 -230
- package/.history/src/services/api/restTools_20260519140825.js +0 -230
- package/.history/src/services/api/restTools_20260519151223.js +0 -230
- package/.history/src/utils/indexedDB_20260306150918.js +0 -593
- package/.history/src/utils/indexedDB_20260306151301.js +0 -586
- package/.idea/codeStyles/Project.xml +0 -62
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/preview-input-box.html +0 -180
package/src/utils/login.js
CHANGED
|
@@ -55,15 +55,14 @@ function setSingleAuthorization(auth, authType = AUTH_TYPE.BEARER) {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
function setAccessToken(data) {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
-
}
|