服务配置项目系统里删除与批量删除做处理

dev_2022-03-03
e 3 years ago
parent 726898532d
commit 24d220c80a
  1. 10
      src/views/serve/projectList.vue

@ -278,8 +278,14 @@ export default {
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$post(`${this.api.deleteProjectManage}?projectIds=${ids}&platformId=${this.queryData.platformId}`).then(res => { this.$post(`${this.api.deleteProjectManage}?projectIds=${ids}&platformId=${this.queryData.platformId}`).then(res => {
if (res.status === 200) { console.log(ids)
let delList = ids.split(',') if (res.status == 200) {
let delList = []
if (isNaN(ids) == 'NaN'){
delList = ids.split(',')
}else{
delList.push(ids)
}
if(delList.length == this.listData.length){ if(delList.length == this.listData.length){
if(this.page > 1){ if(this.page > 1){
this.page = this.page-1 this.page = this.page-1

Loading…
Cancel
Save