vue2-client 1.14.63 → 1.14.65
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.message +19 -19
- package/.history/public/his/editor/editor_20250606134713.html +51 -0
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527173925.vue +509 -0
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174316.vue +524 -0
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174419.vue +524 -0
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174422.vue +524 -0
- package/.history/src/base-client/components/common/XForm/XFormItem_20250508134122.vue +1320 -0
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171604.vue +1332 -0
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171613.vue +1331 -0
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171703.vue +1331 -0
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171720.vue +1331 -0
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527174327.vue +1339 -0
- package/Users/objecrt/af-vue2-client/src/base-client/components/his/XShiftSchedule/XShiftSchedule.vue +36 -0
- package/docs/Logic/345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +1 -0
- package/docs//345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +2 -1
- package/package.json +109 -109
- package/src/base-client/components/TreeList/TreeList.vue +91 -0
- package/src/base-client/components/TreeList/TreeNode.vue +81 -0
- package/src/base-client/components/common/XCardSet/XTiltle.vue +191 -0
- package/src/base-client/components/common/XFormTable/XFormTable.vue +895 -895
- package/src/base-client/components/common/XFormTable/demo.vue +86 -86
- package/src/base-client/components/common/XTable/XTable.vue +1564 -1564
- package/src/base-client/components/his/XTextCard/XTextCard.vue +207 -207
- package/src/base-client/components/his/XTreeRows/TreeNode.vue +100 -100
- package/src/base-client/components/his/XTreeRows/XTreeRows.vue +197 -197
- package/src/base-client/components/his/threeTestOrders/dome.vue +53 -2
- package/src/base-client/components/his/threeTestOrders/editor.vue +111 -111
- package/src/base-client/components/his/threeTestOrders/index.md +0 -0
- package/src/base-client/components/his/threeTestOrders/textBox.vue +457 -463
- package/src/base-client/components/his/threeTestOrders/threeTestOrders.vue +55 -19
- package/src/utils/routerUtil.js +3 -0
- package/vue.config.js +220 -220
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
export default {
|
|
3
|
+
props: {
|
|
4
|
+
weekDays: {
|
|
5
|
+
type: Array,
|
|
6
|
+
default: () => []
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
computed: {
|
|
10
|
+
columns () {
|
|
11
|
+
const baseColumns = [
|
|
12
|
+
{ title: '序号', dataIndex: 'index', width: 60 },
|
|
13
|
+
{ title: '科室', dataIndex: 'department', width: 120 },
|
|
14
|
+
{ title: '医生', dataIndex: 'doctor', width: 100 },
|
|
15
|
+
{ title: '上/下/晚', dataIndex: 'shiftType', width: 80 },
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
// 增加防御判断,确保 weekDays 存在
|
|
19
|
+
const dayColumns = this.weekDays.length > 0
|
|
20
|
+
? this.weekDays.map((day, dayIndex) => ({
|
|
21
|
+
title: `${day.label} ${day.date}`,
|
|
22
|
+
dataIndex: `shifts-${dayIndex}`, // 改为字符串形式
|
|
23
|
+
dayIndex: dayIndex,
|
|
24
|
+
width: 120,
|
|
25
|
+
}))
|
|
26
|
+
: []
|
|
27
|
+
|
|
28
|
+
const tailColumns = [
|
|
29
|
+
{ title: '排班数', dataIndex: 'count', width: 80 }
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
return [...baseColumns, ...dayColumns, ...tailColumns]
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
</script>
|
package/docs/Logic/345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
- ENV 对应 一个 org.json.JSONObject {tenantName:"租户名称",orgName:"分公司名称",applicationName:"应用名称",dbType:"数据库类型"}
|
|
12
12
|
- logic 对应 LogicService 类,其中有方法
|
|
13
13
|
* logic.run(logicName,param) 执行logic / logicName 执行的业务逻辑名称,param 参数 返回 org.json.JSONObject
|
|
14
|
+
* logic.remoteRun("服务名","logicName", "param")
|
|
14
15
|
- sql 对应 [SqlService]() 类,其中有方法
|
|
15
16
|
* sql.query(sql别名 string,sql参数 string) 执行已经注册的sql 返回 org.json.JSONArray
|
|
16
17
|
* sql.query(sql别名 string,sql参数 string,页数 int,每页行数 int) 执行已经注册的sql 返回 org.json.JSONArray
|
|
@@ -60,7 +60,8 @@ this.openDialog('xxx', 5, {}, {}, {})
|
|
|
60
60
|
afterDelete( res (删除接口返回数据)) 删除后触发
|
|
61
61
|
action(record (当前记录), id (当前记录主键), actionType (操作类型)) 操作按钮触发
|
|
62
62
|
- expandedGrid:"栅格名"
|
|
63
|
-
|
|
63
|
+
- json配置相关
|
|
64
|
+
- "pageMaxSize": (int) num,
|
|
64
65
|
# x-report 插槽 使用说明
|
|
65
66
|
|
|
66
67
|
- init(configName,configData) 配置名称 / 报表数据
|
package/package.json
CHANGED
|
@@ -1,109 +1,109 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "vue2-client",
|
|
3
|
-
"version": "1.14.
|
|
4
|
-
"private": false,
|
|
5
|
-
"scripts": {
|
|
6
|
-
"serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
|
|
7
|
-
"serve:gaslink": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode gaslink",
|
|
8
|
-
"serve:revenue": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode revenue",
|
|
9
|
-
"serve:liuli": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode liuli",
|
|
10
|
-
"serve:scada": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode scada",
|
|
11
|
-
"serve:iot": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode iot",
|
|
12
|
-
"serve:his": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode his",
|
|
13
|
-
"serve:runtime": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode runtime",
|
|
14
|
-
"serve:message": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode message",
|
|
15
|
-
"mac-serve": "vue-cli-service serve --no-eslint --mode his",
|
|
16
|
-
"build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
|
|
17
|
-
"test:unit": "vue-cli-service test:unit",
|
|
18
|
-
"lint": "vue-cli-service lint",
|
|
19
|
-
"build:preview": "vue-cli-service build --mode preview",
|
|
20
|
-
"lint:nofix": "vue-cli-service lint --no-fix",
|
|
21
|
-
"test": "jest"
|
|
22
|
-
},
|
|
23
|
-
"dependencies": {
|
|
24
|
-
"@afwenming123/vue-easy-tree": "^1.0.1",
|
|
25
|
-
"@afwenming123/vue-plugin-hiprint": "^0.0.70",
|
|
26
|
-
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
27
|
-
"@antv/data-set": "^0.11.8",
|
|
28
|
-
"@antv/g2plot": "^2.4.31",
|
|
29
|
-
"@hufe921/canvas-editor": "^0.9.49",
|
|
30
|
-
"@microsoft/fetch-event-source": "^2.0.1",
|
|
31
|
-
"@vue/babel-preset-jsx": "^1.4.0",
|
|
32
|
-
"animate.css": "^4.1.1",
|
|
33
|
-
"ant-design-vue": "^1.7.8",
|
|
34
|
-
"axios": "^0.27.2",
|
|
35
|
-
"clipboard": "^2.0.11",
|
|
36
|
-
"core-js": "^3.33.0",
|
|
37
|
-
"crypto-js": "^4.1.1",
|
|
38
|
-
"date-fns": "^2.29.3",
|
|
39
|
-
"default-passive-events": "^2.0.0",
|
|
40
|
-
"dotenv": "^16.3.1",
|
|
41
|
-
"echarts": "^5.5.0",
|
|
42
|
-
"enquire.js": "^2.1.6",
|
|
43
|
-
"file-saver": "^2.0.5",
|
|
44
|
-
"highlight.js": "^11.7.0",
|
|
45
|
-
"html2canvas": "^1.4.1",
|
|
46
|
-
"js-base64": "^3.7.5",
|
|
47
|
-
"js-cookie": "^2.2.1",
|
|
48
|
-
"jsencrypt": "^3.3.2",
|
|
49
|
-
"jspdf": "^2.5.1",
|
|
50
|
-
"lodash.clonedeep": "^4.5.0",
|
|
51
|
-
"lodash.debounce": "^4",
|
|
52
|
-
"lodash.get": "^4.4.2",
|
|
53
|
-
"marked": "^4",
|
|
54
|
-
"mockjs": "^1.1.0",
|
|
55
|
-
"nprogress": "^0.2.0",
|
|
56
|
-
"qs": "^6.11.2",
|
|
57
|
-
"regenerator-runtime": "^0.14.0",
|
|
58
|
-
"videojs-contrib-hls": "^5.15.0",
|
|
59
|
-
"viser-vue": "^2.4.8",
|
|
60
|
-
"vue": "^2.7.14",
|
|
61
|
-
"vue-codemirror": "4.0.6",
|
|
62
|
-
"vue-draggable-resizable": "^2",
|
|
63
|
-
"vue-i18n": "^8.28.2",
|
|
64
|
-
"vue-json-viewer": "^2.2.22",
|
|
65
|
-
"vue-router": "^3.6.5",
|
|
66
|
-
"vue-video-player": "^5.0.2",
|
|
67
|
-
"vue-virtual-scroller": "^1.1.2",
|
|
68
|
-
"vuedraggable": "^2.24.3",
|
|
69
|
-
"vuex": "^3.6.2",
|
|
70
|
-
"xlsx": "0.18.5"
|
|
71
|
-
},
|
|
72
|
-
"devDependencies": {
|
|
73
|
-
"@ant-design/colors": "^7.0.0",
|
|
74
|
-
"@babel/core": "^7.22.20",
|
|
75
|
-
"@babel/eslint-parser": "^7.22.15",
|
|
76
|
-
"@babel/preset-env": "^7.22.20",
|
|
77
|
-
"@vue/cli-plugin-babel": "^5.0.8",
|
|
78
|
-
"@vue/cli-plugin-eslint": "^5.0.8",
|
|
79
|
-
"@vue/cli-service": "^5.0.8",
|
|
80
|
-
"@vue/eslint-config-standard": "^8.0.1",
|
|
81
|
-
"@vue/test-utils": "^1.3.6",
|
|
82
|
-
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
83
|
-
"compression-webpack-plugin": "^10.0.0",
|
|
84
|
-
"css-minimizer-webpack-plugin": "^5.0.1",
|
|
85
|
-
"deepmerge": "^4.3.1",
|
|
86
|
-
"eslint": "^8.51.0",
|
|
87
|
-
"eslint-plugin-vue": "^9.17.0",
|
|
88
|
-
"fast-deep-equal": "^3.1.3",
|
|
89
|
-
"ignore-loader": "^0.1.2",
|
|
90
|
-
"jest": "^29.7.0",
|
|
91
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
92
|
-
"jest-transform-stub": "^2.0.0",
|
|
93
|
-
"less-loader": "^6.2.0",
|
|
94
|
-
"script-loader": "^0.7.2",
|
|
95
|
-
"style-resources-loader": "^1.5.0",
|
|
96
|
-
"vue-cli-plugin-style-resources-loader": "^0.1.5",
|
|
97
|
-
"vue-jest": "^4.0.1",
|
|
98
|
-
"vue-template-compiler": "^2.7.14",
|
|
99
|
-
"webpack": "^5.88.2",
|
|
100
|
-
"webpack-theme-color-replacer": "^1.4.7",
|
|
101
|
-
"whatwg-fetch": "^3.6.19"
|
|
102
|
-
},
|
|
103
|
-
"browserslist": [
|
|
104
|
-
"> 1%",
|
|
105
|
-
"last 2 versions",
|
|
106
|
-
"not dead",
|
|
107
|
-
"not ie 11"
|
|
108
|
-
]
|
|
109
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "vue2-client",
|
|
3
|
+
"version": "1.14.65",
|
|
4
|
+
"private": false,
|
|
5
|
+
"scripts": {
|
|
6
|
+
"serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
|
|
7
|
+
"serve:gaslink": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode gaslink",
|
|
8
|
+
"serve:revenue": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode revenue",
|
|
9
|
+
"serve:liuli": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode liuli",
|
|
10
|
+
"serve:scada": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode scada",
|
|
11
|
+
"serve:iot": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode iot",
|
|
12
|
+
"serve:his": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode his",
|
|
13
|
+
"serve:runtime": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode runtime",
|
|
14
|
+
"serve:message": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode message",
|
|
15
|
+
"mac-serve": "vue-cli-service serve --no-eslint --mode his",
|
|
16
|
+
"build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
|
|
17
|
+
"test:unit": "vue-cli-service test:unit",
|
|
18
|
+
"lint": "vue-cli-service lint",
|
|
19
|
+
"build:preview": "vue-cli-service build --mode preview",
|
|
20
|
+
"lint:nofix": "vue-cli-service lint --no-fix",
|
|
21
|
+
"test": "jest"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@afwenming123/vue-easy-tree": "^1.0.1",
|
|
25
|
+
"@afwenming123/vue-plugin-hiprint": "^0.0.70",
|
|
26
|
+
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
27
|
+
"@antv/data-set": "^0.11.8",
|
|
28
|
+
"@antv/g2plot": "^2.4.31",
|
|
29
|
+
"@hufe921/canvas-editor": "^0.9.49",
|
|
30
|
+
"@microsoft/fetch-event-source": "^2.0.1",
|
|
31
|
+
"@vue/babel-preset-jsx": "^1.4.0",
|
|
32
|
+
"animate.css": "^4.1.1",
|
|
33
|
+
"ant-design-vue": "^1.7.8",
|
|
34
|
+
"axios": "^0.27.2",
|
|
35
|
+
"clipboard": "^2.0.11",
|
|
36
|
+
"core-js": "^3.33.0",
|
|
37
|
+
"crypto-js": "^4.1.1",
|
|
38
|
+
"date-fns": "^2.29.3",
|
|
39
|
+
"default-passive-events": "^2.0.0",
|
|
40
|
+
"dotenv": "^16.3.1",
|
|
41
|
+
"echarts": "^5.5.0",
|
|
42
|
+
"enquire.js": "^2.1.6",
|
|
43
|
+
"file-saver": "^2.0.5",
|
|
44
|
+
"highlight.js": "^11.7.0",
|
|
45
|
+
"html2canvas": "^1.4.1",
|
|
46
|
+
"js-base64": "^3.7.5",
|
|
47
|
+
"js-cookie": "^2.2.1",
|
|
48
|
+
"jsencrypt": "^3.3.2",
|
|
49
|
+
"jspdf": "^2.5.1",
|
|
50
|
+
"lodash.clonedeep": "^4.5.0",
|
|
51
|
+
"lodash.debounce": "^4",
|
|
52
|
+
"lodash.get": "^4.4.2",
|
|
53
|
+
"marked": "^4",
|
|
54
|
+
"mockjs": "^1.1.0",
|
|
55
|
+
"nprogress": "^0.2.0",
|
|
56
|
+
"qs": "^6.11.2",
|
|
57
|
+
"regenerator-runtime": "^0.14.0",
|
|
58
|
+
"videojs-contrib-hls": "^5.15.0",
|
|
59
|
+
"viser-vue": "^2.4.8",
|
|
60
|
+
"vue": "^2.7.14",
|
|
61
|
+
"vue-codemirror": "4.0.6",
|
|
62
|
+
"vue-draggable-resizable": "^2",
|
|
63
|
+
"vue-i18n": "^8.28.2",
|
|
64
|
+
"vue-json-viewer": "^2.2.22",
|
|
65
|
+
"vue-router": "^3.6.5",
|
|
66
|
+
"vue-video-player": "^5.0.2",
|
|
67
|
+
"vue-virtual-scroller": "^1.1.2",
|
|
68
|
+
"vuedraggable": "^2.24.3",
|
|
69
|
+
"vuex": "^3.6.2",
|
|
70
|
+
"xlsx": "0.18.5"
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@ant-design/colors": "^7.0.0",
|
|
74
|
+
"@babel/core": "^7.22.20",
|
|
75
|
+
"@babel/eslint-parser": "^7.22.15",
|
|
76
|
+
"@babel/preset-env": "^7.22.20",
|
|
77
|
+
"@vue/cli-plugin-babel": "^5.0.8",
|
|
78
|
+
"@vue/cli-plugin-eslint": "^5.0.8",
|
|
79
|
+
"@vue/cli-service": "^5.0.8",
|
|
80
|
+
"@vue/eslint-config-standard": "^8.0.1",
|
|
81
|
+
"@vue/test-utils": "^1.3.6",
|
|
82
|
+
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
83
|
+
"compression-webpack-plugin": "^10.0.0",
|
|
84
|
+
"css-minimizer-webpack-plugin": "^5.0.1",
|
|
85
|
+
"deepmerge": "^4.3.1",
|
|
86
|
+
"eslint": "^8.51.0",
|
|
87
|
+
"eslint-plugin-vue": "^9.17.0",
|
|
88
|
+
"fast-deep-equal": "^3.1.3",
|
|
89
|
+
"ignore-loader": "^0.1.2",
|
|
90
|
+
"jest": "^29.7.0",
|
|
91
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
92
|
+
"jest-transform-stub": "^2.0.0",
|
|
93
|
+
"less-loader": "^6.2.0",
|
|
94
|
+
"script-loader": "^0.7.2",
|
|
95
|
+
"style-resources-loader": "^1.5.0",
|
|
96
|
+
"vue-cli-plugin-style-resources-loader": "^0.1.5",
|
|
97
|
+
"vue-jest": "^4.0.1",
|
|
98
|
+
"vue-template-compiler": "^2.7.14",
|
|
99
|
+
"webpack": "^5.88.2",
|
|
100
|
+
"webpack-theme-color-replacer": "^1.4.7",
|
|
101
|
+
"whatwg-fetch": "^3.6.19"
|
|
102
|
+
},
|
|
103
|
+
"browserslist": [
|
|
104
|
+
"> 1%",
|
|
105
|
+
"last 2 versions",
|
|
106
|
+
"not dead",
|
|
107
|
+
"not ie 11"
|
|
108
|
+
]
|
|
109
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="tree-container">
|
|
3
|
+
<div class="tree-list">
|
|
4
|
+
<tree-node
|
|
5
|
+
v-for="node in treeData"
|
|
6
|
+
:key="node.id"
|
|
7
|
+
:node="node"
|
|
8
|
+
@toggle="toggleNode"/>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
import TreeNode from './TreeNode.vue'
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
name: 'TreeList',
|
|
18
|
+
components: {
|
|
19
|
+
TreeNode
|
|
20
|
+
},
|
|
21
|
+
data() {
|
|
22
|
+
return {
|
|
23
|
+
treeData: [
|
|
24
|
+
{
|
|
25
|
+
id: '1',
|
|
26
|
+
title: '体征',
|
|
27
|
+
expanded: false,
|
|
28
|
+
children: [
|
|
29
|
+
{
|
|
30
|
+
id: '1-1',
|
|
31
|
+
title: '一般情况'
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
id: '1-2',
|
|
35
|
+
title: '皮肤粘膜'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: '1-3',
|
|
39
|
+
title: '头颈',
|
|
40
|
+
expanded: false,
|
|
41
|
+
children: [
|
|
42
|
+
{
|
|
43
|
+
id: '1-3-1',
|
|
44
|
+
title: '头部'
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: '1-3-2',
|
|
48
|
+
title: '颈部'
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
methods: {
|
|
58
|
+
toggleNode(node) {
|
|
59
|
+
node.expanded = !node.expanded
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
</script>
|
|
64
|
+
|
|
65
|
+
<style scoped>
|
|
66
|
+
.tree-container {
|
|
67
|
+
width: 240px;
|
|
68
|
+
height: 400px;
|
|
69
|
+
border: 1px solid #e8e8e8;
|
|
70
|
+
overflow-y: auto;
|
|
71
|
+
padding: 8px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* 自定义滚动条样式 */
|
|
75
|
+
.tree-container::-webkit-scrollbar {
|
|
76
|
+
width: 6px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.tree-container::-webkit-scrollbar-thumb {
|
|
80
|
+
background-color: #ccc;
|
|
81
|
+
border-radius: 3px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.tree-container::-webkit-scrollbar-track {
|
|
85
|
+
background-color: #f5f5f5;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.tree-list {
|
|
89
|
+
font-size: 14px;
|
|
90
|
+
}
|
|
91
|
+
</style>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="tree-node">
|
|
3
|
+
<div class="node-content" @click="handleClick">
|
|
4
|
+
<span v-if="hasChildren" class="toggle-icon">
|
|
5
|
+
{{ node.expanded ? '-' : '+' }}
|
|
6
|
+
</span>
|
|
7
|
+
<span class="node-title">{{ node.title }}</span>
|
|
8
|
+
</div>
|
|
9
|
+
<div v-if="hasChildren && node.expanded" class="node-children">
|
|
10
|
+
<tree-node
|
|
11
|
+
v-for="child in node.children"
|
|
12
|
+
:key="child.id"
|
|
13
|
+
:node="child"
|
|
14
|
+
@toggle="$emit('toggle', $event)"
|
|
15
|
+
:level="level + 1"/>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script>
|
|
21
|
+
export default {
|
|
22
|
+
name: 'TreeNode',
|
|
23
|
+
props: {
|
|
24
|
+
node: {
|
|
25
|
+
type: Object,
|
|
26
|
+
required: true
|
|
27
|
+
},
|
|
28
|
+
level: {
|
|
29
|
+
type: Number,
|
|
30
|
+
default: 0
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
computed: {
|
|
34
|
+
hasChildren() {
|
|
35
|
+
return this.node.children && this.node.children.length > 0
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
methods: {
|
|
39
|
+
handleClick() {
|
|
40
|
+
if (this.hasChildren) {
|
|
41
|
+
this.$emit('toggle', this.node)
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
</script>
|
|
47
|
+
|
|
48
|
+
<style scoped>
|
|
49
|
+
.tree-node {
|
|
50
|
+
margin: 2px 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.node-content {
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
padding: 4px 0;
|
|
57
|
+
user-select: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.toggle-icon {
|
|
61
|
+
width: 16px;
|
|
62
|
+
text-align: center;
|
|
63
|
+
font-size: 14px;
|
|
64
|
+
color: #666;
|
|
65
|
+
margin-right: 4px;
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.node-title {
|
|
70
|
+
flex: 1;
|
|
71
|
+
cursor: default;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.node-content:hover {
|
|
75
|
+
background-color: #f5f5f5;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.node-children {
|
|
79
|
+
padding-left: 20px;
|
|
80
|
+
}
|
|
81
|
+
</style>
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<a-row
|
|
3
|
+
class="title_box"
|
|
4
|
+
:style="{backgroundColor: requiredParameters.backgroundColor,height:requiredParameters.height}"
|
|
5
|
+
type="flex"
|
|
6
|
+
v-model="requiredParameters">
|
|
7
|
+
<a-col class="title_col_left" :flex="3">
|
|
8
|
+
<div class="title_img_box">
|
|
9
|
+
<img src="../img/header10086.png" class="title_img" alt="">
|
|
10
|
+
</div>
|
|
11
|
+
<div class="title_name">{{ requiredParameters.title }}</div>
|
|
12
|
+
</a-col>
|
|
13
|
+
<a-col class="title_col_right" id="titleSelect" :flex="3" style="padding-right: 3%" v-model="dateData">
|
|
14
|
+
<div class="title_date_box">
|
|
15
|
+
<div class="title_data">{{ dateData.date }}</div>
|
|
16
|
+
<div class="title_week">{{ dateData.dayOfWeek }}</div>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="title_time">{{ dateData.time }}</div>
|
|
19
|
+
<div style="font-size: x-large;margin-left: 1%">|</div>
|
|
20
|
+
<div class="title_refresh" @click="refreshTitle"><a-icon type="undo" style="font-size: x-large;"/></div>
|
|
21
|
+
<div class="title_refresh_box">
|
|
22
|
+
<div class="title_refresh_time">{{ dateData.refreshTime }}</div>
|
|
23
|
+
<div class="latest_update_time">最新更新时间</div>
|
|
24
|
+
</div>
|
|
25
|
+
</a-col>
|
|
26
|
+
</a-row>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<script>
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
name: 'TitleComponent',
|
|
33
|
+
components: {},
|
|
34
|
+
data () {
|
|
35
|
+
return {
|
|
36
|
+
dateData: {
|
|
37
|
+
date: '',
|
|
38
|
+
dayOfWeek: '',
|
|
39
|
+
time: '',
|
|
40
|
+
refreshTime: ''
|
|
41
|
+
},
|
|
42
|
+
timer: null
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
props: {
|
|
46
|
+
requiredParameters: {
|
|
47
|
+
type: Object,
|
|
48
|
+
default: () => ({
|
|
49
|
+
title: '',
|
|
50
|
+
backgroundColor: '',
|
|
51
|
+
height: ''
|
|
52
|
+
}),
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
created () {
|
|
56
|
+
this.updateDateData()
|
|
57
|
+
this.startTimer()
|
|
58
|
+
},
|
|
59
|
+
beforeDestroy () {
|
|
60
|
+
this.stopTimer()
|
|
61
|
+
},
|
|
62
|
+
methods: {
|
|
63
|
+
// 刷新页面
|
|
64
|
+
refreshTitle () {
|
|
65
|
+
this.$forceUpdate()
|
|
66
|
+
const now = new Date()
|
|
67
|
+
this.dateData.refreshTime = now.toLocaleTimeString()
|
|
68
|
+
this.$emit('refreshTitle')
|
|
69
|
+
},
|
|
70
|
+
updateDateData () {
|
|
71
|
+
const now = new Date()
|
|
72
|
+
const options = { weekday: 'long' }
|
|
73
|
+
this.dateData.date = this.formatDate(now)
|
|
74
|
+
this.dateData.time = this.formatTime(now)
|
|
75
|
+
this.dateData.dayOfWeek = now.toLocaleDateString(undefined, options)
|
|
76
|
+
this.dateData.refreshTime = now.toLocaleTimeString()
|
|
77
|
+
},
|
|
78
|
+
formatDate (date) {
|
|
79
|
+
const month = date.getMonth() + 1
|
|
80
|
+
const day = date.getDate()
|
|
81
|
+
return `${month}月${day}日`
|
|
82
|
+
},
|
|
83
|
+
formatTime (date) {
|
|
84
|
+
const hours = String(date.getHours()).padStart(2, '0')
|
|
85
|
+
const minutes = String(date.getMinutes()).padStart(2, '0')
|
|
86
|
+
return `${hours}:${minutes}`
|
|
87
|
+
},
|
|
88
|
+
startTimer () {
|
|
89
|
+
this.timer = setInterval(() => {
|
|
90
|
+
const now = new Date()
|
|
91
|
+
this.dateData.time = this.formatTime(now)
|
|
92
|
+
}, 10000) // 每秒更新一次
|
|
93
|
+
},
|
|
94
|
+
stopTimer () {
|
|
95
|
+
if (this.timer) {
|
|
96
|
+
clearInterval(this.timer)
|
|
97
|
+
this.timer = null
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
</script>
|
|
103
|
+
|
|
104
|
+
<style scoped>
|
|
105
|
+
.title_box {
|
|
106
|
+
width: 100%;
|
|
107
|
+
min-height:42px;
|
|
108
|
+
}
|
|
109
|
+
.title_col_left {
|
|
110
|
+
height: 100%;
|
|
111
|
+
color: white;
|
|
112
|
+
display: flex;
|
|
113
|
+
align-content: center;
|
|
114
|
+
align-items: center;
|
|
115
|
+
}
|
|
116
|
+
.title_col_right {
|
|
117
|
+
height: 100%;
|
|
118
|
+
color: white;
|
|
119
|
+
display: flex;
|
|
120
|
+
align-content: center;
|
|
121
|
+
align-items: center;
|
|
122
|
+
justify-content: flex-end;
|
|
123
|
+
}
|
|
124
|
+
.title_img_box {
|
|
125
|
+
height: 80%;
|
|
126
|
+
width: auto;
|
|
127
|
+
margin-left: 1%;
|
|
128
|
+
border-radius: 50%;
|
|
129
|
+
background-color: #35baf6;
|
|
130
|
+
}
|
|
131
|
+
.title_img{
|
|
132
|
+
width: 100%;
|
|
133
|
+
height: 100%;
|
|
134
|
+
}
|
|
135
|
+
.title_name {
|
|
136
|
+
font-size: medium !important;
|
|
137
|
+
font-weight: bold;
|
|
138
|
+
margin-left: 1%;
|
|
139
|
+
}
|
|
140
|
+
.title_date_box{
|
|
141
|
+
width: 20%;
|
|
142
|
+
height: 100%;
|
|
143
|
+
display: flex;
|
|
144
|
+
flex-direction: column;
|
|
145
|
+
justify-content: center;
|
|
146
|
+
}
|
|
147
|
+
.title_data{
|
|
148
|
+
display: flex;
|
|
149
|
+
justify-content: center;
|
|
150
|
+
align-items: center;
|
|
151
|
+
font-size: smaller;
|
|
152
|
+
}
|
|
153
|
+
.title_week{
|
|
154
|
+
display: flex;
|
|
155
|
+
justify-content: center;
|
|
156
|
+
align-items: center;
|
|
157
|
+
font-size: smaller;
|
|
158
|
+
}
|
|
159
|
+
.title_time{
|
|
160
|
+
font-size: x-large;
|
|
161
|
+
}
|
|
162
|
+
.title_refresh{
|
|
163
|
+
margin-left: 1%;
|
|
164
|
+
height: 100%;
|
|
165
|
+
align-content: center;
|
|
166
|
+
align-items: center;
|
|
167
|
+
cursor: pointer;
|
|
168
|
+
display: flex;
|
|
169
|
+
width: 7%;
|
|
170
|
+
justify-content: center;
|
|
171
|
+
min-width: 31px;
|
|
172
|
+
}
|
|
173
|
+
.title_refresh:hover{
|
|
174
|
+
background-color: rgb(31, 138, 137);
|
|
175
|
+
}
|
|
176
|
+
.title_refresh:active{
|
|
177
|
+
background-color: rgb(26, 129, 128);
|
|
178
|
+
}
|
|
179
|
+
.title_refresh_box{
|
|
180
|
+
margin-right: 1%;
|
|
181
|
+
}
|
|
182
|
+
.latest_update_time{
|
|
183
|
+
font-size: x-small;
|
|
184
|
+
}
|
|
185
|
+
.title_refresh_time{
|
|
186
|
+
display: flex;
|
|
187
|
+
font-size: x-small;
|
|
188
|
+
align-content: center;
|
|
189
|
+
justify-content: center;
|
|
190
|
+
}
|
|
191
|
+
</style>
|