增加修改分组名称,增加分组商品编辑权限验证

This commit is contained in:
2024-10-09 17:29:39 +08:00
parent 79255c2c94
commit 01610734c7
3 changed files with 24 additions and 9 deletions

View File

@@ -8,11 +8,11 @@
</view>
</view>
<view class="u-m-t-36">
<view>修改排序</view>
<view>修改分组名称</view>
<view class="u-m-t-38">
<view class="u-m-b-32">
<view class="u-m-t-16">
<up-input v-model="sort">
<up-input v-model="name">
</up-input>
</view>
</view>
@@ -59,7 +59,7 @@
item: {
type: Object,
default: () => {
sort:''
name:''
}
}
})
@@ -74,10 +74,10 @@
note: ''
})
let popShow = ref(props.show)
let sort=ref('')
let name=ref('')
watch(()=>props.item.sort,(newval)=>{
sort.value=newval
watch(()=>props.item.name,(newval)=>{
name.value=newval
})
watch(() => props.show, (newval) => {
@@ -105,7 +105,7 @@
function save() {
emits('save', {
...data.value,
sort:sort.value
name:name.value
})
}
</script>