|
|
@@ -171,6 +171,22 @@ Component({
|
|
|
data.list.push(v);
|
|
|
});
|
|
|
return data
|
|
|
+ },
|
|
|
+ deleteAll() {
|
|
|
+ let linksids = this.getFiles().list.map(v => v.linksid);
|
|
|
+ if (linksids.length) _Http.basic({
|
|
|
+ "classname": "system.attachment.Attachment",
|
|
|
+ "method": "deleteFileLink",
|
|
|
+ "content": {
|
|
|
+ linksids
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ console.log("删除所有未保存附件", linksids, res)
|
|
|
+ if (res.msg != '成功') return wx.showToast({
|
|
|
+ title: res.data,
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
})
|