1.优化界面样式

master
董哲奇 1 year ago
parent b0a323b4b6
commit e57e1832d4

Binary file not shown.

After

Width:  |  Height:  |  Size: 820 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

@ -14,7 +14,7 @@
</el-row> </el-row>
</el-form> </el-form>
</el-header> </el-header>
<el-container style="padding-top: 0px"> <el-container style="padding-top: 3px">
<el-main> <el-main>
<div class="mytable"> <div class="mytable">
<vxe-grid <vxe-grid
@ -65,7 +65,7 @@ export default {
}, },
days: [], days: [],
sunDays: [], sunDays: [],
height: '500px', height: '800px',
tableColumn: [ tableColumn: [
{field: 'dcCh', title: '船号', minWidth: "70",}, {field: 'dcCh', title: '船号', minWidth: "70",},
{field: 'gx', title: '工序', minWidth: "70",}, {field: 'gx', title: '工序', minWidth: "70",},
@ -161,7 +161,7 @@ export default {
} }
}, },
getHeight() { getHeight() {
this.height = window.innerHeight - 200 this.height = window.innerHeight - 122
}, },
} }
} }

@ -1,5 +1,9 @@
<template> <template>
<div class="dashboard-editor-container" style="background-color: #f6fbff;"> <el-container style="width: 100%;height:90.9vh;background-color: gray">
</el-container>
<!-- <div class="dashboard-editor-container" style="background-color: blueviolet;">-->
<!-- <div class=" clearfix">--> <!-- <div class=" clearfix">-->
<!-- <pan-thumb :image="avatar" style="float: left">--> <!-- <pan-thumb :image="avatar" style="float: left">-->
<!-- &lt;!&ndash; Your roles:--> <!-- &lt;!&ndash; Your roles:-->
@ -39,7 +43,7 @@ export default {
]) ])
}, },
created(){ created(){
this.initDict(); // this.initDict();
}, },
methods:{ methods:{

@ -1,22 +1,33 @@
<template> <template>
<el-container style="width:100%;height: 840px;"> <el-container id="index" style="width:89%;height: 840px;">
<div style="width:100%;background-color: #0d84ff;"> <div class="header" :style="{ height: 80 + 'px'}">
<!-- 时间 -->
<div class="localTime colorPink" :style="{'font-size': 20 + 'px'}">{{ '2024/03/08' }} {{ '周五' }} {{
'11:02'
}}
</div>
<!-- 标题 -->
<span class="title font-bold colorText"
:style="{'font-size': 24 + 'px',color:'white'}">各部门情况</span>
</div>
<div class="layoutHome">
<el-row> <el-row>
<el-col :span="6" class="rg-table"> <el-col :span="5" class="rg-table">
<div class="rg-table-box" style="width:100%;height: 900px;padding: 5px;overflow-y: auto;"> <div class="rg-table-box" style="width:100%;height: 900px;padding: 5px;overflow-y: auto;">
<div v-for="(item,index) in ks"> <div v-for="(item,index) in ks">
<Template :data="data" :deptName="item" :type="'ks'" :users="totalUsers[item]" :myStyle="{headImgWidth:'100%'}" /> <Template :data="data" :deptName="item" :type="'ks'" :users="totalUsers[item]"
:myStyle="{headImgWidth:'100%'}"/>
</div> </div>
</div> </div>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="5">
<div class="rg-table-box" style="width:100%;height: 900px;padding: 5px;overflow-y: auto;"> <div class="rg-table-box" style="width:100%;height: 900px;padding: 5px;overflow-y: auto;">
<div v-for="(item,index) in ks"> <div v-for="(item,index) in ks">
<Template :data="cqData" :deptName="item" :type="'cq'" :users="cqUsers[item]||0" :myStyle="{headImgWidth:'100%'}" @initDetail="initDetail"/> <Template :data="cqData" :deptName="item" :type="'cq'" :users="cqUsers[item]||0" :myStyle="{headImgWidth:'100%'}" @initDetail="initDetail"/>
</div> </div>
</div> </div>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="14">
<el-container style="padding-top: 0px"> <el-container style="padding-top: 0px">
<el-main> <el-main>
<div class="mytable"> <div class="mytable">
@ -60,6 +71,7 @@
<script> <script>
import XEUtils from 'xe-utils' import XEUtils from 'xe-utils'
import Template from "@/views/dashboard/components/Template.vue"; import Template from "@/views/dashboard/components/Template.vue";
export default { export default {
name: 'Kstj', name: 'Kstj',
components: {Template}, components: {Template},
@ -71,7 +83,7 @@ export default {
cqData: {}, cqData: {},
totalUsers: {}, totalUsers: {},
cqUsers: {}, cqUsers: {},
height: '800px', height: '750px',
list: [], list: [],
tableColumn: [], tableColumn: [],
'管理室': [ '管理室': [
@ -177,10 +189,51 @@ export default {
</script> </script>
<style scoped> <style scoped>
#index {
color: darkturquoise;
width: 100%;
height: 100%;
background: url("../../assets/bg3.png") left top no-repeat;
background-size: 100% 100%;
position: fixed;
overflow: hidden;
}
.layoutHome {
position: absolute;
top: 7.7%;
width: 100%;
height: 100%;
}
.header {
position: relative;
top: 0.5vw;
width: 100%;
background: url("../../assets/title.png") no-repeat;
background-size: 100%;
text-align: center;
margin: 0;
}
.title {
position: absolute;
left: 43%;
margin-top: 0.4%;
font-weight: bold;
}
.localTime {
position: absolute;
right: 1%;
top: 35%;
}
.rg-table-box::-webkit-scrollbar { .rg-table-box::-webkit-scrollbar {
/*整体样式*/ /*整体样式*/
width: 0; width: 0;
} }
.rg-table-box::-webkit-scrollbar-track { .rg-table-box::-webkit-scrollbar-track {
/*轨道*/ /*轨道*/
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);

Loading…
Cancel
Save