From ccd5b8d5eebece61106ab8d36389d69357371ac5 Mon Sep 17 00:00:00 2001 From: zhangherong <571457620@qq.com> Date: 星期三, 26 三月 2025 14:38:49 +0800 Subject: [PATCH] art: 设备管理-设备台账-导出,导入,导入模板下载,铭牌修改 --- src/views/eam/equipment/EamEquipmentList.vue | 48 ++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 42 insertions(+), 6 deletions(-) diff --git a/src/views/eam/equipment/EamEquipmentList.vue b/src/views/eam/equipment/EamEquipmentList.vue index 4073dd0..802b6ca 100644 --- a/src/views/eam/equipment/EamEquipmentList.vue +++ b/src/views/eam/equipment/EamEquipmentList.vue @@ -82,6 +82,7 @@ @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"> @@ -167,8 +168,9 @@ 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', @@ -390,6 +392,26 @@ 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, @@ -410,9 +432,11 @@ 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: { @@ -421,7 +445,8 @@ } }, created() { - this.loadAllProductionTree() + this.loadAllProductionTree(); + this.loadAppHomeUrlConfigValue(); }, methods: { loadAllProductionTree() { @@ -441,10 +466,21 @@ */ 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> -- Gitblit v1.9.3