|
|
@ -400,6 +400,15 @@ Page({ |
|
|
|
}, deviceidx, itemidx); |
|
|
|
}, |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 删除图片
|
|
|
|
deleteImg: function (e) { |
|
|
|
const { deviceidx, itemidx, index } = e.currentTarget.dataset; |
|
|
|
let imgs = this.data.inspectContentArr[deviceidx].checkItems[itemidx].imgs; |
|
|
|
imgs.splice(index, 1); |
|
|
|
let nextInspectContentArr = this.data.inspectContentArr; |
|
|
|
nextInspectContentArr[deviceidx].checkItems[itemidx].imgs = imgs; |
|
|
|
this.setData({ inspectContentArr: nextInspectContentArr }) |
|
|
|
}, |
|
|
|
// 巡查详情
|
|
|
|
bindInput: function (e) { |
|
|
|