| | |
| | | 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> |
| | |
| | | </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> |
| | |
| | | @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> |
| | |
| | | </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> |
| | |
| | | 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 |
| | |
| | | approveStatusUnrecognized: constant.APPROVE_STATUS_UNRECOGNIZED, |
| | | // CRUD状态 |
| | | crudStatusPrepared: CRUD.STATUS.PREPARED, |
| | | Is_ok: false, |
| | | generateForm: [], |
| | | tableHeader: [], |
| | | users: [], |
| | |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | taskCompleted() { |
| | | |
| | | } |
| | | } |
| | | } |