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