Explorar el Código

导出时 搜索筛选项转换为数字类型

DELL hace 3 años
padre
commit
b1e3455886
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  1. 4 3
      src/views/order/deliver/index.vue

+ 4 - 3
src/views/order/deliver/index.vue

@@ -490,8 +490,9 @@ export default {
 
     // 导出订单
     handleExportDraw() {
-      if (this.queryParams.resource){
-        this.queryParams.resource = Number(this.queryParams.resource)
+      let data = {
+        ...this.queryParams,
+        resource: this.queryParams.resource == "" ? this.queryParams.resource: Number(this.queryParams.resource)
       }
       this.$confirm("是否确认导出订单?", "提示", {
         confirmButtonText: "确定",
@@ -504,7 +505,7 @@ export default {
             text: "正在导出订单.....",
             background: "rgba(0, 0, 0, 0.7)",
           });
-          return deliverOrderExport(this.queryParams);
+          return deliverOrderExport(data);
         })
         .then((response) => {
           this.vloading.close();