Merge remote-tracking branch 'origin/master'
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="class-page"> |
| | | <p style="font-size: 16px;padding:19.5px 0px">çæ¬¡</p> |
| | | <!-- <div class="search"> |
| | | <div class="search_thing"> |
| | | <div class="search_label">å§æç¼å·ï¼</div> |
| | | <div class="search_input"><el-input size="small" placeholder="请è¾å
¥" clearable |
| | | ></el-input></div> |
| | | </div> |
| | | <div class="search_thing" style="padding-left: 30px;"> |
| | | <el-button size="small" @click="refresh()">é ç½®</el-button> |
| | | <el-button size="small" type="primary" @click="refreshTable()">æ¥ è¯¢</el-button> |
| | | </div> |
| | | </div> --> |
| | | <div class="center"> |
| | | <table border="1" class="tables table-right" cellpadding="16"> |
| | | <tr v-for="(item,index) in titleList" :key="'a'+index"> |
| | | <td :rowspan="3" v-if="index==0">åºå·</td> |
| | | <td :rowspan="3" v-if="index==0">å§å</td> |
| | | <td :rowspan="3" v-if="index==0">å®éªå®¤</td> |
| | | <td :rowspan="2" :colspan="2" v-if="index==0"> |
| | | <el-dropdown trigger="click" placement="bottom"> |
| | | <span style="cursor: pointer;"> |
| | | {{ currentYear }} |
| | | </span> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item v-for="(n,j) in yearList" :key="'b'+j">{{ n }}</el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | | </td> |
| | | <td :rowspan="2" v-if="index==0">å¹´</td> |
| | | <td :rowspan="2" v-if="index==0"> |
| | | <el-dropdown trigger="click" placement="bottom"> |
| | | <span style="cursor: pointer;"> |
| | | {{ currentMonth }} |
| | | </span> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item v-for="(n,j) in mouthList" :key="'c'+j">{{ n }}</el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | | </td> |
| | | <td :rowspan="2" v-if="index==0">æ</td> |
| | | <td :rowspan="2" v-if="index==0"></td> |
| | | <td :rowspan="2" v-if="index==0"></td> |
| | | <td v-if="index==2">åºå¤</td> |
| | | <td v-if="index==2">ä¼</td> |
| | | <td v-if="index==2">请å</td> |
| | | <td v-if="index==2">æ©</td> |
| | | <td v-if="index==2">ä¸</td> |
| | | <td v-if="index==2">å¤</td> |
| | | <td v-if="index==2">å¤12</td> |
| | | <td v-for="(m,i) in item" :key="'d'+i">{{ m }}</td> |
| | | </tr> |
| | | <tr v-for="(item,index) in 22" :key="'e'+index"> |
| | | <td v-for="(m,i) in personList" :key="'f'+i">{{ m }}</td> |
| | | <td v-for="(m,i) in classList" :key="'g'+i"> |
| | | <el-dropdown trigger="click" placement="bottom"> |
| | | <span style="cursor: pointer;"> |
| | | {{ m }} |
| | | </span> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item v-for="(n,j) in classType" :key="'h'+j">{{ n }}</el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data () { |
| | | return{ |
| | | titleList:[ |
| | | [ |
| | | '卿¬¡', |
| | | "14", |
| | | "14", |
| | | "14", |
| | | "14", |
| | | "14", |
| | | "14", |
| | | "15", |
| | | "15", |
| | | "15", |
| | | "15", |
| | | "15", |
| | | "15", |
| | | "15", |
| | | "16", |
| | | "16", |
| | | "16", |
| | | "16", |
| | | "16", |
| | | "16", |
| | | "16", |
| | | "17", |
| | | "17", |
| | | "17", |
| | | "17", |
| | | "17", |
| | | "17", |
| | | "17", |
| | | "18", |
| | | "18", |
| | | "18", |
| | | ], |
| | | [ |
| | | 'ææ', |
| | | "å¨ä¸", |
| | | "å¨äº", |
| | | "å¨ä¸", |
| | | "å¨å", |
| | | "å¨äº", |
| | | "å¨å
", |
| | | "卿¥", |
| | | "å¨ä¸", |
| | | "å¨äº", |
| | | "å¨ä¸", |
| | | "å¨å", |
| | | "å¨äº", |
| | | "å¨å
", |
| | | "卿¥", |
| | | "å¨ä¸", |
| | | "å¨äº", |
| | | "å¨ä¸", |
| | | "å¨å", |
| | | "å¨äº", |
| | | "å¨å
", |
| | | "卿¥", |
| | | "å¨ä¸", |
| | | "å¨äº", |
| | | "å¨ä¸", |
| | | "å¨å", |
| | | "å¨äº", |
| | | "å¨å
", |
| | | "卿¥", |
| | | "å¨äº", |
| | | "å¨ä¸", |
| | | ], |
| | | [ |
| | | 'åºå·®', |
| | | "1", |
| | | "2", |
| | | "3", |
| | | "4", |
| | | "5", |
| | | "6", |
| | | "7", |
| | | "8", |
| | | "9", |
| | | "10", |
| | | "11", |
| | | "12", |
| | | "13", |
| | | "14", |
| | | "15", |
| | | "15", |
| | | "17", |
| | | "18", |
| | | "19", |
| | | "20", |
| | | "21", |
| | | "22", |
| | | "23", |
| | | "24", |
| | | "25", |
| | | "26", |
| | | "27", |
| | | "28", |
| | | "29", |
| | | "30", |
| | | ], |
| | | ], |
| | | classList:['0','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©','æ©'], |
| | | classType:[ |
| | | 'æ©ç', |
| | | 'ä¸ç', |
| | | 'æç', |
| | | ], |
| | | personList:[ |
| | | 1, |
| | | 'æåªåª', |
| | | 'ææ', |
| | | "26.5", |
| | | 3, |
| | | 0.5, |
| | | 26.5, |
| | | 0, |
| | | 0, |
| | | 0, |
| | | ], |
| | | yearList:[ |
| | | '2019', |
| | | '2020', |
| | | '2021', |
| | | '2022', |
| | | '2023', |
| | | '2024', |
| | | '2025', |
| | | ], |
| | | mouthList:[ |
| | | 1, |
| | | 2, |
| | | 3, |
| | | 4, |
| | | 5, |
| | | 6, |
| | | 7, |
| | | 8, |
| | | 9, |
| | | 10, |
| | | 11, |
| | | |
| | | ], |
| | | currentYear:new Date().getFullYear(), |
| | | currentMonth:new Date().getMonth()+1, |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .search { |
| | | background-color: #fff; |
| | | height: 80px; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 16px; |
| | | } |
| | | |
| | | .search_thing { |
| | | display: flex; |
| | | align-items: center; |
| | | height: 50px; |
| | | } |
| | | |
| | | .search_label { |
| | | width: 120px; |
| | | font-size: 14px; |
| | | text-align: right; |
| | | } |
| | | |
| | | .search_input { |
| | | width: calc(100% - 120px); |
| | | } |
| | | .center { |
| | | width: calc(100% - 40px); |
| | | /* height: calc(100% - 60px - 80px - 40px); */ |
| | | height: calc(100% - 100px ); |
| | | background-color: #fff; |
| | | border-radius: 3px; |
| | | padding: 20px; |
| | | overflow-y: auto; |
| | | overflow-x: auto; |
| | | display: flex; |
| | | } |
| | | .tables{ |
| | | table-layout: fixed; |
| | | } |
| | | td { |
| | | vertical-align: middle; |
| | | text-align: center; |
| | | min-width: 50px; |
| | | box-sizing: border-box; |
| | | padding: 6px 4px; |
| | | word-break: keep-all; /* 鲿¢åè¯å
æè¡ */ |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <div class="class-page"> |
| | | <div class="search"> |
| | | <div class="search_thing"> |
| | | <div class="search_label">éæ©æ¶é´ï¼</div> |
| | | <div class="search_input"> |
| | | <el-date-picker |
| | | v-model="query.year" |
| | | type="year" |
| | | size="small" |
| | | placeholder="鿩年" |
| | | style="width: 140px;" |
| | | :clearable="false"> |
| | | </el-date-picker> |
| | | <el-select |
| | | v-model="query.month" |
| | | clearable |
| | | placeholder="éæ©æ" |
| | | style="width: 140px;margin-left: 16px;" |
| | | size="small"> |
| | | <el-option |
| | | v-for="item in monthOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | <el-input v-model="query.name" placeholder="请è¾å
¥äººååç§°" size="small" style="width: 140px;margin: 0 16px;" clearable ></el-input> |
| | | <el-select v-model="query.addr" placeholder="è¯·éæ©å®éªå®¤" style="width: 140px;" size="small" clearable > |
| | | <el-option |
| | | v-for="item in labOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | | </div> |
| | | <div class="search_thing" style="padding-left: 30px;"> |
| | | <el-button size="small" @click="refresh()">é ç½®</el-button> |
| | | <el-button size="small" type="primary" @click="refreshTable()">æ¥ è¯¢</el-button> |
| | | </div> |
| | | <div class="search_thing btns" style="padding-left: 30px;"> |
| | | <el-button size="small" type="primary">导 åº</el-button> |
| | | <el-button size="small" type="primary" @click="handleScheduling">æ ç</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="center"> |
| | | <div class="fixed-left"> |
| | | <div class="content-title" style="padding-left: 16px;box-sizing: border-box;"> |
| | | 人ååç§° |
| | | </div> |
| | | <div class="content-user" :class="{hoverType:currentUserIndex==index}" v-for="(item,index) in userList" :key="'e'+index" v-on:mouseenter="onMouseEnter(index)" |
| | | v-on:mouseleave="currentUserIndex=null"> |
| | | <div class="user-pic">{{ item.name.charAt(0) }}</div> |
| | | <div class="user-info"> |
| | | <p style="font-size: 14px;color: #3A7BFA;line-height: 24px;">{{ item.name }} ({{ item.part }})</p> |
| | | <p style="color: #999999;font-size: 12px;transform: scale(0.8) translateX(-20px);white-space: nowrap;width: 150px;overflow-x: show;">æ©:{{ item.day0 }}, ä¸:{{ item.day1 }}, å¤:{{ item.day2 }}, ä¼:{{ item.day3 }}, å:{{ item.day4 }}</p> |
| | | <p style="margin-top: 4px;"><span style="color: #999999;font-size: 12px;display: inline-block;transform: scale(0.8) translateX(-10px);">å计åºå¤: </span><span style="font-size: 16px; |
| | | color: #FF4902;">{{ item.day5 }}天</span></p> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="scroll-right"> |
| | | <div class="content"> |
| | | <div class="content-title content-title-right" style="border-bottom: 0;"> |
| | | <div class="content-title-item" v-for="(item,index) in weeks" :key="'b'+index"> |
| | | <span class="month" v-if="item.day==1">{{ item.month }}</span> |
| | | <span class="day">{{ item.day }}</span> |
| | | <span class="week">{{ item.week }}</span> |
| | | </div> |
| | | </div> |
| | | <div class="content-body" v-for="(item,index) in 5" :key="'c'+index" |
| | | :class="{hoverType:currentUserIndex==index}"v-on:mouseenter="onMouseEnter(index)" |
| | | v-on:mouseleave="currentUserIndex=null"> |
| | | <div class="content-body-item" v-for="(m,i) in workList" :key="'d'+i"> |
| | | <div class="work-box" :class="{type0:m.type=='æ©ç',type1:m.type=='ä¸ç',type2:m.type=='å¤ç',}"> |
| | | <div class="work-box-left"> |
| | | <span>{{ m.type }}</span> |
| | | </div> |
| | | <el-dropdown trigger="click" placement="bottom" @command="e=>handleCommand(e,m)"> |
| | | <i class="el-icon-arrow-down el-icon--right" style="font-size: 20px;color: #fff;cursor: pointer;"></i> |
| | | <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> |
| | | </el-dropdown> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <el-dialog title="æç" :visible.sync="schedulingVisible" width="400px"> |
| | | <div class="search_thing"> |
| | | <div class="search_label" style="width:90px">卿¬¡ï¼</div> |
| | | <div class="search_input"> |
| | | <el-date-picker |
| | | v-model="schedulingQuery.week" |
| | | type="week" |
| | | format="yyyy 第 WW å¨" |
| | | placeholder="鿩卿¬¡" style="width: 203px;"> |
| | | </el-date-picker> |
| | | </div> |
| | | </div> |
| | | <div class="search_thing"> |
| | | <div class="search_label" style="width:90px">人ååç§°ï¼</div> |
| | | <div class="search_input"> |
| | | <el-select v-model="schedulingQuery.person" placeholder="è¯·éæ©" style="width: 100%;" multiple clearable > |
| | | <el-option |
| | | v-for="item in personList" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | | </div> |
| | | <div class="search_thing"> |
| | | <div class="search_label" style="width:90px">çæ¬¡ï¼</div> |
| | | <div class="search_input"> |
| | | <el-select v-model="schedulingQuery.person" placeholder="è¯·éæ©" style="width: 100%;"> |
| | | <el-option |
| | | v-for="item in classType" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="schedulingVisible = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="confirmScheduling" :loading="loading">ç¡® å®</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data () { |
| | | return{ |
| | | currentYear:new Date().getFullYear(), |
| | | currentMonth:new Date().getMonth()+1, |
| | | query:{ |
| | | name:'', |
| | | addr:'', |
| | | year:'', |
| | | month:'' |
| | | }, |
| | | monthOptions:[ |
| | | { |
| | | value:'1', |
| | | label:'1æ' |
| | | }, |
| | | { |
| | | value:'2', |
| | | label:'2æ' |
| | | }, |
| | | { |
| | | value:'3', |
| | | label:'3æ' |
| | | }, |
| | | { |
| | | value:'4', |
| | | label:'4æ' |
| | | }, |
| | | { |
| | | value:'5', |
| | | label:'5æ' |
| | | }, |
| | | { |
| | | value:'6', |
| | | label:'6æ' |
| | | }, |
| | | { |
| | | value:'7', |
| | | label:'7æ' |
| | | }, |
| | | { |
| | | value:'8', |
| | | label:'8æ' |
| | | }, |
| | | { |
| | | value:'9', |
| | | label:'9æ' |
| | | }, |
| | | { |
| | | value:'10', |
| | | label:'10æ' |
| | | }, |
| | | { |
| | | value:'11', |
| | | label:'11æ' |
| | | }, |
| | | { |
| | | value:'12', |
| | | label:'12æ' |
| | | }, |
| | | ], |
| | | labOptions:[], |
| | | weeks:[ |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨ä¸', |
| | | day:1, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨äº', |
| | | day:2, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨ä¸', |
| | | day:3, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨å', |
| | | day:4, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨äº', |
| | | day:5, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨å
', |
| | | day:6, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'卿¥', |
| | | day:7, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨ä¸', |
| | | day:8, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨äº', |
| | | day:9, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨ä¸', |
| | | day:10, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨å', |
| | | day:11, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨äº', |
| | | day:12, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨å
', |
| | | day:13, |
| | | },{ |
| | | month:'14å¨', |
| | | week:'卿¥', |
| | | day:14, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨ä¸', |
| | | day:15, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨ä¸', |
| | | day:16, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨ä¸', |
| | | day:17, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨ä¸', |
| | | day:18, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨ä¸', |
| | | day:19, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨ä¸', |
| | | day:20, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨ä¸', |
| | | day:21, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨ä¸', |
| | | day:22, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨ä¸', |
| | | day:23, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨ä¸', |
| | | day:24, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨ä¸', |
| | | day:25, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨ä¸', |
| | | day:26, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨ä¸', |
| | | day:27, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨ä¸', |
| | | day:28, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨ä¸', |
| | | day:29, |
| | | }, |
| | | { |
| | | month:'14å¨', |
| | | week:'å¨ä¸', |
| | | day:30, |
| | | }, |
| | | ], |
| | | workList:[ |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'ä¸ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'å¤ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | { |
| | | type:'æ©ç', |
| | | time:'8:00-16:00', |
| | | }, |
| | | ], |
| | | classType:[], |
| | | userList:[ |
| | | { |
| | | name:'æåªåª', |
| | | part:'ææ', |
| | | day0:12,//æ© |
| | | day1:12,//ä¸ |
| | | day2:12,//å¤ |
| | | day3:12,//ä¼ |
| | | day4:12,//请å |
| | | day5:12,//æ»è®¡ |
| | | }, |
| | | { |
| | | name:'æåªåª', |
| | | part:'ææ', |
| | | day0:12,//æ© |
| | | day1:12,//ä¸ |
| | | day2:12,//å¤ |
| | | day3:12,//ä¼ |
| | | day4:12,//请å |
| | | day5:12,//æ»è®¡ |
| | | }, |
| | | { |
| | | name:'æåªåª', |
| | | part:'ææ', |
| | | day0:12,//æ© |
| | | day1:12,//ä¸ |
| | | day2:12,//å¤ |
| | | day3:12,//ä¼ |
| | | day4:12,//请å |
| | | day5:12,//æ»è®¡ |
| | | }, |
| | | { |
| | | name:'æåªåª', |
| | | part:'ææ', |
| | | day0:12,//æ© |
| | | day1:12,//ä¸ |
| | | day2:12,//å¤ |
| | | day3:12,//ä¼ |
| | | day4:12,//请å |
| | | day5:12,//æ»è®¡ |
| | | }, |
| | | { |
| | | name:'æåªåª', |
| | | part:'ææ', |
| | | day0:12,//æ© |
| | | day1:12,//ä¸ |
| | | day2:12,//å¤ |
| | | day3:12,//ä¼ |
| | | day4:12,//请å |
| | | day5:12,//æ»è®¡ |
| | | }, |
| | | ], |
| | | currentUserIndex:null, |
| | | schedulingVisible:false, |
| | | personList:[], |
| | | loading:false, |
| | | schedulingQuery:{ |
| | | week:'', |
| | | person:'' |
| | | } |
| | | } |
| | | }, |
| | | mounted(){ |
| | | this.selectEnumByCategory() |
| | | }, |
| | | methods: { |
| | | refresh(){}, |
| | | refreshTable(){}, |
| | | onMouseEnter(index){ |
| | | this.currentUserIndex = index |
| | | }, |
| | | handleScheduling(){ |
| | | this.schedulingVisible = true |
| | | }, |
| | | confirmScheduling(){}, |
| | | selectEnumByCategory() { |
| | | this.$axios.post(this.$api.enums.selectEnumByCategory, { |
| | | category: "çæ¬¡ç±»å" |
| | | }).then(res => { |
| | | this.classType = res.data |
| | | }) |
| | | }, |
| | | handleCommand(e,m){ |
| | | console.log(e,m) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .search { |
| | | height: 50px; |
| | | display: flex; |
| | | align-items: center; |
| | | position: relative; |
| | | } |
| | | |
| | | .search_thing { |
| | | display: flex; |
| | | align-items: center; |
| | | height: 50px; |
| | | } |
| | | |
| | | .search_label { |
| | | width: 70px; |
| | | font-size: 14px; |
| | | text-align: right; |
| | | } |
| | | .search_input{ |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | | .btns{ |
| | | position: absolute; |
| | | right: 16px; |
| | | top: 50%; |
| | | transform: translate(0,-50%); |
| | | } |
| | | .center { |
| | | width: 100%; |
| | | height: calc(100% - 40px ); |
| | | background-color: #fff; |
| | | position: relative; |
| | | overflow-y: auto; |
| | | } |
| | | .fixed-left { |
| | | position: absolute; |
| | | left: 0; |
| | | top: 0; |
| | | width: 220px; /* 左边åºå宽度 */ |
| | | min-height: calc(100% - 10px); /* è§å£é«åº¦ */ |
| | | background-color: #fff; |
| | | box-shadow: 2px -2px 5px rgba(51,51,51,0.12); /* 左边é´å½± */ |
| | | } |
| | | |
| | | .scroll-right { |
| | | width: calc(100% - 220px); /* åå»å·¦è¾¹åºå宽度 */ |
| | | min-height: calc(100% - 10px); /* è§å£é«åº¦ */ |
| | | margin-left: 220px; |
| | | overflow-x: scroll; |
| | | } |
| | | |
| | | .content { |
| | | min-height: calc(100% - 10px); /* è§å£é«åº¦ */ |
| | | min-width: 2000px; |
| | | } |
| | | .content-title{ |
| | | height: 52px; |
| | | line-height: 52px; |
| | | border-bottom: 1px solid #EEEEEE; |
| | | } |
| | | .content-title-right{ |
| | | min-width: 2000px; |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | | .content-title-item{ |
| | | height: 100%; |
| | | width: 100px; |
| | | flex-shrink: 0; |
| | | border-bottom: 1px solid #EEEEEE; |
| | | box-sizing: border-box; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .content-title-item .month{ |
| | | font-size: 12px; |
| | | color: #3A7BFA; |
| | | box-sizing: border-box; |
| | | padding: 0 4px; |
| | | border-radius: 50%; |
| | | background: #D6E4FF; |
| | | line-height: 30px; |
| | | text-align: center; |
| | | margin-right: 6px; |
| | | } |
| | | .content-title-item .day{ |
| | | font-size: 16px; |
| | | color: #333333; |
| | | margin-right: 6px; |
| | | } |
| | | .content-title-item .week{ |
| | | font-size: 14px; |
| | | color: #999999; |
| | | } |
| | | .content-body{ |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | | .content-body-item{ |
| | | height: 80px; |
| | | width: 100px; |
| | | flex-shrink: 0; |
| | | box-sizing: border-box; |
| | | padding: 4px; |
| | | border-right: 1px solid #EEEEEE; |
| | | border-bottom: 1px solid #EEEEEE; |
| | | } |
| | | .work-box{ |
| | | width: 100%; |
| | | height: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-around; |
| | | background: rgba(58,123,250,0.15); |
| | | border-radius: 8px 8px 8px 8px; |
| | | color: #3A7BFA; |
| | | font-size: 14px; |
| | | } |
| | | .work-box.type0{ |
| | | background: rgba(58,123,250,0.15); |
| | | color: #3A7BFA; |
| | | } |
| | | .work-box.type1{ |
| | | background: #E3DCFE; |
| | | color: #635998; |
| | | } |
| | | .work-box.type2{ |
| | | background: #FAE2CA; |
| | | color: #BC8D5E; |
| | | } |
| | | .work-box-left{ |
| | | display: flex; |
| | | justify-content: center; |
| | | flex-direction: column; |
| | | line-height: 24px; |
| | | } |
| | | .content-user{ |
| | | width: 100%; |
| | | height: 80px; |
| | | box-sizing: border-box; |
| | | border-bottom: 1px solid #EEEEEE; |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | | .user-pic{ |
| | | width: 50px; |
| | | height: 50px; |
| | | border-radius: 50%; |
| | | background: #C0C4CC; |
| | | color: #fff; |
| | | font-size: 20px; |
| | | text-align: center; |
| | | line-height: 50px; |
| | | margin-left: 10px; |
| | | } |
| | | .user-info{ |
| | | flex: 1; |
| | | margin-left: 10px; |
| | | } |
| | | .hoverType{ |
| | | background: rgba(58,123,250,0.05); |
| | | } |
| | | </style> |
| | |
| | | |
| | | //æ¬å° |
| | | Vue.prototype.LOCATIONVUE = "http://127.0.0.1:80"; |
| | | // const javaApi = 'http://127.0.0.1:8001';//æ |
| | | const javaApi = 'http://114.132.189.42:1234';//æµè¯æ |
| | | // const javaApi = 'http://192.168.11.200:8001';//æ |
| | | // const javaApi = 'http://192.168.11.249:8001';//å¼ |
| | | const javaApi = 'http://172.20.10.3:8001';//å§ |
| | | // const javaApi = 'http://192.168.11.2:8001';//æ´ |
| | | // const javaApi = 'http://114.132.189.42:1234';//æµè¯æ |
| | | //èäºæå¡å¨ |
| | | // Vue.prototype.LOCATIONVUE = "http://syxt.shxiao2.cn"; |
| | | // const javaApi = 'http://122.114.52.69:8001'; |
| | |
| | | }, { |
| | | v: "çæ¬¡", |
| | | i: "font icon-erjidaohang", |
| | | u: "", |
| | | u: "b3-classes", |
| | | p: "" |
| | | }] |
| | | }, |