Kaynağa Gözat

fix: 列表操作刷新

zh 2 yıl önce
ebeveyn
işleme
3424960923
1 değiştirilmiş dosya ile 8 ekleme ve 4 silme
  1. 8 4
      src/views/supply/engin/commerce_list.vue

+ 8 - 4
src/views/supply/engin/commerce_list.vue

@@ -258,7 +258,6 @@ export default {
                 <el-popconfirm
                   onOnConfirm={async () => {
                     this.handleSubmit(row.parentId, row)
-                    this.$refs.pageRef.refreshList()
 
                   }}
                   title="是否确定需要申请该项内容?"
@@ -275,7 +274,6 @@ export default {
                 <el-popconfirm
                   onOnConfirm={async () => {
                     this.handleWithdraw(row.parentId, row)
-                    this.$refs.pageRef.refreshList()
 
                   }}
                   title="是否确定需要撤回该项内容?"
@@ -292,7 +290,6 @@ export default {
                 <el-popconfirm
                   onOnConfirm={async () => {
                     this.handleAbandon(row.parentId, row)
-                    this.$refs.pageRef.refreshList()
 
                   }}
                   title="是否确定需要弃审该项内容?"
@@ -361,7 +358,6 @@ export default {
                 <el-popconfirm
                   onOnConfirm={async () => {
                     this.handleDelete(row.parentId, row)
-                    this.$refs.pageRef.refreshList()
 
                   }}
                   title="是否确定需要删除该项内容?"
@@ -511,6 +507,8 @@ export default {
     handleSubmit(id, row) {
       applyCom({ id, refEnginRecordNo: row.refEnginRecordNo }).then(res => {
         this.$successMsg()
+        this.$refs.pageRef.refreshList()
+
         this.getList()
       })
     },
@@ -519,6 +517,8 @@ export default {
     handleWithdraw(id, row) {
       withdrawCom({ id, refEnginRecordNo: row.refEnginRecordNo }).then(res => {
         this.$successMsg()
+        this.$refs.pageRef.refreshList()
+
         this.getList()
       })
     },
@@ -527,6 +527,8 @@ export default {
     handleAbandon(id, row) {
       abandonCom({ id, refEnginRecordNo: row.refEnginRecordNo }).then(res => {
         this.$successMsg()
+        this.$refs.pageRef.refreshList()
+
         this.getList()
       })
     },
@@ -535,6 +537,8 @@ export default {
     handleDelete(id) {
       deleteCom({ ids: id }).then(res => {
         this.$successMsg()
+        this.$refs.pageRef.refreshList()
+
         this.getList()
       })
     },