From 00c6dffab49f86f1c7913cf79de38a019f1a7b7a Mon Sep 17 00:00:00 2001
From: yaozc <unbelievers@yeah.net>
Date: Fri, 24 Feb 2023 07:05:53 +0000
Subject: [PATCH] BUG改修
---
eladmin-web-master/src/views/task/task/index.vue | 21 +++++++++++++++++++--
1 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/eladmin-web-master/src/views/task/task/index.vue b/eladmin-web-master/src/views/task/task/index.vue
index f4ac44f..bfa23a9 100644
--- a/eladmin-web-master/src/views/task/task/index.vue
+++ b/eladmin-web-master/src/views/task/task/index.vue
@@ -128,6 +128,16 @@
/>
</el-select>
</el-form-item>
+ <el-form-item label="绩效类型" prop="performanceType">
+ <el-select v-model="form.performanceType" filterable clearable placeholder="请选择" style="width: 340px;">
+ <el-option
+ v-for="item in dict[performanceType]"
+ :key="item.id"
+ :label="item.label"
+ :value="item.value"
+ />
+ </el-select>
+ </el-form-item>
<el-form-item label="描述">
<el-input v-model="form.description" :rows="3" type="textarea" style="width: 340px;" />
</el-form-item>
@@ -191,6 +201,11 @@
<el-table-column :show-overflow-tooltip="true" prop="taskClassification" label="任务分类" width="80">
<template slot-scope="scope">
<el-tag>{{ dict.label[taskClassification][scope.row.taskClassification] }}</el-tag>
+ </template>
+ </el-table-column>
+ <el-table-column :show-overflow-tooltip="true" prop="performanceType" label="绩效类型" width="80">
+ <template slot-scope="scope">
+ <el-tag>{{ dict.label[performanceType][scope.row.performanceType] }}</el-tag>
</template>
</el-table-column>
<el-table-column :show-overflow-tooltip="true" prop="description" label="描述" width="140" />
@@ -304,12 +319,12 @@
import crudProject from '@/api/project/project'
import crudUser from '@/api/system/user'
-const defaultForm = { id: null, name: null, projectId: null, pid: null, priority: null, taskClassification: null, description: null, planStartTime: null, planEndTime: null, planHours: null, planWorkload: null, planWorkloadUnit: null, taskStatus: null, remarks: null, createBy: null, createTime: null, updateBy: null, updateTime: null }
+const defaultForm = { id: null, name: null, projectId: null, pid: null, priority: null, taskClassification: null, performanceType: null, description: null, planStartTime: null, planEndTime: null, planHours: null, planWorkload: null, planWorkloadUnit: null, taskStatus: null, remarks: null, createBy: null, createTime: null, updateBy: null, updateTime: null }
export default {
name: 'Task',
components: { pagination, crudOperation, rrOperation, udOperation },
mixins: [presenter(), header(), form(defaultForm), crud()],
- dicts: [constant.PRIORITY, constant.TAST_CLASSIFICATION, constant.STANDARD_WORKLOAD_UNIT, constant.TASK_STATUS],
+ dicts: [constant.PRIORITY, constant.TAST_CLASSIFICATION, constant.PERFORMANCE_TYPE, constant.STANDARD_WORKLOAD_UNIT, constant.TASK_STATUS],
cruds() {
return CRUD({ title: '任务', url: 'api/task', idField: 'id', sort: 'id,desc', crudMethod: { ...crudTask }})
},
@@ -385,6 +400,8 @@
priority: constant.PRIORITY,
// 字典:任务分类
taskClassification: constant.TAST_CLASSIFICATION,
+ // 字典: 绩效类型
+ performanceType: constant.PERFORMANCE_TYPE,
// 字典:标准工作量单位
standardWorkloadUnit: constant.STANDARD_WORKLOAD_UNIT,
// 字典:任务状态
--
Gitblit v1.9.3