main
wangqiujuan0808 2023-12-09 14:05:55 +08:00
parent 34f1b1c11f
commit 14b51f2e43
22 changed files with 209 additions and 104 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@ -126,7 +126,9 @@ aside {
// height: 80px; // height: 80px;
} }
.mr10 {
margin-right: 10px;
}
.components-container { .components-container {
margin: 30px 50px; margin: 30px 50px;
position: relative; position: relative;

View File

@ -41,5 +41,6 @@ function handleSetSize(size) {
font-size: 18px; font-size: 18px;
line-height: 50px; line-height: 50px;
padding-right: 7px; padding-right: 7px;
color: #fff;
} }
</style> </style>

View File

@ -138,9 +138,8 @@ function setLayout() {
.right-menu { .right-menu {
float: right; float: right;
height: 100%; height: 100%;
line-height: 50px;
display: flex; display: flex;
color: #fff;
&:focus { &:focus {
outline: none; outline: none;
} }
@ -150,9 +149,10 @@ function setLayout() {
padding: 0 8px; padding: 0 8px;
height: 100%; height: 100%;
font-size: 18px; font-size: 18px;
color: #5a5e66; color: #fff;
vertical-align: text-bottom; vertical-align: text-bottom;
display: flex;
align-items: center;
&.hover-effect { &.hover-effect {
cursor: pointer; cursor: pointer;
transition: background 0.3s; transition: background 0.3s;
@ -164,7 +164,7 @@ function setLayout() {
} }
.avatar-container { .avatar-container {
margin-right: 40px; margin-right: 10px;
.avatar-wrapper { .avatar-wrapper {
margin-top: 5px; margin-top: 5px;

View File

@ -2,7 +2,7 @@
<div class="navbar"> <div class="navbar">
<!-- <top-nav id="topmenu-container" class="topmenu-container" v-if="settingsStore.topNav" /> --> <!-- <top-nav id="topmenu-container" class="topmenu-container" v-if="settingsStore.topNav" /> -->
<div class="left"> <div class="left">
<img src="@/assets/logo/logo.png" alt="dark" /> <!-- <img src="@/assets/logo/logo.png" alt="dark" /> -->
<span> <span>
百威管理系统 百威管理系统
</span> </span>
@ -13,11 +13,8 @@
<div class="right-menu"> <div class="right-menu">
<template v-if="appStore.device !== 'mobile'"> <template v-if="appStore.device !== 'mobile'">
<p class="time"> <p class="time">
<font> {{ time }} </font> <font class="mr10"> {{ time }} </font><div class="mr10">{{ currentTime }}</div> <div class="mr10">{{ week }}</div>
<div class="currentTime-week">
<div>{{ currentTime }}</div>
<div>{{ week }}</div>
</div>
</p> </p>
<!-- <header-search id="header-search" class="right-menu-item" /> <!-- <header-search id="header-search" class="right-menu-item" />
@ -165,18 +162,22 @@ function setLayout() {
<style lang='scss' scoped> <style lang='scss' scoped>
.navbar { .navbar {
height: 50px; height: 70px;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
background: #fff; // background: #202a60;
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
background: url('@/assets/images/top_banner_deep.png') no-repeat #202a60;
.left { .left {
width: 33%; width: 33%;
display: flex; // display: flex;
align-items: center; // align-items: center;
padding-left: 20px;
color: #fff;
font-size: 20px;
line-height: 50px;
height: 100%; height: 100%;
img { img {
height: 98%; height: 98%;
@ -189,6 +190,8 @@ function setLayout() {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
color: #fff;
font-size: 30px;
} }
.right-menu { .right-menu {
@ -202,18 +205,17 @@ function setLayout() {
display: flex; display: flex;
align-items: center; align-items: center;
height: 100%; height: 100%;
font { font {
font-size: 30px; font-size: 30px;
} }
.currentTime-week { .currentTime-week {
height: 100%; height: 70%;
margin: 0 10px; margin: 0 10px;
>div { >div {
width: 100%; width: 100%;
height: 50% !important; height: 40% !important;
display: flex !important; display: flex !important;
align-items: center !important; align-items: center !important;
justify-content: center; justify-content: center;
@ -252,9 +254,8 @@ function setLayout() {
.right-menu { .right-menu {
float: right; float: right;
height: 100%; height: 100%;
line-height: 50px;
display: flex; display: flex;
color: #fff;
&:focus { &:focus {
outline: none; outline: none;
} }
@ -264,9 +265,10 @@ function setLayout() {
padding: 0 8px; padding: 0 8px;
height: 100%; height: 100%;
font-size: 18px; font-size: 18px;
color: #5a5e66; color: #fff;
vertical-align: text-bottom; vertical-align: text-bottom;
display: flex;
align-items: center;
&.hover-effect { &.hover-effect {
cursor: pointer; cursor: pointer;
transition: background 0.3s; transition: background 0.3s;
@ -278,7 +280,7 @@ function setLayout() {
} }
.avatar-container { .avatar-container {
margin-right: 40px; margin-right: 10px;
.avatar-wrapper { .avatar-wrapper {
margin-top: 5px; margin-top: 5px;

View File

@ -1,5 +1,6 @@
let color= ['#007d7b', '#8BC34A', '#CDDC39', '#FFEB3B', '#FFC107', '#FF9800', '#FF5722', '#E91E63', '#9C27B0', '#673AB7'] // let color= ['#007d7b', '#8BC34A', '#CDDC39', '#FFEB3B', '#FFC107', '#FF9800', '#FF5722', '#E91E63', '#9C27B0', '#673AB7']
let color = ['#f46464', '#7bddf5', '#f5ef7b', '#f57bcc']
const getPie3D = (pieData, internalDiameterRatio, rateName) => { const getPie3D = (pieData, internalDiameterRatio, rateName) => {
// internalDiameterRatio:透明的空心占比 // internalDiameterRatio:透明的空心占比
const series = [] const series = []
@ -52,7 +53,7 @@ const getPie3D = (pieData, internalDiameterRatio, rateName) => {
// const newColor = _.cloneDeep(color) // const newColor = _.cloneDeep(color)
// newColor.splice(0, 1) // newColor.splice(0, 1)
const newColor = [color[0], color[1], color[5],color[6]] const newColor = color;
series.push({ series.push({
type: 'pie', type: 'pie',

View File

@ -33,7 +33,7 @@ const data = reactive({
content: '设备完成巡检计划', content: '设备完成巡检计划',
time: '下午', time: '下午',
timestamp: '20:46', timestamp: '20:46',
color: '#0bbd87', color: '#87efd0e9',
icon: MoreFilled, icon: MoreFilled,
type: 'primary', type: 'primary',
size: 'large' size: 'large'
@ -42,7 +42,7 @@ const data = reactive({
content: '设备发生故障:电流过大', content: '设备发生故障:电流过大',
time: '下午', time: '下午',
timestamp: '18:46', timestamp: '18:46',
color: '#e54c44', color: '#f28680',
type: 'danger', type: 'danger',
icon: Warning, icon: Warning,
size: 'large' size: 'large'
@ -51,7 +51,7 @@ const data = reactive({
content: '设备保养周期剩余3天', content: '设备保养周期剩余3天',
time: '上午', time: '上午',
timestamp: '11:46', timestamp: '11:46',
color: '#31bdb4', color: '#6eebe3',
icon: MoreFilled, icon: MoreFilled,
type: 'primary', type: 'primary',
size: 'large' size: 'large'
@ -75,7 +75,8 @@ const openDialog = () => {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
color: #3cbfdf; // color: #006b86;
color: #6eebe3;
:deep(.border-box-content) { :deep(.border-box-content) {
padding: 10px; padding: 10px;

View File

@ -44,16 +44,22 @@ const changeMenu = (index) => {
align-items: center; align-items: center;
>div { >div {
color: #2ebfdf; color: #ffff;
width: 150px; width: 178px;
border: 1px solid #2ebfdf; height: 64px;
line-height: 45px; display: flex;
text-align: center; justify-content: center;
flex-direction: column;
align-items: center;
font-weight: 600; font-weight: 600;
cursor: pointer; cursor: pointer;
background: url(@/assets/images/weixuanzhong.png) center center no-repeat;
background-size: 100% 100%;
} }
.activateTab { .activateTab {
color: #fcab27; background-size: 100% 100%;
background: url(@/assets/images/xuanzhong.png) center center no-repeat;
} }
} }
</style> </style>

View File

@ -64,7 +64,7 @@ const data = reactive({
content: '设备完成巡检计划', content: '设备完成巡检计划',
time: '2023年', time: '2023年',
timestamp: '12月3日', timestamp: '12月3日',
color: '#0bbd87', color: '#87efd0e9',
icon: MoreFilled, icon: MoreFilled,
type: 'primary', type: 'primary',
size: 'large' size: 'large'
@ -73,7 +73,7 @@ const data = reactive({
content: '设备发生故障:电流过大', content: '设备发生故障:电流过大',
time: '2023年', time: '2023年',
timestamp: '12月5日', timestamp: '12月5日',
color: '#e54c44', color: '#f28680',
type: 'danger', type: 'danger',
icon: Warning, icon: Warning,
size: 'large' size: 'large'
@ -82,7 +82,7 @@ const data = reactive({
content: '设备保养周期剩余3天', content: '设备保养周期剩余3天',
time: '2023年', time: '2023年',
timestamp: '12月6日', timestamp: '12月6日',
color: '#31bdb4', color: '#6eebe3',
icon: MoreFilled, icon: MoreFilled,
type: 'primary', type: 'primary',
size: 'large' size: 'large'
@ -91,7 +91,7 @@ const data = reactive({
content: '设备完成巡检计划', content: '设备完成巡检计划',
time: '2023年', time: '2023年',
timestamp: '12月20日', timestamp: '12月20日',
color: '#0bbd87', color: '#87efd0e9',
icon: MoreFilled, icon: MoreFilled,
type: 'primary', type: 'primary',
size: 'large' size: 'large'
@ -100,7 +100,7 @@ const data = reactive({
content: '设备发生故障:电流过大', content: '设备发生故障:电流过大',
time: '2023年', time: '2023年',
timestamp: '12月23日', timestamp: '12月23日',
color: '#e54c44', color: '#f28680',
type: 'danger', type: 'danger',
icon: Warning, icon: Warning,
size: 'large' size: 'large'

View File

@ -115,12 +115,15 @@ const cleanColor = () => {
}) })
} }
const init = () => { const init = () => {
scene = new THREE.Scene("#00ffff"); // scene = new THREE.Scene("#00ffff");
const texture = new THREE.TextureLoader().load(homeIcon); // const texture = new THREE.TextureLoader().load(homeIcon);
texture.mapping = THREE.EquirectangularReflectionMapping; // texture.mapping = THREE.EquirectangularReflectionMapping;
scene.background = texture // scene.background = texture
scene.environment = texture // scene.environment = texture
scene = new THREE.Scene();
console.log(123,props.background);
scene.background = new THREE.Color(props.background);
const canvas = document.querySelector("#three"); const canvas = document.querySelector("#three");
var cubeLoader = new THREE.CubeTextureLoader(); var cubeLoader = new THREE.CubeTextureLoader();
// WebGLRenderer使 // WebGLRenderer使
@ -132,7 +135,7 @@ const init = () => {
camera = new THREE.PerspectiveCamera(50, window.innerWidth / window.innerHeight, 0.25, 2000) camera = new THREE.PerspectiveCamera(50, window.innerWidth / window.innerHeight, 0.25, 2000)
// //
camera.position.set(-192.936, 180.990, -28.179); camera.position.set(-92.936, 180.990, -28.179);
camera.lookAt(scene.position); camera.lookAt(scene.position);
// //
orbit = new OrbitControls(camera, renderer.domElement); orbit = new OrbitControls(camera, renderer.domElement);
@ -140,11 +143,11 @@ const init = () => {
setTimeout(function () { setTimeout(function () {
orbit.autoRotate = false; orbit.autoRotate = false;
}, 7000); }, 7000);
renderer.setClearColor(new THREE.Color("#0e0934")); // renderer.setClearColor(new THREE.Color("#0e0934"));
renderer.setSize(window.innerWidth, window.innerHeight); renderer.setSize(window.innerWidth, window.innerHeight);
// 0x4444440x888888,threejs // 0x4444440x888888,threejs
// intensity 0.5 // intensity 0.5
var alight = new THREE.AmbientLight(props.light, 0.5); var alight = new THREE.AmbientLight(props.light, 1);
alight.name = "aLight"; alight.name = "aLight";
scene.add(alight); scene.add(alight);
}; };

View File

@ -15,10 +15,12 @@ const props = defineProps({
width: 360px; width: 360px;
height: 56px; height: 56px;
background-size: 100% 100% !important; background-size: 100% 100% !important;
background: url(@/assets/images/top.png) no-repeat; background: url(@/assets/images/biaoti.png) no-repeat;
display: flex; display: flex;
justify-content: center;
align-items: center; align-items: center;
margin-bottom: 10px; margin-bottom: 5px;
padding-left: 24px;
color: #fff;
font-weight: 800
} }
</style> </style>

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<!-- 场景模型 --> <!-- 场景模型 -->
<ThreeView background="#353535" light="0xffffff" :sceneUrl="sceneUrl" v-if="sceneUrl !== ''"></ThreeView> <ThreeView background="#202a60" light="0xfffafa" :sceneUrl="sceneUrl" v-if="sceneUrl !== ''"></ThreeView>
<!-- <ThreeModel /> --> <!-- <ThreeModel /> -->
<!-- 底部菜单 --> <!-- 底部菜单 -->
<MenuTab @changeMenu="changeMenu"></MenuTab> <MenuTab @changeMenu="changeMenu"></MenuTab>
@ -126,6 +126,6 @@ const viewDetail = (val) => {
.app-container { .app-container {
position: relative; position: relative;
width: 100%; width: 100%;
height: 900px; height: calc(100vh - 70px);
} }
</style> </style>

View File

@ -1,7 +1,9 @@
<template> <template>
<div class="bar-div" id="bar"> <dv-border-box-12 class="bar-div">
<div id="bar">
</div> </div>
</dv-border-box-12>
</template> </template>
<script setup> <script setup>
import * as echarts from "echarts"; import * as echarts from "echarts";
@ -27,7 +29,14 @@ const getCharts = () => {
type: 'shadow' type: 'shadow'
} }
}, },
legend: {}, legend: {
textStyle: {
color: "#ffff",
fontFamily: "Alibaba PuHuiTi",
fontSize: 14,
fontWeight: 400,
},
},
grid: { grid: {
left: '1%', left: '1%',
right: '8%', right: '8%',
@ -43,6 +52,16 @@ const getCharts = () => {
width: 1 width: 1
} }
}, },
axisLabel: {
textStyle: {
color: "#fff", //X
fontSize: "12", //X
},
},
splitLine: {
// 线
show: false,
},
show: true, show: true,
maxInterval: 50000 // min maxInterval: 50000 // min
} }
@ -69,6 +88,12 @@ const getCharts = () => {
width: 2 width: 2
} }
}, },
axisLabel: {
textStyle: {
color: "#fff", //X
fontSize: "12", //X
},
},
position: 'left', position: 'left',
} }
], ],
@ -113,4 +138,10 @@ const getCharts = () => {
option && myChart.setOption(option); option && myChart.setOption(option);
} }
} }
</script> </script>
<style lang="scss" scoped>
#bar {
width: 100%;
height:100%;
}
</style>

View File

@ -1,15 +1,17 @@
<template> <template>
<div class="device-div"> <dv-border-box-12 class="device-div">
<div v-for="(item, index) of deviceList" :key="index"> <div class="device-list">
<img :src="item.imgUrl" alt="" width="60"> <div v-for="(item, index) of deviceList" :key="index">
<font class="num" :style="{'color': item.color}">{{ item.num }}</font> <img :src="item.imgUrl" alt="" width="60">
<span>{{ item.name }}</span> <font class="num" :style="{ 'color': item.color }">{{ item.num }}</font>
<span>{{ item.name }}</span>
</div>
</div> </div>
</div> </dv-border-box-12>
</template> </template>
<script setup> <script setup>
import IconBy from '@/assets/images/icon-by.png'; import IconBy from '@/assets/images/icon-by.png';
import IconWx from '@/assets/images/icon-wx.png'; import IconWx from '@/assets/images/icon-wx.png';
import IconXj from '@/assets/images/icon-xj.png'; import IconXj from '@/assets/images/icon-xj.png';
import IconPd from '@/assets/images/icon-pd.png'; import IconPd from '@/assets/images/icon-pd.png';
const deviceList = [ const deviceList = [
@ -41,21 +43,30 @@ const deviceList = [
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.device-div { .device-div {
display: flex; .device-list {
justify-content: space-around; width:100%;
align-items: center; height:100%;
>div {
width: 24%;
height:80%;
// border: 1px solid red;
display: flex; display: flex;
flex-direction: column; justify-content: space-around;
align-items: center; align-items: center;
padding: 10px 0;
.num { >div {
font-size: 48px; width: 24%;
height: 80%;
// border: 1px solid red;
display: flex;
flex-direction: column;
align-items: center;
padding: 10px 0;
color: #fff;
.num {
font-size: 48px;
}
} }
} }
} }
</style> </style>

View File

@ -1,7 +1,8 @@
<template> <template>
<div class="line-div" id="line"> <dv-border-box-12 class="line-div">
<div id="line"></div>
</div> </dv-border-box-12>
</template> </template>
<script setup> <script setup>
import * as echarts from "echarts"; import * as echarts from "echarts";
@ -27,7 +28,14 @@ const getCharts = () => {
type: 'shadow' type: 'shadow'
} }
}, },
legend: {}, legend: {
textStyle: {
color: "#ffff",
fontFamily: "Alibaba PuHuiTi",
fontSize: 14,
fontWeight: 400,
},
},
grid: { grid: {
top: '24%', top: '24%',
left: '5%', left: '5%',
@ -45,6 +53,16 @@ const getCharts = () => {
width: 1 width: 1
} }
}, },
splitLine: {
// 线
show: false,
},
axisLabel: {
textStyle: {
color: "#fff", //X
fontSize: "12", //X
},
},
show: true, show: true,
maxInterval: 50000 // min maxInterval: 50000 // min
} }
@ -52,7 +70,7 @@ const getCharts = () => {
xAxis: [ xAxis: [
{ {
type: 'category', type: 'category',
data: ['1月', '2月', '3月', '4月', '5月', '6月','7月', '8月', '9月', '10月', '11月', '12月'], data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
axisLine: { axisLine: {
show: true, show: true,
lineStyle: { lineStyle: {
@ -64,13 +82,19 @@ const getCharts = () => {
}, },
{ {
type: 'category', type: 'category',
data: ['1月', '2月', '3月', '4月', '5月', '6月','7月', '8月', '9月', '10月', '11月', '12月'], data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
axisLine: { axisLine: {
show: true, show: true,
lineStyle: { lineStyle: {
width: 2 width: 2
} }
}, },
axisLabel: {
textStyle: {
color: "#fff", //X
fontSize: "12", //X
},
},
position: 'bottom', position: 'bottom',
} }
], ],
@ -78,8 +102,9 @@ const getCharts = () => {
{ {
name: '生产数据', name: '生产数据',
type: 'bar', type: 'bar',
barWidth: 18,
// xAxisIndex:1, // xAxisIndex:1,
data: [182, 234, 290, 104, 131, 100,182, 234, 290, 104, 131, 100], data: [182, 234, 290, 104, 131, 100, 182, 234, 290, 104, 131, 100],
itemStyle: { itemStyle: {
normal: { normal: {
label: { label: {
@ -96,7 +121,7 @@ const getCharts = () => {
name: '销售数据', name: '销售数据',
type: 'line', type: 'line',
// xAxisIndex:1, // xAxisIndex:1,
data: [193, 234, 310, 121, 134, 181,193, 234, 310, 121, 134, 181], data: [193, 234, 310, 121, 134, 181, 193, 234, 310, 121, 134, 181],
itemStyle: { itemStyle: {
normal: { normal: {
label: { label: {
@ -115,4 +140,10 @@ const getCharts = () => {
option && myChart.setOption(option); option && myChart.setOption(option);
} }
} }
</script> </script>
<style lang="scss" scoped>
#line {
width: 100%;
height:100%;
}
</style>

View File

@ -88,7 +88,7 @@ const getCharts = () => {
label: { label: {
emphasis: { emphasis: {
show: false show: false
} },
} }
// itemStyle: { // itemStyle: {
// normal: { // normal: {
@ -107,7 +107,10 @@ const getCharts = () => {
zoom:1.2, zoom:1.2,
label: { label: {
normal: { normal: {
show: true show: true,
textStyle: {
color: '#fff'
}
}, },
emphasis: { emphasis: {
show: true show: true
@ -115,9 +118,9 @@ const getCharts = () => {
}, },
itemStyle: { itemStyle: {
normal: { normal: {
areaColor: '#B2CAE0', areaColor: '#254287',
borderColor: '#fff', borderColor: '#fff',
borderWidth: 1 borderWidth: 1,
}, },
emphasis: { emphasis: {
areaColor: '#FFAE00' areaColor: '#FFAE00'

View File

@ -1,7 +1,9 @@
<template> <template>
<div class="pie-div" id="pie"> <dv-border-box-12 class="pie-div">
<div id="pie">
</div> </div>
</dv-border-box-12>
</template> </template>
<script setup> <script setup>
import * as echarts from "echarts"; import * as echarts from "echarts";
@ -41,7 +43,7 @@ const getCharts = () => {
itemGap: 25, itemGap: 25,
borderRadius: 4, borderRadius: 4,
textStyle: { textStyle: {
color: "#000", color: "#ffff",
fontFamily: "Alibaba PuHuiTi", fontFamily: "Alibaba PuHuiTi",
fontSize: 14, fontSize: 14,
fontWeight: 400, fontWeight: 400,
@ -89,4 +91,10 @@ const getCharts = () => {
option && myChart.setOption(option); option && myChart.setOption(option);
} }
} }
</script> </script>
<style lang="scss" scoped>
#pie {
width: 100%;
height:100%;
}
</style>

View File

@ -48,25 +48,26 @@ const gotoPage = (item) => {
.topMenu { .topMenu {
width: 100%; width: 100%;
height: 80px; height: 80px;
// border: 1px solid red; border: 1px solid #020c45;
display: flex; display: flex;
align-items: center; align-items: center;
background: #b2cae0; background: #3d5d9a;
// color: #fff; color: #fff;
> div { > div {
width: 260px; width: 260px;
height: 100%; height: 100%;
cursor: pointer; cursor: pointer;
display: flex; display: flex;
align-items: center; align-items: center;
border-right: 1px solid #fff; border-right: 1px solid #020c45;
justify-content: center; justify-content: center;
font-size: 20px; font-size: 20px;
} }
} }
.home-page { .home-page {
width:100%; width:100%;
height: calc(100vh - 130px); height: calc(100vh - 150px);
background: #020c45;
position: relative; position: relative;
.map-div { .map-div {
width: 100%; width: 100%;
@ -79,15 +80,15 @@ const gotoPage = (item) => {
height: 360px; height: 360px;
top: 10px; top: 10px;
left: 10px; left: 10px;
background: #b2cae0; padding: 15px;
} }
.bar-div { .bar-div {
position: absolute; position: absolute;
width: 400px; width: 400px;
height: 460px; height: 460px;
background: #b2cae0;
top: 10px; top: 10px;
right: 10px; right: 10px;
padding: 15px;
} }
.device-div { .device-div {
position: absolute; position: absolute;
@ -95,7 +96,8 @@ const gotoPage = (item) => {
left: 10px; left: 10px;
width: 930px; width: 930px;
height: 200px; height: 200px;
background: #b2cae0; padding: 15px;
// background: #b2cae0;
} }
.line-div { .line-div {
position: absolute; position: absolute;
@ -103,7 +105,8 @@ const gotoPage = (item) => {
right: 10px; right: 10px;
width: 930px; width: 930px;
height: 200px; height: 200px;
background: #b2cae0; padding: 15px;
// background: #b2cae0;
} }
} }
} }

View File

@ -34,7 +34,7 @@ export default defineConfig(({ mode, command }) => {
target: 'http://ryapi.shikicc.com:58911/', target: 'http://ryapi.shikicc.com:58911/',
// target: 'http://vue.ruoyi.vip/', // target: 'http://vue.ruoyi.vip/',
changeOrigin: true, changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, '') rewrite: (p) => p.replace(/^\/dev-api/, '/prod-api')
} }
} }
}, },