|
@@ -48,6 +48,7 @@
|
|
|
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
|
|
|
<a-button type="primary" icon="import">导入</a-button>
|
|
|
</a-upload>
|
|
|
+ <a-button type="primary" icon="download" @click="handleDownload()">模板下载</a-button>
|
|
|
<!-- 高级查询区域 -->
|
|
|
<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>-->
|
|
|
<!-- <a-dropdown v-if="selectedRowKeys.length > 0">-->
|
|
@@ -142,7 +143,8 @@
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import ItdmDeviceModal from './modules/ItdmDeviceModal'
|
|
|
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
|
|
|
- import {checkGuzhang} from '@/api/api'
|
|
|
+ import {checkGuzhang, getDz} from '@/api/api'
|
|
|
+ import { getFileAccessHttpUrl,downloadFile } from '@/api/manage'
|
|
|
|
|
|
export default {
|
|
|
name: 'ItdmDeviceList',
|
|
@@ -338,6 +340,14 @@
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ // 模板下载
|
|
|
+ handleDownload() {
|
|
|
+ getDz().then((res) => {
|
|
|
+ console.log(res)
|
|
|
+ let url = getFileAccessHttpUrl(res);
|
|
|
+ downloadFile(url,'设备表.xls')
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|