new-map
parent
ed897d063c
commit
facab4b391
2
.env
2
.env
|
|
@ -2,7 +2,7 @@
|
|||
VITE_PORT = 3100
|
||||
|
||||
# spa-title
|
||||
VITE_GLOB_APP_TITLE = Vben Admin
|
||||
VITE_GLOB_APP_TITLE = Admin
|
||||
|
||||
# spa shortname
|
||||
VITE_GLOB_APP_SHORT_NAME = vue_vben_admin
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ VITE_BUILD_COMPRESS = 'none'
|
|||
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
|
||||
|
||||
# Basic interface address SPA
|
||||
VITE_GLOB_API_URL=/basic-api
|
||||
VITE_GLOB_API_URL= http://lcny-api.peidikeji.cn
|
||||
|
||||
# File upload address, optional
|
||||
# It can be forwarded by nginx or write the actual address directly
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
[](LICENSE)
|
||||
|
||||
<h1>Vue vben admin</h1>
|
||||
<h1>Vue Admin </h1>
|
||||
</div>
|
||||
|
||||
## 简介
|
||||
|
||||
精简 Vue Vben Admin。
|
||||
精简 Vue Admin 。
|
||||
|
||||
## 特性
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import { MockMethod } from 'vite-plugin-mock';
|
||||
import { resultError, resultSuccess, getRequestToken, requestParams } from '../_util';
|
||||
import { MockMethod } from 'vite-plugin-mock'
|
||||
import { resultError, resultSuccess, getRequestToken, requestParams } from '../_util'
|
||||
|
||||
export function createFakeUserList() {
|
||||
return [
|
||||
{
|
||||
userId: '1',
|
||||
username: 'vben',
|
||||
realName: 'Vben Admin',
|
||||
realName: 'Vben Admin ',
|
||||
avatar: 'https://q1.qlogo.cn/g?b=qq&nk=190848757&s=640',
|
||||
desc: 'manager',
|
||||
password: '123456',
|
||||
|
|
@ -35,26 +35,26 @@ export function createFakeUserList() {
|
|||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
]
|
||||
}
|
||||
|
||||
const fakeCodeList: any = {
|
||||
'1': ['1000', '3000', '5000'],
|
||||
|
||||
'2': ['2000', '4000', '6000'],
|
||||
};
|
||||
}
|
||||
export default [
|
||||
{
|
||||
url: '/basic-api/getUserInfo',
|
||||
method: 'get',
|
||||
response: (request: requestParams) => {
|
||||
const token = getRequestToken(request);
|
||||
if (!token) return resultError('Invalid token');
|
||||
const checkUser = createFakeUserList().find((item) => item.token === token);
|
||||
const token = getRequestToken(request)
|
||||
if (!token) return resultError('Invalid token')
|
||||
const checkUser = createFakeUserList().find((item) => item.token === token)
|
||||
if (!checkUser) {
|
||||
return resultError('The corresponding user information was not obtained!');
|
||||
return resultError('The corresponding user information was not obtained!')
|
||||
}
|
||||
return resultSuccess(checkUser);
|
||||
return resultSuccess(checkUser)
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
@ -62,15 +62,15 @@ export default [
|
|||
timeout: 200,
|
||||
method: 'get',
|
||||
response: (request: requestParams) => {
|
||||
const token = getRequestToken(request);
|
||||
if (!token) return resultError('Invalid token');
|
||||
const checkUser = createFakeUserList().find((item) => item.token === token);
|
||||
const token = getRequestToken(request)
|
||||
if (!token) return resultError('Invalid token')
|
||||
const checkUser = createFakeUserList().find((item) => item.token === token)
|
||||
if (!checkUser) {
|
||||
return resultError('Invalid token!');
|
||||
return resultError('Invalid token!')
|
||||
}
|
||||
const codeList = fakeCodeList[checkUser.userId];
|
||||
const codeList = fakeCodeList[checkUser.userId]
|
||||
|
||||
return resultSuccess(codeList);
|
||||
return resultSuccess(codeList)
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
@ -78,13 +78,13 @@ export default [
|
|||
timeout: 200,
|
||||
method: 'get',
|
||||
response: (request: requestParams) => {
|
||||
const token = getRequestToken(request);
|
||||
if (!token) return resultError('Invalid token');
|
||||
const checkUser = createFakeUserList().find((item) => item.token === token);
|
||||
const token = getRequestToken(request)
|
||||
if (!token) return resultError('Invalid token')
|
||||
const checkUser = createFakeUserList().find((item) => item.token === token)
|
||||
if (!checkUser) {
|
||||
return resultError('Invalid token!');
|
||||
return resultError('Invalid token!')
|
||||
}
|
||||
return resultSuccess(undefined, { message: 'Token has been destroyed' });
|
||||
return resultSuccess(undefined, { message: 'Token has been destroyed' })
|
||||
},
|
||||
},
|
||||
] as MockMethod[];
|
||||
] as MockMethod[]
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
import { withInstall } from '/@/utils';
|
||||
import { withInstall } from '/@/utils'
|
||||
|
||||
import appLogo from './src/AppLogo.vue';
|
||||
import appProvider from './src/AppProvider.vue';
|
||||
import appSearch from './src/search/AppSearch.vue';
|
||||
import appLocalePicker from './src/AppLocalePicker.vue';
|
||||
import appDarkModeToggle from './src/AppDarkModeToggle.vue';
|
||||
import appLogo from './src/AppLogo.vue'
|
||||
import appProvider from './src/AppProvider.vue'
|
||||
import appSearch from './src/search/AppSearch.vue'
|
||||
import appLocalePicker from './src/AppLocalePicker.vue'
|
||||
import appDarkModeToggle from './src/AppDarkModeToggle.vue'
|
||||
|
||||
export { useAppProviderContext } from './src/useAppContext';
|
||||
export { useAppProviderContext } from './src/useAppContext'
|
||||
|
||||
export const AppLogo = withInstall(appLogo);
|
||||
export const AppProvider = withInstall(appProvider);
|
||||
export const AppSearch = withInstall(appSearch);
|
||||
export const AppLocalePicker = withInstall(appLocalePicker);
|
||||
export const AppDarkModeToggle = withInstall(appDarkModeToggle);
|
||||
export const AppLogo = withInstall(appLogo)
|
||||
export const AppProvider = withInstall(appProvider)
|
||||
export const AppSearch = withInstall(appSearch)
|
||||
export const AppLocalePicker = withInstall(appLocalePicker)
|
||||
export const AppDarkModeToggle = withInstall(appDarkModeToggle)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
<a @click="openWindow(DOC_URL)">{{ t('layout.footer.onlineDocument') }}</a>
|
||||
</div>
|
||||
<div>Copyright ©2020 Vben Admin</div>
|
||||
<div>Copyright ©2020 Admin </div>
|
||||
</Footer>
|
||||
</template>
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import type { AppRouteModule } from '/@/router/types'
|
|||
|
||||
export const mainOutRoutes: AppRouteModule[] = [
|
||||
{
|
||||
path: '/visualization',
|
||||
path: '/v',
|
||||
name: 'Visualization',
|
||||
component: () => import('/@/views/visualization/index.vue'),
|
||||
meta: {
|
||||
|
|
|
|||
|
|
@ -111,13 +111,13 @@
|
|||
for (const key in list) {
|
||||
if (Object.prototype.hasOwnProperty.call(list, key)) {
|
||||
arr.push({
|
||||
value: list[key],
|
||||
value: (Number(list[key]) / 10000).toFixed(2),
|
||||
y: key,
|
||||
})
|
||||
}
|
||||
}
|
||||
Data.list = sortBy(arr, (e) => {
|
||||
return e.value
|
||||
return Number(e.value)
|
||||
})
|
||||
|
||||
chatInit()
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<!-- <ScaleScreen :boxStyle="{ background: '#020603' }" :width="3120" :height="760" :autoScale="false"> -->
|
||||
<div class="overflow-y-scroll">
|
||||
<div class="flex flex-col h-full w-3120px h-760px bg-img relative">
|
||||
<ScaleScreen :boxStyle="{ background: '#020603' }" :width="3120" :height="760" :autoScale="true">
|
||||
<!-- <div class="overflow-y-scroll"> -->
|
||||
<div class="flex flex-col h-full bg-img relative">
|
||||
<canvas class="absolute left-0 top-0 w-full h-full" ref="cavsRef" id="canv"></canvas>
|
||||
<div class="flex flex-col h-full w-full z-100">
|
||||
<Head />
|
||||
|
|
@ -47,12 +47,12 @@
|
|||
:baseId="baseId"
|
||||
:baseData="baseData"
|
||||
/>
|
||||
</div>
|
||||
<!-- </ScaleScreen> -->
|
||||
<!-- </div> -->
|
||||
</ScaleScreen>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent, ref, onBeforeMount, reactive, toRefs, onMounted, unref } from 'vue'
|
||||
import { defineComponent, ref, onBeforeMount, reactive, toRefs, onMounted } from 'vue'
|
||||
import Map from './components/Map.vue'
|
||||
import ScaleScreen from '/@/components/ScaleScreen'
|
||||
import DXJG from './components/DXJG.vue'
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { Result } from '../utils';
|
|||
const fakeUserInfo = {
|
||||
userId: '1',
|
||||
username: 'vben',
|
||||
realName: 'Vben Admin',
|
||||
realName: 'Admin ',
|
||||
desc: 'manager',
|
||||
password: '123456',
|
||||
token: 'fakeToken1',
|
||||
|
|
|
|||
Loading…
Reference in New Issue