wenhongquan 2 лет назад
Родитель
Сommit
b6eadacf1e
1 измененных файлов с 42 добавлено и 0 удалено
  1. 42 0
      src/views/system/facilities/index.vue

+ 42 - 0
src/views/system/facilities/index.vue

@@ -97,6 +97,22 @@
         </el-col>
 
       <el-col :span="1.5">
+                  <el-button
+                    type="primary"
+                      @click.stop="exportexcel3()"
+                      >导出
+                    </el-button>
+            </el-col>
+
+                <el-col :span="1.5">
+                  <el-button
+                   type="success"
+                      @click.stop="inportexcel3()"
+                      >导入
+                    </el-button>
+              </el-col>
+
+      <el-col :span="1.5">
         <el-button type="danger" icon="Delete" size="mini" :disabled="multiple" @click.stop="handleDelete"
           v-hasPermi="['system:facilities:remove']">删除</el-button>
       </el-col>
@@ -626,6 +642,32 @@ const getList = () => {
     loading.value = false;
   });
 };
+
+
+const exportexcel3 = () => {
+  // loading.value = true;
+  var q = cloneDeep(queryParams.value);
+  var c = JSON.stringify(cloneDeep(q.params));
+  delete q.params;
+  // console.log(q.params)
+  q["params"] = {"q":c};
+
+   proxy.download(
+    "system/facilities/export3",
+    {
+      ...q,
+    },
+    `南宁北排管网公司设施台账.xlsx`
+  );
+
+
+}
+
+const inportexcel3 = () => {
+
+}
+
+
 // 取消按钮
 const cancel = () => {
   open.value = false;