| | |
| | | @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import">导入</a-button> |
| | | </a-upload> |
| | | <a-button type="primary" icon="download" @click="handleTemplateXlsDownload">导入模板下载</a-button> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item key="1" @click="batchDel"> |
| | |
| | | import '@/assets/less/TableExpand.less' |
| | | import EamEquipmentModal from './modules/EamEquipmentModal' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { getAction } from '@api/manage' |
| | | import { getAction, templateXlsDownload } from '@api/manage' |
| | | import NameplateModal from '@views/eam/equipment/modules/NameplateModal.vue' |
| | | import { getSystemConfigValue } from '@api/api' |
| | | |
| | | export default { |
| | | name: 'EamEquipmentList', |
| | |
| | | dataIndex: 'coordinateNum' |
| | | }, |
| | | { |
| | | title: '创建人', |
| | | align: "center", |
| | | dataIndex: 'createBy_dictText' |
| | | }, |
| | | { |
| | | title: '创建时间', |
| | | align: "center", |
| | | dataIndex: 'createTime', |
| | | }, |
| | | { |
| | | title: '更新人', |
| | | align: "center", |
| | | dataIndex: 'updateBy_dictText' |
| | | }, |
| | | { |
| | | title: '更新时间', |
| | | align: "center", |
| | | dataIndex: 'updateTime', |
| | | }, |
| | | { |
| | | title: '备注', |
| | | align: 'center', |
| | | width: 100, |
| | |
| | | deleteBatch: '/eam/equipment/deleteBatch', |
| | | exportXlsUrl: 'eam/equipment/exportXls', |
| | | importExcelUrl: 'eam/equipment/importExcel', |
| | | loadProductionOptions: '/mdc/mdcProduction/loadProductionTreeOptions' |
| | | loadProductionOptions: '/mdc/mdcProduction/loadProductionTreeOptions', |
| | | templateXlsDownloadUrl: '导入模板/设备台账导入模板_v1.0.xlsx', |
| | | }, |
| | | treeData: [] |
| | | treeData: [], |
| | | appHomeUrl: '', |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.loadAllProductionTree() |
| | | this.loadAllProductionTree(); |
| | | this.loadAppHomeUrlConfigValue(); |
| | | }, |
| | | methods: { |
| | | loadAllProductionTree() { |
| | |
| | | */ |
| | | handleOpenNameplateModal(record) { |
| | | this.$refs.nameplateModalRef.model = Object.assign({}, record) |
| | | this.$refs.nameplateModalRef.httpUrl = 'http://www.baidu.com' |
| | | this.$refs.nameplateModalRef.httpUrl = this.appHomeUrl + record.equipmentCode; |
| | | this.$refs.nameplateModalRef.visible = true |
| | | |
| | | } |
| | | }, |
| | | handleTemplateXlsDownload(){ |
| | | templateXlsDownload(this.url.templateXlsDownloadUrl); |
| | | }, |
| | | loadAppHomeUrlConfigValue() { |
| | | let params = {settingKey: 'app_home_url'}; |
| | | getSystemConfigValue(params).then(res => { |
| | | if (res.success) { |
| | | this.appHomeUrl = res.result.settingValue; |
| | | } |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |