licp
2024-04-24 70b128785737df0d6065b09a75cf79b49efe22fa
src/components/tool/value-table.vue
@@ -892,6 +892,15 @@
               }
            }
            this.addLoad = true
        this.upHead.forEach((item,index)=>{
          if(this.data.cascaderField&&this.data.cascaderField[item.label]){
            if(this.upData[item.label]){
              this.upData[item.label] = this.upData[item.label].join(',');
            }else{
              this.upData[item.label] = ''
            }
          }
        })
            this.$axios.post(this.addUrl, this.upData, {
               headers: {
                  'Content-Type': 'application/json'
@@ -1050,7 +1059,7 @@
            return count * 15 + 60 + 'px'
         },
      handleSuccessUp(response,label){
        if(label){
        if(typeof label === 'string'){
          if(response.code==200){
            this.upData[label] = response.data.url;
          }
@@ -1067,14 +1076,13 @@
      // 批量删除
      batchDelete(){
        if(this.multipleSelection&&this.multipleSelection.length>0){
          // this.delUrl
          this.$confirm('是否删除选中的数据?', "警告", {
                     confirmButtonText: "确定",
                     cancelButtonText: "取消",
                     type: "warning"
                  }).then(() => {
                     this.$axios.post(this.delUrl, {
                        id: this.multipleSelection.map(item => item.id).join(',')
                        ids: JSON.stringify(this.multipleSelection.map(item => item.id))
                     }).then(res => {
                        if (res.code === 201) {
                           return