| | |
| | | <template v-if="item.slotName === 'projectType'"> |
| | | <dict-tag :options="dict.type.sys_project_type" :value="scope.row.projectType"/> |
| | | </template> |
| | | <!-- <!– projectSubType插槽 –>--> |
| | | <!-- <template v-if="item.slotName === 'projectSubType'">--> |
| | | <!-- {{ getProjectSubType(scope.row.projectType, scope.row.projectSubType) }}--> |
| | | <!-- </template>--> |
| | | <!-- constructionNature插槽 --> |
| | | <template v-if="item.slotName === 'constructionNature'"> |
| | | <dict-tag :options="dict.type.construction_nature" :value="scope.row.constructionNature"/> |
| | |
| | | import {current, currentRest} from '@/views/projectEngineering/projectLibrary/list'; |
| | | import FileDialog from '@/views/projectEngineering/projectLibrary/component/FileDialog'; |
| | | import Cookies from "js-cookie"; |
| | | import {getChildList} from "@/api/system/dict/data"; |
| | | |
| | | export default { |
| | | dicts: ['sys_administrative_divisions', 'sys_investment_type', 'sys_project_phases', |
| | |
| | | this.removeStore(); |
| | | }, |
| | | methods: { |
| | | // async getProjectSubType(projectType, projectSubType) { |
| | | // if (!projectType || !projectSubType) { |
| | | // return '' |
| | | // } |
| | | // let value = ''; |
| | | // // 根据项目类型查子类型 |
| | | // const projectTypeItem = this.dict.type.sys_project_type.find(item => item.raw.dictValue === projectType); |
| | | // if (projectTypeItem) { |
| | | // const res = await getChildList(projectTypeItem.raw.dictCode); |
| | | // const target = res.data.filter(item => item.dictValue === projectSubType); |
| | | // if (target && target.length > 0) { |
| | | // value = target[0].dictLabel; |
| | | // console.log(value); |
| | | // } |
| | | // } |
| | | // console.log("拿到值了", value); |
| | | // return value; |
| | | // }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | this.removeStore(); |
| | |
| | | {id: 'coding', label: '项目码', slotName: 'coding', visible: true}, |
| | | {id: 'projectCode', label: '项目代码', visible: true}, |
| | | {id: 'projectType', label: '项目类型', slotName: 'projectType', visible: true}, |
| | | {id: 'projectSubType', label: '项目子类型', visible: true}, |
| | | {id: 'projectPhase', label: '项目阶段', visible: true}, |
| | | {id: 'constructionNature', label: '建设性质', slotName: 'constructionNature', visible: true}, |
| | | {id: 'totalInvestment', label: '总投资额', visible: true}, |
| | |
| | | {id: 'coding', label: '项目码', slotName: 'coding', visible: true}, |
| | | {id: 'projectCode', label: '项目代码', visible: true}, |
| | | {id: 'projectType', label: '项目类型', slotName: 'projectType', visible: true}, |
| | | {id: 'projectSubType', label: '项目子类型', visible: true}, |
| | | {id: 'projectPhase', label: '项目阶段', visible: true}, |
| | | {id: 'constructionNature', label: '建设性质', slotName: 'constructionNature', visible: true}, |
| | | {id: 'totalInvestment', label: '总投资额', visible: true}, |