Sfoglia il codice sorgente

刷新审批历史组件的数据

baichengfei 5 anni fa
parent
commit
766176a7bc

+ 6 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/basisedit.vue

@@ -1769,7 +1769,9 @@ export default {
         if (res.data.code === 0) {
           // 保存成功后,初始化数据,变成修改
           this.initDatas()
-          this.$refs['WfHistory'].$forceUpdate()
+          if (this.$refs['WfHistory']) {
+            this.$refs['WfHistory'].getHistoryTask()
+          }
           this.dialogVisible = false
           this.$message({
             type: 'success',
@@ -1810,7 +1812,9 @@ export default {
               message: res.data.message
             })
             this.initDatas()
-            this.$refs['WfHistory'].$forceUpdate()
+            if (this.$refs['WfHistory']) {
+                this.$refs['WfHistory'].getHistoryTask()
+              }
           } else {
             this.$message({
               type: 'warning',

+ 6 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/goodsedit.vue

@@ -1976,7 +1976,9 @@ export default {
         if (res.data.code === 0) {
           // 保存成功后,初始化数据,变成修改
           this.initDatas()
-          this.$refs['WfHistory'].$forceUpdate()
+          if (this.$refs['WfHistory']) {
+            this.$refs['WfHistory'].getHistoryTask()
+          }
           this.dialogVisible = false
           this.$message({
             type: 'success',
@@ -2017,7 +2019,9 @@ export default {
               message: res.data.message
             })
             this.initDatas()
-            this.$refs['WfHistory'].$forceUpdate()
+            if (this.$refs['WfHistory']) {
+                this.$refs['WfHistory'].getHistoryTask()
+              }
           } else {
             this.$message({
               type: 'warning',

+ 6 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/techedit.vue

@@ -1710,7 +1710,9 @@ export default {
             message: res.data.message
           })
           this.initDatas()
-          this.$refs['WfHistory'].$forceUpdate()
+          if (this.$refs['WfHistory']) {
+            this.$refs['WfHistory'].getHistoryTask()
+          }
         } else {
           this.$message({
             type: 'warning',
@@ -1842,7 +1844,9 @@ export default {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
             this.initDatas()
-            this.$refs['WfHistory'].$forceUpdate()
+            if (this.$refs['WfHistory']) {
+                this.$refs['WfHistory'].getHistoryTask()
+              }
             this.dialogVisibleCom = false
             this.$message({
               type: 'success',

+ 3 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/basisdataopera.vue

@@ -2003,7 +2003,9 @@
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
             this.getEntityById()
-            this.$refs['WfHistory'].$forceUpdate()
+            if (this.$refs['WfHistory']) {
+              this.$refs['WfHistory'].getHistoryTask()
+            }
             this.dialogComSubmitToSeparateUnitVisible = false
             this.$message({
               type: 'success',

+ 6 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/goodsdataopera.vue

@@ -3323,7 +3323,9 @@
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
             this.getEntityById()
-            this.$refs['WfHistory'].$forceUpdate()
+            if (this.$refs['WfHistory']) {
+              this.$refs['WfHistory'].getHistoryTask()
+            }
             this.dialogSeparateUnitAuditVisible = false
             this.$message({
               type: 'success',
@@ -3413,7 +3415,9 @@
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
             this.getEntityById()
-            this.$refs['WfHistory'].$forceUpdate()
+            if (this.$refs['WfHistory']) {
+                this.$refs['WfHistory'].getHistoryTask()
+              }
             this.dialogComSubmitToSeparateUnitVisible = false
             this.$message({
               type: 'success',

+ 6 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/techdataopera.vue

@@ -2360,7 +2360,9 @@
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
             this.getEntityById()
-            this.$refs['WfHistory'].$forceUpdate()
+            if (this.$refs['WfHistory']) {
+                this.$refs['WfHistory'].getHistoryTask()
+              }
             this.dialogSeparateUnitAuditVisible = false
             this.$message({
               type: 'success',
@@ -2447,7 +2449,9 @@
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
             this.getEntityById()
-            this.$refs['WfHistory'].$forceUpdate()
+            if (this.$refs['WfHistory']) {
+              this.$refs['WfHistory'].getHistoryTask()
+            }
             this.dialogComSubmitToSeparateUnitVisible = false
             this.$message({
               type: 'success',

+ 6 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierstorage/_opera/basisedit.vue

@@ -512,7 +512,9 @@
         apiCert.backStatus(this.formData.CertId, params, this.$axios).then(res => {
           this.dialogVisibleBack = false
           this.initDatas()
-          this.$refs['WfHistory'].$forceUpdate()
+          if (this.$refs['WfHistory']) {
+                this.$refs['WfHistory'].getHistoryTask()
+              }
           console.log('已强制刷新历史审批流程')
           if (res.data.code === 0) {
             this.$message({
@@ -597,7 +599,9 @@
           }
           tepApi.updateIsStorage(this.certId, params, this.$axios).then(res => {
             this.initDatas()
-            this.$refs['WfHistory'].$forceUpdate()
+            if (this.$refs['WfHistory']) {
+              this.$refs['WfHistory'].getHistoryTask()
+            }
             console.log('已强制刷新历史审批流程')
             if (res.data.code === 0) {
               this.$message({

+ 3 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierstorage/_opera/goodsedit.vue

@@ -602,7 +602,9 @@
           tepApi.updateIsStorage(this.certId, params, this.$axios).then(res => {
             if (res.data.code === 0) {
               this.initDatas()
-              this.$refs['WfHistory'].$forceUpdate()
+              if (this.$refs['WfHistory']) {
+                this.$refs['WfHistory'].getHistoryTask()
+              }
               console.log('已强制刷新历史审批流程')
               this.$message({
                 type: 'success',

+ 6 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierstorage/_opera/techedit.vue

@@ -520,7 +520,9 @@
         apiCert.backStatus(this.formData.CertId, params, this.$axios).then(res => {
           this.dialogVisibleBack = false
           this.initDatas()
-          this.$refs['WfHistory'].$forceUpdate()
+          if (this.$refs['WfHistory']) {
+                this.$refs['WfHistory'].getHistoryTask()
+              }
           console.log('已强制刷新历史审批流程')
           if (res.data.code === 0) {
             this.$message({
@@ -607,7 +609,9 @@
           tepApi.updateIsStorage(this.certId, params, this.$axios).then(res => {
             if (res.data.code === 0) {
               this.initDatas()
-              this.$refs['WfHistory'].$forceUpdate()
+              if (this.$refs['WfHistory']) {
+                this.$refs['WfHistory'].getHistoryTask()
+              }
               console.log('已强制刷新历史审批流程')
               this.$message({
                 type: 'success',