| | |
| | | <el-form-item label="任务工作量单位" prop="taskWorkloadUnit"> |
| | | {{ dict.label[standardWorkloadUnit][form.taskWorkloadUnit] }} |
| | | </el-form-item> |
| | | <el-form-item label="任务绩效类型" prop="taskPerformanceType"> |
| | | {{ dict.label[performanceType][form.taskPerformanceType] }} |
| | | </el-form-item> |
| | | <el-form-item label="强制更新" tool-tip prop="enable1"> |
| | | <el-tooltip content="不增减工作量的场合调整工时的话,需要选择此项。(有疑问请联系管理员,不要随便选。。。)" effect="dark" placement="bottom"> |
| | | <el-switch v-model="form.enable1" /> |
| | |
| | | <el-tag v-if="scope.row.taskWorkloadUnit != null && scope.row.taskWorkloadUnit != ''">{{ dict.label[standardWorkloadUnit][scope.row.taskWorkloadUnit] }}</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column :show-overflow-tooltip="true" prop="taskPerformanceType" label="任务绩效类型" width="110"> |
| | | <template slot-scope="scope"> |
| | | <el-tag v-if="scope.row.taskPerformanceType != null && scope.row.taskPerformanceType != ''">{{ dict.label[performanceType][scope.row.taskPerformanceType] }}</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column :show-overflow-tooltip="true" prop="taskProgress" label="任务进度" width="80"> |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.taskProgress }}% |
| | |
| | | name: 'TaskUser', |
| | | components: { pagination, crudOperation, rrOperation, udOperation, DateRangePicker }, |
| | | mixins: [presenter(), header(), form(defaultForm), crud()], |
| | | dicts: [constant.TASK_STATUS, constant.STANDARD_WORKLOAD_UNIT], |
| | | dicts: [constant.TASK_STATUS, constant.STANDARD_WORKLOAD_UNIT, constant.PERFORMANCE_TYPE], |
| | | cruds() { |
| | | return CRUD({ title: '任务分配', url: 'api/taskUser', idField: 'id', sort: 'taskStartDate,desc', crudMethod: { ...crudTaskUser }}) |
| | | }, |
| | |
| | | taskStatus: constant.TASK_STATUS, |
| | | // 字典:标准工作量单位 |
| | | standardWorkloadUnit: constant.STANDARD_WORKLOAD_UNIT, |
| | | // 字典:绩效对象 |
| | | performanceType: constant.PERFORMANCE_TYPE, |
| | | // 字典:批准状态-未承认 |
| | | approveStatusUnrecognized: constant.APPROVE_STATUS_UNRECOGNIZED, |
| | | // 角色级别:超级管理员 |
| | |
| | | [CRUD.HOOK.beforeToAdd]() { |
| | | // 表单赋值 |
| | | this.form.taskWorkloadUnit = null |
| | | this.form.taskPerformanceType = null |
| | | // 表单任务列表 |
| | | this.formTasks = [] |
| | | }, |
| | |
| | | this.form.taskStartDate = this.formTasks[i].planStartTime |
| | | this.form.taskEndDate = this.formTasks[i].planEndTime |
| | | this.form.taskWorkloadUnit = this.formTasks[i].planWorkloadUnit |
| | | this.form.taskPerformanceType = this.formTasks[i].performanceType |
| | | break |
| | | } |
| | | // 判断循环是否结束 |
| | |
| | | this.form.taskStartDate = null |
| | | this.form.taskEndDate = null |
| | | this.form.taskWorkloadUnit = null |
| | | this.form.taskPerformanceType = null |
| | | } |
| | | } |
| | | // 判断是否是否是新增 |