feat: 修改商品分类排序功能
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
<myDialog title="选择商品" width="50%" ref="myDialogRef" @Confirm="subitgood">
|
||||
<page-search ref="searchRef" :search-config="searchConfig" @query-click="handleQueryClick"
|
||||
@reset-click="handleResetClick" />
|
||||
<page-content ref="contentRef" :content-config="contentConfig" @filter-change="handleFilterChange">
|
||||
<page-content ref="contentRef" v-if="switchref" :content-config="contentConfig"
|
||||
@filter-change="handleFilterChange">
|
||||
<template #status="scope">
|
||||
<el-tag :type="scope.row[scope.prop] == 1 ? 'success' : 'info'">
|
||||
{{ scope.row[scope.prop] == 1 ? "启用" : "禁用" }}
|
||||
@@ -43,13 +44,16 @@ const {
|
||||
handleFilterChange,
|
||||
} = usePage();
|
||||
let myDialogRef: any = ref(null)
|
||||
let switchref = ref(false)
|
||||
function opens() {
|
||||
switchref.value = true
|
||||
myDialogRef.value.open()
|
||||
}
|
||||
const emit = defineEmits(['success'])
|
||||
// 添加商品的回调
|
||||
function subitgood() {
|
||||
emit('success', contentRef.value?.getselectTable())
|
||||
switchref.value = false
|
||||
myDialogRef.value.close()
|
||||
}
|
||||
defineExpose({ opens })
|
||||
|
||||
Reference in New Issue
Block a user