|
@@ -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('更新排序失败')
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
},
|