Răsfoiți Sursa

优化创建操作流程

洪海涛 4 ani în urmă
părinte
comite
2fedb6e714
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/views/monthlyReport/index.vue

+ 1 - 1
src/views/monthlyReport/index.vue

@@ -162,12 +162,12 @@ export default {
     createReportDatas() {
       this.$refs.setReportData.validate((valid) => {
         if (valid) {
+          this.$refs.normalDialog.visible = false
           this.loading = true
           const data = { ...this.setReportData, startTime: this.setReportData.startAndEnd[0], endTime: this.setReportData.startAndEnd[1] }
           createMonthlyReport(data).then(res => {
             if (res.code === 200) {
               this.loading = false
-              this.$refs.normalDialog.visible = false
               this.$router.push({ path: '/monthlyReport/edit', query: { pageType: 'editAll', reportId: res.data.id, type: 'create' }})
               window.log({ c: 'report_home', d: 'report_home_create' })
             }