| | |
| | | <el-input class="input-add" v-model.trim="workForm.checkWorkName" placeholder="请输入排查名称" clearable></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12" class="mb20"> |
| | | <el-form-item label="整改部门" prop="depId"> |
| | | <el-cascader @change="achieveUserList" :options="departmentList" :props="{ emitPath: false, checkStrictly: true, value: 'depId', label: 'depName' }" placeholder="请选择部门" clearable filterable class="input-add" v-model="workForm.depId"> </el-cascader> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12" class="mb20"> |
| | | <el-form-item label="执行人" prop="execUserId"> |
| | | <el-select class="input-add" v-model="workForm.execUserId" placeholder="请输入执行人" clearable filterable> |
| | | <el-option v-for="item in userList" :key="item.uid" :label="item.username" :value="item.uid"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12" class="mb20"> |
| | | <el-form-item label="排查周期" prop="checkCycle"> |
| | | <el-input class="input-add" type="number" v-model.trim="workForm.checkCycle" placeholder="请输入排查周期" clearable></el-input> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12" class="mb20"> |
| | | <el-form-item label="执行部门" prop="execDepId"> |
| | | <el-cascader @change="achieveUserList" :options="departmentList" :props="{ emitPath: false, checkStrictly: true, value: 'depId', label: 'depName' }" placeholder="请选择部门" clearable filterable class="input-add" v-model="workForm.execDepId"> </el-cascader> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12" class="mb20"> |
| | | <el-form-item label="任务单元" prop="taskUnitId"> |
| | | <el-select class="input-add" v-model="workForm.taskUnitId" placeholder="请输入任务单元" clearable filterable> |
| | | <el-option v-for="item in taskUnitList" :key="item.id" :label="item.taskUnitName" :value="item.id"></el-option> |
| | |
| | | <template #footer> |
| | | <span class="dialog-footer" v-show="disabled"> |
| | | <el-button @click="isShowWorkDialog = !isShowWorkDialog" size="default">取 消</el-button> |
| | | <el-button type="primary" @click="submitWork" v-throttle size="default">确 实</el-button> |
| | | <el-button type="primary" @click="submitWork" v-throttle size="default">确 定</el-button> |
| | | </span> |
| | | </template> |
| | | </el-dialog> |
| | |
| | | checkWorkType: number | null; |
| | | checkWorkName: string | null; |
| | | taskUnitId: number | null; |
| | | execUserId: number | null; |
| | | execDepId: number | null; |
| | | checkCycle: number | null; |
| | | checkCycleUnit: number | null; |
| | | validTime: number | null; |
| | | validTimeUnit: number | null; |
| | | noticeTime: number | null; |
| | | noticeTimeUnit: number | null; |
| | | depId: number | null; |
| | | firstStartTime: string | null; |
| | | }; |
| | | title: string; |
| | |
| | | checkWorkType: null, |
| | | checkWorkName: null, |
| | | taskUnitId: null, |
| | | execUserId: null, |
| | | execDepId: null, |
| | | checkCycle: null, |
| | | checkCycleUnit: null, |
| | | validTime: null, |
| | | validTimeUnit: null, |
| | | noticeTime: null, |
| | | noticeTimeUnit: null, |
| | | firstStartTime: null, |
| | | depId: null |
| | | firstStartTime: null |
| | | }, |
| | | workFormRules: { |
| | | checkWorkType: [{ required: true, message: '请填写排查作业类型', trigger: 'change' }], |
| | |
| | | checkWorkType: null, |
| | | checkWorkName: null, |
| | | taskUnitId: null, |
| | | execUserId: null, |
| | | execDepId: null, |
| | | checkCycle: null, |
| | | checkCycleUnit: null, |
| | | validTime: null, |
| | | validTimeUnit: null, |
| | | noticeTime: null, |
| | | noticeTimeUnit: null, |
| | | firstStartTime: null, |
| | | depId: null |
| | | firstStartTime: null |
| | | }; |
| | | } else if (type === '查看') { |
| | | state.disabled = false; |
| | | state.title = '查看排查任务'; |
| | | state.workForm.depId = JSON.parse(JSON.stringify(value)).depId; |
| | | await achieveUserList(); |
| | | state.workForm = JSON.parse(JSON.stringify(value)); |
| | | } else { |
| | | state.disabled = true; |
| | | state.title = '修改排查任务'; |
| | | state.workForm.depId = JSON.parse(JSON.stringify(value)).depId; |
| | | await achieveUserList(); |
| | | state.workForm = JSON.parse(JSON.stringify(value)); |
| | | } |
| | | }; |