From e3e5236f9fd9fc2dddf1366f6726eeecd4bcc33e Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期二, 20 九月 2022 10:26:56 +0800 Subject: [PATCH] 综合展示中英文切换 --- src/views/Synthesis/plotting.vue | 22 +++--- src/assets/lang/zh.js | 29 +++++++++ src/views/Synthesis/inquire.vue | 19 +++--- src/views/Synthesis/orientation.vue | 13 ++-- src/views/Synthesis/measurement.vue | 18 +++--- src/assets/lang/en.js | 29 +++++++++ src/views/Synthesis/analyse.vue | 21 +++--- 7 files changed, 106 insertions(+), 45 deletions(-) diff --git a/src/assets/lang/en.js b/src/assets/lang/en.js index f9e0fed..a06997d 100644 --- a/src/assets/lang/en.js +++ b/src/assets/lang/en.js @@ -59,6 +59,35 @@ mouseroaming: 'Mouse Roaming', snapshot: 'Map snapshot', tdisplay: '3D Display', + contouranalysis: 'contour Analysis', + slopeanalysis: 'Slope Analysis', + pathanalysis: 'Path Analysis', + cuttinganalysis: 'Cutting Analysis', + floodanalysis: 'Flood Analysis', + earthworkcalculation: 'Earthwork Calculation', + crosssectionanalysis: 'Section Analysis', + imagecontrast: 'Image Contrast', + somequery: 'Some Query', + linequery: 'Line Query', + rectangularquery: 'Rectangular Query', + gardenquery: 'Garden Query', + polygonquery: 'Polygon Query', + attributequery: 'Attribute Query', + rangequery: 'Range Query', + gpsrtk: 'GPS-RTK', + placenamelocation: 'Placename Location', + distancemeasure: 'Distance Measure', + heightsurve: 'Height Survey', + areasurvey: 'Area Survey', + volummeasure: 'Volum Measure', + point: 'Point', + line: 'Line', + rectangle: 'Rectangle', + polygon: 'Polygon', + symboliclabel: 'Symbolic Label', + flatterrain: 'Flat Terrain', + terrainexcavation: 'Terrain Excavation', + removepaint: 'Remove Paint', }, }; diff --git a/src/assets/lang/zh.js b/src/assets/lang/zh.js index 13d1494..f9a03f8 100644 --- a/src/assets/lang/zh.js +++ b/src/assets/lang/zh.js @@ -59,6 +59,35 @@ mouseroaming: '榧犳爣婕父', snapshot: '鍦板浘蹇収', tdisplay: '涓夌淮婕旂ず', + contouranalysis: '绛夐珮绾垮垎鏋�', + slopeanalysis: '鍧″害鍒嗘瀽', + pathanalysis: '璺緞鍒嗘瀽', + cuttinganalysis: '鍦板舰鍓栧垏鍒嗘瀽', + floodanalysis: '娲按娣规病鍒嗘瀽', + earthworkcalculation: '鍦熸柟閲忚绠�', + crosssectionanalysis: '涓夌淮鎴潰鍒嗘瀽', + imagecontrast: '褰卞儚瀵规瘮鍒嗘瀽', + somequery: '鐐规煡璇�', + linequery: '绾挎煡璇�', + rectangularquery: '鐭╁舰鏌ヨ', + gardenquery: '鍦嗘煡璇�', + polygonquery: '澶氳竟褰㈡煡璇�', + attributequery: '灞炴�ф煡璇�', + rangequery: '鑼冨洿鏌ヨ', + gpsrtk: '鍧愭爣瀹氫綅', + placenamelocation: '鍦板悕瀹氫綅', + distancemeasure: '璺濈娴嬮噺', + heightsurve: '楂樼▼娴嬮噺', + areasurvey: '闈㈢Н娴嬮噺', + volummeasure: '浣撶Н娴嬮噺', + point: '鐐�', + line: '绾�', + rectangle: '鐭╁舰', + polygon: '澶氳竟褰�', + symboliclabel: '绗﹀彿鍖栨爣绛�', + flatterrain: '鍦板舰骞虫暣', + terrainexcavation: '鍦板舰寮�鎸�', + removepaint: '娓呴櫎缁樺埗', }, }; diff --git a/src/views/Synthesis/analyse.vue b/src/views/Synthesis/analyse.vue index 1fd794a..afba6fa 100644 --- a/src/views/Synthesis/analyse.vue +++ b/src/views/Synthesis/analyse.vue @@ -2,14 +2,14 @@ <div class="box"> <ul> <li - style="width: 110px" + style="margin-left: 10px; width: 130px" @click="changeAnalsy(item)" v-for="item in itemsOne" > <div class="divli"> <div :class="item.class" class="backimge4"></div> </div> - <div class="div_li">{{ item.name }}</div> + <div class="div_li">{{ $t(item.name) }}</div> </li> </ul> </div> @@ -22,42 +22,42 @@ itemsOne: [ { id: "1", - name: "绛夐珮绾垮垎鏋�", + name: "synthesis.contouranalysis", class: "d1", }, { id: "2", - name: "鍧″害鍒嗘瀽", + name: "synthesis.slopeanalysis", class: "d2", }, { id: "3", - name: "璺緞鍒嗘瀽", + name: "synthesis.pathanalysis", class: "d3", }, { id: "4", - name: "鍦板舰鍓栧垏鍒嗘瀽", + name: "synthesis.cuttinganalysis", class: "d4", }, { id: "5", - name: "娲按娣规病鍒嗘瀽", + name: "synthesis.floodanalysis", class: "d5", }, { id: "6", - name: "鍦熸柟閲忚绠�", + name: "synthesis.earthworkcalculation", class: "d6", }, { id: "7", - name: "涓夌淮鎴潰鍒嗘瀽", + name: "synthesis.crosssectionanalysis", class: "d7", }, { id: "8", - name: "褰卞儚瀵规瘮鍒嗘瀽", + name: "synthesis.imagecontrast", class: "d8", }, ], @@ -127,6 +127,7 @@ margin-left: 40px; position: absolute; background-size: 100% 100%; + margin: 0% 39%; } .divli { width: 100%; diff --git a/src/views/Synthesis/inquire.vue b/src/views/Synthesis/inquire.vue index bd73710..0638132 100644 --- a/src/views/Synthesis/inquire.vue +++ b/src/views/Synthesis/inquire.vue @@ -11,14 +11,14 @@ <ul> <li - style="width: 80px" + style="margin-left: 20px" @click="changeIquery(item)" v-for="item in itemsOne" > <div class="divli"> <div :class="item.class" class="backimge5"></div> </div> - <div class="div_li">{{ item.name }}</div> + <div class="div_li">{{ $t(item.name) }}</div> </li> </ul> </div> @@ -32,37 +32,37 @@ itemsOne: [ { id: "1", - name: "鐐归�夋嫨", + name: "synthesis.somequery", class: "e1", }, { id: "2", - name: "绾块�夋嫨", + name: "synthesis.linequery", class: "e2", }, { id: "3", - name: "鐭╁舰閫夋嫨", + name: "synthesis.rectangularquery", class: "e3", }, { id: "4", - name: "鍦嗛�夋嫨", + name: "synthesis.gardenquery", class: "e4", }, { id: "5", - name: "澶氳竟褰㈤�夋嫨", + name: "synthesis.polygonquery", class: "e5", }, { id: "6", - name: "灞炴�ф煡鍥�", + name: "synthesis.attributequery", class: "e6", }, { id: "7", - name: "鑼冨洿妗嗘煡鍥�", + name: "synthesis.rangequery", class: "e7", }, ], @@ -146,6 +146,7 @@ margin-left: 25px; position: absolute; background-size: 100% 100%; + margin: 0% 30%; } .divli { width: 100%; diff --git a/src/views/Synthesis/measurement.vue b/src/views/Synthesis/measurement.vue index 0ca544b..587ffdd 100644 --- a/src/views/Synthesis/measurement.vue +++ b/src/views/Synthesis/measurement.vue @@ -2,14 +2,14 @@ <div class="box"> <ul> <li - style="width: 86px" + style="margin-left: 20px" @click="changeMeasure(item)" v-for="item in itemsOne" > <div class="divli"> - <div :class="item.class" class="backimge1"></div> + <div :class="item.class" class="backimge7"></div> </div> - <div class="div_li">{{ item.name }}</div> + <div class="div_li">{{ $t(item.name) }}</div> </li> </ul> </div> @@ -22,22 +22,22 @@ itemsOne: [ { id: "1", - name: "璺濈娴嬮噺", + name: "synthesis.distancemeasure", class: "g1", }, { id: "2", - name: "楂樼▼娴嬮噺", + name: "synthesis.heightsurve", class: "g2", }, { id: "3", - name: "闈㈢Н娴嬮噺", + name: "synthesis.areasurvey", class: "g3", }, { id: "4", - name: "浣撶Н娴嬮噺", + name: "synthesis.volummeasure", class: "g4", }, ], @@ -89,12 +89,12 @@ background: url("../../assets/img/synthesis/鍥惧眰 18 鎷疯礉.png") no-repeat center; } -.backimge1 { +.backimge7 { width: 30px; height: 30px; - margin-left: 25px; position: absolute; background-size: 100% 100%; + margin: 0% 30%; } .divli { width: 100%; diff --git a/src/views/Synthesis/orientation.vue b/src/views/Synthesis/orientation.vue index a97b802..4239522 100644 --- a/src/views/Synthesis/orientation.vue +++ b/src/views/Synthesis/orientation.vue @@ -2,14 +2,14 @@ <div class="box"> <ul> <li - style="width: 86px" + style="margin-left: 20px" @click="changeOrietnt(item)" v-for="item in itemsOne" > <div class="divli"> - <div :class="item.class" class="backimge1"></div> + <div :class="item.class" class="backimge6"></div> </div> - <div class="div_li">{{ item.name }}</div> + <div class="div_li">{{ $t(item.name) }}</div> </li> </ul> </div> @@ -22,12 +22,12 @@ itemsOne: [ { id: "1", - name: "鍧愭爣瀹氫綅", + name: "synthesis.gpsrtk", class: "f1", }, { id: "2", - name: "鍦板悕瀹氫綅", + name: "synthesis.placenamelocation", class: "f2", }, ], @@ -70,12 +70,13 @@ .f2 { background: url("../../assets/img/synthesis/鍥惧眰 28.png") no-repeat center; } -.backimge1 { +.backimge6 { width: 30px; height: 30px; margin-left: 25px; position: absolute; background-size: 100% 100%; + margin: 0% 35%; } .divli { width: 100%; diff --git a/src/views/Synthesis/plotting.vue b/src/views/Synthesis/plotting.vue index f80cbe5..f4313d4 100644 --- a/src/views/Synthesis/plotting.vue +++ b/src/views/Synthesis/plotting.vue @@ -2,14 +2,14 @@ <div class="box"> <ul> <li - style="width: 86px" + style="margin-left: 20px" @click="changePlot(item)" v-for="item in itemsOne" > <div class="divli"> <div :class="item.class" class="backimge8"></div> </div> - <div class="div_li">{{ item.name }}</div> + <div class="div_li">{{ $t(item.name) }}</div> </li> </ul> </div> @@ -22,42 +22,42 @@ itemsOne: [ { id: "1", - name: "鐐�", + name: "synthesis.point", class: "h1", }, { id: "2", - name: "绾�", + name: "synthesis.line", class: "h2", }, { id: "3", - name: "鐭╁舰", + name: "synthesis.rectangle", class: "h3", }, { id: "4", - name: "澶氳竟褰�", + name: "synthesis.polygon", class: "h4", }, { id: "7", - name: "绗﹀彿鍖栨爣绛�", + name: "synthesis.symboliclabel", class: "h7", }, { id: "5", - name: "鍦板舰骞虫暣", + name: "synthesis.flatterrain", class: "h5", }, { id: "6", - name: "鍦板舰寮�鎸�", + name: "synthesis.terrainexcavation", class: "h6", }, { id: "8", - name: "娓呴櫎缁樺埗", + name: "synthesis.removepaint", class: "h8", }, ], @@ -127,9 +127,9 @@ .backimge8 { width: 30px; height: 30px; - margin-left: 30px; position: absolute; background-size: 100% 100%; + margin: 0% 30%; } .divli { width: 100%; -- Gitblit v1.9.3