| | |
| | | import {addProject, getProject, updateProject, getProjectCode, editProject} from '@/api/projectEngineering/projectInfo'; |
| | | import {approvalList} from "@/api/system/dept"; |
| | | import {getByDept} from "@/api/system/user"; |
| | | import {getChildList} from "@/api/system/dict/data"; |
| | | import {getChildList, getDicts} from "@/api/system/dict/data"; |
| | | import log from "@/views/monitor/job/log"; |
| | | |
| | | export default { |
| | | name: 'BasicInfo', |
| | |
| | | } |
| | | if (this.projectForm.projectType) { |
| | | // 根据项目类型查子类型 |
| | | getChildList(this.dict.type.sys_project_type.filter(item => item.raw.dictValue === this.projectForm.projectType)[0].raw.dictCode).then(res => { |
| | | this.projectSubTypeList = res.data |
| | | getDicts("sys_project_type").then(res => { |
| | | const projectType = res.data.find(item => item.dictValue === this.projectForm.projectType); |
| | | if (projectType) { |
| | | getChildList(projectType.dictCode).then(res => { |
| | | this.projectSubTypeList = res.data |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | this.$emit('updateIsShow', true); |
| | |
| | | } |
| | | if (this.projectForm.projectType) { |
| | | // 根据项目类型查子类型 |
| | | getChildList(this.dict.type.sys_project_type.filter(item => item.raw.dictValue === this.projectForm.projectType)[0].raw.dictCode).then(res => { |
| | | this.projectSubTypeList = res.data |
| | | getDicts("sys_project_type").then(res => { |
| | | const projectType = res.data.find(item => item.dictValue === this.projectForm.projectType); |
| | | if (projectType) { |
| | | getChildList(projectType.dictCode).then(res => { |
| | | this.projectSubTypeList = res.data |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | this.$emit('updateIsShow', true); |