DNC产品结构树页面新增点击设备类后展示设备类下挂载的设备列表
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-table :columns="columns" :data-source="dataSource" bordered :pagination="false" :size="size" rowKey="id" :scroll="{y:189}"> |
| | | |
| | | </a-table> |
| | | </template> |
| | | |
| | | <script> |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | |
| | | export default { |
| | | name: 'UseDeviceCustomTypeEquipmentTableList', |
| | | components: {}, |
| | | mixins: [JeecgListMixin], |
| | | props: { |
| | | currentLevelDetails: { |
| | | type: Object |
| | | }, |
| | | size: { |
| | | type: String |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | disableMixinCreated: true, |
| | | columns: [ |
| | | { |
| | | title: '设å¤ç¼å·', |
| | | align: 'center', |
| | | dataIndex: 'equipmentId', |
| | | width:250 |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | align: 'center', |
| | | dataIndex: 'equipmentName', |
| | | width:250 |
| | | }, |
| | | { |
| | | title: '设å¤åå·', |
| | | align: 'center', |
| | | dataIndex: 'equipmentModel', |
| | | width:250 |
| | | }, |
| | | { |
| | | title: 'æºåºIP', |
| | | align: 'center', |
| | | dataIndex: 'equipmentIp', |
| | | width:200 |
| | | }, |
| | | { |
| | | title: '驱å¨ç±»å', |
| | | align: 'center', |
| | | dataIndex: 'driveType' |
| | | }, |
| | | { |
| | | title: '端å£', |
| | | align: 'center', |
| | | dataIndex: 'dataPort' |
| | | }, |
| | | { |
| | | title: 'æ°æ§ç³»ç»', |
| | | align: 'center', |
| | | dataIndex: 'controlSystem' |
| | | } |
| | | ], |
| | | url: { |
| | | list: '/nc/deviceManagement/getEquipmentListById' |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | setQueryParamAndLoadData() { |
| | | const { deviceManagementId } = this.currentLevelDetails |
| | | this.queryParam = Object.assign({}, { id: deviceManagementId }) |
| | | this.loadData() |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
| | |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane :key="1" tab="设å¤å表" v-if="currentLevelInfo.hasOwnProperty('deviceManagementId')"> |
| | | <!-- <ProcessStepInfo :currentLevelDetails="currentLevelInfo" :size="containerSize"/>--> |
| | | 设å¤å表 |
| | | <UseDeviceCustomTypeEquipmentTableList ref="useTypeEquipmentTableListRef" |
| | | :currentLevelDetails="currentLevelInfo" :size="containerSize"/> |
| | | </a-tab-pane> |
| | | |
| | | <!--ç³»ç»åæ°é
ç½®ä¸è¥åæ°ä¸º1æ¶æå±ç¤ºå¯¹åºå±çº§çåå
·å表--> |
| | |
| | | import FilePreview from '../../../common/FilePreview' |
| | | import TableContextMenu from '../../../common/TableContextMenu' |
| | | import { getAction } from '@/api/manage' |
| | | import UseDeviceCustomTypeEquipmentTableList |
| | | from '@views/dnc/base/modules/ProductStructure/DeviceCustomType/UseDeviceCustomTypeEquipmentTableList.vue' |
| | | |
| | | export default { |
| | | name: 'ProductStructureMainBottom', |
| | | components: { |
| | | UseDeviceCustomTypeEquipmentTableList, |
| | | CutterTableList, |
| | | TableContextMenu, |
| | | FilePreview, |
| | |
| | | receiveCurrentLevelInfo(levelInfo) { |
| | | this.currentLevelInfo = levelInfo |
| | | this.activeTabKey = 1 |
| | | this.$nextTick(() => { |
| | | if (this.$refs.useTypeEquipmentTableListRef) { |
| | | this.$refs.useTypeEquipmentTableListRef.setQueryParamAndLoadData() |
| | | this.hasLoadedDataTabKeyArray.push(this.activeTabKey) |
| | | return |
| | | } |
| | | }) |
| | | this.hasLoadedDataTabKeyArray = [] |
| | | }, |
| | | |