| | |
| | | "sqlite3": "^5.0.2", |
| | | "vant": "^2.12.25", |
| | | "vue": "^2.6.11", |
| | | "vue-i18n": "^8.27.2", |
| | | "vue-router": "^3.2.0", |
| | | "vuex": "^3.4.0" |
| | | }, |
¶Ô±ÈÐÂÎļþ |
| | |
| | | const en = { |
| | | common: { |
| | | confirm: "confirm", |
| | | choose: "please choose", |
| | | emptydata: "No data", |
| | | Distributionmap: "Distribution map", |
| | | Selectdate: "Select date", |
| | | name: "Name", |
| | | high: "high", |
| | | Medium: "Medium", |
| | | low: "low", |
| | | reName: "rename", |
| | | edit: "edit", |
| | | copy: "copy", |
| | | delete: "delete", |
| | | location: "location", |
| | | coordinate: "coordinate", |
| | | latLon: "Latitude and Longitude", |
| | | pleaseEnter: "Please Enter...", |
| | | }, |
| | | nav: { |
| | | SerManage: "DUTY MANAGEMENT", |
| | | digitalMap: "DIGITALMAP", |
| | | PerManage: "MAN-MANAGEMENT", |
| | | EquManage: "EQUIPMENT MANAGEMENT", |
| | | NewsSite: "NEWS SITE", |
| | | Logout: "Logout", |
| | | Newtask: "Newtask", |
| | | Tasklist: "Tasklist", |
| | | Tasksummary: "Tasksummary", |
| | | Distributionlist: "Distributionlist", |
| | | MaterialManage: "Material management", |
| | | LivingMaterials: "Living materials", |
| | | EquipmentMaterials: "Equipment materials", |
| | | }, |
| | | taskList: { |
| | | Listregions: "List of regions", |
| | | EnterAreaName: "Please enter the area name", |
| | | taskTotal: "Total number of tasks statistics", |
| | | Tasklevel: "Task risk level statistics", |
| | | addTaskArea: "New task area", |
| | | editTaskArea: "Edit task area", |
| | | DegreeDanger: "Degree of danger", |
| | | Introduction: "Introduction", |
| | | }, |
| | | addTask: { |
| | | newTask: "New task", |
| | | Details: "Details", |
| | | taskName: "Task name", |
| | | taskId: "Task number", |
| | | getTime: "Receiving time", |
| | | taskcon: "Task content", |
| | | resoucepai: "Resource allocation", |
| | | lifesub: "Living matter", |
| | | equisub: "Equipment material", |
| | | people: "personnel", |
| | | collmodel: "Collection template", |
| | | doIssued: "Confirm to issue", |
| | | storage: "Temporary storage", |
| | | }, |
| | | electronicMap: { |
| | | customMap: "Custom Map", |
| | | mapAnalyse: "Map Analyse", |
| | | mapPlotting: "Map Plotting", |
| | | layerData: "Layer Data", |
| | | peripheralQuery: "Peripheral query", |
| | | text: "text", |
| | | polyline: "Polyline", |
| | | modelLibrary: "Model Library", |
| | | polygon: "Polygon", |
| | | militaryLibrary: "Military Standard Library", |
| | | flattailarrow: "Flat tail arrow", |
| | | dovetailarrow: "Dovetail arrow", |
| | | assemblyPlace: "Assembly place", |
| | | car: "car", |
| | | rocketlauncher: "Rocket launcher", |
| | | missile: "missile", |
| | | rectangle: "Rounded Rectangle", |
| | | sector: "sector", |
| | | arched: "Arched", |
| | | bezierarrow: "Bezier Arrow", |
| | | }, |
| | | }; |
| | | |
| | | export default en; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | const fr = { |
| | | common: { |
| | | confirm: "confirmer", |
| | | choose: "Choisissez s'il vous plaît", |
| | | emptydata: "Pas de données", |
| | | Distributionlist: "Liste de distribution", |
| | | Selectdate: "Sélectionner une date", |
| | | name: "Nom", |
| | | high: "haute", |
| | | Medium: "dans", |
| | | low: "faible", |
| | | reName: "Renommer", |
| | | edit: "Ãdition", |
| | | copy: "Copier", |
| | | delete: "Supprimer", |
| | | location: "emplacement", |
| | | coordinate: "coordonner", |
| | | latLon: "Latitude et longitude", |
| | | pleaseEnter: "Entrez s'il vous plait...", |
| | | }, |
| | | nav: { |
| | | SerManage: "Gestion des devoirs", |
| | | digitalMap: "carte numérique", |
| | | PerManage: "Gestion du personnel", |
| | | EquManage: "Gestion des équipements", |
| | | NewsSite: "Site d'actualités", |
| | | Logout: "Se déconnecter", |
| | | Newtask: "Nouvelle tâche", |
| | | Tasklist: "Liste de tâches", |
| | | Tasksummary: "Résumé des tâches", |
| | | MaterialManage: "La gestion du matériel", |
| | | LivingMaterials: "Matériel de subsistance", |
| | | EquipmentMaterials: "Matériel et fournitures", |
| | | }, |
| | | taskList: { |
| | | Listregions: "Liste des régions", |
| | | EnterAreaName: "Veuillez saisir le nom de la zone", |
| | | taskTotal: "Statistiques du nombre total de tâches", |
| | | Tasklevel: "Statistiques du niveau de risque de la tâche", |
| | | addTaskArea: "Nouvelle zone de tâches", |
| | | editTaskArea: "Modifier la zone de tâches", |
| | | DegreeDanger: "Degré de danger", |
| | | Distributionmap: "Carte de distribution", |
| | | Introduction: "introduction", |
| | | }, |
| | | addTask: { |
| | | newTask: "Nouvelle tâche", |
| | | Details: "Des détails", |
| | | taskName: "nom de la mission", |
| | | taskId: "Numéro de tâche", |
| | | getTime: "Réception du temps", |
| | | taskcon: "Contenu de la tâche", |
| | | resoucepai: "Allocation des ressources", |
| | | lifesub: "Matière vivante", |
| | | equisub: "Matériel d'équipement", |
| | | people: "personnel", |
| | | collmodel: "Modèle de collection", |
| | | doIssued: "Confirmer pour émettre", |
| | | storage: "Stockage temporaire", |
| | | }, |
| | | electronicMap: { |
| | | customMap: "Carte personnalisée", |
| | | mapAnalyse: "Analyse de la carte", |
| | | mapPlotting: "Icône de la carte", |
| | | layerData: "Données de couche", |
| | | peripheralQuery: "Requête périphérique", |
| | | text: "texte", |
| | | polyline: "Polyligne", |
| | | modelLibrary: "Bibliothèque de modèles", |
| | | polygon: "Polygone", |
| | | militaryLibrary: "Bibliothèque de normes militaires", |
| | | flattailarrow: "Flèche de queue plate", |
| | | dovetailarrow: "Flèche en queue d'aronde", |
| | | assemblyPlace: "Lieu de rassemblement", |
| | | car: "voiture", |
| | | rocketlauncher: "Lance-roquettes", |
| | | missile: "missile", |
| | | rectangle: "Rectangle arrondi", |
| | | sector: "secteur", |
| | | arched: "Arqué", |
| | | bezierarrow: "Flèche de Bézier", |
| | | }, |
| | | }; |
| | | |
| | | export default fr; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import Vue from "vue"; |
| | | import VueI18n from "vue-i18n"; |
| | | |
| | | import ElementLocale from "element-ui/lib/locale"; |
| | | import enLocale from "element-ui/lib/locale/lang/en"; |
| | | import zhLocale from "element-ui/lib/locale/lang/zh-CN"; |
| | | import langZh from "@/assets/lang/zh.js"; |
| | | import langEN from "@/assets/lang/en.js"; |
| | | |
| | | Vue.use(VueI18n); |
| | | |
| | | const i18n = new VueI18n({ |
| | | locale: "zh", |
| | | messages: { |
| | | zh: { ...langZh, ...zhLocale }, |
| | | en: { ...langEN, ...enLocale }, |
| | | }, |
| | | }); |
| | | ElementLocale.i18n((key, value) => i18n.t(key, value)); |
| | | |
| | | export default i18n; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | const zh = { |
| | | common: { |
| | | confirm: "确认", |
| | | choose: "è¯·éæ©", |
| | | emptydata: "ææ æ°æ®", |
| | | name: "åç§°", |
| | | Distributionmap: "é
åå°å¾", |
| | | lon: "ç»åº¦åæ ", |
| | | lat: "çº¬åº¦åæ ", |
| | | Selectdate: "éæ©æ¥æ", |
| | | high: "é«", |
| | | Medium: "ä¸", |
| | | low: "ä½", |
| | | reName: "éå½å", |
| | | edit: "ç¼è¾", |
| | | copy: "å¤å¶", |
| | | delete: "å é¤", |
| | | location: "å°å", |
| | | coordinate: "åæ ", |
| | | latLon: "ç»çº¬åº¦", |
| | | pleaseEnter: "请è¾å
¥...", |
| | | geocoding: "å°çç¼ç ", |
| | | reverseGeocoding: "éå°çç¼ç ", |
| | | }, |
| | | nav: { |
| | | SerManage: "å¤å¡ç®¡ç", |
| | | digitalMap: "çµåå°å¾", |
| | | PerManage: "人å管ç", |
| | | EquManage: "è£
å¤ç®¡ç", |
| | | NewsSite: "æ°é»ç½ç«", |
| | | Logout: "注é", |
| | | Newtask: "æ°å»ºä»»å¡", |
| | | Tasklist: "任塿¸
å", |
| | | Tasksummary: "任塿»ç»", |
| | | taskStatistic: "ä»»å¡ç»è®¡", |
| | | Distributionlist: "ç©èµåè¦", |
| | | MaterialManage: "çæ´»ç©èµç®¡ç", |
| | | EquipManage: "è£
å¤ç©èµç®¡ç", |
| | | LivingMaterials: "çæ´»ç©èµ", |
| | | EquipmentMaterials: "è£
å¤ç©èµ", |
| | | system: "ç³»ç»ç®¡ç", |
| | | personmanage: "人å管ç", |
| | | equiplable: "æ ç¾åºç®¡ç", |
| | | }, |
| | | taskList: { |
| | | Listregions: "å°åºå表", |
| | | EnterAreaName: "请è¾å
¥åºååç§°", |
| | | taskTotal: "任塿»æ°ç»è®¡", |
| | | Tasklevel: "ä»»å¡å±é©åº¦çº§å«ç»è®¡", |
| | | addTaskArea: "æ°å¢ä»»å¡åº", |
| | | editTaskArea: "ç¼è¾ä»»å¡åº", |
| | | DegreeDanger: "å±é©ç¨åº¦", |
| | | Introduction: "ç®ä»", |
| | | }, |
| | | addTask: { |
| | | newTask: "æ°å»ºä»»å¡", |
| | | taskLevel: "ä»»å¡çº§å«", |
| | | Details: "详æ
", |
| | | taskName: "ä»»å¡åç§°", |
| | | taskId: "ä»»å¡ç¼å·", |
| | | getTime: "æ¥æ¥æ¶é´", |
| | | taskcon: "ä»»å¡å
容", |
| | | resoucepai: "èµæºåé
", |
| | | lifesub: "ç©èµ", |
| | | equisub: "è£
å¤", |
| | | people: "人å", |
| | | collmodel: "é鿍¡æ¿", |
| | | doIssued: "确认ä¸å", |
| | | storage: "æå", |
| | | }, |
| | | electronicMap: { |
| | | customMap: "èªå®ä¹å°å¾", |
| | | mapAnalyse: "å°å¾åæ", |
| | | mapPlotting: "å°å¾æ ç»", |
| | | layerData: "å¾å±æ°æ®", |
| | | peripheralQuery: "çæ§æ¥è¯¢", |
| | | text: "ææ¬", |
| | | polyline: "æçº¿", |
| | | modelLibrary: "模ååº", |
| | | polygon: "å¤è¾¹å½¢", |
| | | militaryLibrary: "åæ åº", |
| | | flattailarrow: "平尾ç®å¤´", |
| | | dovetailarrow: "çå°¾ç®å¤´", |
| | | flattail2arrow: "平尾åç®å¤´", |
| | | assemblyPlace: "éç»å°", |
| | | car: "车è¾", |
| | | rocketlauncher: "ç«ç®åå°æ¶", |
| | | missile: "导弹", |
| | | rectangle: "åè§ç©å½¢", |
| | | sector: "æå½¢", |
| | | arched: "å¼å½¢", |
| | | bezierarrow: "è´å¡å°ç®å¤´", |
| | | mapImagery: "å°å¾å½±å", |
| | | pointposition: "ç¹ä½", |
| | | electronicFence: "çµåå´æ ", |
| | | }, |
| | | }; |
| | | |
| | | export default zh; |
| | |
| | | > |
| | | <el-submenu index="1" class="faSub"> |
| | | <template slot="title"> |
| | | <span>æ°æ®ç®¡ç</span> |
| | | <span>{{ $t("common.confirm") }}</span> |
| | | </template> |
| | | <el-menu-item index="catalogueManage">ç®å½ç®¡ç</el-menu-item> |
| | | <el-menu-item index="dataUpdata">æ°æ®ä¸ä¼ </el-menu-item> |
| | |
| | | <template slot="title"> |
| | | <span>综åå±ç¤º</span> |
| | | </template> |
| | | <el-menu-item index="Synthesis" >综åå±ç¤º</el-menu-item> |
| | | <el-menu-item index="Synthesis">综åå±ç¤º</el-menu-item> |
| | | <el-menu-item index="Thematic">ä¸é¢å°å¾</el-menu-item> |
| | | <el-menu-item index="Archive">èµæé¦</el-menu-item> |
| | | </el-submenu> |
| | |
| | | <img src="../assets/img/user.png" alt="" /> |
| | | <span>admin</span> |
| | | <span>注é</span> |
| | | |
| | | <span @click="switchLang"> 忢è¯è¨</span> |
| | | </div> |
| | | <div class="btnBox"> |
| | | <div><img src="../assets/img/leftBtn.png" alt="" /></div> |
| | |
| | | export default { |
| | | name: "navMenu", |
| | | //importå¼å
¥çç»ä»¶éè¦æ³¨å
¥å°å¯¹è±¡ä¸æè½ä½¿ç¨ |
| | | data() { |
| | | return { |
| | | lang: "en", |
| | | }; |
| | | }, |
| | | methods: { |
| | | handleOpen(key, keyPath) { |
| | | if ( |
| | |
| | | }, |
| | | showChange() { |
| | | this.$emit("shwoMapView", true); |
| | | }, |
| | | switchLang() { |
| | | if (this.lang == "en") { |
| | | this.$i18n.locale = this.lang; |
| | | this.lang = "zh"; |
| | | } else { |
| | | this.$i18n.locale = this.lang; |
| | | this.lang = "en"; |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | .userInfo { |
| | | width: 138px; |
| | | // width: 138px; |
| | | font-size: 16px; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 400; |
| | |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | cursor: pointer; |
| | | } |
| | | .btnBox { |
| | | width: 65px; |
| | |
| | | import router from "./router"; |
| | | import store from "./store"; |
| | | import "./assets/css/global.css"; |
| | | import i18n from "./assets/lang/index"; |
| | | |
| | | import axios from "./http"; |
| | | import ElementUI from "element-ui"; |
| | | import locale from "element-ui/lib/locale/lang/en"; |
| | | // import locale from 'element-ui/lib/locale/lang/zh-CN' |
| | | import "element-ui/lib/theme-chalk/index.css"; |
| | | Vue.prototype.$echarts = echarts; |
| | | import * as echarts from "echarts"; |
| | | Vue.use(ElementUI); |
| | | Vue.use(ElementUI, { locale }); |
| | | Vue.prototype.$http = axios; |
| | | Vue.prototype.$bus = new Vue(); |
| | | Vue.config.productionTip = false; |
| | | |
| | | new Vue({ |
| | | router, |
| | | i18n, |
| | | store, |
| | | render: (h) => h(App), |
| | | }).$mount("#app"); |