liangbowen 1 týždeň pred
rodič
commit
4358152444

+ 1 - 0
package.json

@@ -18,6 +18,7 @@
     "@wangeditor/editor": "^5.1.1",
     "@wangeditor/editor-for-vue": "^1.0.2",
     "axios": "0.18.1",
+    "default-passive-events": "^4.0.0",
     "echarts": "^5.4.3",
     "element-china-area-data": "^5.0.2",
     "element-ui": "^2.15.14",

+ 1 - 0
src/main.js

@@ -9,6 +9,7 @@ import "@/styles/global.scss";
 import "@/styles/index.scss"; // global css
 // import Print from 'vue-print-nb'
 import Print from './assets/print'
+import 'default-passive-events';
 Vue.use(Print);
 
 import App from "./App";

+ 5 - 0
src/styles/index.scss

@@ -185,3 +185,8 @@ aside {
 .multiselect--active {
   z-index: 1000 !important;
 }
+
+.el-dialog__wrapper {
+  overflow: auto !important;
+  overscroll-behavior: contain;
+}

+ 11 - 4
src/views/page/procurement-settlement/reconciliation/supplierDetail.vue

@@ -3,7 +3,7 @@
   <div>
     <el-card>
       <div style="text-align: right">
-        <el-button type="primary" @click.stop="printDataView()">打印</el-button>
+        <el-button type="primary" @click.stop="prDataView()">打印</el-button>
         <el-button
           type="primary"
           v-if="isShow"
@@ -120,9 +120,12 @@
           destroy-on-close
           append-to-body
         >
-          <div id="printMe">
-            <printTable :tableHeader="tableHeader" :tableData="list" />
+          <div class="prWrap">
+            <div id="printMe">
+              <printTable :tableHeader="tableHeader" :tableData="list" />
+            </div>
           </div>
+
           <span slot="footer" class="dialog-footer">
             <el-button type="primary" v-print="printObj">打印</el-button>
           </span>
@@ -299,7 +302,7 @@ export default {
         exportData(_res, "对账明细");
       });
     },
-    printDataView() {
+    prDataView() {
       this.comModal = true;
     },
     comhandleClose() {
@@ -433,4 +436,8 @@ export default {
   align-items: center;
   justify-content: flex-end;
 }
+.prWrap {
+  height: 400px;
+  overflow: auto;
+}
 </style>

+ 1 - 1
vue.config.js

@@ -46,7 +46,7 @@ module.exports = {
       // change xxx-api/login => mock/login
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        target: `http://127.0.0.1:8603`,
+        target: `http://192.168.0.246:8602`,
         // target: `http://192.168.0.56:8502`,
         // target: `http://192.168.0.248:6000`,
         //target: `http://api.szlcloud.com/admin`,