From c5f70afac4dd35b3a6033eef8aae530d674425e0 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期一, 13 五月 2024 15:02:52 +0800 Subject: [PATCH] 完成工时管理前端 --- src/components/view/b3-classes.vue | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/components/view/b3-classes.vue b/src/components/view/b3-classes.vue index 2d9ffd5..168bb7b 100644 --- a/src/components/view/b3-classes.vue +++ b/src/components/view/b3-classes.vue @@ -75,7 +75,7 @@ <span class="month" style="position: absolute;top: 4px;" v-if="item.week=='鍛ㄦ棩'">{{ item.weekNum }}鍛�</span> <p style="height: 26px;position: absolute;bottom: 12px;"> <span class="day">{{ item.day }}</span> - <span class="week">{{ item.week }}</span> + <span class="week">{{ item.week.charAt(1) }}</span> </p> </div> </div> @@ -83,13 +83,13 @@ v-on:mouseenter="onMouseEnter(index)" v-on:mouseleave="currentUserIndex=null"> <div class="content-body-item" v-for="(m,i) in item.list" :key="'d'+i" :class="{hoverType:currentUserIndex==index}"> - <div class="work-box" :class="{type0:m.shift==='0',type1:m.shift==='1',type2:m.shift==='2',type3:m.shift==='3',type4:m.shift==='4',}"> + <div class="work-box" :class="{type0:m.shift==='0',type1:m.shift==='1',type2:m.shift==='2',type3:m.shift==='3',type4:m.shift==='4',type5:m.shift==='5',}"> <!-- <div class="work-box-left"> <span>{{ getShiftByDic(m.shift) }}</span> </div> --> <el-dropdown trigger="click" placement="bottom" @command="e=>handleCommand(e,m)" :disabled="!downPower"> <!-- <i class="el-icon-arrow-down el-icon--right" style="font-size: 20px;color: #fff;cursor: pointer;"></i> --> - <span style="cursor: pointer;">{{ getShiftByDic(m.shift) }}</span> + <span style="cursor: pointer;" :style="`opacity: ${getShiftByDic(m.shift)=='鏃�'?0:1};`">{{ getShiftByDic(m.shift) }}</span> <el-dropdown-menu slot="dropdown"> <el-dropdown-item v-for="(n,j) in classType" :key="'h'+j" :command="n.value">{{ n.label }}</el-dropdown-item> </el-dropdown-menu> @@ -583,7 +583,7 @@ if(obj){ return obj.label } - return '鏈帓鐝�' + return '鏃�' } } } @@ -664,7 +664,7 @@ } .content-title-item{ height: 100%; - width: 60px; + width: 50px; flex-shrink: 0; border-bottom: 1px solid #EEEEEE; box-sizing: border-box; @@ -699,8 +699,9 @@ } .content-body-item{ height: 70px; - width: 60px; + width: 50px; flex-shrink: 0; + font-size: 12px; box-sizing: border-box; padding: 4px; border-right: 1px solid #EEEEEE; @@ -752,6 +753,13 @@ .work-box.type4 span{ color: #F56C6C !important; } +.work-box.type5{ + background: #ff46c145; + color: #ff46c0 !important; +} +.work-box.type5 span{ + color: #ff46c0 !important; +} /* .el-icon-arrow-down::before{ color: #c6c4c4; } */ -- Gitblit v1.9.3