From 91bdf79bef1c5fb87564c9b97f9aa39659573671 Mon Sep 17 00:00:00 2001 From: fan Date: Tue, 10 Jan 2023 16:09:04 +0800 Subject: [PATCH] resourcesUrl => ossUrl --- src/components/QuillEditor/index.vue | 2 +- src/views/drts/scene/trainingResult.vue | 2 +- src/views/drts/scene/voiceTraining.vue | 2 +- src/views/editor/index.vue | 2 +- src/views/iscs/iscsSystem/config/broadcast/centerHome.vue | 4 ++-- src/views/iscs/iscsSystem/config/broadcast/stationHome.vue | 2 +- .../iscs/iscsSystemNew/config/broadcast/centerHome.vue | 4 ++-- .../iscs/iscsSystemNew/config/broadcast/stationHome.vue | 2 +- src/views/messageBoard/index.vue | 2 +- src/views/newMap/chatView/chatContent.vue | 2 +- src/views/newMap/display/messageBoard.vue | 2 +- src/views/newMap/display/terminals/pis/index.vue | 6 +++--- src/views/newMap/newMapdraft/mapoperate/ImageControl.vue | 4 ++-- src/views/pis/index.vue | 6 +++--- 14 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/components/QuillEditor/index.vue b/src/components/QuillEditor/index.vue index f6338219d..4acee5fab 100644 --- a/src/components/QuillEditor/index.vue +++ b/src/components/QuillEditor/index.vue @@ -77,7 +77,7 @@ export default { size: 3, action: `${this.$store.state.user.uploadUrl}/api/upload/PICTURE?appId=00001&appSecret=joylink00001`, response: (res) => { - return `${this.$store.state.user.resourcesUrl}${res.data}`; + return `${this.$store.state.user.ossUrl}${res.data}`; }, error: () => { that.$message.error('图片上传失败,请检查网络状态'); }, sizeError: () => { that.$message.error('图片上传失败,图片大小限制3MB'); } // 图片超过大小的回调 diff --git a/src/views/drts/scene/trainingResult.vue b/src/views/drts/scene/trainingResult.vue index 3405096df..341fab432 100644 --- a/src/views/drts/scene/trainingResult.vue +++ b/src/views/drts/scene/trainingResult.vue @@ -95,7 +95,7 @@ export default { resultMap: {}, loading: false, audioPlayId: '', - baseUrl:this.$store.state.user.resourcesUrl + baseUrl:this.$store.state.user.ossUrl }; }, watch: { diff --git a/src/views/drts/scene/voiceTraining.vue b/src/views/drts/scene/voiceTraining.vue index d4cdff366..1bd709269 100644 --- a/src/views/drts/scene/voiceTraining.vue +++ b/src/views/drts/scene/voiceTraining.vue @@ -84,7 +84,7 @@ export default { recordSendingId: null, audioDataMap: {}, audioPlayId: '', - baseUrl:this.$store.state.user.resourcesUrl + baseUrl:this.$store.state.user.ossUrl }; }, watch: { diff --git a/src/views/editor/index.vue b/src/views/editor/index.vue index 80ccd2b96..5406f3488 100644 --- a/src/views/editor/index.vue +++ b/src/views/editor/index.vue @@ -56,7 +56,7 @@ export default { }); uploadFile(action, that.formData).then(resp => { - const imgUrl = this.$store.state.user.resourcesUrl + resp.data; + const imgUrl = this.$store.state.user.ossUrl + resp.data; insertImgFn(imgUrl); }).catch(error => { console.log(error); }); }; diff --git a/src/views/iscs/iscsSystem/config/broadcast/centerHome.vue b/src/views/iscs/iscsSystem/config/broadcast/centerHome.vue index b10c18dcc..7f91fc720 100644 --- a/src/views/iscs/iscsSystem/config/broadcast/centerHome.vue +++ b/src/views/iscs/iscsSystem/config/broadcast/centerHome.vue @@ -243,7 +243,7 @@ export default { type: 'BGM' }; sendCommandNew(this.$route.query.group, 'ISCS_PA_Play', params).then(resp => { - const bgmUrl = this.$store.state.user.resourcesUrl + this.bgmResources[0].url; + const bgmUrl = this.$store.state.user.ossUrl + this.bgmResources[0].url; const audio = document.getElementById('voice'); audio.src = bgmUrl; audio.play(); @@ -307,7 +307,7 @@ export default { type: this.videoMode }; sendCommandNew(this.$route.query.group, 'ISCS_PA_Play', params).then(resp => { - this.voiceUrl = this.$store.state.user.resourcesUrl + voice.url; + this.voiceUrl = this.$store.state.user.ossUrl + voice.url; const audio = document.getElementById('voice'); audio.src = this.voiceUrl; audio.play(); diff --git a/src/views/iscs/iscsSystem/config/broadcast/stationHome.vue b/src/views/iscs/iscsSystem/config/broadcast/stationHome.vue index 2ef98d8e4..22a1b2448 100644 --- a/src/views/iscs/iscsSystem/config/broadcast/stationHome.vue +++ b/src/views/iscs/iscsSystem/config/broadcast/stationHome.vue @@ -473,7 +473,7 @@ export default { const audio = document.getElementById(position.toLowerCase() + '_voice'); if (!audio) { return; } audio.pause(); - audio.src = this.$store.state.user.resourcesUrl + info.url; + audio.src = this.$store.state.user.ossUrl + info.url; audio.play(); const _that = this; audio.addEventListener('ended', function() { diff --git a/src/views/iscs/iscsSystemNew/config/broadcast/centerHome.vue b/src/views/iscs/iscsSystemNew/config/broadcast/centerHome.vue index b10c18dcc..7f91fc720 100644 --- a/src/views/iscs/iscsSystemNew/config/broadcast/centerHome.vue +++ b/src/views/iscs/iscsSystemNew/config/broadcast/centerHome.vue @@ -243,7 +243,7 @@ export default { type: 'BGM' }; sendCommandNew(this.$route.query.group, 'ISCS_PA_Play', params).then(resp => { - const bgmUrl = this.$store.state.user.resourcesUrl + this.bgmResources[0].url; + const bgmUrl = this.$store.state.user.ossUrl + this.bgmResources[0].url; const audio = document.getElementById('voice'); audio.src = bgmUrl; audio.play(); @@ -307,7 +307,7 @@ export default { type: this.videoMode }; sendCommandNew(this.$route.query.group, 'ISCS_PA_Play', params).then(resp => { - this.voiceUrl = this.$store.state.user.resourcesUrl + voice.url; + this.voiceUrl = this.$store.state.user.ossUrl + voice.url; const audio = document.getElementById('voice'); audio.src = this.voiceUrl; audio.play(); diff --git a/src/views/iscs/iscsSystemNew/config/broadcast/stationHome.vue b/src/views/iscs/iscsSystemNew/config/broadcast/stationHome.vue index 5ad7393fb..977d94846 100644 --- a/src/views/iscs/iscsSystemNew/config/broadcast/stationHome.vue +++ b/src/views/iscs/iscsSystemNew/config/broadcast/stationHome.vue @@ -479,7 +479,7 @@ export default { const audio = document.getElementById(position.toLowerCase() + '_voice'); if (!audio) { return; } audio.pause(); - audio.src = this.$store.state.user.resourcesUrl + info.url; + audio.src = this.$store.state.user.ossUrl + info.url; audio.play(); const _that = this; audio.addEventListener('ended', function() { diff --git a/src/views/messageBoard/index.vue b/src/views/messageBoard/index.vue index 7ecb4af34..6efe76a17 100644 --- a/src/views/messageBoard/index.vue +++ b/src/views/messageBoard/index.vue @@ -204,7 +204,7 @@ export default { }, avatarUrl(val) { if (val && val.creatorAvatarPath) { - return this.$store.state.user.resourcesUrl + val.creatorAvatarPath; + return this.$store.state.user.ossUrl + val.creatorAvatarPath; } else { return 'https://joylink.club/oss/wxmicro_assistant/userhead/defaultuser.png'; } diff --git a/src/views/newMap/chatView/chatContent.vue b/src/views/newMap/chatView/chatContent.vue index 4364ec822..f560461c2 100644 --- a/src/views/newMap/chatView/chatContent.vue +++ b/src/views/newMap/chatView/chatContent.vue @@ -87,7 +87,7 @@ export default { // yuyin:yuyin, currentAudioIndex:0, isPlay:false, - baseUrl: this.$store.state.user.resourcesUrl + baseUrl: this.$store.state.user.ossUrl }; }, watch:{ diff --git a/src/views/newMap/display/messageBoard.vue b/src/views/newMap/display/messageBoard.vue index 0b1971e23..19b8d4b0f 100644 --- a/src/views/newMap/display/messageBoard.vue +++ b/src/views/newMap/display/messageBoard.vue @@ -204,7 +204,7 @@ export default { }, avatarUrl(val) { if (val && val.creatorAvatarPath) { - return this.$store.state.user.resourcesUrl + val.creatorAvatarPath; + return this.$store.state.user.ossUrl + val.creatorAvatarPath; } else { return 'https://joylink.club/oss/wxmicro_assistant/userhead/defaultuser.png'; } diff --git a/src/views/newMap/display/terminals/pis/index.vue b/src/views/newMap/display/terminals/pis/index.vue index 70effe550..f4c0342c1 100644 --- a/src/views/newMap/display/terminals/pis/index.vue +++ b/src/views/newMap/display/terminals/pis/index.vue @@ -158,9 +158,9 @@ export default { parking: 0, text: '今日天气:晴,最低气温15℃,最高气温22℃,风向风力:东北风3级,空气质量:良好' }, - standPisImgUrl: `${this.$store.state.user.resourcesUrl}/PICTURE/2022-08-01/standPis.png`, - onboardPisImgUrl: `${this.$store.state.user.resourcesUrl}/PICTURE/2022-08-01/onboardPis.png`, - prefix: `${this.$store.state.user.resourcesUrl}/PICTURE/pis/` + standPisImgUrl: `${this.$store.state.user.ossUrl}/PICTURE/2022-08-01/standPis.png`, + onboardPisImgUrl: `${this.$store.state.user.ossUrl}/PICTURE/2022-08-01/onboardPis.png`, + prefix: `${this.$store.state.user.ossUrl}/PICTURE/pis/` }; }, watch: { diff --git a/src/views/newMap/newMapdraft/mapoperate/ImageControl.vue b/src/views/newMap/newMapdraft/mapoperate/ImageControl.vue index 8a3c625fc..6883478f8 100644 --- a/src/views/newMap/newMapdraft/mapoperate/ImageControl.vue +++ b/src/views/newMap/newMapdraft/mapoperate/ImageControl.vue @@ -51,7 +51,7 @@ export default { mapData: null, imageLists: [ { - value: `${this.$store.state.user.resourcesUrl}/PICTURE/2022-08-01/2292-98507.png`, + value: `${this.$store.state.user.ossUrl}/PICTURE/2022-08-01/2292-98507.png`, label: '电流表' } ], @@ -74,7 +74,7 @@ export default { name: '', rotate: 0, zIndex: 5, - url: `${this.$store.state.user.resourcesUrl}/PICTURE/2022-08-01/2292-98507.png`, + url: `${this.$store.state.user.ossUrl}/PICTURE/2022-08-01/2292-98507.png`, position: { x: 0, y: 0 diff --git a/src/views/pis/index.vue b/src/views/pis/index.vue index a053b5e3c..f48dda8ab 100644 --- a/src/views/pis/index.vue +++ b/src/views/pis/index.vue @@ -177,9 +177,9 @@ export default { parking: 0, text: '今日天气:晴,最低气温15℃,最高气温22℃,风向风力:东北风3级,空气质量:良好', }, - standPisImgUrl: `${this.$store.state.user.resourcesUrl}/PICTURE/2022-08-01/standPis.png`, - onboardPisImgUrl: `${this.$store.state.user.resourcesUrl}/PICTURE/2022-08-01/onboardPis.png`, - prefix: `${this.$store.state.user.resourcesUrl}/PICTURE/pis/`, + standPisImgUrl: `${this.$store.state.user.ossUrl}/PICTURE/2022-08-01/standPis.png`, + onboardPisImgUrl: `${this.$store.state.user.ossUrl}/PICTURE/2022-08-01/onboardPis.png`, + prefix: `${this.$store.state.user.ossUrl}/PICTURE/pis/`, } }, mounted() {