From 0799f543beca64dd1c6007e18cb8d8388b2fc391 Mon Sep 17 00:00:00 2001
From: yaozc2021 <yaozc@yhzhg.cn>
Date: Fri, 22 Nov 2024 01:29:02 +0000
Subject: [PATCH] update
---
eladmin-web-master/src/views/task/taskDaliy/index.vue | 37 ++++++++++++++++++++++++++++---------
1 files changed, 28 insertions(+), 9 deletions(-)
diff --git a/eladmin-web-master/src/views/task/taskDaliy/index.vue b/eladmin-web-master/src/views/task/taskDaliy/index.vue
index 090255d..72f023a 100644
--- a/eladmin-web-master/src/views/task/taskDaliy/index.vue
+++ b/eladmin-web-master/src/views/task/taskDaliy/index.vue
@@ -345,9 +345,18 @@
</template>
</el-table-column>
<el-table-column prop="remarks" label="备注" min-width="140px" />
- <el-table-column v-if="checkPer(['admin','task:divide','task:edit','task:del'])" label="操作" width="180px" align="center" fixed="right">
+ <el-table-column v-if="checkPer(['admin','taskDaliy:add','taskDaliy:edit','taskDaliy:del'])" label="操作" width="180px" align="center" fixed="right">
<template slot-scope="scope">
- <udOperation :data="scope.row" :permission="permission" />
+ <udOperation :data="scope.row" :permission="permission" >
+ <el-button
+ slot="left"
+ v-permission="permission.add"
+ size="mini"
+ type="primary"
+ icon="el-icon-share"
+ @click="quickFilling1(scope.row)"
+ />
+ </udOperation>
</template>
</el-table-column>
</el-table>
@@ -659,6 +668,7 @@
this.form.taskUserMongo.name = this.currentTask.name
this.form.taskUserMongo.taskStartDate = this.currentTask.taskStartDate
this.form.taskUserMongo.taskEndDate = this.currentTask.taskEndDate
+ this.form.taskProgress = this.currentTask.taskProgress
this.fetchAlreadyConsumedHours()
@@ -729,13 +739,13 @@
type: 'error'
})
return
- } else if (parseInt(this.form.consumedHours) + parseInt(this.form.todayFixedHours) > parseInt(this.form.todayAttendanceHours)) {
- this.$message({
- showClose: true,
- message: '当日消耗工时总和超过打卡时间,请修改消耗工时',
- type: 'error'
- })
- return
+ // } else if (parseInt(this.form.consumedHours) + parseInt(this.form.todayFixedHours) > parseInt(this.form.todayAttendanceHours)) {
+ // this.$message({
+ // showClose: true,
+ // message: '当日消耗工时总和超过打卡时间,请修改消耗工时',
+ // type: 'error'
+ // })
+ // return
} else if (this.form.taskProgress === undefined) {
this.$message({
showClose: true,
@@ -1012,6 +1022,15 @@
this.crud.toAdd()
this.getTaskProgress(object.id)
},
+ quickFilling1(object) {
+ this.currentTask = { ...object, id: object.taskUserMongo.id, consumedHours: object.consumedHours, taskProgress: object.taskProgress }
+ // this.form = object
+ // this.form.fillDate = ''
+ // this.form.consumedHours = 0
+ // console.log('object : ', object);
+ // this.form.taskUserMongo = object.taskUserMongo
+ this.crud.toAdd()
+ },
getTaskProgress(id) {
// 任务更改查询任务进度
crudTaskDaliy.getDailyTaskProgress({ taskUserId: id }).then(res => {
--
Gitblit v1.9.3