scorpio 2 tahun lalu
induk
melakukan
a2f394909d
2 mengubah file dengan 4 tambahan dan 3 penghapusan
  1. 3 2
      src/components/uploads.vue
  2. 1 1
      src/views/home/component/form_dialog.vue

+ 3 - 2
src/components/uploads.vue

@@ -175,8 +175,9 @@ export default {
     submit () {
       this.$refs.upload.submit()
     },
-    onError () {
-      this.$message.error('服务器异常,请联系管理员!')
+    onError (res, file, fileList) {
+      console.log(res)
+      this.$message.error(res.msg)
     }
   }
 }

+ 1 - 1
src/views/home/component/form_dialog.vue

@@ -237,7 +237,7 @@ export default {
       }
       this.loading = true
       this.$message.success('正在导入,请稍后...')
-      if (this.user.viewStage === 0) {
+      if (this.user.info.viewStage === 0) {
         this.dept.isReport = 1
       }
       this.$refs.upload.submit()