From 6daeec8f7ab0be7df4b1be1b0ffd15de484b4080 Mon Sep 17 00:00:00 2001
From: churf <123456>
Date: Fri, 18 Aug 2023 06:57:05 +0000
Subject: [PATCH] taskUser新增确认按钮
---
eladmin-web-master/src/views/task/taskUser/index.vue | 36 +++++++++++++++++++++++++++++++++---
1 files changed, 33 insertions(+), 3 deletions(-)
diff --git a/eladmin-web-master/src/views/task/taskUser/index.vue b/eladmin-web-master/src/views/task/taskUser/index.vue
index e2e58ad..13c906b 100644
--- a/eladmin-web-master/src/views/task/taskUser/index.vue
+++ b/eladmin-web-master/src/views/task/taskUser/index.vue
@@ -87,6 +87,16 @@
style="margin-right: 6px;"
@click="openGenerate"
>导入</el-button>
+ <el-button
+ slot="right"
+ v-permission="permission.generate"
+ class="filter-item"
+ size="mini"
+ type="primary"
+ icon="el-icon-check"
+ style="margin-right: 60px;"
+ @click="taskCompleted"
+ >任务完结</el-button>
</crudOperation>
<div>
<span> 当前任务:<i> {{ selectedTaskName }} </i>
@@ -145,7 +155,22 @@
</el-option>
</el-select>
</el-form-item>
- <el-form-item label="备注">
+ <el-form-item label="绩效工时" prop="performanceHours">
+ <el-input v-model="form.performanceHours" style="width: 340px;" :disabled="true">
+ <template slot="append">小时</template>
+ </el-input>
+ </el-form-item>
+ <el-form-item label="任务进度" prop="newTaskProgress">
+ <el-input v-model="form.newTaskProgress" style="width: 340px;" :disabled="true" />
+ </el-form-item>
+ <el-form-item v-if="form.newTaskProgress === 100" label="任务状态">
+ <el-switch
+ v-model="form.Is_ok"
+ v-permission="permission.list"
+ active-text="已完成"
+ />
+ </el-form-item>
+ <el-form-item label="备注" style="margin-top: 30px">
<el-input v-model="form.remarks" :rows="3" type="textarea" style="width: 340px;" />
</el-form-item>
</el-form>
@@ -164,7 +189,7 @@
@selection-change="crud.selectionChangeHandler"
>
<el-table-column type="selection" width="55" />
- <el-table-column :show-overflow-tooltip="true" prop="name" label="名称" fixed="left" width="370">
+ <el-table-column :show-overflow-tooltip="true" prop="name" label="名称" fixed="left" width="270">
<template slot-scope="scope">
<el-tag>{{ scope.row.name }}</el-tag>
</template>
@@ -179,6 +204,7 @@
</template>
</el-table-column>
<el-table-column :show-overflow-tooltip="true" prop="performanceHours" label="绩效工时" width="80" />
+ <el-table-column :show-overflow-tooltip="true" prop="newTaskProgress" label="任务进度" width="80" />
<el-table-column :show-overflow-tooltip="true" prop="taskStatus" label="任务状态" width="80">
<template slot-scope="scope">
<el-tag>{{ dict.label[taskStatus][scope.row.taskStatus] }}</el-tag>
@@ -247,7 +273,7 @@
import { mapGetters } from 'vuex'
import constant from '@/utils/constant'
import UploadExcelComponent from '@/components/UploadExcel/index.vue'
-const defaultForm = { id: null, userId: null, projectId: null, task: { id: null }, taskStartDate: null, taskEndDate: null, taskHours: null, taskStatus: null, remarks: null, divideUserIds: [] }
+const defaultForm = { id: null, userId: null, projectId: null, task: { id: null }, taskStartDate: null, taskEndDate: null, taskHours: null, newTaskProgress: null, taskStatus: null, remarks: null, divideUserIds: [], Is_ok: false }
export default {
name: 'TaskUser',
// eslint-disable-next-line vue/no-unused-components
@@ -316,6 +342,7 @@
approveStatusUnrecognized: constant.APPROVE_STATUS_UNRECOGNIZED,
// CRUD状态
crudStatusPrepared: CRUD.STATUS.PREPARED,
+ Is_ok: false,
generateForm: [],
tableHeader: [],
users: [],
@@ -518,6 +545,9 @@
})
}
})
+ },
+ taskCompleted() {
+
}
}
}
--
Gitblit v1.9.3