| | |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="search_thing"> |
| | | <div class="search_thing" style="width: 390px;"> |
| | | <div class="search_label" style="width: 90px;">时间范围:</div> |
| | | <div class="search_input"> |
| | | <el-date-picker |
| | |
| | | }, |
| | | data () { |
| | | return{ |
| | | entity:{}, |
| | | entity:{ |
| | | dateTime: [] |
| | | }, |
| | | down:false, |
| | | add:false, |
| | | componentData: { |
| | | entity: { |
| | | week: null, |
| | | weekDay: null, |
| | | dateTime: new Date(), |
| | | dateTime: null, |
| | | name:null, |
| | | orderBy: { |
| | | field: 'id', |
| | |
| | | entityCopy1: {}, |
| | | upIndex1:100, |
| | | weekList:[ |
| | | {label: '星期一', value: '1',type:'primary'}, |
| | | {label: '星期二', value: '2',type:'primary'}, |
| | | {label: '星期三', value: '3',type:'primary'}, |
| | | {label: '星期四', value: '4',type:'primary'}, |
| | | {label: '星期五', value: '5',type:'primary'}, |
| | | {label: '星期六', value: '6',type:'primary'}, |
| | | {label: '星期日', value: '7',type:'primary'} |
| | | {label: '周一', value: '1',type:'primary'}, |
| | | {label: '周二', value: '2',type:'primary'}, |
| | | {label: '周三', value: '3',type:'primary'}, |
| | | {label: '周四', value: '4',type:'primary'}, |
| | | {label: '周五', value: '5',type:'primary'}, |
| | | {label: '周六', value: '6',type:'primary'}, |
| | | {label: '周日', value: '7',type:'primary'} |
| | | ], |
| | | currentTable:'ValueTable0', |
| | | addVisible:false, |
| | |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | this.setDate() |
| | | }, |
| | | mounted(){ |
| | | this.getCurrentWeekNumber() |
| | | this.selectEnumByCategory() |
| | |
| | | this.getPower() |
| | | }, |
| | | methods:{ |
| | | /** 将时间选择器默认选为当天的日期 */ |
| | | setDate(){ |
| | | let currentDate = new Date(); |
| | | let year = currentDate.getFullYear(); |
| | | let month = String(currentDate.getMonth() + 1).padStart(2, '0'); |
| | | let day = String(currentDate.getDate()).padStart(2, '0'); |
| | | let formattedDate1 = `${year}-${month}-${day} 00:00:00`; |
| | | let formattedDate2 = `${year}-${month}-${day} 23:59:59`; |
| | | this.entity.dateTime.push(formattedDate1); |
| | | this.entity.dateTime.push(formattedDate2); |
| | | }, |
| | | getPower(){ |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | | let del = false |
| | |
| | | this.addLoad = false |
| | | if (res.code == 201) return |
| | | this.$message.success('已提交') |
| | | this.addVisible = false |
| | | this.formData.number = '' |
| | | this.formData.amount = '' |
| | | this.formData.remarks = '' |
| | | this.formData.approvedWorkingHour = '' |
| | | this.formData.nonproductiveTime = '' |
| | | this.formData.auxiliaryProject = '' |
| | | // this.addVisible = false |
| | | this.refreshTable() |
| | | this.collectWorkingHours() |
| | | }) |
| | |
| | | this.addLoad = false |
| | | if (res.code == 201) return |
| | | this.$message.success('操作成功') |
| | | this.addVisible = false |
| | | this.formData.number = '' |
| | | this.formData.amount = '' |
| | | this.formData.remarks = '' |
| | | this.formData.approvedWorkingHour = '' |
| | | this.formData.nonproductiveTime = '' |
| | | this.formData.auxiliaryProject = '' |
| | | // this.addVisible = false |
| | | this.refreshTable() |
| | | this.collectWorkingHours() |
| | | }) |
| | |
| | | height: calc(100% - 60px - 80px - 10px - 40px - 25px); |
| | | padding: 20px; |
| | | } |
| | | >>>.el-dialog__wrapper { |
| | | z-index: 9999 !important; /* 根据需要调整层级 */ |
| | | } |
| | | </style> |