From d2cf95cf98f5622f0df847bde05055d2534297dc Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期四, 18 七月 2024 18:29:40 +0800 Subject: [PATCH] 修改消息样式 --- src/components/do/b3-work-time-management/work-time-management.vue | 39 ++++++++++++++++++++------------------- 1 files changed, 20 insertions(+), 19 deletions(-) diff --git a/src/components/do/b3-work-time-management/work-time-management.vue b/src/components/do/b3-work-time-management/work-time-management.vue index a3891de..eb464ac 100644 --- a/src/components/do/b3-work-time-management/work-time-management.vue +++ b/src/components/do/b3-work-time-management/work-time-management.vue @@ -27,8 +27,8 @@ size="small" type="daterange" range-separator="鑷�" - format="yyyy-MM-dd HH:mm:ss" - value-format="yyyy-MM-dd HH:mm:ss" + format="yyyy-MM-dd" + value-format="yyyy-MM-dd" start-placeholder="寮�濮嬫棩鏈�" end-placeholder="缁撴潫鏃ユ湡" @change="refreshTable()" clearable> </el-date-picker> @@ -362,13 +362,13 @@ 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: '鍛ㄤ竴',type:'primary'}, + {label: '鍛ㄤ簩', value: '鍛ㄤ簩',type:'primary'}, + {label: '鍛ㄤ笁', value: '鍛ㄤ笁',type:'primary'}, + {label: '鍛ㄥ洓', value: '鍛ㄥ洓',type:'primary'}, + {label: '鍛ㄤ簲', value: '鍛ㄤ簲',type:'primary'}, + {label: '鍛ㄥ叚', value: '鍛ㄥ叚',type:'primary'}, + {label: '鍛ㄦ棩', value: '鍛ㄦ棩',type:'primary'} ], currentTable:'ValueTable0', addVisible:false, @@ -501,12 +501,13 @@ 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`; + let formattedDate1 = `${year}-${month}-${day}`; + let formattedDate2 = `${year}-${month}-${day}`; this.entity.dateTime.push(formattedDate1); this.entity.dateTime.push(formattedDate2); this.componentData1.entity.dateTime.push(formattedDate1); this.componentData1.entity.dateTime.push(formattedDate2); + this.componentData1.entity.dateTime = JSON.stringify(this.componentData1.entity.dateTime) this.refreshTable() }, getPower(){ @@ -556,7 +557,7 @@ getYearAndMonthAndDays(date){ return getYearAndMonthAndDays(date) }, - refreshTable(){ + refreshTable(e){ let entity = {} if(this.entity.week1&&this.entity.week2){ entity.week = JSON.stringify([this.entity.week1,this.entity.week2]) @@ -573,10 +574,10 @@ if(this.currentTable=='ValueTable0'){ entity.state = this.entity.state this.componentData.entity = {...this.componentData.entity,...entity} - this.$refs['ValueTable0'].selectList() + this.$refs['ValueTable0'].selectList(e) }else{ this.componentData1.entity = {...this.componentData1.entity,...entity} - this.$refs['ValueTable1'].selectList() + this.$refs['ValueTable1'].selectList(e) } this.collectWorkingHours() }, @@ -645,7 +646,7 @@ this.formData.nonproductiveTime = '' this.formData.auxiliaryProject = '' // this.addVisible = false - this.refreshTable() + this.refreshTable('page') this.collectWorkingHours() }) }else{ @@ -666,7 +667,7 @@ this.formData.nonproductiveTime = '' this.formData.auxiliaryProject = '' // this.addVisible = false - this.refreshTable() + this.refreshTable('page') this.collectWorkingHours() }) } @@ -717,7 +718,7 @@ }, submitBatchCheckDialog () { this.batchCheckDialog = false - this.refreshTable() + this.refreshTable('page') this.collectWorkingHours() }, submitCheck(e){ @@ -756,7 +757,7 @@ if (res.code == 201) return this.$message.success('鎿嶄綔鎴愬姛') this.checkVisible = false - this.refreshTable() + this.refreshTable('page') this.collectWorkingHours() }) }else{ @@ -781,7 +782,7 @@ if (res.code == 201) return this.$message.success('鎿嶄綔鎴愬姛') this.checkVisible = false - this.refreshTable() + this.refreshTable('page') this.collectWorkingHours() }) } -- Gitblit v1.9.3