diff --git a/SuperMap iEarth/public/locale/en.js b/SuperMap iEarth/public/locale/en.js index 1fb6469d..33e9fe97 100644 --- a/SuperMap iEarth/public/locale/en.js +++ b/SuperMap iEarth/public/locale/en.js @@ -681,6 +681,8 @@ const local_en = { education: "SuperMap Education", urlChecedFail:"Url verification failed, please enter the correct address", appointSceneName:'Specify scene name', + s3mNameRepeatTip:'The layer name is duplicated, please modify the current layer name', + sceneNameRepeatTip:'This scene already exists, please do not add it again' } window.local_en = local_en; \ No newline at end of file diff --git a/SuperMap iEarth/public/locale/ja.js b/SuperMap iEarth/public/locale/ja.js index d6cd7e9b..35d47e8b 100644 --- a/SuperMap iEarth/public/locale/ja.js +++ b/SuperMap iEarth/public/locale/ja.js @@ -681,6 +681,8 @@ const local_ja = { education: "教育版", urlChecedFail:"Urlチェックに失敗しました。正しいアドレスを入力してください", appointSceneName:'シーン名の指定', + s3mNameRepeatTip:'レイヤー名が重複しています。現在のレイヤー名を変更してください', + sceneNameRepeatTip:'このシーンはすでに存在します。再度追加しないでください' } window.local_ja = local_ja; \ No newline at end of file diff --git a/SuperMap iEarth/public/locale/ru.js b/SuperMap iEarth/public/locale/ru.js index 92eeffad..fc90b7cd 100644 --- a/SuperMap iEarth/public/locale/ru.js +++ b/SuperMap iEarth/public/locale/ru.js @@ -681,6 +681,8 @@ const local_ru = { education: "обучать", urlChecedFail:"Ошибка проверки Url, введите правильный адрес", appointSceneName:'Укажите имя сцены', + s3mNameRepeatTip:'Имя слоя дублируется, измените имя текущего слоя.', + sceneNameRepeatTip:'Эта сцена уже существует, пожалуйста, не добавляйте ее снова' } window.local_ru = local_ru; \ No newline at end of file diff --git a/SuperMap iEarth/public/locale/zh.js b/SuperMap iEarth/public/locale/zh.js index fcb17c60..e17d3913 100644 --- a/SuperMap iEarth/public/locale/zh.js +++ b/SuperMap iEarth/public/locale/zh.js @@ -681,6 +681,8 @@ const local_zh = { education: "教育版", urlChecedFail:"Url校验失败,请输入正确地址", appointSceneName:'指定场景名称', + s3mNameRepeatTip:'图层名重复,请修改当前图层名称', + sceneNameRepeatTip:'该场景已存在,请勿重复添加' } window.local_zh = local_zh; \ No newline at end of file diff --git a/SuperMap iEarth/src/package/addData/layer-custom/components/layers.vue b/SuperMap iEarth/src/package/addData/layer-custom/components/layers.vue index 7b369921..8df5b847 100644 --- a/SuperMap iEarth/src/package/addData/layer-custom/components/layers.vue +++ b/SuperMap iEarth/src/package/addData/layer-custom/components/layers.vue @@ -182,7 +182,7 @@ function openLayer() { case "S3M": let isExist = checkS3MLayeExist(state.layerName); if (isExist) { - message.warning('图层名重复,请修改当前图层名称'); + message.warning($t("s3mNameRepeatTip")); }else{ addS3M(state.layerUrl); } @@ -213,7 +213,7 @@ function handleChange() { ); let isExist = checkS3MLayeExist(state.layerName); if(isExist){ - message.warning('图层名重复,请修改当前图层名称'); + message.warning($t("s3mNameRepeatTip")); } } break; diff --git a/SuperMap iEarth/src/package/addData/layer-custom/components/scene.vue b/SuperMap iEarth/src/package/addData/layer-custom/components/scene.vue index 1cec65a7..1b57082d 100644 --- a/SuperMap iEarth/src/package/addData/layer-custom/components/scene.vue +++ b/SuperMap iEarth/src/package/addData/layer-custom/components/scene.vue @@ -66,7 +66,7 @@ function checkSeneName(sceneUrl:string){ let sceneName = data[0].name; let isExist = GlobalStore.addSceneList.includes(sceneName); if(isExist){ - message.warning('该场景已存在,请勿重复添加'); + message.warning($t("sceneNameRepeatTip")); }else{ GlobalStore.addSceneList.push(sceneName); }