| | |
| | | <!-- |
| | | * @Date: 2024-04-04 22:45:43 |
| | | * @LastEditors: gaosp |
| | | * @LastEditTime: 2024-09-07 15:15:29 |
| | | * @FilePath: /mdc/Users/mache/Documents/demo/cps-web/src/views/console/base/CalenderTab.vue |
| | | * @LastEditors: gaoshp |
| | | * @LastEditTime: 2024-10-01 20:16:51 |
| | | * @FilePath: /cps-web/src/views/console/base/CalenderTab.vue |
| | | --> |
| | | <template> |
| | | <el-container> |
| | |
| | | </el-popconfirm> |
| | | </el-header> |
| | | <el-main> |
| | | <el-row :gutter="12" v-show="shiftListName"> |
| | | {{ shiftListName }} |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="6" style="padding: 10px;" v-for="item in months" :key="item.month"> |
| | | <Calendar :initial-page="{ month: item.month + 1, year: item.year }" :rows="1" |
| | |
| | | |
| | | </el-main> |
| | | </el-container> |
| | | <el-drawer v-model="drawer" size="80%" title="生产日历" :direction="direction" :before-close="handleClose"> |
| | | <Add :shiftList="shiftList" @success="success"></Add> |
| | | <el-drawer v-if="drawer" v-model="drawer" size="80%" title="生产日历" :direction="direction" |
| | | :before-close="handleClose"> |
| | | <Add v-if="drawer" :shiftList="shiftList" @success="success"></Add> |
| | | </el-drawer> |
| | | <el-drawer v-model="raworkVisible" size="80%" title="生产日历" :direction="direction" :before-close="handleClose"> |
| | | <el-container v-if="raworkVisible"> |
| | |
| | | data() { |
| | | return { |
| | | shiftList: [], |
| | | shiftListName: '', |
| | | selectInfo: {}, |
| | | drawer: false, |
| | | months: [], |
| | |
| | | if (res.code === 200) { |
| | | console.log(res.data) |
| | | this.setDay(res.data) |
| | | let current = this.shiftList.find(v => v.id == res.data.calendarDayVOList[0].modelId) |
| | | console.log('////', this.shiftList, res.data.calendarDayVOList[0].id) |
| | | if (current) { |
| | | this.shiftListName = `${current.code}-${current.name}` |
| | | } else { |
| | | this.shiftListName = '' |
| | | } |
| | | |
| | | } |
| | | }) |
| | | }, |