| | |
| | | </el-col> |
| | | |
| | | <el-col :span="6"> |
| | | <el-col :span="6"> |
| | | <el-form-item label="建设性质" label-width="100px" prop="constructionNature" style="width: 100%; min-width: 260px"> |
| | | <el-select |
| | | v-model="projectForm.constructionNature" |
| | | clearable |
| | | placeholder="请选择" |
| | | style="width: 100%" |
| | | > |
| | | <el-option v-for="item in dict.type.construction_nature" :key="item.value" :label="item.label" |
| | | :value="item.value"/> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-form-item label="建设性质" label-width="100px" prop="constructionNature" |
| | | style="width: 100%; min-width: 260px"> |
| | | <el-select |
| | | v-model="projectForm.constructionNature" |
| | | clearable |
| | | placeholder="请选择" |
| | | style="width: 100%" |
| | | > |
| | | <el-option v-for="item in dict.type.construction_nature" :key="item.value" :label="item.label" |
| | | :value="item.value"/> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | |
| | | placeholder="请输入"/> |
| | | </el-form-item> |
| | | </el-col> |
| | | <!-- <el-col :span="6">--> |
| | | <!-- <el-form-item label="项目业主单位" label-width="100px" prop="projectOwnerUnit" style="width: 100%">--> |
| | | <!-- <el-input v-model.trim="projectForm.projectOwnerUnit" class="item" clearable maxlength="255"--> |
| | | <!-- placeholder="请输入"/>--> |
| | | <!-- </el-form-item>--> |
| | | <!-- </el-col>--> |
| | | <!-- <el-col :span="6">--> |
| | | <!-- <el-form-item label="项目业主单位" label-width="100px" prop="projectOwnerUnit" style="width: 100%">--> |
| | | <!-- <el-input v-model.trim="projectForm.projectOwnerUnit" class="item" clearable maxlength="255"--> |
| | | <!-- placeholder="请输入"/>--> |
| | | <!-- </el-form-item>--> |
| | | <!-- </el-col>--> |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="6"> |
| | |
| | | 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); |