Selaa lähdekoodia

打卡弹窗选择加上时间显示

zhonghuizhen 1 päivä sitten
vanhempi
sitoutus
3720658e49

+ 1 - 1
src/views/business/attendance/dakaDialog.vue

@@ -65,7 +65,7 @@ export default {
         this.$message.warning('请选择一个班次')
         return
       }
-      this.$emit('confirm', this.selectedValue,clockType)
+      this.$emit('confirm', this.selectedValue.split('(')[0],clockType)
       this.dialogVisible = false
     },
     handleClose() {

+ 1 - 1
src/views/system/homepage/index.vue

@@ -881,7 +881,7 @@ export default {
       this.dakaSingle(selectedValue,clockType)
     },
     handleDakaDialog(data) {
-      const types = data.map(item => item.paiBanLeiXing)   // 班次类型
+      const types = data.map(item => item.paiBanLeiXing +'('+ item.shangBanShiJian+'-'+(item.shiFouKuaRi=== 'Y'?'次日':'')+item.xiaBanShiJian+')')   // 班次类型
       this.dakaArr = types
       this.ScheduleConfigItem = data
       this.dakaDialogVisible = true