ソースを参照

Merge branch 'master' of qk:zhuishuyun/precise_delivery_distribution_front

gdy96 4 年 前
コミット
911461db98
2 ファイル変更9 行追加1 行削除
  1. 4 0
      src/scss/antd.scss
  2. 5 1
      src/views/put/put-book.vue

+ 4 - 0
src/scss/antd.scss

@@ -39,3 +39,7 @@
   margin-top: 0 !important;
   margin-top: 0 !important;
   margin-bottom: 0 !important;
   margin-bottom: 0 !important;
 }
 }
+
+.ant-table td {
+  white-space: nowrap !important;
+}

+ 5 - 1
src/views/put/put-book.vue

@@ -28,6 +28,7 @@
              destroy-on-close
              destroy-on-close
              v-model:visible="open"
              v-model:visible="open"
              :confirm-loading="inConfirm"
              :confirm-loading="inConfirm"
+             :after-close="onReset"
              @ok="onAdd">
              @ok="onAdd">
       <a-form :model="addFormState"
       <a-form :model="addFormState"
               :labelCol="labelCol"
               :labelCol="labelCol"
@@ -213,7 +214,7 @@ const PutBooks = defineComponent({
         this.open = false;
         this.open = false;
         this.$message.success("添加成功");
         this.$message.success("添加成功");
         this.onBookLoaded();
         this.onBookLoaded();
-        this.addFormState = useReset(this.addFormState);
+        this.onReset();
       } catch (error) {
       } catch (error) {
         console.log("error while add delivery book");
         console.log("error while add delivery book");
         error.message && this.$message.error(error.message);
         error.message && this.$message.error(error.message);
@@ -221,6 +222,9 @@ const PutBooks = defineComponent({
         this.inConfirm = false;
         this.inConfirm = false;
       }
       }
     },
     },
+    onReset() {
+      this.addFormState = useReset(this.addFormState);
+    },
     onStop(data: IDeliveryBook) {
     onStop(data: IDeliveryBook) {
       const { id } = data;
       const { id } = data;
       onStopDeliveryBook(id).then((_) => {
       onStopDeliveryBook(id).then((_) => {