|
|
@@ -98,7 +98,18 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
confirmClearXj(){
|
|
|
- uni.removeStorageSync("ghsColorItem"+this.option.ghsId)
|
|
|
+
|
|
|
+ let saveInfo = uni.getStorageSync("ghsColorItem"+this.option.ghsId)
|
|
|
+ let ptItemId = this.option.ptItemId ? this.option.ptItemId : 0
|
|
|
+ if (!this.$util.isEmpty(saveInfo)) {
|
|
|
+ saveInfo.forEach((colorItem, colorIndex) => {
|
|
|
+ if (colorItem.ptItemId == ptItemId) {
|
|
|
+ saveInfo.splice(colorIndex, 1)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ uni.setStorageSync("ghsColorItem"+this.option.ghsId, saveInfo)
|
|
|
+ }
|
|
|
+
|
|
|
if(!this.$util.isEmpty(this.numList)){
|
|
|
this.numList.forEach((item,index,arr)=>{
|
|
|
arr[index]=''
|