From 91b0174402dc5c993a3fc506d89bae7ba1e0ce99 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期二, 23 四月 2024 18:04:52 +0800 Subject: [PATCH] 完成消息列表接口对接 --- src/components/tool/value-table.vue | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/tool/value-table.vue b/src/components/tool/value-table.vue index fb6ba2f..c71e5ca 100644 --- a/src/components/tool/value-table.vue +++ b/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' @@ -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 -- Gitblit v1.9.3