diff --git a/Jenkinsfile-prd b/Jenkinsfile-prd index 8bff30f3b..1bd53bb27 100644 --- a/Jenkinsfile-prd +++ b/Jenkinsfile-prd @@ -4,7 +4,7 @@ pipeline { label 'master' } } - + stages { stage('Package') { tools { @@ -18,6 +18,8 @@ pipeline { } stage('Publish') { steps { + sh 'mkdir -p /usr/local/joylink/jlclient' + sh 'rm -rf /usr/local/joylink/jlclient/*' sh 'cp -rf ./dist/* /usr/local/joylink/jlclient' } } diff --git a/Jenkinsfile-test b/Jenkinsfile-test index 694bc472a..fff7d237c 100644 --- a/Jenkinsfile-test +++ b/Jenkinsfile-test @@ -4,20 +4,23 @@ pipeline { label 'master' } } - + stages { stage('Package') { tools { nodejs 'nodejs-10' } steps { + sh 'npm update' sh 'npm install' sh 'npm run test' } } stage('Publish') { steps { - sh 'cp -rf ./dist/* /usr/local/joylink/jlclient' + sh 'mkdir -p /usr/local/joylink/jlclient' + sh 'rm -rf /usr/local/joylink/jlclient/*' + sh 'cp -rf ./dist/* /usr/local/joylink/jlclient' } } } diff --git a/public/index.html b/public/index.html index 67cc82f17..43fc8c1d7 100644 --- a/public/index.html +++ b/public/index.html @@ -8,8 +8,8 @@ <%= webpackConfig.name %> - - + + diff --git a/src/api/competition.js b/src/api/competition.js index 3b6459686..bcb1e5145 100644 --- a/src/api/competition.js +++ b/src/api/competition.js @@ -277,7 +277,7 @@ export function getCompetitionPracticalScene(params) { }); } -/** 获取场景列表 */ +/** 添加场景 */ export function addCompetitionPracticalScene(data) { return request({ url: `/api/v1/competitionPractical`, @@ -286,3 +286,85 @@ export function addCompetitionPracticalScene(data) { }); } +/** 删除场景 */ +export function deleteCompetitionPracticalScene(sceneId) { + return request({ + url: `/api/v1/competitionPractical/${sceneId}`, + method: 'delete' + }); +} + +/** 更新场景 */ +export function updateCompetitionPracticalScene(data) { + return request({ + url: `/api/v1/competitionPractical`, + method: 'PUT', + data + }); +} +/** 获取场景 */ +export function getCompetitionPracticalSceneById(id) { + return request({ + url: `/api/v1/competitionPractical/detail/${id}`, + method: 'get' + }); +} + +/** 更新步骤数据 */ +export function updateCompetitionPracticalStep(data) { + return request({ + url: `/api/v1/competitionPractical/detail`, + method: 'POST', + data + }); +} + +/** 加载场景 */ +export function loadCompetitionPracticalScene(group, id) { + return request({ + url: `/api/v1/competitionPractical/load/${group}/${id}`, + method: 'PUT' + }); +} + +/** 场景开始演出 */ +export function competitionPracticalSceneStart(group, memberId, mode) { + return request({ + url: `/api/v1/competitionPractical/start/${group}?memberId=${memberId}&mode=${mode}`, + method: 'PUT' + }); +} + +/** 退出场景 */ +export function competitionPracticalSceneExit(group) { + return request({ + url: `/api/v1/competitionPractical/exit/${group}`, + method: 'PUT' + }); +} + +/** 退出场景 */ +export function competitionPracticalSceneFinish(group) { + return request({ + url: `/api/v1/competitionPractical/finish/${group}`, + method: 'PUT' + }); +} + +/** 获取空白运营数据 */ +export function getEmptyOperationalStatistics(group) { + return request({ + url: `/api/v1/competitionPractical/detail/os/${group}`, + method: 'GET' + }); +} + +/** 提交运营数据 */ +export function submitOperationalStatistics(group, data) { + return request({ + url: `/api/v1/competitionPractical/detail/os/${group}`, + method: 'PUT', + data + }); +} + diff --git a/src/api/ibp.js b/src/api/ibp.js index 24f29775e..a80778999 100644 --- a/src/api/ibp.js +++ b/src/api/ibp.js @@ -67,3 +67,19 @@ export function getIbpInfoByStation(mapId, stationCode) { method: 'get' }); } +// 获取IBP盘数据 +export function getIbpList(params) { + return request({ + url: `/api/ibp/list`, + method: 'get', + params: params + }); +} +// 复制ibp盘数据 +export function copyIbpData(data) { + return request({ + url: `/api/draftIbp/copy`, + method: 'post', + data: data + }); +} diff --git a/src/api/jlmap3d/assets3d.js b/src/api/jlmap3d/assets3d.js index 5ed519e70..c4c80c093 100644 --- a/src/api/jlmap3d/assets3d.js +++ b/src/api/jlmap3d/assets3d.js @@ -16,8 +16,8 @@ if(BASE_API == "https://test.joylink.club/jlcloud"){ }else{ // uploadurl = "https://joylink.club/jlfile"; // asseturl = "https://joylink.club/oss/joylink"; - uploadurl = "../static"; - asseturl = "../static"; + uploadurl = "../cbtc/static"; + asseturl = "../cbtc/static"; } const BASE_UPLOAD_API = uploadurl; export const BASE_ASSET_API = asseturl; diff --git a/src/api/simulation.js b/src/api/simulation.js index 3deeccc2b..646c0b8a9 100644 --- a/src/api/simulation.js +++ b/src/api/simulation.js @@ -26,7 +26,13 @@ export function setFailureModeNew(data, group) { data: data }); } - +/** 取消自动故障 */ +export function cancelFailureModeNew(id, group) { + return request({ + url: `/simulation/${group}/faultMode/${id}`, + method: 'put' + }); +} /** 获取仿真待触发的故障列表*/ export function getSimulationFaultRules(group) { return request({ diff --git a/src/assets/icon/favicon_nty.png b/src/assets/icon/favicon_nty.png new file mode 100644 index 000000000..9b397c8bf Binary files /dev/null and b/src/assets/icon/favicon_nty.png differ diff --git a/src/assets/iscs_picture/drum.png b/src/assets/iscs_picture/drum.png new file mode 100644 index 000000000..a6eed61fe Binary files /dev/null and b/src/assets/iscs_picture/drum.png differ diff --git a/src/assets/iscs_picture/exhaustFan.png b/src/assets/iscs_picture/exhaustFan.png new file mode 100644 index 000000000..019396a64 Binary files /dev/null and b/src/assets/iscs_picture/exhaustFan.png differ diff --git a/src/assets/iscs_picture/fm-blue.png b/src/assets/iscs_picture/fm-blue.png new file mode 100644 index 000000000..ed6b09e6f Binary files /dev/null and b/src/assets/iscs_picture/fm-blue.png differ diff --git a/src/assets/iscs_picture/fm-gray.png b/src/assets/iscs_picture/fm-gray.png new file mode 100644 index 000000000..6b2fc9027 Binary files /dev/null and b/src/assets/iscs_picture/fm-gray.png differ diff --git a/src/assets/iscs_picture/fm-green.png b/src/assets/iscs_picture/fm-green.png new file mode 100644 index 000000000..33096dd35 Binary files /dev/null and b/src/assets/iscs_picture/fm-green.png differ diff --git a/src/assets/iscs_picture/gufengji-gray-l.png b/src/assets/iscs_picture/gufengji-gray-l.png new file mode 100644 index 000000000..8d329885b Binary files /dev/null and b/src/assets/iscs_picture/gufengji-gray-l.png differ diff --git a/src/assets/iscs_picture/gufengji-gray-r.png b/src/assets/iscs_picture/gufengji-gray-r.png new file mode 100644 index 000000000..4c67325f0 Binary files /dev/null and b/src/assets/iscs_picture/gufengji-gray-r.png differ diff --git a/src/assets/iscs_picture/gufengji-red-l.png b/src/assets/iscs_picture/gufengji-red-l.png new file mode 100644 index 000000000..448142b01 Binary files /dev/null and b/src/assets/iscs_picture/gufengji-red-l.png differ diff --git a/src/assets/iscs_picture/gufengji-red-r.png b/src/assets/iscs_picture/gufengji-red-r.png new file mode 100644 index 000000000..ba6cdfdb1 Binary files /dev/null and b/src/assets/iscs_picture/gufengji-red-r.png differ diff --git a/src/assets/iscs_picture/hand.png b/src/assets/iscs_picture/hand.png new file mode 100644 index 000000000..ed55e939d Binary files /dev/null and b/src/assets/iscs_picture/hand.png differ diff --git a/src/assets/iscs_picture/sdfzs711799.png b/src/assets/iscs_picture/iscs_APF.png similarity index 100% rename from src/assets/iscs_picture/sdfzs711799.png rename to src/assets/iscs_picture/iscs_APF.png diff --git a/src/assets/iscs_picture/kongtiao.png b/src/assets/iscs_picture/kongtiao.png new file mode 100644 index 000000000..f27f1f31d Binary files /dev/null and b/src/assets/iscs_picture/kongtiao.png differ diff --git a/src/assets/iscs_picture/mul-kongtiao.png b/src/assets/iscs_picture/mul-kongtiao.png new file mode 100644 index 000000000..68e5dd3d3 Binary files /dev/null and b/src/assets/iscs_picture/mul-kongtiao.png differ diff --git a/src/assets/iscs_picture/renfangmen.png b/src/assets/iscs_picture/renfangmen.png new file mode 100644 index 000000000..608c47b64 Binary files /dev/null and b/src/assets/iscs_picture/renfangmen.png differ diff --git a/src/assets/iscs_picture/setting.png b/src/assets/iscs_picture/setting.png new file mode 100644 index 000000000..800342dd6 Binary files /dev/null and b/src/assets/iscs_picture/setting.png differ diff --git a/src/assets/iscs_picture/textBgBluePoint.png b/src/assets/iscs_picture/textBgBluePoint.png new file mode 100644 index 000000000..6d4db7c2a Binary files /dev/null and b/src/assets/iscs_picture/textBgBluePoint.png differ diff --git a/src/assets/iscs_picture/ventilationFan.png b/src/assets/iscs_picture/ventilationFan.png new file mode 100644 index 000000000..159854dca Binary files /dev/null and b/src/assets/iscs_picture/ventilationFan.png differ diff --git a/src/components/QueryListPage/DataForm.vue b/src/components/QueryListPage/DataForm.vue index 4af6ecec0..f4a9a984d 100644 --- a/src/components/QueryListPage/DataForm.vue +++ b/src/components/QueryListPage/DataForm.vue @@ -1,5 +1,5 @@