|
|
@@ -404,7 +404,7 @@ Component({
|
|
|
}
|
|
|
this.setData({
|
|
|
form: form,
|
|
|
- contentObj:contentObj
|
|
|
+ contentObj: contentObj
|
|
|
})
|
|
|
},
|
|
|
/**
|
|
|
@@ -414,7 +414,7 @@ Component({
|
|
|
*/
|
|
|
blurField(e) {
|
|
|
this.setData({
|
|
|
- value:JSON.stringify(this.data.form)
|
|
|
+ value: JSON.stringify(this.data.form)
|
|
|
})
|
|
|
},
|
|
|
/**
|
|
|
@@ -687,6 +687,21 @@ Component({
|
|
|
util.showToast('文件超出' + Constants.uploadFileConfig.maxSizeMB);
|
|
|
},
|
|
|
/**
|
|
|
+ * @desc : 删除图片
|
|
|
+ * @author : 周兴
|
|
|
+ * @date : 2024/4/29 18:16
|
|
|
+ */
|
|
|
+ deleteImg(e) {
|
|
|
+ let form = this.data.form;
|
|
|
+ let index = e.detail.index;
|
|
|
+ let arr = form['annexPaths']
|
|
|
+ arr.splice(index, 1);
|
|
|
+ this.setData({
|
|
|
+ form: form,
|
|
|
+ value: JSON.stringify(form)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ /**
|
|
|
* @desc : 上传附件
|
|
|
* @author : 周兴
|
|
|
* @date : 2024/3/27 16:16
|