| | |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="维修班组"> |
| | | <a-tree-select v-model="queryParam.repairDepartOrgCode" style="width: 100%" |
| | | :tree-data="repairDepartTreeData" |
| | | show-search :tree-data="repairDepartTreeData" treeNodeFilterProp="title" |
| | | :replaceFields="{key:'orgCode',value:'orgCode'}" searchPlaceholder="请输入关键字搜索" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" placeholder="请选择维修班组" |
| | | allow-clear tree-default-expand-all> |
| | | </a-tree-select> |
| | |
| | | <!--</a-tabs>--> |
| | | |
| | | <!-- 表单区域 --> |
| | | <eamEquipment-modal ref="modalForm" @ok="modalFormOk" :productionTreeData="productionTreeData"/> |
| | | <eamEquipment-modal ref="modalForm" @ok="modalFormOk" :productionTreeData="productionTreeData" |
| | | :repairDepartTreeData="repairDepartTreeData"/> |
| | | <!--履历弹窗--> |
| | | <resume-drawer ref="resumeDrawerRef" :currentTableRowRecord="currentTableRowRecord"/> |
| | | </a-card> |
| | |
| | | { |
| | | title: '冷却系统', |
| | | align: 'center', |
| | | dataIndex: 'coolSystem' |
| | | dataIndex: 'coolSystem_dictText' |
| | | }, |
| | | { |
| | | title: '灭火器', |
| | |
| | | exportXlsUrl: 'eam/equipment/exportXls', |
| | | importExcelUrl: 'eam/equipment/importExcel', |
| | | getProductionTreeList: '/eam/BaseFactory/queryTreeList', |
| | | repairDepartTreeList: '/eam/eamBaseRepairDepart/queryTreeList', |
| | | templateXlsDownloadUrl: '导入模板/设备台账导入模板_v1.1.xlsx' |
| | | }, |
| | | currentTableRowRecord: {}, |
| | |
| | | }, |
| | | created() { |
| | | this.getProductionTreeDataByApi() |
| | | this.getRepairDepartTreeDataByApi() |
| | | }, |
| | | methods: { |
| | | // 获取使用部门树 |
| | |
| | | }) |
| | | }, |
| | | |
| | | // 获取使用部门树 |
| | | getProductionTreeDataByApi() { |
| | | getAction(this.url.getProductionTreeList) |
| | | // 获取维修班组树 |
| | | getRepairDepartTreeDataByApi() { |
| | | getAction(this.url.repairDepartTreeList) |
| | | .then(res => { |
| | | if (res.success) { |
| | | this.productionTreeData = res.result |
| | | this.repairDepartTreeData = res.result |
| | | } else { |
| | | this.$notification.warning({ |
| | | message: '消息', |