商品分类修复:
1.详情更新,列表未更新 2.开启库存后不填写库存,保存报错 3.多规格库存数量编辑权限验证
This commit is contained in:
@@ -25,20 +25,18 @@
|
||||
|
||||
<view class="u-m-t-24 u-flex u-row-between">
|
||||
<view >
|
||||
<template v-if="data.childrenList.length">
|
||||
<!-- <template v-if="data.childrenList.length">
|
||||
<view class="u-flex color-999 u-flex u-col-center" @tap="useTypeClick">
|
||||
<text class="u-font-24">{{computedUserType}} </text>
|
||||
<view class="u-flex">
|
||||
<uni-icons type="right" color="#999"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<template v-else>
|
||||
</template> -->
|
||||
<view class="u-flex">
|
||||
<view class="u-m-r-18 color-999">开关</view>
|
||||
<my-switch v-model="isShow" @change="isShowChange"></my-switch>
|
||||
</view>
|
||||
</template>
|
||||
</view>
|
||||
|
||||
<view class="u-flex no-wrap">
|
||||
@@ -54,6 +52,7 @@
|
||||
import {
|
||||
computed,
|
||||
ref,
|
||||
watch,
|
||||
watchEffect
|
||||
} from 'vue';
|
||||
import mySwitch from '@/components/my-components/my-switch.vue'
|
||||
@@ -71,7 +70,9 @@
|
||||
data: {
|
||||
type: Object,
|
||||
default: () => {
|
||||
return {}
|
||||
return {
|
||||
isShow:true
|
||||
}
|
||||
}
|
||||
},
|
||||
showChecked: {
|
||||
@@ -79,8 +80,10 @@
|
||||
default: false
|
||||
}
|
||||
})
|
||||
|
||||
let isShow=ref(props.data.isShow)
|
||||
watch(()=>props.data.isShow,(newval)=>{
|
||||
isShow.value=newval
|
||||
})
|
||||
function isShowChange(){
|
||||
console.log(isShow.value);
|
||||
emits('isShowChange',{...props.data,isShow:isShow.value})
|
||||
|
||||
Reference in New Issue
Block a user