Compare commits

..

157 Commits
master ... iscs

Author SHA1 Message Date
joylink_cuiweidong
34a20d3475 代码调整 2021-04-29 10:06:12 +08:00
joylink_cuiweidong
d8af8fb70a 代码调整 2021-04-22 17:11:54 +08:00
joylink_cuiweidong
85de91411e 状态显示 代码调整 2021-04-22 16:28:57 +08:00
joylink_cuiweidong
c1356549ec 代码调整 2021-04-22 14:55:11 +08:00
joylink_cuiweidong
f34617b7db 代码调整 2021-04-21 10:06:12 +08:00
joylink_cuiweidong
71628dcdd2 代码调整 2021-04-20 18:11:37 +08:00
joylink_cuiweidong
2ef2d01fc0 iscs 代码调整 2021-04-20 16:35:42 +08:00
joylink_cuiweidong
bc9757f7b9 代码调整 2021-04-19 17:45:41 +08:00
joylink_cuiweidong
3341a29421 代码调整 2021-04-19 16:24:18 +08:00
joylink_cuiweidong
5dc7de9ded 代码调整 2021-04-19 14:54:21 +08:00
joylink_cuiweidong
00359591b5 iscs 新版预览界面调整 2021-04-19 11:00:34 +08:00
ival
624b06fe85 添加优化 2021-04-15 14:29:54 +08:00
ival
4921b43e1b 删除无用代码 2021-04-13 15:46:15 +08:00
ival
7b9bb93103 增加大铁仿真display 2021-04-13 14:58:23 +08:00
ival
932b2e1d79 Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs
# Conflicts:
#	src/views/iscs_new/iscsDraw/index.vue
2021-04-13 10:57:16 +08:00
ival
9b01aada15 修改设置shape的bug 2021-04-13 10:56:32 +08:00
joylink_cuiweidong
da059a3c9c 代码调整 2021-04-13 10:42:28 +08:00
joylink_cuiweidong
acefe20fc0 Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs 2021-04-13 09:11:50 +08:00
joylink_cuiweidong
efac958ea0 代码调整 2021-04-13 09:11:33 +08:00
ival
ae686de0ab Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs
# Conflicts:
#	src/views/iscs_new/iscsDraw/index.vue
2021-04-12 18:44:16 +08:00
ival
dc855fa6ef 修改代码 2021-04-12 18:43:20 +08:00
joylink_cuiweidong
97f606a314 代码调整 2021-04-12 18:29:23 +08:00
joylink_cuiweidong
2e45db73e5 iscs 代码调整 2021-04-12 17:55:29 +08:00
joylink_cuiweidong
1a017ceed0 Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs 2021-04-12 15:45:01 +08:00
joylink_cuiweidong
a686b8939e iscs 代码调整 2021-04-12 15:43:39 +08:00
ival
e03b492c1d 修改页面 滚动条 2021-04-12 14:57:53 +08:00
ival
c3587b4411 1. 修改界面复制粘贴的问题 2021-04-12 14:50:17 +08:00
ival
b3fbfbb3ad Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs 2021-04-12 09:23:23 +08:00
ival
83a0e74a88 修改代码 2021-04-12 09:20:11 +08:00
joylink_cuiweidong
467d3e48cd iscs 代码调整 2021-04-12 09:07:05 +08:00
joylink_cuiweidong
45f9b1d9e2 Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs 2021-04-09 18:36:25 +08:00
joylink_cuiweidong
da024251de 代码调整 2021-04-09 18:36:09 +08:00
joylink_cuiweidong
00887b7409 代码调整 2021-04-09 18:35:54 +08:00
ival
1985b51f98 修改复制粘贴的问题 2021-04-09 18:33:27 +08:00
ival
fce6f58eb0 增加代码 2021-04-09 17:54:01 +08:00
ival
18a51e7c26 修改代码 2021-04-09 17:48:42 +08:00
ival
5f62a24f08 修改代码 2021-04-09 17:43:04 +08:00
ival
1375fc4fbc 修改代码 2021-04-09 17:36:07 +08:00
ival
3739fcc4ac Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs
# Conflicts:
#	src/views/iscs_new/iscsDraw/index.vue
2021-04-09 17:14:09 +08:00
ival
2c69d7e145 修改代码 2021-04-09 17:12:35 +08:00
joylink_cuiweidong
173643eb37 代码调整 2021-04-09 17:11:36 +08:00
ival
6c2b475213 提交文件 2021-04-09 17:09:58 +08:00
joylink_cuiweidong
14ecacf811 Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs
# Conflicts:
#	src/views/iscs_new/iscsDraw/index.vue
2021-04-09 17:05:09 +08:00
joylink_cuiweidong
c9ec52a7c9 iscs 代码调整 2021-04-09 17:02:08 +08:00
ival
5c19aab68c 修改 创建iscs创建元素的方式 2021-04-09 16:50:26 +08:00
ival
f78fa04842 修改代码 2021-04-09 14:37:43 +08:00
ival
aab9cb8bed Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs
# Conflicts:
#	src/views/iscs_new/iscsDraw/index.vue
2021-04-09 13:58:19 +08:00
ival
b5582126ba 优化iscs_new 代码 2021-04-09 13:57:39 +08:00
joylink_cuiweidong
4d37cc9267 Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs
# Conflicts:
#	src/views/iscs_new/iscsDraw/index.vue
2021-04-09 11:30:04 +08:00
joylink_cuiweidong
760c683e3e iscs 代码调整 2021-04-09 11:27:47 +08:00
ival
1be38bdb76 修改代码 2021-04-09 09:39:57 +08:00
ival
a253ec5de5 Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs
# Conflicts:
#	src/views/iscs_new/iscsDraw/index.vue
2021-04-08 18:41:21 +08:00
ival
bfaf8ea7d8 iscs前端绘制增加indexDb存储 2021-04-08 18:40:12 +08:00
joylink_cuiweidong
001a963b04 代码调整 2021-04-08 18:04:08 +08:00
joylink_cuiweidong
e5249cf4b3 代码调整 2021-04-08 17:56:45 +08:00
ival
04a0560339 修改代码 2021-04-08 17:34:47 +08:00
ival
6eb2ca001c 修改路由配置 2021-04-08 17:33:49 +08:00
ival
1677cfc318 Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs 2021-04-08 17:31:47 +08:00
ival
a7b5057f9e 修改代码 2021-04-08 17:31:39 +08:00
joylink_cuiweidong
35d4ab4cfc 代码调整 2021-04-08 17:29:18 +08:00
joylink_cuiweidong
4c3a511551 代码调整 2021-04-08 15:33:59 +08:00
joylink_cuiweidong
bd70771cf5 Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs 2021-04-08 15:27:43 +08:00
joylink_cuiweidong
73d21dbca9 代码调整 2021-04-08 15:27:26 +08:00
ival
67f62970d7 Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs 2021-04-08 15:25:50 +08:00
ival
54eef21574 修改代码 2021-04-08 15:25:44 +08:00
joylink_cuiweidong
bbba502ba7 Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs 2021-04-08 15:18:01 +08:00
joylink_cuiweidong
9ceeb48562 代码调整 2021-04-08 15:17:45 +08:00
ival
8ad81f244f 增加 elem 默认 stateList 2021-04-08 14:00:35 +08:00
ival
cfed96504b 修改代码 2021-04-08 13:55:07 +08:00
ival
1fb3c04c37 修改代码 2021-04-08 13:10:10 +08:00
ival
edb841c38c Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs
# Conflicts:
#	src/views/iscs_new/iscsDraw/index.vue
2021-04-08 13:00:41 +08:00
ival
9a7d6a007b 修改代码 2021-04-08 13:00:03 +08:00
ival
e58d229abc Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs 2021-04-08 11:24:09 +08:00
ival
f84d221857 修改代码 2021-04-08 11:24:01 +08:00
joylink_cuiweidong
26ed24d339 代码调整 2021-04-08 11:23:24 +08:00
joylink_cuiweidong
73caf6074b Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs
# Conflicts:
#	src/iscs_new/core/form/form2Base.js
2021-04-08 11:22:37 +08:00
joylink_cuiweidong
89f7d38a77 代码调整 2021-04-08 11:20:51 +08:00
ival
d1281b0346 Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs
# Conflicts:
#	src/iscs_new/core/form/elementConst.js
#	src/views/iscs_new/components/dataForm.vue
#	src/views/iscs_new/iscsDraw/index.vue
2021-04-08 11:20:45 +08:00
ival
53008131c6 提交代码 2021-04-08 11:18:01 +08:00
joylink_cuiweidong
c9b5c908a0 代码调整 2021-04-08 11:15:39 +08:00
ival
dcefdfab33 修改代码 2021-04-08 09:50:07 +08:00
ival
4357eec04f 修改代码 2021-04-08 09:36:25 +08:00
ival
9d8ccd5a67 提交代码 2021-04-08 09:24:30 +08:00
ival
d24f91afc1 修改代码 2021-04-08 09:23:42 +08:00
ival
84d8a396f0 修改代码 2021-04-08 09:07:12 +08:00
ival
9917926a43 优化代码 2021-04-08 09:04:15 +08:00
ival
b7d2f79462 提交代码 2021-04-08 08:55:36 +08:00
ival
27bcdc52a0 修改代码 2021-04-07 18:39:27 +08:00
ival
50cb5b1ece Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs 2021-04-07 18:14:27 +08:00
ival
eda8b8b42c 提交代码 2021-04-07 18:14:18 +08:00
joylink_cuiweidong
62eb86e5ec iscs 代码调整 2021-04-07 18:10:51 +08:00
joylink_cuiweidong
d7ac074608 iscs 代码调整 2021-04-07 18:10:24 +08:00
joylink_cuiweidong
c123a04fd7 Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs 2021-04-07 17:56:59 +08:00
joylink_cuiweidong
156a63ea02 iscs 代码调整 2021-04-07 17:56:40 +08:00
ival
97c4aaf20c Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs 2021-04-07 15:39:41 +08:00
ival
fc2e4137f5 修改代码 2021-04-07 15:39:32 +08:00
joylink_cuiweidong
7ed95d2701 代码调整 2021-04-07 15:35:35 +08:00
joylink_cuiweidong
8e13a2190b iscs 代码调整 2021-04-07 13:54:55 +08:00
ival
e1a75e68a1 修改代码 2021-04-07 11:17:41 +08:00
ival
3240ca7760 修改代码 2021-04-07 10:57:19 +08:00
ival
31cc8f75c5 修改代码 2021-04-07 10:55:38 +08:00
ival
74d82f5872 优化皮肤配置 2021-04-07 10:05:17 +08:00
ival
cad7ff2129 修改代码 2021-04-06 18:24:51 +08:00
ival
1639866515 修改代码 2021-04-06 11:29:22 +08:00
ival
c735f4dd50 调整结构 2021-04-06 10:35:12 +08:00
ival
2508d084d0 Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs 2021-04-06 10:21:47 +08:00
ival
1bf4583525 删除无用文件 2021-04-06 10:21:40 +08:00
joylink_cuiweidong
e6f7d8a207 iscs 代码调整 2021-04-06 10:19:23 +08:00
ival
4322001225 修改代码 2021-04-04 21:49:20 +08:00
ival
ae050fdc5b 修改动画参数 2021-04-04 21:42:23 +08:00
ival
16fcf932ff 修改代码 2021-04-04 21:19:17 +08:00
ival
b8ef4c33da 修改代码 2021-04-04 21:00:42 +08:00
ival
e3900b6f9e 优化代码 2021-04-04 20:37:32 +08:00
ival
5870a3814c 修改代码 2021-04-04 20:34:50 +08:00
ival
333fe16661 删除无用引入 2021-04-04 02:22:27 +08:00
ival
3026eed365 修改代码 2021-04-04 02:16:22 +08:00
ival
f16c7e0b11 修改代码 2021-04-04 01:10:37 +08:00
ival
eb429506f5 增加动画处理 2021-04-04 00:44:29 +08:00
ival
870852b97a 优化代码 2021-04-03 20:42:51 +08:00
ival
ca4c840da4 修改bug 2021-04-03 01:05:51 +08:00
ival
bf1818da69 增加代码 2021-04-02 18:14:30 +08:00
ival
0c87981d43 修改代码逻辑 2021-04-02 18:02:06 +08:00
ival
cb9aa77312 修改代码 2021-04-02 16:19:14 +08:00
ival
e2ffe1ca72 修改代码 2021-04-02 11:30:19 +08:00
ival
832513c750 修改缩放变化的问题 2021-04-01 23:15:01 +08:00
ival
6ebbdec414 修改函数名称 2021-04-01 22:11:01 +08:00
ival
2dbd0d7764 提交代码 2021-04-01 22:05:14 +08:00
ival
0a0ff63fec 修改代码 2021-04-01 18:35:44 +08:00
ival
28242e5a2c 优化界面手标操作 2021-04-01 13:33:03 +08:00
ival
67c5425b67 修改代码 2021-04-01 13:05:46 +08:00
ival
a56598888d 组合可以嵌套处理组合 2021-04-01 12:54:03 +08:00
ival
abbc3b96d2 删除 字段 2021-04-01 12:18:14 +08:00
ival
60cc0d06cb 模板处理 2021-04-01 10:52:41 +08:00
ival
71367cf330 调整代码结构 2021-04-01 09:34:44 +08:00
ival
cc6f67dcc0 优化代码 2021-03-31 21:52:13 +08:00
ival
82f432136e 增加代码 2021-03-31 18:29:17 +08:00
ival
143d6a67cc 修改代码 2021-03-31 18:16:58 +08:00
ival
91fd06b695 删除文件 2021-03-31 18:15:12 +08:00
ival
8ae7ff5a8c Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs 2021-03-31 18:14:09 +08:00
ival
62cd098bdd 优化代码 2021-03-31 18:13:58 +08:00
joylink_cuiweidong
6a72265a7b Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs 2021-03-31 13:55:32 +08:00
joylink_cuiweidong
3be099bdf8 iscs 绘图form表单调整 2021-03-31 13:53:18 +08:00
ival
134ccdaded 增加 新iscs_new 功能 2021-03-31 13:03:06 +08:00
ival
d9a8baeb93 调整目录结构 2021-03-31 08:53:05 +08:00
ival
0381242401 增加模块 2021-03-30 18:39:59 +08:00
ival
7e66128000 修改 2021-03-30 18:10:31 +08:00
ival
15c1463f5a Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs 2021-03-30 18:07:13 +08:00
ival
56aebd69e7 增加iscs_new 代码 2021-03-30 18:06:53 +08:00
joylink_cuiweidong
72fadaa866 iscs新版绘图界面调整 2021-03-30 10:29:48 +08:00
ival
9277754f5e 修改代码 2021-03-29 18:43:51 +08:00
ival
e15e5703b4 Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs 2021-03-29 13:12:13 +08:00
ival
ad7b55704e 增加 门禁iscs背景图,以及iscs_new的部分代码 2021-03-29 13:12:04 +08:00
ival
68a01f94f2 修改代码 2021-03-29 10:59:57 +08:00
joylink_cuiweidong
5150fe4651 Merge branch 'iscs' of https://git.code.tencent.com/lian-cbtc/jl-client into iscs 2021-03-29 10:04:17 +08:00
joylink_cuiweidong
df44298137 运行图编制 代码调整 2021-03-29 10:03:47 +08:00
ival
742d89f08a 增加部分 iscs_new 代码 2021-03-29 09:46:33 +08:00
ival
6b16e3d488 增加 iscs 2021-03-26 17:09:11 +08:00
2524 changed files with 76660 additions and 346825 deletions

View File

@ -5,10 +5,9 @@ NODE_ENV = 'development'
# base api
# VUE_APP_BASE_API = 'https://joylink.club/jlcloud'
# VUE_APP_BASE_API = 'http://192.168.3.4:9000'
# VUE_APP_BASE_API = 'http://192.168.3.6:9000'
# VUE_APP_VOICE_API = 'http://119.3.163.89/oss/joylink'
# VUE_APP_UPLOAD_API = 'http://joylink.club/jlfile'
# VUE_APP_BASE_SITE='https://test.joylink.club/cbtc'
VUE_APP_BASE_API = 'http://192.168.3.6:9000'
VUE_APP_VOICE_API = 'https://oss.joylink.club/oss/joylink'
VUE_APP_UPLOAD_API = 'https://upload.joylink.club'
# VUE_APP_VOICE_API = 'http://192.168.8.110:9008'

View File

@ -3,7 +3,6 @@ NODE_ENV = 'production'
VUE_APP_PRO = 'local'
# base api
# VUE_APP_BASE_API = 'http://160.20.60.15:9000'
# VUE_APP_VOICE_API = 'http://160.20.60.15/oss/joylink'
# VUE_APP_UPLOAD_API = 'http://160.20.60.15'
# VUE_APP_BASE_SITE='http://160.20.60.15'
VUE_APP_BASE_API = 'https://joylink.club/jlcloud'
VUE_APP_VOICE_API = 'https://joylink.club/oss/joylink'
VUE_APP_UPLOAD_API = 'https://upload.joylink.club'

View File

@ -1,9 +0,0 @@
# just a flag
NODE_ENV = 'test'
VUE_APP_PRO = 'local-test'
# base api
# VUE_APP_BASE_API = 'https://test.joylink.club/jlcloud'
# VUE_APP_VOICE_API = 'https://joylink.club/oss/joylink'
# VUE_APP_UPLOAD_API = 'https://upload.joylink.club'
# VUE_APP_BASE_SITE='https://test.joylink.club/cbtc'

View File

@ -3,7 +3,6 @@ NODE_ENV = 'production'
VUE_APP_PRO = 'ntyl'
# base api
# VUE_APP_BASE_API = 'https://joylink.club/jlcloud'
# VUE_APP_VOICE_API = 'https://joylink.club/oss/joylink'
# VUE_APP_UPLOAD_API = 'https://upload.joylink.club'
# VUE_APP_BASE_SITE='https://joylink.club/cbtc'
VUE_APP_BASE_API = 'https://joylink.club/jlcloud'
VUE_APP_VOICE_API = 'https://joylink.club/oss/joylink'
VUE_APP_UPLOAD_API = 'https://upload.joylink.club'

View File

@ -2,7 +2,6 @@
NODE_ENV = 'production'
# base api
# VUE_APP_BASE_API = 'https://joylink.club/jlcloud'
# VUE_APP_VOICE_API = 'https://joylink.club/oss/joylink'
# VUE_APP_UPLOAD_API = 'https://upload.joylink.club'
# VUE_APP_BASE_SITE='https://joylink.club/cbtc'
VUE_APP_BASE_API = 'https://api.joylink.club/jlcloud'
VUE_APP_VOICE_API = 'https://oss.joylink.club/oss/joylink'
VUE_APP_UPLOAD_API = 'https://upload.joylink.club'

View File

@ -1,9 +0,0 @@
# just a flag
NODE_ENV = 'production'
VUE_APP_PRO = 'common'
# base api
# VUE_APP_BASE_API = 'http://160.20.60.15:9000'
# VUE_APP_VOICE_API = 'http://160.20.60.15/oss/joylink'
# VUE_APP_UPLOAD_API = 'http://160.20.60.15'
# VUE_APP_BASE_SITE='http://160.20.60.15'

View File

@ -2,7 +2,6 @@
NODE_ENV = 'test'
# base api
# VUE_APP_BASE_API = 'https://test.joylink.club/jlcloud'
# VUE_APP_VOICE_API = 'https://joylink.club/oss/joylink'
# VUE_APP_UPLOAD_API = 'https://upload.joylink.club'
# VUE_APP_BASE_SITE='https://test.joylink.club/cbtc'
VUE_APP_BASE_API = 'https://test.joylink.club/jlcloud'
VUE_APP_VOICE_API = 'https://oss.joylink.club/oss/joylink'
VUE_APP_UPLOAD_API = 'https://upload.joylink.club'

View File

@ -1,52 +0,0 @@
---
name: local-test分支构建发布到本地服务器
run-name: ${{ gitea.actor }} is testing out Gitea Actions
on:
push:
branches:
- local-test
jobs:
Build-Publish:
runs-on: joylink-local233
steps:
- name: 检出代码
uses: https://gitea.joylink.club/actions/checkout@v4
with:
submodules: recursive
- name: 设置node环境
uses: https://gitea.joylink.club/actions/local-setup-node@v0.1.1
with:
version: v14.21.3
cache: yarn
cache-dependency-path: yarn.lock
- name: 安装yarn,并build
run: |
node -v
npm config set registry https://registry.npmmirror.com
npm install --global yarn
yarn config set registry https://registry.npmmirror.com
yarn
yarn run buildas local-test
tar czvf ./dist-local-test.tar.gz ./dist
- name: 打包发送到服务器
uses: https://gitea.joylink.club/appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.LOCAL_233_SSH_HOST }}
username: ${{ secrets.LOCAL_233_SSH_USER }}
password: ${{ secrets.LOCAL_233_SSH_PASSWORD }}
port: ${{ secrets.LOCAL_233_SSH_PORT }}
source: ./dist-local-test.tar.gz
target: /home/minio/oss/rt-sim-training-client
overwrite: true
- name: SSH连接并解压发布
uses: https://gitea.joylink.club/appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.LOCAL_233_SSH_HOST }}
port: ${{ secrets.LOCAL_233_SSH_PORT }}
username: ${{ secrets.LOCAL_233_SSH_USER }}
password: ${{ secrets.LOCAL_233_SSH_PASSWORD }}
script: |
cd /home/minio/oss/rt-sim-training-client
rm -rf /usr/local/joylink/client/cbtc
mkdir -p /usr/local/joylink/client
tar xz --strip 2 -C /usr/local/joylink/client -f dist-local-test.tar.gz

View File

@ -1,52 +0,0 @@
name: master分支构建发布到公网服务器
run-name: ${{ gitea.actor }} is testing out Gitea Actions
on:
push:
branches:
- master
jobs:
Build-Publish:
runs-on: joylink-local233
steps:
- name: 检出代码
uses: https://gitea.joylink.club/actions/checkout@v4
with:
submodules: recursive
- name: 设置node环境
uses: https://gitea.joylink.club/actions/local-setup-node@v0.1.1
with:
version: 'v14.21.3'
cache: 'yarn'
cache-dependency-path: 'yarn.lock'
- name: 安装yarn,并build
run: |
node -v
npm config set registry https://registry.npmmirror.com
npm install --global yarn
yarn config set registry https://registry.npmmirror.com
yarn
yarn run build
tar czvf ./dist-master.tar.gz ./dist
- name: 打包发送到服务器
uses: https://gitea.joylink.club/appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.PUB1_DOMAIN_SSH_HOST }}
port: ${{ secrets.PUB1_DOMAIN_SSH_PORT }}
username: ${{ secrets.PUB1_DOMAIN_SSH_USER }}
password: ${{ secrets.PUB1_DOMAIN_SSH_PASSWORD }}
source: ./dist-master.tar.gz
target: /mnt/data/published/rt-sim-training-client
overwrite: true
- name: SSH连接并解压发布
uses: https://gitea.joylink.club/appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.PUB1_DOMAIN_SSH_HOST }}
port: ${{ secrets.PUB1_DOMAIN_SSH_PORT }}
username: ${{ secrets.PUB1_DOMAIN_SSH_USER }}
password: ${{ secrets.PUB1_DOMAIN_SSH_PASSWORD }}
script: |
cd /mnt/data/published/rt-sim-training-client
rm -rf /usr/local/joylink/client/cbtc
mkdir -p /usr/local/joylink/client
tar xz --strip 2 -C /usr/local/joylink/client -f dist-master.tar.gz

2
.gitignore vendored
View File

@ -4,6 +4,7 @@ dist/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
package-lock.json
tests/**/coverage/
src/utils/baseUrl.js*
@ -15,4 +16,3 @@ src/utils/baseUrl.js*
*.njsproj
*.sln
debug.log
.prettierrc

View File

@ -1,3 +1,3 @@
# jl-nclient
showMode 01 行调&现地;02 行调; 03 现地; 04 大屏; 05 轨道预览;
Copyright (c) 2018-present Joylink

View File

@ -4,6 +4,3 @@ English | [简体中文](./README-zh.md)
Copyright (c) 2018-present Joylink
### 项目环境
- "node": "<=14.21.3";
- "webpack": ">=4 < 4.29";

View File

@ -6,11 +6,10 @@
"license": "MIT",
"scripts": {
"start": "vue-cli-service serve --open",
"dev": "node --max_old_space_size=4096 node_modules/@vue/cli-service/bin/vue-cli-service.js serve --open",
"dev": "node --max_old_space_size=4096 node_modules/@vue/cli-service/bin/vue-cli-service.js serve",
"build": "vue-cli-service build --mode production",
"test": "vue-cli-service build --mode staging",
"local": "vue-cli-service build --mode",
"buildas": "vue-cli-service build --mode",
"preview": "node build/index.js --preview",
"lint": "eslint --ext .js,.vue src",
"test:unit": "jest --clearCache && vue-cli-service test:unit",
@ -18,16 +17,13 @@
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml"
},
"dependencies": {
"@stomp/stompjs": "^5.4.4",
"@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-vue": "^1.0.2",
"axios": "^0.18.0",
"dayjs": "^1.11.5",
"axios": "0.18.0",
"echarts": "^4.7.0",
"element-ui": "^2.12.0",
"file-saver": "^1.3.3",
"js-cookie": "2.2.0",
"js-md5": "^0.7.3",
"lodash": "^4.17.11",
"normalize.css": "7.0.0",
"nprogress": "^0.2.0",
"path-to-regexp": "2.4.0",
@ -46,11 +42,8 @@
"vue-i18n": "^8.12.0",
"vue-quill-editor": "^3.0.6",
"vue-router": "^3.1.6",
"vue-video-player": "^5.0.1",
"vuedraggable": "^2.24.3",
"vuedraggable": "^2.23.2",
"vuex": "^3.1.0",
"wangeditor": "^4.6.17",
"ws": "^8.13.0",
"xlsx": "^0.14.2",
"zrender": "^4.0.4"
},
@ -77,9 +70,10 @@
"eslint-plugin-vue": "5.2.2",
"file-loader": "^3.0.1",
"html-webpack-plugin": "3.2.0",
"node-sass": "^4.14.1",
"mockjs": "1.0.1-beta3",
"node-sass": "^4.9.0",
"runjs": "^4.3.2",
"sass-loader": "^7.3.1",
"sass-loader": "^7.1.0",
"script-ext-html-webpack-plugin": "2.1.3",
"script-loader": "^0.7.2",
"serve-static": "^1.13.2",

View File

@ -1,44 +1,24 @@
<template>
<div id="app">
<router-view v-if="loadingComponent" />
<deomon-list ref="deomonList" @enterQcode="qcodeEntry" />
<qcode ref="qcode" />
<div v-show="loading" class="AppAll">
<img v-if="project === 'login' || project === 'design'" :src="jlFavicon" class="CompanyIcon">
<img :src="loadingImg" style="width: 100%; height: 100%;">
</div>
<div
v-if="!$store.state.user.baseUrl && needLoading"
v-loading="!$store.state.user.baseUrl"
element-loading-text="拼命加载中"
element-loading-background="rgba(0, 0, 0, 0)"
element-loading-spinner="el-icon-loading"
style="width: 100%;height: 100%;"
>
<img :src="appLoading" class="centerImg">
</div>
<router-view />
<deomon-topic ref="deomonTopic" />
<img v-show="loading" :src="loadingImg" style="position: absolute;top: 0;left: 0;width: 100%;height: 100%;z-index: 2003">
</div>
</template>
<script>
import { getToken, getUserIdKey } from '@/utils/auth';
import { getSessionStorage, setSessionStorage } from '@/utils/auth';
import { getToken } from '@/utils/auth';
import { getSessionStorage } from '@/utils/auth';
import { loginInfo, ProjectIcon } from '@/scripts/ProjectConfig';
import DeomonTopic from '@/views/demonstration/deomonTopic';
import WindowResizeHandler from '@/mixin/WindowResizeHandler';
import LoadingImg from '@/assets/loading.gif';
import AppLoading from '@/assets/appLoading.png';
import { openIndexedDB } from '@/utils/indexedDb';
import Favicon from '@/assets/icon/favicon.png';
import DeomonList from '@/views/demonstration/deomonList/index';
import Qcode from '@/layout/components/Qcode.vue';
import {removeToken} from './utils/auth';
import { getFrontProjectConfigByLogin} from '@/api/projectConfig';
import { handlerUrl } from '@/utils/baseUrl';
export default {
name: 'App',
components: {
DeomonList,
Qcode
DeomonTopic
},
mixins: [
WindowResizeHandler
@ -46,103 +26,59 @@ export default {
data() {
return {
loadingImg: LoadingImg,
appLoading: AppLoading,
loading: false,
jlFavicon: Favicon,
project: '',
loadingComponent: false
loading: false
};
},
computed: {
needLoading() {
return this.$route.path !== '/authorization';
watch: {
'$store.state.socket.simulationInvite': function (val) {
if (val.creator) {
this.subscribeMessage(val);
}
},
'$store.state.socket.roomInvite': function (val) {
if (val.creator) {
this.subscribeMessage(val);
}
},
watch: {
'$store.state.socket.beLogoutCount': async function(val) {
if (this.$store.state.socket.loggedOutMsg.token === getToken()) {
this.$store.dispatch('disconnect').then(()=>{
this.$alert(this.$t('tip.logoutTips'), this.$t('tip.hint'), {
confirmButtonText: this.$t('tip.confirm'),
callback: action => {
removeToken();
this.$store.dispatch('exit').then(resp => {
this.$router.push({path: `/login?project=${this.$store.state.projectConfig.markKey}`});
this.$router.push({path: loginInfo[getSessionStorage('project')].loginPath});
});
}
});
});
}
},
'$store.state.app.transitionAnimationsCount': function(val) {
this.loading = true;
},
'$store.state.app.animationsCloseCount': function(val) {
this.loading = false;
},
'$route': function(val) {
if (val.path == '/display/demon' && val.query.client == 'diagramEdit') { //
this.loading = false;
}
if (this.$route.query.project || this.$route.path === '/login' || this.$route.path === '/') {
setSessionStorage('project', this.$route.query.project || 'login');
}
this.project = getSessionStorage('project');
if (this.project !== this.$store.state.projectConfig.markKey) {
this.initFrontProjectConfig();
}
},
'$store.state.projectConfig.markKey': function(val) {
if (val) { this.loadingComponent = true; }
created() {
const project = getSessionStorage('project');
if (project) {
document.querySelector("link[rel*='icon']").href = loginInfo[project].linkIcon || ProjectIcon[project];
}
},
mounted() {
this.prohibitSystemContextMenu();
window.addEventListener('beforeunload', async e => {
if (!this.$route.query.noPreLogout) {
await this.$store.dispatch('preLogout');
}
});
window.addEventListener('storage', e => {
if (this.$route.path.includes('trainingDesign') || this.$route.path.includes('trainingPreview')) {
if (e.key == getUserIdKey('nextNew')) {
const operate = JSON.parse(e.newValue);
this.$store.dispatch('trainingNew/next', operate);
}
}
});
this.$nextTick(() => {
this.subscribe();
openIndexedDB();
});
},
beforeDestroy() {
this.$store.dispatch('subscribe_un', {});
},
methods: {
initFrontProjectConfig() {
getFrontProjectConfigByLogin(this.project).then(resp => {
const urlData = handlerUrl();
const { baseApiUrl, baseSite, ossUrl, loginProLogo, browserTitle} = resp.data.viewSetting;
this.$store.dispatch('setBaseUrl', baseApiUrl || urlData.BASE_API);
this.$store.dispatch('setBaseSite', baseSite || urlData.BASE_SITE);
this.$store.dispatch('setOssUrl', ossUrl || urlData.OSS_URL);
this.$store.dispatch('projectConfig/setMarkKey', resp.data.markKey);
this.$store.dispatch('projectConfig/setProjectCode', resp.data.project);
this.$store.dispatch('projectConfig/setViewSetting', resp.data.viewSetting);
document.title = browserTitle;
if (loginProLogo) {
document.querySelector("link[rel*='icon']").href = (ossUrl || urlData.OSS_URL) + '/logo/' + loginProLogo;
}
}).catch(e => this.$message.error('获取配置数据失败!'));
},
quickEntry() {
this.$refs.deomonList.doShow();
},
qcodeEntry() {
this.$refs.qcode.doShow();
},
resizeHandler() {
this.$store.dispatch('app/resize', { width: this._clientWidth, height: this._clientHeight });
},
@ -150,28 +86,25 @@ export default {
window.document.oncontextmenu = function () {
return false;
};
},
subscribeMessage(res) {
if (this.$refs.deomonTopic && !window.location.href.includes('trainroom')) {
if (!(getSessionStorage('project').includes('design'))) {
this.$refs.deomonTopic.doShow(res);
}
this.$store.dispatch('socket/setSimulationInvite');
this.$store.dispatch('socket/setRoomInvite');
}
},
subscribe() {
const token = getToken();
const path = window.location.pathname;
if (token && this.$route.path != '/404' && !path.endsWith('login')) {
const header = { group: '', 'X-Token': token };
this.$store.dispatch('subscribe', {header, type: getSessionStorage('project')});
}
}
}
};
</script>
<style lang="scss" scoped>
.AppAll{position: absolute;top: 0;left: 0;width: 100%;height: 100%;z-index: 3003}
.centerImg {
position: absolute;
left:50%;
top: 50%;
width: 480px;
height: 456px;
margin-left: -240px;
margin-top: -228px;
}
.CompanyIcon{
position: absolute;
z-index: 3000;
left: 50%;
margin-left: -60px;
width: 120px;
top: 30px;
}
</style>

View File

@ -1,36 +0,0 @@
import request from '@/utils/request';
// 查询指示灯关联信息列表
export function queryAssistListPaged(params, mapId) {
return request({
// url: `/api/assist/indicator/section/list/${mapId}`,
url: `/api/station/direction/list/${mapId}`,
method: 'get',
params
});
}
// 根据id查询单个指示灯关联信息
export function queryAssistById(mapId){
return request({
// url: `/api/assist/indicator/section/${id}`,
url: `/api/station/direction/${mapId}`,
method: 'get'
})
}
// 保存或更新指示灯关联信息
export function saveAssist(data, mapId) {
return request({
// url: `/api/assist/indicator/section/save/${mapId}`,
url: `/api/station/direction/save/${mapId}`,
method: 'post',
data
})
}
// 删除指示灯关联关系
export function deleteAssist(id) {
return request({
// url: `/api/assist/indicator/section/delete/${id}`,
url: `/api/station/direction/delete/${id}`,
method: 'delete'
})
}

View File

@ -1,57 +0,0 @@
import request from '@/utils/request';
// 创建音频资源
export function createAudioResources(data) {
return request({
url: `/api/audioResources`,
method: 'post',
data
});
}
// 查询所有音频资源
export function queryAllAudioResources() {
return request({
url: `/api/audioResources/list`,
method: 'get'
});
}
// 删除音频资源
export function deleteAudioResources(id) {
return request({
url: `/api/audioResources/${id}`,
method: 'delete'
});
}
// 更新音频资源
export function updateAudioResources(id, data) {
return request({
url: `/api/audioResources/${id}`,
method: 'put',
data
});
}
// 分页查询音频资源
export function pagedAudioResources(params) {
return request({
url: `/api/audioResources/paged`,
method: 'get',
params
});
}
// 上传音频文件
export function uploadAudio(file) {
return request({
url: `/api/upload/AUDIO?appId=00001&appSecret=joylink00001`,
method: 'post',
data: file,
upload: true
});
}
// 生成音频文件
export function generateAudio(data) {
return request({
url: `/api/audioResources/generate`,
method: 'post',
data
});
}

View File

@ -1,53 +0,0 @@
import request from '@/utils/request';
/** 创建权限分发*/
export function createDistribute(data) {
return request({
url: `/api/v3/permission/distribute/create`,
method: 'post',
data
});
}
/** 分页获取权限分发列表*/
export function getDistributeList(data) {
return request({
url: `/api/v3/permission/distribute/paging`,
method: 'post',
data
});
}
// /** 设置权限分发立即失效*/
// export function setDistributeInvalidate(pdId) {
// return request({
// url: `/api/v2/permission/distribute/${pdId}/invalidate`,
// method: 'put'
// });
// }
/** 获取权限分发明细*/
export function getDistributeDetail(disId) {
return request({
url: `/api/v3/permission/distribute/list/distribute/${disId}`,
method: 'get'
});
}
/** 从权限分发,直接分发给指定主体*/
export function setDistributeToSubject(pdId, subjectType, subjectId) {
return request({
url: `/api/v3/permission/distribute/${pdId}/to/${subjectType}/${subjectId}`,
method: 'post'
});
}
/** 生成分发二维码*/
export function getDistributeQrCode(pdId) {
return request({
url: `/api/v3/permission/distribute/${pdId}/qrCode`,
method: 'get'
});
}

View File

@ -61,19 +61,3 @@ export function sendConversationText (group, id, data) {
data
});
}
/** 发送会话语音(新接口) */
export function sendChatAudioBase64 (group, data) {
return request({
url: `/simulation/${group}/operate/Conversation_Chat_Audio_Base64`,
method: 'post',
data
});
}
/** 发送会话文字(新接口) */
export function sendChatText (group, data) {
return request({
url: `/simulation/${group}/operate/Conversation_Chat_Text`,
method: 'post',
data
});
}

View File

@ -227,6 +227,21 @@ export function createStudent(orgId, data) {
data
});
}
/** 获取班级关联课程 */
export function getClassAssociatedLessons(orgId) {
return request({
url: `/api/company/orgLesson/${orgId}/list`,
method: 'get'
});
}
/** 关联课程班级 */
export function setClassAssociatedLessons(orgId, data) {
return request({
url: `/api/company/orgLesson/${orgId}/update`,
method: 'put',
data
});
}
/** 创建修改 规则 */
export function createRule(data) {
return request({
@ -294,25 +309,3 @@ export function getCanApplyToList(ruleId) {
method: 'get'
});
}
/** 查询组织树结构 */
export function getOrgTreeById(orgId) {
return request({
url: `api/company/orgTree/${orgId}`,
method: 'get'
});
}
/** 查询学生在地图下仿真使用时长和实训使用时长 */
export function getUserDuration(params) {
return request({
url: `api/company/usage/students`,
method: 'get',
params
});
}
/** 获取单位二维码 */
export function getCompanyQrCode(orgId) {
return request({
url: `/api/company/${orgId}/qrCode`,
method: 'get'
});
}

View File

@ -162,48 +162,3 @@ export function getPayQrCode(mapId, monthAmount) {
method: 'post'
});
}
/** 场景语音训练上传录音文件 */
export function uploadAudioFilesInSence(competitionId, cmdEvaRuleId, actionId, file) {
return request({
url: `/api/v1/competitionPractical/voice/record/${competitionId}/${cmdEvaRuleId}/${actionId}`,
method: 'post',
data: file
});
}
/** 场景语音训练更新录音文件 */
export function updateAuidoFilesInSence( recordId, file) {
return request({
url: `/api/v1/competitionPractical/voice/record/${recordId}`,
method: 'put',
data: file
});
}
/** 查询语音录制 */
export function getAudioFilesList(userId, competitionId) {
return request({
url: `/api/v1/competitionPractical/voice/record/query/${userId}/${competitionId}`,
method: 'get'
});
}
/** 场景语音校验 */
export function audioFilesCheck(recordId, data) {
return request({
url: `/api/v1/competitionPractical/voice/record/check/${recordId}`,
method: 'post',
data
});
}
/** 语音录制校验整个场景 */
export function audioFilesCheckAllSence(competitionId, userId) {
return request({
url: `/api/v1/competitionPractical/voice/record/check/${competitionId}/${userId}`,
method: 'get'
});
}
/** 查询有场景录音数据的用户 */
export function getHavaAudoUserList(competitionId) {
return request({
url: `/api/v1/competitionPractical/voice/record/users/${competitionId}`,
method: 'get'
});
}

View File

@ -1,416 +0,0 @@
import request from '@/utils/request';
/**
* 获取竞赛试卷分页列表
* @param {Object} params
* @param {String} params.name 试卷名称
*/
export function getPaperList(params) {
return request({
url: '/api/exercise/race/paper/page',
method: 'GET',
params
});
}
/**
* 创建试卷
* @param {Object} data
* @param {String} data.name 试卷名称
* @param {String} data.desc 基础描述
* @param {Number} data.seasonId 所属赛季id
* @param {Boolean} data.supportCopy 是否支持拷贝
*/
export function createPaper(data) {
return request({
url: '/api/exercise/race/paper',
method: 'POST',
data
});
}
/**
* @param {Object} data 同创建试卷
* @param {Number} id 试卷id
*/
export function editPaper(id, data) {
return request({
url: `/api/exercise/race/paper/${id}`,
method: 'POST',
data
});
}
/**
* @param {Number} id 任务id
*/
export function deletePaper(id) {
return request({
url: `/api/exercise/race/paper/${id}`,
method: 'DELETE'
});
}
/**
* 获取竞赛试卷菜单
* @param {Object} params
* @param {String} params.group 分组ZZ=中职;GZ=高职
*/
export function getPaperMenu(params) {
return request({
url: '/api/exercise/race/paper/menu',
method: 'GET',
params
});
}
/**
* @param {Object} data
* @param {Array} data.modules 所有模块
* @param {Number} data.modules[i].module_name 模块名字
* @param {Number} data.modules[i].duration 考试总时间
* @param {Number} data.modules[i].group 任务分组
* @param {Number} data.modules[i].group.taskIds 此分组中的任务id
* @param {Number} data.modules[i].group.name 此组的名字
* @param {Number} data.modules[i].group.group 此分组的子分组
*/
export function paperModuleTaskSetting(paperId, data) {
return request({
url: `/api/exercise/race/paper/${paperId}/config`,
method: 'POST',
data
});
}
/**
* @param {Number} id 模块id
*/
export function getPaperDetail(id) {
return request({
url: `/api/exercise/race/paper/${id}`,
method: 'GET'
});
}
/**
* @param {Number} id 模块id
*/
export function copyPaper(id) {
console.log(id);
return request({
url: `/api/exercise/race/paper/${id}/copy`,
method: 'PUT'
});
}
/** 查看所有任务数据 */
export function getTaskTreeDatas() {
return request({
url: '/api/exercise/race/task/tree',
method: 'GET'
});
}
/**
* 创建任务
* @param {Object} data
* @param {String} data.name 任务名称
* @param {String} data.desc 基础描述
* @param {String} data.content 考核内容
* @param {String} data.standards 评价标准
* @param {Number} data.parentId 如果是子任务需要父任务的id
*/
export function createTask(data) {
return request({
url: '/api/exercise/race/task',
method: 'POST',
data
});
}
/**
* @param {Object} data 同创建任务
* @param {Number} id 任务id
*/
export function editTask(id, data) {
return request({
url: `/api/exercise/race/task/${id}`,
method: 'POST',
data
});
}
/**
* @param {Number} id 任务id
*/
export function deleteTask(id) {
return request({
url: `/api/exercise/race/task/${id}`,
method: 'DELETE'
});
}
/**
* @param {Number} id 任务id
*/
export function getTaskDetail(id) {
return request({
url: `/api/exercise/race/task/${id}`,
method: 'GET'
});
}
/**
* @param {Number} id 任务id
*/
export function getchildrenTaskDatas(id) {
return request({
url: `/api/exercise/race/task/${id}/children`,
method: 'GET'
});
}
/**
* @param {Array} data
* @param {Number} taskId 任务id
* @param {Number} data[i].bindId 绑定id根据bindtype来区分对应的id
* @param {String} data[i].bindType rule =0评分规则;scene=1场景
* @param {Number} data[i].status 0=绑定 1=解绑
*/
export function bindTask(taskId, data) {
return request({
url: `/api/exercise/race/task/${taskId}/bind`,
method: 'POST',
data
});
}
/**
* @param {Object} data
* @param {Number} data.group 分组 1-高职 2中职
* @param {String} data.term 赛季
* @param {String} data.code 编号
*/
export function addContestSeason(data) {
return request({
url: '/api/exercise/race/season',
method: 'post',
data
});
}
/**
* @param {Object} params
* @param {Number} params.group 分组 1-高职 2中职
* @param {String} params.term 赛季
* @param {String} params.code 编号
*/
export function queryContestSeasonPaged(params) {
return request({
url: '/api/exercise/race/season/page',
method: 'get',
params
});
}
/**
* @param {Object} data
* @param {Number} id 赛季id
* @param {String} data.group 分组 ZZ=中职GZ=高职
* @param {String} data.term 赛季
* @param {String} data.code 编号
*/
export function updateContestSeason(id, data) {
return request({
url: `/api/exercise/race/season/${id}`,
method: 'post',
data
});
}
/**
* @param {Number} id 赛季id
*/
export function deleteContestSeason(id) {
return request({
url: `/api/exercise/race/season/${id}`,
method: 'delete'
});
}
/**
* @param {Object} data
* @param {String} data.name 名称
*/
export function createContextScore(data) {
return request({
url: '/api/exercise/race/score',
method: 'post',
data
});
}
/**
* @param {Object} params
* @param {String} params.name 名称
*/
export function queryContextScorePaged(params) {
return request({
url: '/api/exercise/race/score/page',
method: 'get',
params
});
}
/**
* @param {Number} id 评分id
*/
export function deleteContextScore(id) {
return request({
url: `/api/exercise/race/score/${id}`,
method: 'delete'
});
}
/**
* @param {Number} id 评分id
* @param {Object} data
* @param {Array [object]} data.units 评分单元
* @param {String} data.units[0].text 文字描述
* @param {Number} data.units[0].sceneStepId 场景步骤ID
* @param {Number} data.units[0].score 分值
* @param {String} data.units[0].worker 作业程序
* @param {String} data.units[0].criteria 评分标准
*/
export function updateContextScoreDetail(id, data) {
return request({
url: `/api/exercise/race/score/edit/rule/${id}`,
method: 'post',
data
});
}
/**
* @param {Number} id 评分id
*/
export function getContextScoreDetail(id) {
return request({
url: `/api/exercise/race/score/${id}`,
method: 'get'
});
}
/**
* @param {Object} params
* @param {String} params.type 竞赛类型 local=场景;link=3D
*/
export function queryContestSencePaged(params) {
return request({
url: '/api/exercise/race/scene/page',
method: 'get',
params
});
}
/**
* @param {Number} id 场景id
*/
export function deleteContestSence(id) {
return request({
url: `/api/exercise/race/scene/${id}`,
method: 'delete'
});
}
/**
* @param {Number} id 场景id
*/
export function getContextSenceDetail(id) {
return request({
url: `/api/exercise/race/scene/${id}`,
method: 'get'
});
}
/**
* @param {Object} data
* @param {Number} data.traningPublishId 草稿实训场景id
* @param {String} data.name 大赛场景名称
*/
export function publishContextSence(data) {
return request({
url: `/api/exercise/race/scene/publish/training`,
method: 'post',
data
});
}
/**
* @param {Object} data
* @param {String} data.name 场景名称
* @param {String} data.type Video=视频
* @param {Object} data.scene 大赛场景
* @param {String} data.scene.url 地址
* @param {String} data.scene.fileName 文件名
*/
export function saveSceneVideo(data) {
return request({
url: `/api/exercise/race/scene/custom/edit`,
method: 'post',
data
});
}
/** 场景视频编辑 */
export function editSceneVideo(sceneId, data) {
return request({
url: `/api/exercise/race/scene/custom/${sceneId}/edit`,
method: 'post',
data
});
}
/**
* @param {String} paperId 试卷id
* @param {String} moduleId 模块id
*/
export function getTaskTree(paperId, moduleId) {
return request({
url: `/api/exercise/race/paper/${paperId}/module/${moduleId}/task`,
method: 'get'
});
}
/**
* @param {String} paperId 试卷id
* @param {String} moduleId 模块id
*/
export function beginContestExercise(paperId, moduleId) {
return request({
url: `/api/race/${paperId}/${moduleId}`,
method: 'POST'
});
}
/** 竞赛完成训练 */
export function finishContestExercise() {
return request({
url: '/api/race/finish',
method: 'PUT'
});
}
/** html
* @param {String} id 赛季id
* @param {String} data.htmlContent 内容
*/
export function editSeasonContent(id, data) {
return request({
url: `/api/exercise/race/season/${id}/html`,
method: 'post',
data
});
}
/** html
* @param {String} id 赛季id
*/
export function getSeasonContent(id) {
return request({
url: `/api/exercise/race/season/${id}/html`,
method: 'get'
});
}
export function getTheoryList() {
return request({
url: '/api/exercise/race/paper/questions',
method: 'get'
});
}

View File

@ -1,40 +0,0 @@
import request from '@/utils/request';
// 创建调度台逻辑数据
export function createDisStation(mapId, data) {
return request({
url: `/api/draftMap/${mapId}/disStation`,
method: 'post',
data
});
}
// 更新调度台逻辑数据
export function updateDisStation(mapId, data) {
return request({
url: `/api/draftMap/${mapId}/disStation`,
method: 'put',
data
});
}
// 删除调度台逻辑数据
export function deleteDisStation(mapId, code) {
return request({
url: `/api/draftMap/${mapId}/disStation/${code}`,
method: 'delete'
});
}
// 获取调度台逻辑数据
export function getDisStationListPaged(mapId, data) {
return request({
url: `/api/draftMap/${mapId}/disStation/page`,
method: 'post',
data
});
}
/** 查询调度台列表 */
export function getDisStationList(mapId) {
return request({
url: `api/draftMap/${mapId}/disStation/list`,
method: 'get'
});
}

View File

@ -1,68 +0,0 @@
import request from '@/utils/request';
// 获取文章列表
export function getDoc() {
return request({
url: `/api/doc`,
method: 'get'
});
}
// 获取发布内容
export function getDocById(id) {
return request({
url: `/api/doc/${id}`,
method: 'get'
});
}
// 获取草稿列表
export function getDocDraft() {
return request({
url: `/api/doc/draft`,
method: 'get'
});
}
// 创建
export function postDocDraft(data) {
return request({
url: `/api/doc/draft`,
method: 'post',
data
});
}
// 获取草稿数据id
export function getDocDraftById(id) {
return request({
url: `/api/doc/draft/${id}`,
method: 'get'
});
}
// 更新草稿数据
export function putDocDraftById(id, data) {
return request({
url: `/api/doc/draft/${id}`,
method: 'put',
data
});
}
// 删除草稿数据
export function deleteDocDraftById(id) {
return request({
url: `/api/doc/draft/${id}`,
method: 'delete'
});
}
// 保存内容根据id
export function putDocDraftByIdData(id, data) {
return request({
url: `/api/doc/draft/${id}/data`,
method: 'put',
data
});
}
// 草稿发布
export function putDocDraftByIdPublish(id) {
return request({
url: `/api/doc/draft/${id}/publish`,
method: 'put'
});
}

View File

@ -1,26 +0,0 @@
import request from '@/utils/request';
// 分页查询权限功能的基本信息
export function getAbilityPage(data) {
return request({
url: `/api/v2/permission/system/ability/page`,
method: 'post',
data
});
}
// 自动生成
export function autoCreate() {
return request({
url: `/api/v2/permission/system/ability/autoCreate`,
method: 'get'
});
}
// 获取所有功能
export function getAllAbility() {
return request({
url: `/api/v2/permission/system/ability/list`,
method: 'get'
});
}

View File

@ -49,116 +49,3 @@ export function queryHasIscs(params) {
params
});
}
// iscs设备创建
export function createIscsDevcie(data) {
return request({
url: `/api/iscsDevice`,
method: 'post',
data
});
}
// 查询所有iscs设备
export function queryAllIscsDevice() {
return request({
url: `/api/iscsDevice/all`,
method: 'get'
});
}
// 根据id查询iscs设备
export function queryIscsDevcieById(id) {
return request({
url:
`/api/iscsDevice/${id}`,
method: 'get'
});
}
// 根据mapId获取Iscs设备list
export function queryIscsDeviceListByMapId(mapId) {
return request({
url: `/api/iscsDevice/list/mapId/${mapId}`,
method: 'get'
});
}
// 分页查询ISCS设备
export function pagedIscsDevice(params) {
return request({
url: `/api/iscsDevice/paged`,
method: 'get',
params
});
}
// 删除ISCS设备
export function deleteIscsDevice(id) {
return request({
url: `/api/iscsDevice/${id}`,
method: 'delete'
});
}
// 根据mapId查询设备列表
export function getIscsDeviceListByMapId(mapId) {
return request({
url: `/api/iscsDevice/list/mapId/${mapId}`,
method: 'get'
});
}
// 根据条件查询设备列表
export function queryIscsDeviceCod(params) {
return request({
url: `/api/iscsDevice/list/criteria`,
method: 'get',
params
});
}
// 批量创建ISCS设备
export function batchCreateIscsDevcie(data) {
return request({
url: `/api/iscsDevice/create/batch`,
method: 'post',
data
});
}
// 创建ISCS系统资源
export function createIscsResources(data) {
return request({
url: `/api/systemRes`,
method: 'post',
data
});
}
// 查询所有ISCS系统资源
export function queryAllIscsResources() {
return request({
url: `/api/systemRes/all`,
method: 'get'
});
}
// 根据id查询ISCS系统资源
export function queryIscsResourcesById(id) {
return request({
url: `/api/systemRes/${id}`,
method: 'get'
});
}
// 分页查询ISCS系统资源
export function pagedIscsResources(params) {
return request({
url: `/api/systemRes/paged`,
method: 'get',
params
});
}
// 删除ISCS系统资源
export function deleteIscsResources(id) {
return request({
url: `/api/systemRes/${id}`,
method: 'delete'
});
}
// 按条件查询ISCS系统资源
export function queryIscsResourcesCod(params) {
return request({
url: `/api/systemRes/list/criteria`,
method: 'get',
params
});
}

View File

@ -1,11 +1,13 @@
import request from '@/utils/request';
import store from '@/store/index';
const publicPath = process.env.VUE_APP_PRO == 'local' ? '' : '/cbtc';
export const JL3D_LOCAL_STATIC = publicPath+"/static";
const BASE_UPLOAD_API = store.state.user.uploadUrl;
// export const BASE_ASSET_API = store.state.user.resourcesUrl;
export const BASE_ASSET_API = store.state.user.ossUrl;
const BASE_UPLOAD_API = process.env.VUE_APP_UPLOAD_API;
export const BASE_ASSET_API = process.env.VUE_APP_VOICE_API;
// console.log(JL3D_LOCAL_STATIC);
// console.log(BASE_UPLOAD_API);
// console.log(BASE_ASSET_API);
export function getUploadModelUrl() {
return (BASE_UPLOAD_API+"/api/upload/MODEL?appId=00001&appSecret=joylink00001");

View File

@ -75,7 +75,7 @@ export function getPublish3dMapDetail(id) {
}
/** 录制托管*/
export function tuoguan3ddrive(group, data) {
export function tuoguan3ddrive(group,data) {
return request({
url: `/api/scriptSimulation/${group}/trust`,
method: 'put',
@ -101,7 +101,7 @@ export function saveStationManagerData(data) {
});
}
// 更新数据
export function updateStationManagerData(id, data) {
export function updateStationManagerData(id,data) {
return request({
url: `/api/pfp/${id}`,
method: 'put',
@ -128,6 +128,6 @@ export function getStationManagerData(id) {
export function deleteStationManagerData(id) {
return request({
url: `/api/pfp/${id}`,
method: 'delete'
method: 'delete',
});
}

View File

@ -111,11 +111,10 @@ export function getLessonProjectList(params) {
});
}
/** 获取自己发布课程列表不分页 */
export function getLessonProjectListNoPage(params) {
export function getLessonProjectListNoPage() {
return request({
url: '/api/lesson/list/byLoginProject',
method: 'get',
params
method: 'get'
});
}
/** 获取班级关联的自己发布的课程 */

View File

@ -1,106 +0,0 @@
import request from '@/utils/request';
//获取三维课程草稿列表
export function getLesson3dDrftList(params) {
return request({
url: `/api/draft3dLesson/paging`,
method: 'get',
params: params
});
}
//获取三维课程草稿数据
export function getLesson3dData(lessonId) {
return request({
url: `/api/draft3dLesson/${lessonId}`,
method: 'get',
params: ''
});
}
//获取三维课程发布数据
export function getPublishLesson3dData(lessonId) {
return request({
url: `/api/lesson3d/${lessonId}`,
method: 'get',
params: ''
});
}
//上架课程
export function onlineLesson3d(lessonId) {
return request({
url: `/api/lesson3d/${lessonId}/online`,
method: 'put',
params: ''
});
}
//下架课程
export function offlineLesson3d(lessonId) {
return request({
url: `/api/lesson3d/${lessonId}/offline`,
method: 'put',
params: ''
});
}
export function getSelectLesson3dList(params) {
return request({
url: `/api/lesson3d/list`,
method: 'get',
params: params
});
}
//查询发布课程
export function publishedLesson3d(params) {
return request({
url: `/api/lesson3d/paging`,
method: 'get',
params: params
});
}
//保存
export function createLesson3d(data) {
return request({
url: `/api/draft3dLesson`,
method: 'post',
data: data
});
}
//发布课程
export function publishLesson3d(lessonId) {
return request({
url: `/api/draft3dLesson/${lessonId}/publish`,
method: 'post',
data: ''
});
}
// 更新基本信息
export function updateLesson3dBasic(lessonId,data) {
return request({
url: `/api/draft3dLesson/${lessonId}/basic`,
method: 'put',
data: data
});
}
// 更新数据
export function updateLesson3dData(lessonId,data) {
return request({
url: `/api/draft3dLesson/${lessonId}/data`,
method: 'put',
data: data
});
}
/** 删除课程*/
export function delLesson3d(lessonId) {
return request({
url: `/api/draft3dLesson/${lessonId}`,
method: 'delete',
data: ''
});
}
//

View File

@ -278,54 +278,3 @@ export function getSectionListByCenStationCode(id, stationCode) {
method: 'get'
});
}
/** 校验所有地图数据 */
export function allSimulationCheck() {
return request({
url: '/api/map/all/simulationCheck',
method: 'get'
});
}
/** 根据地图查询仿真成员 */
export function querySimulationMemberByMapId(id) {
return request({
url: `/api/map/${id}/memberMap`,
method: 'get'
});
}
/** 根据地图查询车站(含车辆段停车场) */
export function querySimulationStationsByMapId(id) {
return request({
url: `/api/map/${id}/stations`,
method: 'get'
});
}
/** 根据用户查询地图列表 */
export function queryMapListByUser() {
return request({
url: `/api/map/list/online/ofUser`,
method: 'get'
});
}
/** 根据mapId获取客户端信息数据 */
export function getClientDataById(mapId) {
return request({
url: `/api/map/${mapId}/mapClientMap`,
method: 'get'
});
}
/** 发布地图根据id生成实训 */
export function generateTrainingData(data) {
return request({
url: `/api/v2/training/rule/generate/mapId`,
method: 'post',
data: data
});
}
/** 根据mapId获取列车信息 */
export function getTrainListByMapId(mapId) {
return request({
url: `/api/map/${mapId}/trains`,
method: 'get'
});
}

View File

@ -51,14 +51,6 @@ export function deleteMap(data) {
});
}
/** 删除所有草稿地图 */
export function deleteAllMap() {
return request({
url: `/api/mapBuild/delete/all`,
method: 'delete'
});
}
/** 保存草稿地图*/
export function saveMap(data) {
return request({
@ -325,11 +317,10 @@ export function getApproachSectionDetail(id) {
});
}
// 更新信号机接近区段 修改信号机接近区段
export function putApproachSection(mapId, data) {
// 更新信号机接近区段
export function putApproachSection(data) {
return request({
// url: `/api/mapBuild/approachSection/${data.id}`,
url: `/api/draftMap/${mapId}/signalApproachSection/${data.signalCode}`,
url: `/api/mapBuild/approachSection/${data.id}`,
method: 'put',
data: data
});
@ -338,54 +329,36 @@ export function putApproachSection(mapId, data) {
// 分页查询信号机接近区段列表
export function getApproachSectionList(mapId, params) {
return request({
// url: `/api/mapBuild/${mapId}/approachSection/paging`,
url: `/api/draftMap/${mapId}/signalApproachSection/paging`,
url: `/api/mapBuild/${mapId}/approachSection/paging`,
method: 'get',
params
});
}
// 查询所有信号机接近区段数据
export function getSignalApproachSectionList(mapId) {
return request({
url: `/api/draftMap/${mapId}/signalApproachSection/all`,
method: 'get'
});
}
// 延续保护相关接口 创建修改删除根据id查询, 分页查询
// export function postContinueProtect(data) {
// return request({
// url: `/api/mapBuild/overlap`,
// method: 'post',
// data: data
// });
// }
// 获取所有延续保护 list
export function getOverlapAllList(mapId) {
export function postContinueProtect(data) {
return request({
url: `/api/draftMap/${mapId}/overlap/all`,
method: 'get'
url: `/api/mapBuild/overlap`,
method: 'post',
data: data
});
}
export function putContinueProtect(mapId, data) {
export function putContinueProtect(data) {
return request({
// url: `/api/mapBuild/overlap/${data.id}`,
url: `/api/draftMap/${mapId}/overlap/${data.code}`,
url: `/api/mapBuild/overlap/${data.id}`,
method: 'put',
data: data
});
}
export function delContinueProtect(mapId, code) {
export function delContinueProtect(id) {
return request({
// url: `/api/mapBuild/overlap/${id}`,
url: `/api/draftMap/${mapId}/overlap/${code}`,
url: `/api/mapBuild/overlap/${id}`,
method: 'delete'
});
}
export function getContinueProtectList(mapId, params) {
return request({
// url: `/api/mapBuild/${mapId}/overlap/paging`,
url: `/api/draftMap/${mapId}/overlap/paging`,
url: `/api/mapBuild/${mapId}/overlap/paging`,
method: 'get',
params
});
@ -439,16 +412,9 @@ export function putRouteNew(data) {
data:data
});
}
// export function delRouteNew(id) {
// return request({
// url: `/api/mapBuild/routeNew/${id}`,
// method: 'delete'
// });
// }
// 删除指定code进路
export function delRouteNew(mapId, code) {
export function delRouteNew(id) {
return request({
url: `/api/draftMap/${mapId}/route/${code}`,
url: `/api/mapBuild/routeNew/${id}`,
method: 'delete'
});
}
@ -458,30 +424,13 @@ export function getRouteNewById(id) {
method: 'get'
});
}
// // 分页查询进路数据(old)
// export function getRouteNewList(mapId, params) {
// return request({
// url: `/api/mapBuild/${mapId}/routeNew`,
// method: 'get',
// params
// });
// }
// 分页查询进路数据(new)
export function getRouteNewList(mapId, params) {
return request({
url: `/api/draftMap/${mapId}/route/paging`,
url: `/api/mapBuild/${mapId}/routeNew`,
method: 'get',
params
});
}
// 修改进路属性对象
export function putSetDraftMapRouteById(mapId, data) {
return request({
url: `/api/draftMap/${mapId}/route/${data.code} `,
method: 'put',
data
});
}
// 新建进路侧防
export function postFlankProtection(data) {
return request({
@ -492,20 +441,18 @@ export function postFlankProtection(data) {
}
// 更新进路侧防数据
export function putFlankProtection(mapId, data) {
export function putFlankProtection(data) {
return request({
// url: `/api/draftMap/flankProtection/${data.id}`,
url: `/api/draftMap/${mapId}/fls/${data.code}`,
url: `/api/draftMap/flankProtection/${data.id}`,
method: 'put',
data
});
}
// 删除进路侧防
export function delFlankProtection(mapId, code) {
export function delFlankProtection(id) {
return request({
// url: `/api/draftMap/flankProtection/${id}`,
url: `/api/draftMap/${mapId}/fls/${code}`,
url: `/api/draftMap/flankProtection/${id}`,
method: 'delete'
});
}
@ -521,71 +468,50 @@ export function getFlankProtectionDetail(id) {
// 查询进路侧防明细list
export function getFlankProtectionList(mapId, params) {
return request({
// url: `/api/draftMap/flankProtection/${mapId}/paging`,
url: `/api/draftMap/${mapId}/fls/paging`,
url: `/api/draftMap/flankProtection/${mapId}/paging`,
method: 'get',
params
});
}
// 查询进路侧防明细list
export function getDraftMapFlsList(mapId) {
/** 创建车站区段停站时间 */
export function createStationParkTime(data) {
return request({
url: `/api/draftMap/${mapId}/fls/all`,
method: 'get'
});
}
// /** 创建车站区段停站时间 */
// export function createStationParkTime(data) {
// return request({
// url: `/api/mapBuild/stationParkTime`,
// method: 'post',
// data
// });
// }
// /** 删除车站区段停站时间 */
// export function deleteStationParkTime(stationParkTimeId) {
// return request({
// url: `/api/mapBuild/stationParkTime/${stationParkTimeId}`,
// method: 'delete'
// });
// }
// /** 获取车站区段停站时间 */
// export function getStationParkTime(stationParkTimeId, params) {
// return request({
// url: `/api/mapBuild/stationParkTime/${stationParkTimeId}`,
// method: 'get',
// params
// });
// }
/** 一键生成区段停站时间 */
export function generateStationParkTime(mapId) {
return request({
url: `/api/draftMap/${mapId}/parkTime/generate`,
method: 'post'
});
}
/** 更新车站区段停站时间 */
export function updateStationParkTime(mapId, id, data) {
return request({
// url: `/api/mapBuild/stationParkTime/${data.id}`,
url: `/api/draftMap/${mapId}/parkTime/${id}`,
method: 'put',
url: `/api/mapBuild/stationParkTime`,
method: 'post',
data
});
}
/** 分页获取车站区段停站时间 */
export function getStationParkTimeList(mapId, params) {
/** 删除车站区段停站时间 */
export function deleteStationParkTime(stationParkTimeId) {
return request({
// url: `/api/mapBuild/${mapId}/stationParkTime`,
url: `/api/draftMap/${mapId}/parkTime/all`,
url: `/api/mapBuild/stationParkTime/${stationParkTimeId}`,
method: 'delete'
});
}
/** 获取车站区段停站时间 */
export function getStationParkTime(stationParkTimeId, params) {
return request({
url: `/api/mapBuild/stationParkTime/${stationParkTimeId}`,
method: 'get',
params
});
}
/** 更新车站区段停站时间 */
export function updateStationParkTime(data) {
return request({
url: `/api/mapBuild/stationParkTime/${data.id}`,
method: 'get',
data
});
}
/** 分页获取车站区段停站时间 */
export function getStationParkTimeList(mapId, params) {
return request({
url: `/api/mapBuild/${mapId}/stationParkTime`,
method: 'get',
params
});
}
/** 删除原有连锁关系,生成新联锁数据 */
export function generateCI (mapId) {
return request({
@ -637,125 +563,10 @@ export function deleteStationDestination(mapId, code) {
});
}
// 大铁地图进路相关接口 创建修改删除根据id查询,
export function postBigRoute(data, mapId) {
/** 根据group查询目的码 */
export function getSimulationDestinationList(group) {
return request({
url: `/api/draftMap/${mapId}/route/railway `,
method: 'post',
data:data
});
}
export function getBigRouteList(mapId) {
return request({
url: `/api/draftMap/${mapId}/route/all `,
url: `/simulation/${group}/destinationCode/list`,
method: 'get'
});
}
// 大铁地图进路删除接口
export function deleteBigRoute(mapId, code) {
return request({
url: `/api/draftMap/${mapId}/route/${code}`,
method: 'delete'
});
}
// 大铁地图进路修改接口
export function editBigRoute(data, mapId, code ) {
return request({
url: `/api/draftMap/${mapId}/route/${code}`,
method: 'put',
data
});
}
// 草稿地图修改检查配置接口
export function checkConfig(mapId, data) {
return request({
url: `/api/mapBuild/${mapId}/checkConfig `,
method: 'PUT',
data
});
}
// { check: true/false } body体
// 进路数据处理删除扣车
export function deleteDetain(mapId) {
return request({
url: `/api/draftMap/${mapId}/route/handle/standHoldList/delete`,
method: 'put'
});
}
// 进路数据处理不办延续保护
export function noOverlap(mapId) {
return request({
url: `/api/draftMap/${mapId}/route/handle/setOverlapInCtc/false`,
method: 'put'
});
}
// 创建进路
export function createRoute(mapId, data) {
return request({
url: `/api/draftMap/${mapId}/route`,
method: 'post',
data
});
}
// 创建延续保护
export function createOverlap(mapId, data) {
return request({
url: `/api/draftMap/${mapId}/overlap`,
method: 'post',
data
});
}
// 创建超限区段
export function createOverrunSection(mapId, data) {
return request({
url: `/api/draftMap/${mapId}/overrun`,
method: 'post',
data
});
}
// 分页查询超限区段
export function queryOverrunSectionPaging(mapId, params) {
return request({
url: `/api/draftMap/${mapId}/overrun/paging`,
method: 'get',
params
});
}
// 更新超限区段
export function updateOverrunSection(mapId, data) {
return request({
url: `/api/draftMap/${mapId}/overrun/${data.code}`,
method: 'put',
data
});
}
// 删除超限区段
export function deleteOverrunSection(mapId, code) {
return request({
url: `/api/draftMap/${mapId}/overrun/${code}`,
method: 'delete'
});
}
// 查询超限区段list
export function queryOverunSectionList(mapId) {
return request({
url: `/api/draftMap/${mapId}/overrun/all`,
method: 'get'
});
}
// 自动生成车辆段停车场连锁关系
export function generateDepotCiData(mapId, stationCode) {
return request({
url: `/api/mapBuild/${mapId}/ci/generateAndSaveDepot?stationCode=${stationCode}`,
method: 'post'
});
}
// 大铁线路批量生成进路
export function generateRoute(mapId) {
return request({
url: `/api/draftMap/${mapId}/route/railway/generate`,
method: 'post'
});
}

View File

@ -150,126 +150,3 @@ export function sendCommandTrain(group, data) {
data
});
}
/** 根据地图id和产品类型查询实训类型及数量 */
export function getTrainingTypeAndNumByMapIdAndPrdType(params) {
return request({
url: `/api/v1/training/trainingTypeAndQuantity`,
method: 'get',
params
});
}
/** 已发布实训分页列表 */
export function getPublishTrainingListPaged(data) {
return request({
url: `/api/v2/training/published/page`,
method: 'post',
data
});
}
/** 已发布实训上架 */
export function publishTrainingPutOn(data) {
return request({
url: `/api/v2/training/published/put/on`,
method: 'post',
data
});
}
/** 已发布实训下架 */
export function publishTrainingPutOff(data) {
return request({
url: `/api/v2/training/published/pull/off`,
method: 'post',
data
});
}
/** 已发布实训删除 */
export function publishTrainingDelete(data) {
return request({
url: `/api/v2/training/published`,
method: 'delete',
data
});
}
/** 查全部组织已发布实训的基础信息 */
export function getAllPublishTrainingList(params) {
return request({
url: `/api/v2/training/published/list`,
method: 'get',
params
});
}
/** 查询组织已发布实训的基础信息 */
export function getPublishTrainingListInOrg(data) {
return request({
url: `/api/v2/training/published/infos`,
method: 'post',
data
});
}
/** 查询组织已发布的实训列表 */
export function getManageTrainingListInOrg(data) {
return request({
url: `/api/v2/training/published/manage/infos`,
method: 'post',
data
});
}
/** 根据实训id查该已发布实训的所有信息 */
export function getPublishTrainingDetail(trainingId) {
return request({
url: `/api/v2/training/published/${trainingId}`,
method: 'get'
});
}
/** 加载发布实训 */
export function loadPublishTraining(group, trainingId) {
return request({
url: `/api/training2Simulation/${group}/load/${trainingId}`,
method: 'post'
});
}
/** 加载草稿实训 */
export function loadDraftTraining(group, trainingId) {
return request({
url: `/api/training2Simulation/${group}/load/draft/${trainingId}`,
method: 'post'
});
}
/** 开始实训 */
export function startTraining(group, params) {
return request({
url: `/api/training2Simulation/${group}/start`,
method: 'put',
params
});
}
/** 结束实训 */
export function endTraining(group, data) {
return request({
url: `/api/training2Simulation/${group}/finish`,
method: 'put',
data
});
}
/** 实训完成步骤 */
export function endTrainingStep(group, stepId) {
return request({
url: `/api/training2Simulation/${group}/completion/step/${stepId}`,
method: 'put'
});
}
/** 编制剧本的时候加载背景 */
export function loadTrainingBg(group, trainingId) {
return request({
url: `/api/training2Simulation/${group}/draw/${trainingId}`,
method: 'post'
});
}
/** 预备开始场景 */
export function prepareScene(group, params) {
return request({
url:`/api/training2Simulation/${group}/prepare/start`,
method: 'post',
params
});
}

View File

@ -93,33 +93,3 @@ export function getLoginInfo(token) {
}
});
}
/**
* 获取用户所属组织列表
*/
export function getOrgList() {
return request({
url: '/api/orgProject/list',
method: 'get'
});
}
/**
* 登入组织
*/
export function selectOrgnization(orgId) {
return request({
url: `/api/orgProject/signIn/${orgId}`,
method: 'put'
});
}
/**
* 获取用户已经加入的仿真
*/
export function getSimulationJoined() {
return request({
url: '/simulation/joined/by/me',
method: 'get'
});
}

View File

@ -86,34 +86,3 @@ export function getPermissionQuickly(mapId, count) {
method: 'post'
});
}
/** 查询从该用户权限流向的用户权限*/
export function getPermissonList(id) {
return request({
url: `/api/userPermission/ups/fromThisUP?id=${id}`,
method: 'get'
});
}
/** 收回从该用户权限流出的所有权限(权限分发及用户权限)*/
export function putUserPermissionTakeBackAll(id) {
return request({
url: `/api/userPermission/${id}/takeBack/all`,
method: 'put'
});
}
/** 收回用户权限到权限分发中 */
export function putUserPermissionBackPackage(id) {
return request({
url: `/api/userPermission/${id}/back`,
method: 'put'
});
}
/** 收回用户权限(专用)到用户权限中 */
export function putUserPermissionBackUser(id) {
return request({
url: `/api/userPermission/${id}/back/up`,
method: 'put'
});
}

View File

@ -75,10 +75,3 @@ export function createProjectPackage(projectCode, num) {
method: 'post'
});
}
/** 收回从该权限分发获取的用户权限 */
export function putDistributeBack(id) {
return request({
url: `/api/distribute/${id}/back`,
method: 'put'
});
}

View File

@ -1,13 +1,37 @@
import request from '@/utils/request';
/** 创建对应课程考题 */
export function createExam(data) {
export function setCourseList(data) {
return request({
url: `/api/exam`,
method: 'post',
data: data
});
}
/** 贵州装备 创建对应课程考题 */
export function setCourseListGzb(data) {
return request({
url: `/api/exam/project/GZB`,
method: 'post',
data: data
});
}
/** 获取对应课程下类型 */
export function getCourseTypeList(data) {
return request({
url: `/api/exam/${data.lessonId}/trainingTypes`,
method: 'get'
});
}
/** 获取考试课程详情 */
export function getCourseLessonDetail(data) {
return request({
url: `/api/exam/${data.lessonId}/list`,
method: 'get'
});
}
/** 获取试卷详情 */
export function getExamLessonDetail(examId) {
@ -50,6 +74,17 @@ export function setExamEffectivey(data) {
});
}
/** 查询课程下类型题数 */
export function getLessonTypeNum(data) {
return request({
url: `/api/exam/trainingNum/${data.lessonId}/${data.trainingType}`,
method: 'get',
params: {
operateType: data.operateType
}
});
}
/** 更新考试规则*/
export function updateExamRules(data) {
return request({
@ -66,7 +101,7 @@ export function getExamListProject(params) {
params
});
}
/** 查询本项目下的考试列表不分页 */
/** 查询本项目下自己创建的考试列表不分页 */
export function getExamListProjectUnpage(params) {
return request({
url: `/api/exam/list/loginProject`,
@ -82,275 +117,3 @@ export function getExamListSelfByClassId(params) {
params
});
}
/** 根据地图ID和prdType查询试卷列表 */
export function getExamListByMapIdAndPrdType(mapId, prdType) {
return request({
url: `/api/exam/list/${mapId}`,
method: 'get',
params: { prdType: prdType }
});
}
/** 更新试卷规则 */
export function updateExamRule(data) {
return request({
url: `/api/exam/update/rules`,
method: 'put',
data: data
});
}
/** 检查并更新【规则数据异常】状态 */
export function checkAndUpdateAbnormal(mapId) {
return request({
url: `/api/exam/checkAndUpdateAbnormal/${mapId}`,
method: 'put'
});
}
/** 重新生成考试规则 */
export function regenerateRule(mapId) {
return request({
url: `/api/exam/regenerateRules/${mapId}`,
method: 'put'
});
}
/**
* ============================================================================
* ============================================================================
* ============================= 以下为新版试卷的接口 ============================
* ============================================================================
* ============================================================================
*/
/**
* LIST -
* 根据试卷蓝图名称简介分页查找某个组织的试卷蓝图
* @param {Object} data
* @param {Number} data.orgId 组织ID
* @param {String} data.name 试卷蓝图名称
* @param {String} data.profile 试卷蓝图简介
* @param {Number} data.findState 状态: (All(1)-所有,Editing(2)-正在编辑的,CanUse(3)-可以用于生成试卷的,Locked(4)-封存,Used(5)-已经被使用过)
* @param {Number} data.orderBy 排序依据: (1--创建时间 2--更新时间 3--名称默认值为1)
*/
export function getPapaerListOfOrg({ orgId, ...data }) {
return request({
url: `/api/v2/paper/composition/find/page/for/${orgId}`,
method: 'POST',
data
});
}
export function getAllPapaerListOfOrg({ ...data }) {
// 全部组织
return request({
url: `/api/v2/paper/composition/manage/paging`,
method: 'POST',
data
});
}
/**
* 创建试卷蓝图
* @param {Object} data
* @param {Number} data.orgId 组织ID
* @param {String} data.name 试卷蓝图名称
* @param {String} data.profile 简介
* @param {String} data.startTime 启用起始时间
* @param {String} data.endTime 启用截止时间
* @param {Number} data.validDuration 考试时长
* @param {String} data.passScore 及格分
* @param {String} data.fullScore 满分
* @param {Object} data.ruleList 规则列表
* @param {Object} data.ruleList.id 规则id
* @param {Object} data.ruleList.pcId 试卷蓝图ID
* @param {Object} data.ruleList.type 试题类型
* @param {Object} data.ruleList.subtype 规则类型
* @param {Object} data.ruleList.tags 标签
* @param {Object} data.ruleList.amount 数量
* @param {Object} data.ruleList.score 每题分值
*/
export function createPaper(data) {
return request({
url: `/api/v2/paper/composition/${data.orgId}`,
method: 'POST',
data
});
}
/**
* @param {Object} data
* @param {Number} data.id 试卷蓝图ID
* @param {Number} data.orgId 组织ID
* @param {String} data.name 试卷蓝图名称
* @param {String} data.profile 简介
* @param {String} data.startTime 启用起始时间
* @param {String} data.endTime 启用截止时间
* @param {Number} data.validDuration 考试时长
* @param {String} data.passScore 及格分
* @param {String} data.fullScore 满分
* @param {Object} data.ruleList 规则列表
* @param {Object} data.ruleList.id 规则id
* @param {Object} data.ruleList.pcId 试卷蓝图ID
* @param {Object} data.ruleList.type 试题类型
* @param {Object} data.ruleList.subtype 规则类型
* @param {Object} data.ruleList.tags 标签
* @param {Object} data.ruleList.amount 数量
* @param {Object} data.ruleList.score 每题分值
*/
export function editPaper(data) {
return request({
url: `/api/v2/paper/composition`,
method: 'PUT',
data
});
}
/**
* @param {Number} pcId 试卷蓝图ID
*/
export function getPaperDetail(pcId) {
return request({
url: `/api/v2/paper/composition/${pcId}`,
method: 'GET'
});
}
/**
* @param {Object} data
* @param {Number} data.orgId
* @param {Number} data.subtype
* @param {Array<String>} data.tags
*/
export function getQuestionAmount(data) {
return request({
url: `/api/v2/paper/question/count`,
method: 'POST',
data
});
}
/**
* @param {Number} pcId 试卷蓝图Id
*/
export function lockPaper(pcId) {
return request({
url: `/api/v2/paper/composition/${pcId}/lock`,
method: 'PUT'
});
}
/**
* @param {Number} pcId 试卷蓝图Id
*/
export function invalidPaper(pcId) {
return request({
url: `/api/v2/paper/composition/${pcId}/invalid`,
method: 'PUT'
});
}
/**
* @param {Number} pcId 试卷蓝图Id
*/
export function deletePaper(pcId) {
return request({
url: `/api/v2/paper/composition/${pcId}`,
method: 'DELETE'
});
}
/**
* @param {Number} pcId 试卷蓝图Id
*/
export function generateExam(pcId) {
return request({
url: `/api/v2/paper/${pcId}`,
method: 'POST'
});
}
/** 删除用户试卷 */
// export function deleteUserExam(param) {
// return request({
// url: `/api/v2/paper/user/${puId}`,
// method: 'DELETE'
// });
// }
/**
* @param {Number} puId 用户试卷Id
*/
export function getUserExamInfo(puId) {
return request({
url: `/api/v2/paper/user/${puId}`,
method: 'GET'
});
}
/** 加载用户试卷试题 */
export function loadQuestion({ type, questionId, puId }) {
return request({
url: `/api/v2/paper/user/question/${type}/${questionId}/${puId}`,
method: 'GET'
});
}
/**
* @param {Object} data
* @param {Number} data.puId 用户试卷id
* @param {Number} data.pqId 用户试卷试题id
* @param {Number} data.type 试题类型
* @param {Number} data.subType 试题子类型
* @param {Number} data.answer 答案(理论题)
* @param {Boolean} data.trainingSuccess 是否完成(实训题)
*/
export function submitAnswer(data) {
return request({
url: `/api/v2/paper/user/question/answer`,
method: 'POST',
data
});
}
/**
* @param {Number} puId 用户试卷id
*/
export function submitPaper(puId) {
return request({
url: `/api/v2/paper/user/${puId}/submit`,
method: 'POST'
});
}
/**
* 根据mapId查询蓝图的基本信息
*/
export function queryPaperList(data) {
return request({
url: `/api/v2/paper/composition/find/list`,
method: 'POST',
data
});
}
/**
* 获取标签分类
* @param {Number} ordId 组织id
* @param {Number} groupType 1-理论题 2-实训题
* @param {Number} subType 1-选择题 2-多选题 3-判断题 4-单操 5-场景
*/
export function queryTagList(data) {
return request({
url: `/api/v2/paper/question/label`,
method: 'POST',
data
});
}
/**
* 获取试卷创建者list
*/
export function queryPaperCreatorList(data) {
return request({
url: `/api/v2/paper/composition/list/creatorInfo`,
method: 'POST',
data
})
}

View File

@ -1,45 +0,0 @@
import request from '@/utils/request.js'
/** 获取文件列表 */
export function getFileList(params) {
return request({
url: `/api/minio/file/list`,
method: 'get',
params,
})
}
/** 检查资源是否已存在 */
export function checkIsExist(params) {
return request({
url: `/api/minio/checkIsExist`,
method: 'get',
params,
})
}
/** 保存文件 */
export function saveFileInfo(data) {
return request({
url: `/api/minio/file/save`,
method: 'post',
data,
})
}
/** 更新文件标题 */
export function updateFileTitle(data) {
return request({
url: `/api/minio/file/update`,
method: 'put',
data,
})
}
/** 删除文件 */
export function deleteFile(id) {
return request({
url: `api/minio/file/del/${id}`,
method: 'delete',
})
}

View File

@ -17,32 +17,6 @@ export function getUserList(params) {
});
}
/** 查询所有用户列表*/
export function getManageUserList(params) {
return request({
url: `/api/manage/user/list`,
method: 'get',
params: params
});
}
/** 根据用户查询用户角色列表*/
export function getUserRolesList(uid) {
return request({
url: `/api/manage/${uid}/roles`,
method: 'get'
});
}
/** 绑定用户角色*/
export function getBindUserRoles(data) {
return request({
url: `/api/manage/bind/org`,
method: 'post',
data
});
}
/** 模糊查询用户 昵称、名称、手机号*/
export function getDimUserList(params) {
return request({
@ -69,14 +43,6 @@ export function saveUserSubscribe(data) {
});
}
/** 查询管理员和超管*/
export function getAdminAndSuperAdminList() {
return request({
url: `/api/user/adminAndSuperAdmin`,
method: 'get'
});
}
// 修改用户信息
export function updateUserInfo(data) {
return request({
@ -171,50 +137,6 @@ export function generateOfflineUser(data) {
data: data
});
}
// 创建第三方用户
export function createThirdCount(data) {
return request({
url: `/api/user`,
method: 'post',
data: data
});
}
// 第三方用户登陆通过url登陆
export function thirdCountLogin(data) {
return request({
url: `/api/login/third`,
method: 'post',
data: data
});
}
/** 查询在线的用户列表*/
export function getLoginUserList(params) {
return request({
url: `/api/loginUser/paging`,
method: 'get',
params: params
});
}
/** 将权限分发包分发给指定账户 */
export function distributePackage(id, accountId) {
return request({
url: `/api/distribute/${id}/distribute/${accountId} `,
method: 'post'
});
}
/** 删除账户(逻辑删除) */
export function deleteUserInLogic(id) {
return request({
url: `/api/user/${id}`,
method: 'delete'
});
}
// 导入学生成绩
export function importStudentResults(projectCode, data) {
return request({
@ -264,70 +186,3 @@ export function registerUser(data) {
data
});
}
/** 超管重置用户密码 */
export function adminResetUserPassword(userId) {
return request({
url: `/api/userinfo/${userId}/reset/pwd`,
method: 'put'
});
}
/** 找回密码 */
export function findPassword(data) {
return request({
url: `/api/userinfo/retrieve/pwd`,
method: 'put',
data
});
}
/** 发送手机验证码 */
export function sendPhoneVfcode(data) {
return request({
url: '/api/userinfo/mobile/code',
method: 'post',
data
});
}
/** 发送邮箱验证码 */
export function sendEmailVfcode(params) {
return request({
url: '/api/userinfo/email/code',
method: 'post',
params
});
}
/** 新注册接口 */
export function registerUserNew(data) {
return request({
url: `/api/userinfo/register2`,
method: 'post',
data
});
}
// 手机号是否已经注册
export function isExistMobile(params) {
return request({
url: `/api/userinfo/isExist/mobile`,
method: 'get',
params
});
}
// 手机号是否已经注册
export function isExistEmail(params) {
return request({
url: `/api/userinfo/isExist/email`,
method: 'get',
params
});
}
// 成工院第三方登录
export function cgyThirdLogin(data) {
return request({
url: '/api/login/cgy/third',
method: 'post',
data
});
}

View File

@ -1,19 +1,19 @@
import request from '@/utils/request'
import request from '@/utils/request';
/** 获取用户试题列表*/
export function generateExamList(examId) {
return request({
url: `/api/userExam/${examId}/generate`,
method: 'get',
})
method: 'get'
});
}
/** 刷新考题列表*/
export function refreshExamList(userExamId) {
return request({
url: `/api/userExam/${userExamId}`,
method: 'get',
})
method: 'get'
});
}
/** 提交一个考题*/
@ -21,16 +21,17 @@ export function finishOneExamQuestion(data) {
return request({
url: '/api/userExam/finish',
method: 'put',
data: data,
})
data: data
});
}
/** 考试完成提交*/
export function submitExam(examId) {
return request({
url: `/api/userExam/${examId}/submit`,
method: 'put',
})
method: 'put'
});
}
/** 获取用户考试列表*/
@ -38,71 +39,30 @@ export function getPublishExam(data) {
return request({
url: `/api/userExam/list`,
method: 'get',
params: data,
})
params: data
});
}
/** 删除用户考试*/
export function delPublishExam(id) {
return request({
url: `/api/userExam/${id}`,
method: 'delete',
})
method: 'delete'
});
}
export function updateExam(data) {
return request({
url: `/api/userExam/${data.id}`,
method: 'put',
data: data,
})
data: data
});
}
/** 获取班级考试成绩列表 */
export function getClassGradeList(params) {
export function getClassGradeList(examId, params) {
return request({
url: `/api/v2/paper/user/page`,
url: `/api/userExam/paged/orgUser/${params.orgId}/${examId}`,
method: 'get',
params,
})
}
/** 查询组织学生单次考试成绩曲线 */
export function getClassGradeStatistic(orgId, examId) {
return request({
url: `/api/v2/paper/user/curve`,
params: { pcId: examId, orgId },
method: 'get',
})
}
/** 查询组织学生单次考试成绩曲线 */
export function getStuGradeStatistic(userId) {
return request({
url: `/api/userExam/curve/${userId}`,
method: 'get',
})
}
/** 个人仿真数据统计 */
export function getSimulationTimeChart(mapId) {
return request({
url: `/api/stats/simulation/${mapId}/stats`,
method: 'get',
})
}
// // 课程内实训数据统计
// export function getLessonTimeChart(id) {
// return request({
// url: `/api/stats/lesson/${id}/stats`,
// method: 'get',
// })
// }
// 课程列表
export function getLessonList() {
return request({
url: '/api/stats/lesson/list',
method: 'get',
})
params
});
}

View File

@ -1,41 +0,0 @@
import request from '@/utils/request';
/** 创建分组 */
export function createMapGroup(data) {
return request({
url: `/api/mapGroup`,
method: 'post',
data
});
}
/** 修改分组 */
export function updateMapGroup(data) {
return request({
url: `/api/mapGroup/${data.groupId}`,
method: 'put',
data
});
}
/** 删除分组 */
export function deleteMapGroup(groupId) {
return request({
url: `/api/mapGroup/${groupId}`,
method: 'delete'
});
}
/** 分页查询地图分组 */
export function queryMapGroupPaging(params) {
return request({
url: `/api/mapGroup/page`,
method: 'get',
params
});
}
/** 导入数据 */
export function importMapGroupData( groupId, data) {
return request({
url: `/api/mapGroup/${groupId}/syc/import`,
method: 'put',
data
});
}

View File

@ -1,221 +0,0 @@
import request from '@/utils/request';
/**
* 获取群列表
* @param {String} groupId 房间号
* @returns
*/
export function getGroupList(groupId) {
return request({
url: `/api/simulation/${groupId}/conversation/group/list`,
method: 'get'
});
}
/**
* 创建群
* @param {String} groupId 房间号
* @param {String} data
* @param {String} data.name 群组名称
* @param {String} data.imageUrl 群组头像
* @param {Array} data.memberIds 角色id列表
* @returns
*/
export function createGroup(groupId, data) {
return request({
url: `/simulation/${groupId}/operate/Conversation_Group_Create`,
method: 'post',
data
});
}
/**
* 修改群组名称
* @param {String} groupId 房间号
* @param {Object} data
* @param {String} data.id 群组id
* @param {String} data.name 群组名称
* @returns
*/
export function updateGroupName(groupId, data) {
return request({
url: `/simulation/${groupId}/operate/Conversation_Group_Update_Name`,
method: 'post',
data
});
}
/**
* 修改群组群主
* @param {String} groupId 房间号
* @param {Object} data
* @param {Number} data.id 群组id
* @param {String} data.memberId 角色id
* @returns
*/
export function updateGroupLeader(groupId, data) {
return request({
url: `/simulation/${groupId}/operate/Conversation_Group_Update_Leader`,
method: 'post',
data
});
}
/**
* 邀请人员入群
* @param {String} groupId 房间号
* @param {Object} data
* @param {Number} data.id 群组id
* @param {Array} data.memberIds 角色id列表
* @returns
*/
export function inviteMemberToGroup(groupId, data) {
return request({
url: `/simulation/${groupId}/operate/Conversation_Group_Invite_Member`,
method: 'post',
data
});
}
/**
* 移除群内人员
* @param {String} groupId 房间号
* @param {Object} data
* @param {Number} data.id 群组id
* @param {Array} data.memberIds 角色id列表
* @returns
*/
export function removeMemberFromGroup(groupId, data) {
return request({
url: `/simulation/${groupId}/operate/Conversation_Group_Remove_Member`,
method: 'post',
data
});
}
/**
* 退出群组
* @param {String} groupId 房间号
* @param {Object} data
* @param {Number} data.id 群组id
* @returns
*/
export function exitGroup(groupId, data) {
return request({
url: `/simulation/${groupId}/operate/Conversation_Group_Exit`,
method: 'post',
data
});
}
/**
* 解散群组
* @param {String} groupId 房间号
* @param {Object} data
* @param {Number} data.id 群组id
* @returns
*/
export function dissolveGroup(groupId, data) {
return request({
url: `/simulation/${groupId}/operate/Conversation_Group_Dissolve`,
method: 'post',
data
});
}
/**
* 发送语音信息
* @param {String} groupId 房间号
* @param {Object} data
* @param {Number} data.id 群组id
* @param {String} data.audioPath 文件地址
* @param {String} data.content 语音内容
* @returns
*/
export function sendAudio(groupId, data) {
return request({
url: `/simulation/${groupId}/operate/Conversation_Group_Audio_Chat`,
method: 'post',
data
});
}
/**
* 发送文字信息
* @param {String} groupId 房间号
* @param {Object} data
* @param {Number} data.id 群组id
* @param {String} data.content 文字内容
* @returns
*/
export function sendText(groupId, data) {
return request({
url: `/simulation/${groupId}/operate/Conversation_Group_Text_Chat`,
method: 'post',
data
});
}
/**
* 发送BASE64信息
* @param {String} groupId 房间号
* @param {Object} data
* @param {Number} data.id 群组id
* @param {String} data.fileBase64Str 文件base64码
* @returns
*/
export function sendBase64(groupId, data) {
return request({
url: `/simulation/${groupId}/operate/Conversation_Group_Audio_Base64`,
method: 'post',
data
});
}
/**
* 设置群消息已读
* @param {String} groupId 房间号
* @param {Object} data
* @param {Number} data.id 群组id
* @returns
*/
export function setGroupReadMessage(groupId, data) {
return request({
url: `/simulation/${groupId}/operate/Conversation_Group_Read_Message`,
method: 'post',
data
});
}
/**
* 发送私聊文字信息
* @param {String} groupId 房间号
* @param {Object} data
* @param {Number} data.memberId 角色id
* @param {String} data.content 文字内容
* @returns
*/
export function sendPrivateText(groupId, data) {
return request({
url: `/simulation/${groupId}/operate/Conversation_Group_Private_Text_Chat`,
method: 'post',
data
});
}
/**
* 发送私聊BASE64信息
* @param {String} groupId 房间号
* @param {Object} data
* @param {Number} data.memberId 角色id
* @param {String} data.fileBase64Str 文件base64码
* @returns
*/
export function sendPrivateBase64(groupId, data) {
return request({
url: `/simulation/${groupId}/operate/Conversation_Group_Private_Audio_Base64`,
method: 'post',
data
});
}

View File

@ -1,73 +0,0 @@
import request from '@/utils/request';
/** 创建 */
export function postUploadFile(data) {
return request({
url: `/api/file/basic`,
method: 'post',
data
});
}
// /** 复制一条文件基础信息 */
// export function copyUploadFile(id) {
// return request({
// url: `/api/file/basic/copy/${id}`,
// method: 'post'
// });
// }
// 查询
export function getUploadFile(params) {
return request({
url: `/api/file`,
method: 'get',
params: params
});
}
// 修改
export function putUploadFile(data) {
return request({
url: `/api/file/basic`,
method: 'put',
data
});
}
// 删除
export function deleteUploadFile(id) {
return request({
url: `/api/file/${id}`,
method: 'delete'
});
}
// 查询文件绑定信息
export function getFileBindInfo(fileId, mapId) {
return request({
url: `/api/file/binding/${fileId}/${mapId}`,
method: 'get'
});
}
/** 创建 */
export function bindUploadFile(data) {
return request({
url: `/api/file/binding`,
method: 'post',
data
});
}
/** 获取文件绑定的地图数据信息 */
export function getFileBindMapData(fileId) {
return request({
url: `/api/file/binding/${fileId}`,
method: 'get'
});
}
/** 删除文件绑定信息 */
export function deleteFileBindMapData(bindingId) {
return request({
url: `/api/file/binding/${bindingId}`,
method: 'delete'
});
}

View File

@ -1,28 +0,0 @@
import request from '@/utils/request';
// 创建权限
export function createPermission(data) {
return request({
url: `/api/v2/permission/create`,
method: 'post',
data
});
}
// 权限修改
export function updatePermission(data) {
return request({
url: `/api/v2/permission/update`,
method: 'put',
data
});
}
// 分页获取权限
export function getPermissionPage(data) {
return request({
url: `/api/v2/permission/find/page`,
method: 'post',
data
});
}

View File

@ -37,6 +37,38 @@ export function getDeviceDetail(id) {
method: 'get'
});
}
/** 添加/修改屏蔽门设备网关映射配置 */
export function setPsdConfig(id, data) {
return request({
url: `/api/device/${id}/config/psd`,
method: 'put',
data: data
});
}
/** 添加/修改信号机设备网关映射配置 */
export function setSignalConfig(id, data) {
return request({
url: `/api/device/${id}/config/signal`,
method: 'put',
data: data
});
}
/** 添加/修改信号机设备网关映射配置 */
export function setSwitchConfig(id, data) {
return request({
url: `/api/device/${id}/config/switch`,
method: 'put',
data: data
});
}
/** 添加/修改端头控制盒网关映射配置 */
export function setPslConfig(id, data) {
return request({
url: `/api/device/${id}/config/psl`,
method: 'put',
data: data
});
}
/** 添加/修改ibp盘网关映射配置 */
export function setIbpConfig(id, data) {
return request({
@ -45,6 +77,15 @@ export function setIbpConfig(id, data) {
data: data
});
}
/** 添加/修改psc控制柜网关映射配置 */
export function setPscConfig(id, data) {
return request({
url: `/api/device/${id}/config/psc`,
method: 'put',
data: data
});
}
/** 添加/修改ibp设备配置 */
export function setVrIbpConfig(id, data) {
return request({
@ -61,10 +102,10 @@ export function setLwConfig(id, data) {
data: data
});
}
/** 查询某个项目下的所有的某类型设备 */
export function getDevicesByType(project, type) {
/** 查询所有的某类型设备 */
export function getDevicesByType(type) {
return request({
url: `/api/device/${project}/${type}/all`,
url: `/api/device/${type}/all`,
method: 'get'
});
}
@ -136,18 +177,3 @@ export function setIlwConfig(id, data) {
data: data
});
}
/** 添加/修改设备配置 */
export function setDeviceConfig(data) {
return request({
url: `/api/device/config/updateConfig`,
method: 'put',
data: data
});
}
/** 获取所有项目 */
export function getAllProject() {
return request({
url: `/api/project/all `,
method: 'get'
});
}

View File

@ -1,187 +0,0 @@
import request from '@/utils/request';
/** 后端项目配置分页 */
export function getBackProjectConfigByPage(params) {
return request({
url: `/api/project/page`,
method: 'get',
params
});
}
/** 全量后端项目配置 */
export function getAllBackProjectConfig() {
return request({
url: `/api/project/all`,
method: 'get'
});
}
/** 主键获取后端项目配置 */
export function getBackProjectConfigById(id) {
return request({
url: `/api/project/${id}`,
method: 'get'
});
}
/** 通过code获取后端项目配置 */
export function getBackProjectConfigByCode(code) {
return request({
url: `/api/project/code/${code}`,
method: 'get'
});
}
/** 删除后端项目配置 */
export function deleteBackProjectConfig(id) {
return request({
url: `/api/project/del/${id}`,
method: 'delete'
});
}
/** 更新后端项目配置 */
export function updateBackProjectConfig(data) {
return request({
url: `/api/project/update`,
method: 'put',
data
});
}
/** 保存后端项目配置 */
export function saveBackProjectConfig(data) {
return request({
url: `/api/project/save`,
method: 'POST',
data
});
}
/** 获取后端项目列表,关联时使用 */
export function getBackProjectConfigList(id) {
return request({
url: `/api/project/simple`,
method: 'get'
});
}
/** 前端项目配置分页 */
export function getFrontProjectConfigByPage(params) {
return request({
url: `/api/project/viewSetting/page`,
method: 'get',
params
});
}
/** 全量前端项目配置 */
export function getAllFrontProjectConfig() {
return request({
url: `/api/project/viewSetting/all`,
method: 'get'
});
}
/** 获取前端项目配置 */
export function getFrontProjectConfigById(id) {
return request({
url: `/api/project/viewSetting/${id}`,
method: 'get'
});
}
/** 删除前端项目配置 */
export function deleteFrontProjectConfig(id) {
return request({
url: `/api/project/viewSetting/del/${id}`,
method: 'delete'
});
}
/** 更新前端项目配置 */
export function updateFrontProjectConfig(data) {
return request({
url: `/api/project/viewSetting/update`,
method: 'put',
data
});
}
/** 保存前端项目配置 */
export function saveFrontProjectConfig(data) {
return request({
url: `/api/project/viewSetting/save`,
method: 'POST',
data
});
}
/** 登录时根据前端标识获取配置 */
export function getFrontProjectConfigByLogin(markKey) {
return request({
url: `/api/project/viewSetting/project/${markKey}`,
method: 'get'
});
}
/** 登录时获取全量前端配置 */
export function getAllFrontProjectConfigByLogin(markKey) {
return request({
url: `/api/project/viewSetting/simple/all`,
method: 'get'
});
}
/** 检查项目code */
export function checkBackProjectExist(params) {
return request({
url: `/api/project/check/code`,
method: 'get',
params
});
}
/** 检查项目markKey */
export function checkFrontProjectExist(params) {
return request({
url: `/api/project/check/markKey`,
method: 'get',
params
});
}
//
export function getUploadUrl(params) {
return request({
url: `/api/minio/preSignedUrl`,
method: 'get',
params
});
}
/** 设置默认组织 */
export function setDefaultOrg(data) {
return request({
url: `/api/project/setDefaultOrg`,
method: 'put',
data
});
}
/** 创建默认组织 */
export function createDefaultOrg(id, data) {
return request({
url: `/api/project/${id}/createDefaultOrg`,
method: 'POST',
data
});
}
/** 登录项目组织列表 */
export function getOrgList(id) {
return request({
url: `/api/project/${id}/orgList`,
method: 'get'
});
}

View File

@ -1,40 +0,0 @@
import request from '@/utils/request';
/** 获取请求baseURL */
export function getBaseUrlByProject(project) {
return request({
url: `/api/projectServer/project/${project}`,
method: 'get'
});
}
/** 分页查询项目服务器 */
export function projectServerPaging(params) {
return request({
url: `/api/projectServer/paging`,
method: 'get',
params
});
}
/** 创建项目服务器数据 */
export function createProjectServer(data) {
return request({
url: `/api/projectServer`,
method: 'post',
data
});
}
/** 修改项目服务器数据 */
export function updateProjectServer(id, data) {
return request({
url: `/api/projectServer/${id}`,
method: 'put',
data
});
}
/** 删除项目服务器数据 */
export function deleteProjectServer(id) {
return request({
url: `/api/projectServer/${id}`,
method: 'delete'
});
}

View File

@ -28,7 +28,6 @@ export function postLicenseValidate(data) {
return request({
url: `/api/license/validate`,
method: 'post',
production: true,
// baseURL: 'https://joylink.club/jlcloud',
data
});

View File

@ -1,45 +1,18 @@
import request from '@/utils/request';
// 查询理论试题(全部组织)
export function listAllQuestionPage(params) {
return request({
url: `/api/question/paging`,
method: 'get',
params
});
}
// 分页查询理论试题
export function listQuestionPage(params) {
return request({
// url: `/api/questionBank/questions/paging`,
url: `/api/question/org/paging`,
url: `/api/questionBank/questions/paging`,
method: 'get',
params
});
}
// 查询所有理论试题
export function listQuestionAll() {
return request({
url: `/api/question/org`,
method: 'get'
});
}
// 标签列表
export function getLabelList() {
return request({
url: `/api/question/org/label`,
method: 'get'
});
}
// 创建题目
export function createQuestion(data) {
return request({
// url: `/api/questionBank/questions`,
url: `/api/question/org`,
url: `/api/questionBank/questions`,
method: 'post',
data
});
@ -48,55 +21,25 @@ export function createQuestion(data) {
// 删除题目
export function deleteQuestion(questionId) {
return request({
// url: `/api/questionBank/questions/${questionId}`,
url: `/api/question/org`,
method: 'delete',
data: [questionId]
url: `/api/questionBank/questions/${questionId}`,
method: 'delete'
});
}
// 更新题目
export function updateOption(data) {
return request({
// url: `/api/questionBank/questions/${data.id}`,
url: `/api/question/org/${data.id}`,
url: `/api/questionBank/questions/${data.id}`,
method: 'put',
data
});
}
// 获取题目信息
export function getQuestionInfo(questionId, params) {
export function getQuestionInfo(questionId) {
return request({
// url: `/api/questionBank/questions/${questionId}`,
url: `/api/question/org/${questionId}`,
method: 'get',
params
});
}
// 题库批量导入
export function importQuestion(data) {
return request({
url: `/api/question/org/import`,
method: 'post',
data
});
}
// 预览答题
export function testAnswer(questionId, data) {
return request({
url: `/api/question/org/test/answer/${questionId}`,
method: 'post',
data
});
}
// 清空题库
export function clearBank() {
return request({
url: `/api/question/org/clear`,
url: `/api/questionBank/questions/${questionId}`,
method: 'get'
});
}

View File

@ -15,20 +15,3 @@ export function selectQuestionTypeNum(companyId) {
method: 'get'
});
}
/** 加载场景 */
export function loadRace(simulationId, sceneId) {
return request({
url: `/api/race/${simulationId}/load/${sceneId}`,
method: 'put'
});
}
/** 完成任务 */
export function overTask(taskId, data) {
return request({
url: `/api/race/${taskId}/finish`,
method: 'put',
data
});
}

View File

@ -1,10 +0,0 @@
import request from '@/utils/request';
/** 查询用户使用记录统计 */
export function queryUserSimulationRecord(params, userId) {
return request({
url: `/api/record/stats/list/criteria/${userId}`,
method: 'get',
params
});
}

View File

@ -1,107 +0,0 @@
import request from '@/utils/request';
/** 创建仿真 */
export function createSimulation(data) {
return request({
url: `/rtSimulation?mapId=${data.mapId}&prdType=${data.prdType}`,
method: 'post'
});
}
/** 根据仿真group获取仿真基础信息 废弃 */
export function getSimulationInfoByGroup(groupId) {
return request({
url: `/common/simulation/${groupId}`,
method: 'get'
});
}
/** 获取仿真成员列表 废弃 */
export function getMemberListCommon(group, role) {
if (!role) {
role = '';
}
return request({
url: `/common/simulation/${group}/members?role=${role}`,
method: 'get'
});
}
/** 获取仿真用户列表 废弃 */
export function getUserListCommon(group) {
return request({
url: `/common/simulation/${group}/users`,
method: 'get'
});
}
/** 销毁仿真 废弃 */
export function destroySimulation(group) {
return request({
url: `/common/simulation/${group}/destroy`,
method: 'delete'
});
}
/** 初始化仿真 */
export function initSimulation(group) {
return request({
url: `/simulation/new/${group}/reset`,
method: 'put'
});
}
/** 设置故障 废弃 */
export function setSimulationFault(group, data) {
return request({
url: `/common/simulation/${group}/fault`,
method: 'post',
data
});
}
/** 取消故障 废弃 */
export function cancelSimulationFault(group, deviceId, faultType) {
return request({
url: `/common/simulation/${group}/device/${deviceId}/fault/${faultType}`,
method: 'delete'
});
}
/** 仿真运行倍速 */
export function timesSpeedPlayback(group, speed) {
return request({
url: `/simulation/${group}/updateSpeed/${speed}`,
method: 'put'
});
}
/** 仿真暂停 */
export function simulationPause(group) {
return request({
url: `/simulation/${group}/pause`,
method: 'put'
});
}
/** 仿真开始 */
export function simulationStart(group) {
return request({
url: `/simulation/${group}/start`,
method: 'put'
});
}
/** 获取存在的仿真列表 */
export function getExistSimulationList(params) {
return request({
url: `/simulation/list`,
method: 'get',
params
});
}
/** 获取仿真用户信息 */
export function getSimulationUserInfo(id) {
return request({
url: `/simulation/${id}/users`,
method: 'get'
});
}
/** 监管仿真 */
export function getSuperviseSimulation(params) {
return request({
url: `/simulation/supervise`,
method: 'get',
params
});
}

View File

@ -148,14 +148,6 @@ export function listUserRoutingData(mapId) {
});
}
/** 根据目的地码查询用户交路数据(新版) */
export function getUserRoutingDataByDes(mapId, destinationCode) {
return request({
url: `/api/runPlan/userData/${mapId}/routing/select?destinationCode=${destinationCode}`,
method: 'get'
});
}
/** 根据交路查询交路区段列表*/
export function querySectionListByRouting(routingCode) {
return request({
@ -447,8 +439,7 @@ export function postGenerateLevel(data) {
/** 根据地图交路一键生成生成所有站间运行等级 (新版)*/
export function generateAllStationRunData(mapId) {
return request({
// url: `/api/draftMap/runLevel/generate/routing?mapId=${mapId}`,
url: `/api/draftMap/${mapId}/runLevel/generate `,
url: `/api/draftMap/runLevel/generate/routing?mapId=${mapId}`,
method: 'post'
});
}
@ -463,10 +454,9 @@ export function postSaveLevel(data) {
}
// 更新站间运行等级数据
export function putUploadLevel(mapId, id, data) {
export function putUploadLevel(id, data) {
return request({
// url: `/api/draftMap/runLevel/${id}`,
url: `/api/draftMap/${mapId}/runLevel/${id}`,
url: `/api/draftMap/runLevel/${id}`,
method: 'put',
data
});
@ -481,11 +471,11 @@ export function deleteRunLevel(id) {
}
// 查询站间运行等级列表
export function getRunLevelList(mapId) {
export function getRunLevelList(mapId, params) {
return request({
// url: `/api/draftMap/runLevel/${mapId}/listAll`,
url: `/api/draftMap/${mapId}/runLevel/all`,
method: 'get'
url: `/api/draftMap/runLevel/${mapId}/listAll`,
method: 'get',
params
});
}
@ -505,27 +495,3 @@ export function updateRunlevelDistance(mapId) {
});
}
// 更新模板运行图的信息
export function updateTemplateRunPlan (data) {
return request({
url: `/api/runPlan/template/update`,
method: 'put',
data
});
}
// 大铁 获取 调度台 运行计划
export function getRunplanInRailway(group) {
return request({
url: `/api/simulation/${group}/ctc/railway/runPlan/list`,
method: 'get'
});
}
// 大铁 获取 ctc 车站 运行日志
export function getRunplanInStation(group) {
return request({
url: `/api/simulation/${group}/ctc/station/runPlan/list`,
method: 'get'
});
}

View File

@ -47,39 +47,39 @@ export function examNotifyNew({ examId }) {
});
}
/** 获取用户实训列表*/
// export function getSimulationList(data) {
// return request({
// url: `/api/stats/simulation`,
// method: 'get',
// params: data
// });
// }
export function getSimulationList(data) {
return request({
url: `/api/stats/simulation`,
method: 'get',
params: data
});
}
// /** 添加用户仿真数据*/
// export function postSimulationStats(data) {
// return request({
// url: `/api/stats/simulation`,
// method: 'post',
// data: data
// });
// }
/** 添加用户仿真数据*/
export function postSimulationStats(data) {
return request({
url: `/api/stats/simulation`,
method: 'post',
data: data
});
}
// /** 更新用户仿真数据*/
// export function putSimulationStats(data) {
// return request({
// url: `/api/stats/${data.id}`,
// method: 'put',
// data: data
// });
// }
/** 更新用户仿真数据*/
export function putSimulationStats(data) {
return request({
url: `/api/stats/${data.id}`,
method: 'put',
data: data
});
}
/** 删除用户仿真数据*/
// export function deleteSimulationStats(statsId) {
// return request({
// url: `/api/stats/${statsId}`,
// method: 'delete'
// });
// }
export function deleteSimulationStats(statsId) {
return request({
url: `/api/stats/${statsId}`,
method: 'delete'
});
}
/** 录制脚本仿真(新版)*/
export function scriptRecordNotifyNew(scriptId) {
@ -163,22 +163,22 @@ export function cancelReplaceBg(group) {
});
}
// /** 分页查询存在的仿真 */
// export function getExistingSimulation(params) {
// return request({
// url: `/manage/simulation/exists`,
// method: 'get',
// params
// });
// }
//
// /** 删除存在的仿真 */
// export function deleteExistingSimulation(group) {
// return request({
// url: `/manage/simulation/${group}`,
// method: 'delete'
// });
// }
/** 分页查询存在的仿真 */
export function getExistingSimulation(params) {
return request({
url: `/manage/simulation/exists`,
method: 'get',
params
});
}
/** 删除存在的仿真 */
export function deleteExistingSimulation(group) {
return request({
url: `/manage/simulation/${group}`,
method: 'delete'
});
}
/** 获取任务录制的所有动作(新版)*/
export function getScriptAllAction(group) {
@ -228,23 +228,6 @@ export function handlerIbpEvent(group, button, stationCode, buttonCode) {
});
}
// /** 处理ibp盘事件(按下) */
//
// export function handleIbpPress(group, stationCode, buttonCode) {
// return request({
// url: `/simulation/${group}/ibp/press/${stationCode}/${buttonCode}`,
// method: 'put'
// });
// }
// /** 处理ibp盘事件(松开) */
//
// export function handleIbpRelease(group, stationCode, buttonCode) {
// return request({
// url: `/simulation/${group}/ibp/release/${stationCode}/${buttonCode}`,
// method: 'put'
// });
// }
/** 预览脚本仿真(新版)*/
export function scriptDraftRecordNotifyNew(scriptId) {
return request({
@ -284,19 +267,10 @@ export function getEveryDayRunPlanNew(group) {
});
}
/** 大铁线路 修改系统时间 */
export function modifySystemTime(data, group) {
return request({
url: `simulation/${group}/modifySystemTime`,
method: 'PUT',
data: data
});
}
/** 新版地图按计划行车 */
export function ranAsPlan(data, group) {
return request({
url: `/simulation/new/${group}/runAsPlan`,
url: `/simulation/${group}/ranAsPlan`,
method: 'post',
data: data
});
@ -349,15 +323,6 @@ export function simulationLoadRunPlan(group, templateId) {
method: 'put'
});
}
/** 仿真里加载草稿运行图 */
export function simulationLoadDraftRunPlan(group, draftRunPlanId) {
return request({
url:`/simulation/${group}/load/draftRunPlan/${draftRunPlanId} `,
method: 'put'
});
}
/** 根据车次号获取列车信息 */
export function getTrainDetailBytripNumber(group, params) {
return request({
@ -472,138 +437,3 @@ export function getPathListByStandCodeOrSignalCode( group, params ) {
params
});
}
/** 查询未该列车以建立的进路 */
export function getRouteListForTrain( group, groupNumber ) {
return request({
url: `/simulation/${group}/queryEstablishedRoutes/${groupNumber}`,
method: 'get'
});
}
/** 根据group查询目的码 */
export function getSimulationDestinationList(group) {
return request({
url: `/simulation/${group}/destinationCode/list`,
method: 'get'
});
}
/** 获取PSL盘状态 */
export function getPslStatus(group, standCode) {
return request({
url: `/simulation/${group}/${standCode}/psl/status`,
method: 'get'
});
}
/** PSL
* @param {String} button
* YXJZ-允许/禁止;
* HSJC-互锁解除;
* KM-开门;
* GM-关门;
* SD-试灯;
*/
export function pressPslButton(group, standCode, button) {
return request({
url: `/simulation/${group}/${standCode}/psl/${button}`,
method: 'put'
});
}
/** 查询运行线或者列车经过的站台 */
export function getStandListByRunLineOrTrainCode(group, params) {
return request({
url: `simulation/${group}/queryStands/trainOrDestination`,
method: 'get',
params
});
}
/** 沙盘列车控制 */
export function sandTableTrainControl(group, params) {
return request({
url: `/api/sandTable/${group}/control`,
method: 'put',
params
});
}
/** 条件查询仿真中的ISCS资源 */
export function queryIscsResourcesByGroup(group, params) {
return request({
url: `simulation/${group}/iscs/systemResources`,
method: 'get',
params
});
}
/** 获取机器人驾驶参数 */
export function getRobotDrivingParam(simulationId, groupNumber) {
return request({
url: `/simulation/${simulationId}/driveParam/${groupNumber}`,
method: 'get'
});
}
/** 查询所有pa系统的定时播放任务 */
export function queryPaTimedList(group, params) {
return request({
url: `/simulation/${group}/iscs/paTimedPlay`,
method: 'get',
params
});
}
/** 创建仿真 */
export function createSimulation(id) {
return request({
url: `/simulation/new/mapFunction/${id}`,
method: 'post'
});
}
/** 根据地图ID和功能ID获取仿真GroupId */
export function getGroupByMapAndFunction(mapId, functionId) {
return request({
url: `/simulation/new/map/${mapId}/function/${functionId}`,
method: 'get'
});
}
/** 由系统管理员和教员销毁仿真 */
export function destroySimulationByAdmin(group) {
return request({
url: `/simulation/${group}/destroy`,
method: 'delete'
});
}
/** 非仿真创建者退出仿真 */
export function exitSimulation(group) {
return request({
url: `/simulation/${group}/exit`,
method: 'put'
});
}
/** 仿真监管那里进入仿真 */
export function enterSimulationByTeacher(group) {
return request({
url: `/simulation/${group}/monitor`,
method: 'post'
});
}
/** 切换角色后触发消息 */
export function getUnreceivedMessages(simulationId, memberId) {
return request({
url: `/simulation/${simulationId}/${memberId}/unreceivedMessages`,
method: 'get'
});
}
/** 控制叶佳供货的小车 */
export function controlYjTrain(simulationId, right) {
return request({
url: `/api/realDevice/${simulationId}/train`,
method: 'put',
params: { right }
});
}
/** 创建仿真不通过功能id */
export function createSimulationNoFunction(mapId, data) {
return request({
url: `/simulation/new/${mapId}`,
method: 'post',
data
});
}

View File

@ -1,27 +0,0 @@
import request from '@/utils/request';
/** 删除第三方配置 */
export function deleteThirdAccountConfig(id) {
return request({
url: `/api/thirdAccountConfig/${id}`,
method: 'delete'
});
}
/** 分页查询所有配置 */
export function queryThirdAccountConfig(params) {
return request({
url: `/api/thirdAccountConfig/paged`,
method: 'get',
params
});
}
/** 新增或更新第三方配置 */
export function updateThirdAccountConfig(data) {
return request({
url: `/api/thirdAccountConfig`,
method: 'post',
data
});
}

View File

@ -1,198 +0,0 @@
import request from '@/utils/request';
/** 获取当前用户的所有实训草稿数据 */
export function getAllTrainingList(params) {
return request({
url: `/api/v2/draft/training/all`,
method: 'get',
params
});
}
/** 分页获取当前用户的实训草稿数据 */
export function getTrainingList(data) {
return request({
url: `/api/v2/draft/training/info/page`,
method: 'post',
data
});
}
/** 创建实训草稿 */
export function createTraining(data) {
return request({
url: `/api/v2/draft/training/create`,
method: 'post',
data
});
}
/** 更新当前用户的某个实训草稿 */
export function updateTraining(data) {
return request({
url: `/api/v2/draft/training/update/info`,
method: 'post',
data
});
}
/** 更新发布实训信息(标签, 描述, 标题) */
export function updateTrainingInfo(data) {
return request({
url: `/api/v2/training/published/update`,
method: 'put',
data
});
}
/** 已发布实训转为草稿 */
export function saveAsTrainingDraft(trainingId) {
return request({
url: `/api/v2/training/published/${trainingId}/saveAsDraft`,
method: 'post'
});
}
/** 查询步骤列表 */
export function getTrainingStepList(trainingId) {
return request({
url: `/api/v2/draft/training/${trainingId}/step/list`,
method: 'get'
});
}
/** 修改实训所有步骤 */
export function updateTrainingStep(group, trainingId, data) {
return request({
url: `/api/v2/draft/training/${group}/${trainingId}/step/update`,
method: 'put',
data: data
});
}
/** 删除当前用户的实训草稿 */
export function deleteTraining(data) {
return request({
url: `/api/v2/draft/training`,
method: 'delete',
data: {trainingDraftIds: data}
});
}
/** 当前用户发布自己的实训草稿 */
export function publishTraining(data) {
return request({
url: `/api/v2/draft/training/publish`,
method: 'post',
data
});
}
/** 查询实现草稿发布轨迹 */
export function draftPubTrace(data) {
return request({
url: `/api/v2/training/draft/pub/trace/find/page`,
method: 'post',
data
});
}
/** 删除草稿发布轨迹 */
export function deleteTrace(data) {
return request({
url: `/api/v2/training/draft/pub/trace`,
method: 'delete',
data
});
}
/** 更新当前用户的某个实训草稿的大字段信息 */
export function updateTrainingContent(data) {
return request({
url: `/api/v2/draft/training/update/content`,
method: 'post',
data
});
}
/** 获取当前用户的某个实训草稿的所有信息 */
export function getTrainingAll(trainingId) {
return request({
url: `/api/v2/draft/training/all/${trainingId}`,
method: 'get'
});
}
/** 单独更新当前用户的某个实训草稿的初始背景 */
export function updateTrainingBackgroud(data) {
return request({
url: `/api/v2/draft/training/update/content/background`,
method: 'post',
data
});
}
/** 更新当前用户实训草稿定位 */
export function updateTrainingMaplocation(data) {
return request({
url: `/api/v2/draft/training/update/content/maplocation`,
method: 'post',
data
});
}
/** 获取实训表达式条件素材 */
export function getTrainingMaterials() {
return request({
url: `/api/v2/draft/training/expression/materials`,
method: 'get'
});
}
/** 获取实训所有成员 */
export function getTrainingMmembers(trainingId) {
return request({
url: `/api/v2/draft/training/${trainingId}/member/list`,
method: 'get'
});
}
/** 获取实训所有参与者 */
export function getTrainingPlayers(trainingId) {
return request({
url: `/api/v2/draft/training/${trainingId}/player/list`,
method: 'get'
});
}
/** 更新所有评分规则*/
export function updateTrainingGradeRules(trainingId, data) {
return request({
url: `/api/v2/draft/training/${trainingId}/scoringRule/list`,
method: 'put',
data: data
});
}
/** 获取所有评分规则 */
export function getTrainingGradeRules(trainingId) {
return request({
url: `/api/v2/draft/training/${trainingId}/scoringRule/list`,
method: 'get'
});
}
/** 清空重置实训 */
export function clearDesignTraining(trainingId, group) {
return request({
url: `/api/v2/draft/training/${group}/reset/${trainingId}`,
method: 'delete'
});
}
/** 导出实训数据 */
export function exportTrainingData(data) {
return request({
url: `/api/v2/training/published/export`,
method: 'post',
data
});
}
/** 导入实训数据 */
export function importTrainingData(data) {
return request({
url: `/api/v2/training/published/import`,
method: 'post',
data
});
}
/** 实训跳转到当前步骤*/
export function jumpToTraining(group, stepId) {
return request({
url: `/api/training2Simulation/${group}/jumpTo/${stepId}`,
method: 'put'
});
}

View File

@ -15,13 +15,6 @@ export function generateMapSystem(mapId) {
method: 'post'
});
}
/** 生成指定子系统 */
export function generateAppointMapSystem(mapId, prdType) {
return request({
url: `/api/mapSystem/generate/${mapId}/${prdType}`,
method: 'post'
});
}
/** 查询子系统信息 */
export function getSubSystemInfo(id) {
return request({
@ -75,129 +68,4 @@ export function getSubSystemByProjectCode() {
method: 'get'
});
}
/** 创建地图系统 */
export function createMapFunction(data) {
return request({
url: `/api/mapFunction`,
method: 'post',
data
});
}
/** 列表查询地图系统 */
export function queryMapFunctionList(params) {
return request({
url: `/api/mapFunction/list`,
method: 'get',
params
});
}
/** 更新地图系统 */
export function updateMapFunction(data) {
return request({
url: `/api/mapFunction/${data.id}`,
method: 'put',
data
});
}
/** 删除地图系统 */
export function deleteMapFunction(id) {
return request({
url: `/api/mapFunction/${id}`,
method: 'delete'
});
}
/** 分页查询地图系统 */
export function queryMapFunctionPaged(params) {
return request({
url: `/api/mapFunction/paged`,
method: 'get',
params
});
}
/** 生成地图子系统 */
export function generateMapFunctionNew(mapId, data) {
return request({
url: `/api/mapFunction/${mapId}/generate`,
method: 'post',
data
});
}
/** 根据id查询地图系统 */
export function getMapFunctioById(id) {
return request({
url: `/api/mapFunction/${id}`,
method: 'get'
});
}
/** 一键删除地图下所有线路功能 */
export function deleteAllMapFunction(mapId) {
return request({
url: `/api/mapFunction/batch/${mapId}`,
method: 'delete'
});
}
/** 新增分组 */
export function updateMapFunctionSubset(data) {
return request({
url: `/api/mapFunction/group`,
method: 'put',
data
});
}
/** 根据模板生成地图功能 */
export function generateMapFunctionByTemplate(data) {
return request({
url: `/api/mapFunction/generate/from/template`,
method: 'post',
data
});
}
/** 创建模板线路功能 */
export function createTemplateMapFunction(data) {
return request({
url: `/api/mapFunction/template`,
method: 'post',
data
});
}
/** 修改模板线路功能 */
export function updateTemplateMapFunction(data) {
return request({
url: `/api/mapFunction/template/${data.id}`,
method: 'put',
data
});
}
/** 删除模板线路功能 */
export function deleteTemplateMapFunction(id) {
return request({
url: `/api/mapFunction/template/${id}`,
method: 'delete'
});
}
/** 查询模板线路功能列表 */
export function queryTemplateMapFunctionList(params) {
return request({
url: `/api/mapFunction/template/list`,
method: 'get',
params
});
}
/** 分页查询模板线路功能列表 */
export function queryTemplateMapFunPaged(params) {
return request({
url: `/api/mapFunction/template/paged`,
method: 'get',
params
});
}
/** 线路功能覆盖生成(主要用于客户端重新生成后线路功能里客户端重新匹配) */
export function generateMapFun(data) {
return request({
url: `/api/mapFunction/generate/mapIds`,
method: 'post',
data
});
}

View File

@ -1,25 +0,0 @@
import request from '@/utils/request';
export const productIdentify = '00001&appSecret=joylink00001';
export const pictureUrl = `/api/upload/PICTURE?appId=${productIdentify}`;
// export const modelUrl = `/api/file?appId=${productIdentify}`;
// export const attachmentUrl = `/api/upload/attachment?appId=${productIdentify}`;
export const meansUrl = `/api/upload/MEANS?appId=${productIdentify}`;
// export const regulationUrl = `/api/upload/regulation?appId=${productIdentify}`;
export function getUrl(relatedUrl) {
return `${this.$store.state.user.uploadUrl}${relatedUrl}`;
}
export function uploadFile(url, data) {
return request({
headers: {
'Content-Type': 'multipart/form-data'
},
url,
method: 'post',
data: data
});
}

View File

@ -1,35 +0,0 @@
import request from '@/utils/request';
/** 设置权限失效或有效*/
export function setPermissonInValid(subjectId) {
return request({
url: `/api/v2/permission/subject/inValid/${subjectId}`,
method: 'get'
});
}
/** 用户权限列表*/
export function listPermision(params) {
return request({
url: `/api/v2/permission/subject/page`,
method: 'get',
params: params
});
}
/** 查看用户分发的下级所有用户权限*/
export function getPermissonInDistribute(subjectId) {
return request({
url: `/api/v2/permission/subject/distribute/${subjectId}`,
method: 'get'
});
}
/** 查看当前mapId 下用户的所有权限及功能*/
export function getMapIdPermisson(mapId) {
return request({
url: `/api/v2/permission/subject/permission/${mapId}`,
method: 'get'
});
}

View File

@ -1,17 +0,0 @@
import request from '@/utils/request';
/** 上传录音文件 */
export function uploadAudioFiles(file) {
return request({
url: `/api/voice/recognition`,
method: 'post',
data: file
});
}
/** 获取百度语音合成token */
export function getBaiduToken() {
return request({
url: `/api/voice/token/baidu`,
method: 'get'
});
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 960 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1013 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Some files were not shown because too many files have changed in this diff Show More