From 40fd907fcdbbc8ecd1499cc5d2cba99898ed0e71 Mon Sep 17 00:00:00 2001 From: qqGroup0 <253114712@qq.com> Date: Tue, 11 Apr 2023 22:34:38 +0800 Subject: [PATCH 1/3] =?UTF-8?q?zqq:=E4=BE=A7=E8=BE=B9=E6=A0=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{index.js => remoteSensingSourceData.js} | 0 src/layout/navBars/breadcrumb/user.vue | 58 +++---- src/router/route.js | 154 +++++++++--------- src/stores/themeConfig.js | 4 +- .../components/retrievalCondition.vue | 6 +- .../chief}/index.vue | 0 6 files changed, 112 insertions(+), 110 deletions(-) rename src/api/remoteSensingSourceData/{index.js => remoteSensingSourceData.js} (100%) rename src/views/{responseManagement/administrator => systemManagement/chief}/index.vue (100%) diff --git a/src/api/remoteSensingSourceData/index.js b/src/api/remoteSensingSourceData/remoteSensingSourceData.js similarity index 100% rename from src/api/remoteSensingSourceData/index.js rename to src/api/remoteSensingSourceData/remoteSensingSourceData.js diff --git a/src/layout/navBars/breadcrumb/user.vue b/src/layout/navBars/breadcrumb/user.vue index 3a36db5..857379f 100644 --- a/src/layout/navBars/breadcrumb/user.vue +++ b/src/layout/navBars/breadcrumb/user.vue @@ -49,29 +49,31 @@ - -
- -
- -
+ +
+ +
+ +
- + @@ -94,7 +96,7 @@ - + @@ -115,16 +117,16 @@ import other from '/@/utils/other'; // 引入组件 const UserNews = defineAsyncComponent(() => import('/@/layout/navBars/breadcrumb/userNews.vue')); const Search = defineAsyncComponent(() => import('/@/layout/navBars/breadcrumb/search.vue')); -const useTranslateStore=useTranslate() +const useTranslateStore = useTranslate() const onLanguageChange = (lang) => { - if(lang=="en"){ - state.disabledI18n="en" - useTranslateStore.translate_control=0 - } - else{ - state.disabledI18n="zh-cn" - useTranslateStore.translate_control=1 - } + if (lang == "en") { + state.disabledI18n = "en" + useTranslateStore.translate_control = 0 + } + else { + state.disabledI18n = "zh-cn" + useTranslateStore.translate_control = 1 + } }; // 定义变量内容 const router = useRouter(); @@ -138,7 +140,7 @@ const state = reactive({ isScreenfull: false, disabledSize: 'large', setIntervalId: null, - disabledI18n:"en", + disabledI18n: "en", }); // 设置分割样式 diff --git a/src/router/route.js b/src/router/route.js index a02d202..04e032f 100644 --- a/src/router/route.js +++ b/src/router/route.js @@ -77,22 +77,6 @@ export const dynamicRoutes = [ zh: '用户响应管理', }, }, - { - path: '/responseManagement/administrator', - name: 'administrator-management', - component: () => import('/@/views/responseManagement/administrator/index.vue'), - meta: { - title: 'Administrator management', - isLink: '', - isHide: false, - isKeepAlive: true, - isAffix: false, - isIframe: false, - roles: ['admin'], - // icon: 'ele-ColdDrink', - zh: '管理员管理', - }, - }, { path: '/responseManagement/dataUpload', name: 'data-upload-management', @@ -211,6 +195,22 @@ export const dynamicRoutes = [ zh: '普通管理员管理', }, }, + { + path: '/systemManagement/chief', + name: 'chiefManagement', + component: () => import('/@/views/systemManagement/chief/index.vue'), + meta: { + title: 'Chief Administrator management', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin'], + // icon: 'ele-ColdDrink', + zh: '主要管理员管理', + }, + }, { path: '/systemManagement/dictionary', name: 'dictionaryManagement', @@ -383,69 +383,69 @@ export const dynamicRoutes = [ isIframe: false, roles: ['admin'], // icon: 'iconfont icon-xitongshezhi', - zh:"系统设置" + zh: '系统设置', }, children: [ - // { - // path: '/system/menu', - // name: 'systemMenu', - // component: () => import('/@/views/system/menu/index.vue'), - // meta: { - // title: '菜单管理', - // isLink: '', - // isHide: false, - // isKeepAlive: true, - // isAffix: false, - // isIframe: false, - // roles: ['admin'], - // icon: 'iconfont icon-caidan', - // }, - // }, - // { - // path: '/system/role', - // name: 'systemRole', - // component: () => import('/@/views/system/role/index.vue'), - // meta: { - // title: '角色管理', - // isLink: '', - // isHide: false, - // isKeepAlive: true, - // isAffix: false, - // isIframe: false, - // roles: ['admin'], - // icon: 'ele-ColdDrink', - // }, - // }, - // { - // path: '/system/user', - // name: 'systemUser', - // component: () => import('/@/views/system/user/index.vue'), - // meta: { - // title: '用户管理', - // isLink: '', - // isHide: false, - // isKeepAlive: true, - // isAffix: false, - // isIframe: false, - // roles: ['admin'], - // icon: 'iconfont icon-icon-', - // }, - // }, - // { - // path: '/system/dept', - // name: 'systemDept', - // component: () => import('/@/views/system/dept/index.vue'), - // meta: { - // title: '部门管理', - // isLink: '', - // isHide: false, - // isKeepAlive: true, - // isAffix: false, - // isIframe: false, - // roles: ['admin'], - // icon: 'ele-OfficeBuilding', - // }, - // }, + // { + // path: '/system/menu', + // name: 'systemMenu', + // component: () => import('/@/views/system/menu/index.vue'), + // meta: { + // title: '菜单管理', + // isLink: '', + // isHide: false, + // isKeepAlive: true, + // isAffix: false, + // isIframe: false, + // roles: ['admin'], + // icon: 'iconfont icon-caidan', + // }, + // }, + // { + // path: '/system/role', + // name: 'systemRole', + // component: () => import('/@/views/system/role/index.vue'), + // meta: { + // title: '角色管理', + // isLink: '', + // isHide: false, + // isKeepAlive: true, + // isAffix: false, + // isIframe: false, + // roles: ['admin'], + // icon: 'ele-ColdDrink', + // }, + // }, + // { + // path: '/system/user', + // name: 'systemUser', + // component: () => import('/@/views/system/user/index.vue'), + // meta: { + // title: '用户管理', + // isLink: '', + // isHide: false, + // isKeepAlive: true, + // isAffix: false, + // isIframe: false, + // roles: ['admin'], + // icon: 'iconfont icon-icon-', + // }, + // }, + // { + // path: '/system/dept', + // name: 'systemDept', + // component: () => import('/@/views/system/dept/index.vue'), + // meta: { + // title: '部门管理', + // isLink: '', + // isHide: false, + // isKeepAlive: true, + // isAffix: false, + // isIframe: false, + // roles: ['admin'], + // icon: 'ele-OfficeBuilding', + // }, + // }, { path: '/system/dic', name: 'systemDic', diff --git a/src/stores/themeConfig.js b/src/stores/themeConfig.js index 7778706..60d5833 100644 --- a/src/stores/themeConfig.js +++ b/src/stores/themeConfig.js @@ -147,8 +147,8 @@ export const useThemeConfig = defineStore('themeConfig', { globalViceTitle: 'vueNextAdmin', // 网站副标题(登录页顶部文字) globalViceTitleMsg: '专注、免费、开源、维护、解疑', - // 默认初始语言,可选值"",默认 zh-cn - globalI18n: 'zh-cn', + // 默认初始语言,可选值"",默认 en + globalI18n: 'en', // 默认全局组件大小,可选值"",默认 'large' globalComponentSize: 'large', }, diff --git a/src/views/dataService/remoteSensingData/components/retrievalCondition.vue b/src/views/dataService/remoteSensingData/components/retrievalCondition.vue index f2f6d62..d221d06 100644 --- a/src/views/dataService/remoteSensingData/components/retrievalCondition.vue +++ b/src/views/dataService/remoteSensingData/components/retrievalCondition.vue @@ -136,7 +136,7 @@ diff --git a/src/router/route.js b/src/router/route.js index 68bda89..1912bfc 100644 --- a/src/router/route.js +++ b/src/router/route.js @@ -80,7 +80,7 @@ export const dynamicRoutes = [ { path: '/responseManagement/administrator', name: 'administrator-management', - component: () => import('/@/views/responseManagement/administrator/index.vue'), + component: () => import('/@/views/responseManagement/administrator/addAdministrator.vue'), meta: { title: 'Administrator management', isLink: '', diff --git a/src/stores/index.ts b/src/stores/index.ts new file mode 100644 index 0000000..3ff43e0 --- /dev/null +++ b/src/stores/index.ts @@ -0,0 +1,80 @@ +import { defineStore } from "pinia"; +import { Names } from "./store_name"; + +export const useVariableStore = defineStore(Names.TEST, { + state: () => { + return { + OtherdataTag:1, + RemotesensingTag: 1, + remoteSensingDataTable: [ + { + ID: 1, + Satellite_type:"Sentinel-2_Sentinel-2A", + Production_date:"2023-02-10 12:10:25", + Product_resolution: "10", + Cloud_coverage:'15.5191', + Central_longitude_and_latitude:'(96.6408,122.1683)', + Thumbnail:"../assets/home/1.jpg", + Download_link:"../assets/detail/list_download_icon.png", + Data_source:"", + Data_upload_agency:"" + }, + { + ID: 2, + Satellite_type:"Sentinel-2_Sentinel-2B", + Production_date:"2023-02-10 12:10:23", + Product_resolution: "10", + Cloud_coverage:'15.5256', + Central_longitude_and_latitude:'(96.6408,122.1683)', + Thumbnail:"../assets/home/5.jpg", + Download_link:'../assets/detail/list_download_icon.png', + Data_source:"", + Data_upload_agency:"" + }, + { + ID: 3, + Satellite_type:"Landsat-8", + Production_date:"2023-02-10 12:01:34", + Product_resolution: "6", + Cloud_coverage:'13.5345', + Central_longitude_and_latitude:'(96.6408,122.1683)', + Thumbnail:"../assets/home/3.jpg", + Download_link:'../assets/detail/list_download_icon.png', + Data_source:"", + Data_upload_agency:"" + } + // { + // ID: 1, + // Satellite_type:"Sentinel-2_Sentinel-2A", + // Production_date:"2023-02-10 12:10:25", + // Product_resolution(m):"10", + // Cloud_coverage(%):'15.5191', + // Central_longitude_and_latitude:'(96.6408,122.1683)', + // Thumbnail:"@/assets/home/1.jpg", + // Download_link:'', + // Data_source:"", + // Data_upload_agency:"" + // } + ], + layerGroupPoint:null, + layerGroupPoly:null, + polygoncontrol:null, + toolData:{ + records:null, + total:null, + current:null, + size:null, + pages:null, + }, + } + }, + + getters: { + + }, + + actions: { + + } + + }) \ No newline at end of file diff --git a/src/stores/store_name.ts b/src/stores/store_name.ts new file mode 100644 index 0000000..f45d2f1 --- /dev/null +++ b/src/stores/store_name.ts @@ -0,0 +1,4 @@ +export const enum Names { + TEST = "TEST" + } + \ No newline at end of file diff --git a/src/views/responseManagement/administrator/component/addAdministrator.vue b/src/views/responseManagement/administrator/addAdministrator.vue similarity index 100% rename from src/views/responseManagement/administrator/component/addAdministrator.vue rename to src/views/responseManagement/administrator/addAdministrator.vue