scorpio 2 tahun lalu
induk
melakukan
8d0696c7c1

+ 4 - 1
src/views/home/component/dash.vue

@@ -368,7 +368,10 @@ export default {
           })
         })
     },
-    getNumList(data) {
+    getNumList (data) {
+      if (this.numList.length > 0) {
+        return
+      }
       this.$api.project.userNunList(data).then(res => {
         if (res.code === 200) {
           this.numList = res.data.projectStage

+ 3 - 0
src/views/home/component/form_dialog.vue

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