Procházet zdrojové kódy

取消注释定时任务接口

cfort před 2 roky
rodič
revize
6e778cac0b
1 změnil soubory, kde provedl 33 přidání a 34 odebrání
  1. 33 34
      src/views/system/dashboard/page.vue

+ 33 - 34
src/views/system/dashboard/page.vue

@@ -264,39 +264,39 @@
             if (savedDate !== today) {
                 this.getPeriodTask()
             }
-            // StatisticsData().then(data => {
-            //     //将参数替换成对应参数
-            //     if (data.state === 200 && data.variables.data.length > 0) {
-            //         let h = this.$createElement,
-            //             cont = data.variables.data
-            //         for (let i = 0; i < cont.length; i++) {
-            //             window.setTimeout(() => {
-            //                 this.infoMessage[i] = this.$notify.info({
-            //                     title: '定时任务:' + cont[i].ren_wu_biao_ti_,
-            //                     message: h('p', null, [
-            //                         h('span', null, '任务时间: ' + cont[i].ren_wu_shi_jian_),
-            //                         h('br'),
-            //                         h('span', null, '任务内容: '),
-            //                         h('span', { style: 'color: #FF8C00;font-size:12px;' }, cont[i].ding_shi_ren_wu_n),
-            //                         h('br'),
-            //                         h('el-button',{
-            //                             attrs: {
-            //                                 size: 'mini',
-            //                                 plain: true
-            //                             },
-            //                             on: {
-            //                                 click: () => {
-            //                                     this.infoMessage[i].close()
-            //                                 } // 路由加载之后,调用关闭消息弹窗的方法
-            //                             }
-            //                         }, '忽略关闭')
-            //                     ]),
-            //                     duration: 0
-            //                 })
-            //             }, 0)
-            //         }
-            //     }
-            // })
+            StatisticsData().then(data => {
+                //将参数替换成对应参数
+                // if (data.state === 200 && data.variables.data.length > 0) {
+                //     let h = this.$createElement,
+                //         cont = data.variables.data
+                //     for (let i = 0; i < cont.length; i++) {
+                //         window.setTimeout(() => {
+                //             this.infoMessage[i] = this.$notify.info({
+                //                 title: '定时任务:' + cont[i].ren_wu_biao_ti_,
+                //                 message: h('p', null, [
+                //                     h('span', null, '任务时间: ' + cont[i].ren_wu_shi_jian_),
+                //                     h('br'),
+                //                     h('span', null, '任务内容: '),
+                //                     h('span', { style: 'color: #FF8C00;font-size:12px;' }, cont[i].ding_shi_ren_wu_n),
+                //                     h('br'),
+                //                     h('el-button',{
+                //                         attrs: {
+                //                             size: 'mini',
+                //                             plain: true
+                //                         },
+                //                         on: {
+                //                             click: () => {
+                //                                 this.infoMessage[i].close()
+                //                             } // 路由加载之后,调用关闭消息弹窗的方法
+                //                         }
+                //                     }, '忽略关闭')
+                //                 ]),
+                //                 duration: 0
+                //             })
+                //         }, 0)
+                //     }
+                // }
+            })
         },
         beforeDestroy() {
             for (let i = 0; i < this.infoMessage.length; i++) {
@@ -563,7 +563,6 @@
                         return
                     }
                     this.showMsg(data)
-                    
                 }).catch(error => {
                     this.$message.error('获取所有用户信息失败!')
                     console.log(error)