商品分类修复:

1.详情更新,列表未更新
2.开启库存后不填写库存,保存报错
3.多规格库存数量编辑权限验证
This commit is contained in:
2024-10-15 16:53:09 +08:00
parent 982bc23d3f
commit 61c455cdb7
3 changed files with 23 additions and 14 deletions

View File

@@ -96,14 +96,10 @@
import {
reactive, ref, watch
} from 'vue';
import {onShow} from '@dcloudio/uni-app'
import {onShow,onLoad} from '@dcloudio/uni-app'
import go from '@/commons/utils/go.js';
import myCategory from './components/category.vue'
import infoBox from "@/commons/utils/infoBox.js"
import myPagination from '@/components/my-components/my-pagination.vue'
import myModel from "@/components/my-components/my-model.vue"
import myButton from "@/components/my-components/my-button.vue"
import mySwitch from "@/components/my-components/my-switch.vue"
import {$productCategory} from '@/http/yskApi/goods.js'
@@ -162,9 +158,18 @@
})
pageData.totalElements=res.totalElements
}
onShow(()=>{
onLoad(()=>{
init()
})
function watchEvent(){
uni.$off('update:pageCategoryIndex')
uni.$on('update:pageCategoryIndex',(data)=>{
init()
})
}
onShow(()=>{
watchEvent()
})
function toAddCategory(){
go.to('PAGES_CATEGORY_EDIT',{type:'add'})
}