瀏覽代碼

修改证据文献的删除时更新排序的逻辑

zhuliu 1 年之前
父節點
當前提交
37804e47a9
共有 1 個文件被更改,包括 9 次插入5 次删除
  1. 9 5
      src/views/report/InvalidResponse/components/Evidence/evidence.vue

+ 9 - 5
src/views/report/InvalidResponse/components/Evidence/evidence.vue

@@ -290,7 +290,7 @@ export default {
                 }
             )
         }
-        this.updateLiteratureOrder(data)
+        this.updateLiteratureOrder(data,true)
     },
     //编辑
     edit(row){
@@ -372,18 +372,22 @@ export default {
         this.updateLiteratureOrder(data)
     },
     //更新排序
-    async updateLiteratureOrder(dtoList){
-        if(!(await this.$permission.projectPermission(this.projectId))){
+    async updateLiteratureOrder(dtoList,type){
+        if(!(await this.$permission.projectPermission(this.projectId)) && !type){
             this.$showPermissionDialog()
             return false
         }
         this.$api.updateLiteratureOrder(dtoList).then(response=>{
             if(response.code == 200){
-                this.$message.success('更新排序成功')
+                if(!type){
+                 this.$message.success('更新排序成功')   
+                }
                 this.getList()
             }
         }).catch(error=>{
-            this.$message.error('更新排序失败')
+            if(!type){
+                this.$message.error('更新排序失败') 
+            }
         })
     }
   },