Browse Source

后勤报修类别

ZhaoJing 2 years ago
parent
commit
4516e9f1ab
2 changed files with 5 additions and 2 deletions
  1. 4 1
      src/components/ImportButton/index.vue
  2. 1 1
      src/pages/xdhq/sbbx/bxlb.vue

+ 4 - 1
src/components/ImportButton/index.vue

@@ -32,7 +32,10 @@ const handleTableRowBtns_export = () => {
     let data:any = {};
     data[name]=id;
     data.limit = 1;
-    download(`${props.url}/index`, data);
+    if(id=='837'){
+      download(`/template/xls/报修类别导入模版.xls`, data);
+    }
+    
   }else{
     download(`${props.url}/index`, { limit: 1});
   }

+ 1 - 1
src/pages/xdhq/sbbx/bxlb.vue

@@ -289,7 +289,7 @@ init()
     </el-form>
     <div class="divider"></div>
     <div>
-      <import-button @success="queryApi" :url="URL_CUT_REF"></import-button>
+      <import-button @success="queryApi" :importKey="('cs_pid=837')" :url="URL_CUT_REF" :exportKey="('cs_pid=837')"></import-button>
       <el-button @click="handleTableRowBtn_export" type="success">导出</el-button>
       <el-button @click="handleTableRowBtn_add" type="primary">新增</el-button>
       <el-button @click="handleTableRowBtn_delete" type="danger">删除</el-button>