Pārlūkot izejas kodu

批量发货显示内容可以下滑查看

DELL 3 gadi atpakaļ
vecāks
revīzija
4d60a510bb
1 mainītis faili ar 28 papildinājumiem un 3 dzēšanām
  1. 28 3
      src/views/order/deliver/index.vue

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

@@ -254,6 +254,17 @@
       </div>
     </el-dialog>
 
+    <el-dialog
+      title="提示"
+      :visible.sync="dialogVisible"
+      width="60%"
+      :before-close="handleClose">
+      <div v-html="responseData"></div>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="dialogVisible = false">取 消</el-button>
+      </span>
+    </el-dialog>
+
     <!-- 分页 -->
     <pagination
       v-show="total > 0"
@@ -285,6 +296,7 @@ export default {
     return {
       loading: false,
       showSearch: true,
+      dialogVisible: false,
       // 筛选
       queryParams: {
         nickName: "",
@@ -323,13 +335,22 @@ export default {
       },
       fileSaveUrl: '',
       reqData: {},
+      responseData:'',
     };
   },
   created() {
     this.getList();
   },
   methods: {
-    // 订单列表
+    handleClose(done) {
+      this.$confirm('确认关闭?')
+        .then(_ => {
+          done();
+        })
+        .catch(_ => {
+        });
+    },
+      // 订单列表
     getList() {
       let data = {
         ...this.queryParams,
@@ -397,7 +418,9 @@ export default {
         this.upload.isUploading = false;
         this.$refs.upload.clearFiles();
         if(response.data){
-          this.$alert(response.data, "导入结果", { dangerouslyUseHTMLString: true, customClass: 'msgbox' });
+          this.responseData = response.data
+          this.dialogVisible = true
+          // this.$alert(response.data, "导入结果", { dangerouslyUseHTMLString: true, customClass: 'msgbox' });
         }
         this.close()
       }).catch(response => {
@@ -405,7 +428,9 @@ export default {
         this.upload.isUploading = false;
         this.$refs.upload.clearFiles();
         if(response.data){
-          this.$alert(response.data, "导入结果", { dangerouslyUseHTMLString: true, customClass: 'msgbox'  });
+          this.responseData = response.data
+          this.dialogVisible = true
+          // this.$alert(response.data, "导入结果", { dangerouslyUseHTMLString: true, customClass: 'msgbox'  });
         }
         this.vloading.close();
         //param.onError()