Quellcode durchsuchen

分站查询全部按钮添加-提交

lxh vor 3 Tagen
Ursprung
Commit
ddcc1902fe

+ 5 - 0
src/views/vent/deviceManager/deviceTable/device.api.ts

@@ -9,6 +9,7 @@ enum Api {
   deleteBatch = '/safety/ventanalyDeviceInfo/deleteBatch',
   importExcel = '/sys/user/importExcel',
   exportXls = '/safety/ventanalyMonitorParams/exportXls',
+  importExcel1='/safety/gasDayReport/importByExcel'
 }
 /**
  * 导出api
@@ -20,6 +21,10 @@ export const getExportUrl = Api.exportXls;
  */
 export const getImportUrl = Api.importExcel;
 /**
+ * 导入api
+ */
+export const getImportUrl1 = Api.importExcel1;
+/**
  * 列表接口
  * @param params
  */

+ 2 - 1
src/views/vent/deviceManager/deviceTable/index.vue

@@ -9,6 +9,7 @@
       :deleteById="deleteById"
       :batchDelete="batchDeleteById"
       :saveOrUpdate="saveOrUpdate"
+      :getImportUrl="getImportUrl1"
       designScope="device-tabel"
       title="设备列表"
       :showTab="true"
@@ -21,7 +22,7 @@
   //ts语法
   import { ref, onMounted, unref } from 'vue';
   import NormalTable from '../comment/NormalTable.vue';
-  import { list, deleteById, batchDeleteById, saveOrUpdate } from './device.api';
+  import { list, deleteById, batchDeleteById, saveOrUpdate,getImportUrl1 } from './device.api';
   import { list as substationList } from '../substationTabel/substation.api';
 
   import { searchFormSchema } from './device.data';