master
吴普建 11 months ago
parent f89db4efd2
commit c79004c91b

@ -16,11 +16,16 @@ export function useRouterPush(inSetup = true) {
* @param newTab - Tab * @param newTab - Tab
*/ */
function routerPush(to: RouteLocationRaw, newTab = false) { function routerPush(to: RouteLocationRaw, newTab = false) {
if (typeof to === 'string' && to?.indexOf('/board/kanBan') > -1) { // if (typeof to === 'string' && to?.indexOf('/board/kanBan') > -1) {
router.push({ name: 'board_kanBan' }); // router.push({ name: 'board_kanBan' });
// window.open('/board/kanBan', '_blank'); // // window.open('/board/kanBan', '_blank');
return Promise.resolve(); // return Promise.resolve();
} // }
console.log('to', to);
if (typeof to === 'string' && to?.indexOf('/board/kanBan') > -1) {
window.open('/board/kanBan', '_blank');
return Promise.resolve();
}
if (newTab) { if (newTab) {
const routerData = router.resolve(to); const routerData = router.resolve(to);
window.open(routerData.href, '_blank'); window.open(routerData.href, '_blank');

@ -21,7 +21,7 @@ defineOptions({ name: 'SettingDrawer' });
const app = useAppStore(); const app = useAppStore();
const showButton = import.meta.env.DEV || import.meta.env.VITE_VERCEL === 'Y'; const showButton = import.meta.env.DEV;
</script> </script>
<style scoped></style> <style scoped></style>

@ -21,7 +21,7 @@ export default defineComponent({
}, },
height: { height: {
type: String, type: String,
default: '200px' default: '300px'
}, },
productionData : { productionData : {
type : Object, type : Object,

@ -1,6 +1,6 @@
<template> <template>
<!-- <div :style="{ height: height, width: width }" />--> <!-- <div :style="{ height: height, width: width }" />-->
<dv-scroll-board :config="config" style="width:900px;height:240px" /> <dv-scroll-board :config="config" style="width:900px;height:380px" />
</template> </template>
<script> <script>
@ -36,7 +36,7 @@ export default defineComponent({
return { return {
config: { config: {
header: ['工单类型', '机台', '订单编号', '报工数量','报工时间','报工人'], header: ['工单类型', '机台', '订单编号', '报工数量','报工时间','报工人'],
headerBGC: 'transparent', headerBGC: '#0E6EA1',
oddRowBGC: '#011B42', oddRowBGC: '#011B42',
evenRowBGC: '#020D29', evenRowBGC: '#020D29',
data: [ data: [

@ -28,7 +28,7 @@
:year="year" :year="year"
:production-data="productionData" :production-data="productionData"
width="450px" width="450px"
height="210px" height="300px"
/> />
</div> </div>
</div> </div>
@ -378,7 +378,7 @@
ref="leftBot" ref="leftBot"
:year="year" :year="year"
width="200px" width="200px"
:device-count="25" :device-count="10"
height="160px" height="160px"
@endLoading="endLoading" @endLoading="endLoading"
/> />
@ -391,7 +391,7 @@
<right-middle <right-middle
v-show="!loading5" v-show="!loading5"
ref="leftBot" ref="leftBot"
:device-count="9" :device-count="15"
:year="year" :year="year"
width="200px" width="200px"
height="160px" height="160px"
@ -641,6 +641,9 @@ export default defineComponent({
const app = useAppStore(); const app = useAppStore();
app.setContentFull(this.fullScreen); app.setContentFull(this.fullScreen);
}, },
jumpPage(routerName){
this.router.push({name : routerName})
},
// //
debounce(func, wait = 100) { debounce(func, wait = 100) {
let timeout; let timeout;
@ -653,7 +656,7 @@ export default defineComponent({
}, },
handleScreenAuto() { handleScreenAuto() {
const designDraftWidth = 2280; // 稿 const designDraftWidth = 2280; // 稿
const designDraftHeight = 1080; // 稿 const designDraftHeight = 1280; // 稿
// //
const scale = const scale =
document.documentElement.clientWidth / document.documentElement.clientHeight < document.documentElement.clientWidth / document.documentElement.clientHeight <
@ -765,11 +768,12 @@ export default defineComponent({
} }
.screen { .screen {
width: 2280px; width: 2280px;
height: 1080px; height: 1280px;
transform-origin: 0 0; transform-origin: 0 0;
position: relative; position: relative;
background: url(../../../assets/img/pageBg.png) no-repeat; background: url(../../../assets/img/pageBg.png) no-repeat;
background-size: cover; background-size: contain;
background-size: 2280px 1280px;
left: 50%; left: 50%;
top: 50%; top: 50%;
} }
@ -851,7 +855,7 @@ export default defineComponent({
height: 285px; height: 285px;
background: url(../../../assets/img/board/left_mid_bg.png) no-repeat center center; background: url(../../../assets/img/board/left_mid_bg.png) no-repeat center center;
background-size: cover; background-size: cover;
top: 360px; top: 392px;
} }
.alltitle { .alltitle {
font-size: 18px; font-size: 18px;
@ -866,7 +870,7 @@ export default defineComponent({
.left_bot_area { .left_bot_area {
width: 505px; width: 505px;
height: 300px; height: 300px;
top: 700px; top: 800px;
} }
.left_bot_area .top_title, .left_bot_area .top_title,
@ -1023,7 +1027,7 @@ export default defineComponent({
.right_mid_bot_area { .right_mid_bot_area {
width: 500px; width: 500px;
height: 230px; height: 230px;
top: 540px; top: 580px;
} }
.right_mid_bot_area .bar_area { .right_mid_bot_area .bar_area {
width: 565px; width: 565px;
@ -1097,7 +1101,7 @@ export default defineComponent({
.right_bot_area { .right_bot_area {
width: 600px; width: 600px;
height: 230px; height: 230px;
top: 805px; top: 910px;
} }
.mid_area { .mid_area {
@ -1244,7 +1248,7 @@ export default defineComponent({
width: 900px; width: 900px;
height: 180px; height: 180px;
left: 630px; left: 630px;
top: 633px; top: 680px;
background: url(../../../assets/img/board/left_mid_bg.png) no-repeat center center; background: url(../../../assets/img/board/left_mid_bg.png) no-repeat center center;
background-size: cover; background-size: cover;
} }
@ -1410,4 +1414,6 @@ li {
Arial Narrow Bold, Arial Narrow Bold,
sans-serif; sans-serif;
} }
</style> </style>

@ -45,7 +45,7 @@ const cardData: CardData[] = [
{ {
id: 'amount', id: 'amount',
title: '运行中', title: '运行中',
value: 9, value: 10,
unit: '$', unit: '$',
colors: ['#865ec0', '#5144b4'], colors: ['#865ec0', '#5144b4'],
icon: 'ant-design:money-collect-outlined' icon: 'ant-design:money-collect-outlined'
@ -53,7 +53,7 @@ const cardData: CardData[] = [
{ {
id: 'download', id: 'download',
title: '待机', title: '待机',
value: 10, value: 15,
unit: '', unit: '',
colors: ['#56cdf3', '#719de3'], colors: ['#56cdf3', '#719de3'],
icon: 'carbon:document-download' icon: 'carbon:document-download'

Loading…
Cancel
Save