| | |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="分公司" prop="deptId"> |
| | | <el-select |
| | | v-model="queryParams.deptId" |
| | | placeholder="请选择分公司" |
| | | clearable |
| | | filterable |
| | | style="width: 200px" |
| | | > |
| | | <el-option |
| | | v-for="dept in branchList" |
| | | :key="dept.deptId" |
| | | :label="dept.deptName" |
| | | :value="dept.deptId" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="车牌号" prop="vehicleNo"> |
| | | <el-input |
| | | v-model="queryParams.vehicleNo" |
| | |
| | | <script> |
| | | import { listTask, getTask, delTask, addTask, updateTask, assignTask, changeTaskStatus } from "@/api/task"; |
| | | import { listUser } from "@/api/system/user"; |
| | | import { listBranchByOa } from "@/api/system/dept"; |
| | | |
| | | export default { |
| | | name: "Task", |
| | |
| | | taskCode: null, |
| | | taskType: null, |
| | | taskStatus: null, |
| | | deptId: null, |
| | | vehicleNo: null, |
| | | plannedStartTimeBegin: null, |
| | | plannedStartTimeEnd: null, |
| | |
| | | statusForm: {}, |
| | | // 用户列表 |
| | | userList: [], |
| | | // 分公司列表 |
| | | branchList: [], |
| | | // 表单校验 |
| | | rules: { |
| | | taskType: [ |
| | |
| | | created() { |
| | | this.getList(); |
| | | this.getUserList(); |
| | | this.getBranchList(); |
| | | }, |
| | | methods: { |
| | | /** 查询任务管理列表 */ |
| | |
| | | this.userList = response.rows; |
| | | }); |
| | | }, |
| | | /** 查询分公司列表 */ |
| | | getBranchList() { |
| | | listBranchByOa().then(response => { |
| | | this.branchList = response.data || []; |
| | | }).catch(() => { |
| | | this.branchList = []; |
| | | }); |
| | | }, |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |