大屏项目初始化
This commit is contained in:
262
screen-vue/src/views/screen/Work/index.vue
Normal file
262
screen-vue/src/views/screen/Work/index.vue
Normal file
@@ -0,0 +1,262 @@
|
||||
<template>
|
||||
<div class="work-layout-container">
|
||||
<div class="work-section work-top-header">
|
||||
<div class="work-card full-card">
|
||||
<h3>Work页面顶部区域 (10%)</h3>
|
||||
<p>可放置工作概览、筛选条件、操作按钮等</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="work-main-container">
|
||||
<div class="work-col">
|
||||
<div class="work-inner-section work-inner-one-third">
|
||||
<div class="work-card">
|
||||
<h3>左侧上部</h3>
|
||||
<p>工作列表1</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="work-inner-section work-inner-one-third">
|
||||
<div class="work-card">
|
||||
<h3>左侧中部</h3>
|
||||
<p>工作列表2</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="work-inner-section work-inner-one-third">
|
||||
<div class="work-card">
|
||||
<h3>左侧下部</h3>
|
||||
<p>工作列表3</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="work-col">
|
||||
<div class="work-inner-section work-inner-two-third">
|
||||
<div class="work-card">
|
||||
<h3>中间上部 (60%)</h3>
|
||||
<p>核心工作内容/进度展示</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="work-inner-section work-inner-one-third">
|
||||
<div class="work-card">
|
||||
<h3>中间下部 (30%)</h3>
|
||||
<p>工作统计/快捷操作</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="work-col">
|
||||
<div class="work-inner-section work-inner-one-third">
|
||||
<div class="work-card">
|
||||
<h3>右侧上部</h3>
|
||||
<p>工作图表/数据可视化1</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="work-inner-section work-inner-one-third">
|
||||
<div class="work-card">
|
||||
<h3>右侧中部</h3>
|
||||
<p>工作图表/数据可视化2</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="work-inner-section work-inner-one-third">
|
||||
<div class="work-card">
|
||||
<h3>右侧下部</h3>
|
||||
<p>待办/提醒/通知</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, watch } from 'vue';
|
||||
|
||||
const props = defineProps({
|
||||
formParams: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
}
|
||||
});
|
||||
|
||||
watch(
|
||||
() => props.formParams,
|
||||
{
|
||||
deep: true,
|
||||
immediate: true
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.work-layout-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
padding: 8px;
|
||||
margin: 0 !important;
|
||||
box-sizing: border-box;
|
||||
background-color: transparent;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.work-top-header {
|
||||
width: 100%;
|
||||
height: 10%;
|
||||
display: flex;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.work-main-container {
|
||||
width: 100%;
|
||||
height: 90%;
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.work-col {
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.work-inner-one-third {
|
||||
flex: 1;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.work-inner-two-third {
|
||||
flex: 2;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.work-card {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(15, 52, 96, 0.9);
|
||||
border: 1px solid #1a508b;
|
||||
border-radius: 8px;
|
||||
padding: 2px;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #e0e6ff;
|
||||
backdrop-filter: blur(4px);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.full-card {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.work-card:hover {
|
||||
box-shadow: 0 4px 12px rgba(60, 156, 255, 0.3);
|
||||
border-color: #3c9cff;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.work-card h3 {
|
||||
font-size: 16px;
|
||||
margin-bottom: 8px;
|
||||
letter-spacing: 1px;
|
||||
background: #3c9cff;
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.work-card p {
|
||||
font-size: 13px;
|
||||
opacity: 0.75;
|
||||
color: #b4c7e7;
|
||||
text-align: center;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
@media (max-width: 1600px) {
|
||||
.work-layout-container {
|
||||
padding: 6px;
|
||||
gap: 4px;
|
||||
}
|
||||
.work-main-container {
|
||||
gap: 4px;
|
||||
}
|
||||
.work-col {
|
||||
gap: 4px;
|
||||
}
|
||||
.work-card {
|
||||
padding: 10px;
|
||||
}
|
||||
.work-card h3 {
|
||||
font-size: 14px;
|
||||
}
|
||||
.work-card p {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.work-layout-container {
|
||||
flex-direction: column;
|
||||
height: auto;
|
||||
min-height: 100%;
|
||||
padding: 6px;
|
||||
gap: 6px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.work-top-header {
|
||||
height: auto;
|
||||
min-height: 80px;
|
||||
}
|
||||
.work-main-container {
|
||||
flex-direction: column;
|
||||
height: auto;
|
||||
min-height: calc(100% - 80px);
|
||||
gap: 6px;
|
||||
}
|
||||
.work-col {
|
||||
width: 100%;
|
||||
height: 33%;
|
||||
gap: 6px;
|
||||
}
|
||||
.work-card {
|
||||
padding: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-height: 900px) {
|
||||
.work-layout-container {
|
||||
padding: 6px;
|
||||
gap: 4px;
|
||||
}
|
||||
.work-main-container {
|
||||
gap: 4px;
|
||||
}
|
||||
.work-col {
|
||||
gap: 4px;
|
||||
}
|
||||
.work-card {
|
||||
padding: 8px;
|
||||
}
|
||||
.work-card h3 {
|
||||
font-size: 14px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.work-card p {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user