feat: 商品规格功能调整
This commit is contained in:
55
src/components/mycomponents/shopList.vue
Normal file
55
src/components/mycomponents/shopList.vue
Normal file
@@ -0,0 +1,55 @@
|
||||
<template>
|
||||
<!-- 新增添加商品 -->
|
||||
<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">
|
||||
<template #status="scope">
|
||||
<el-tag :type="scope.row[scope.prop] == 1 ? 'success' : 'info'">
|
||||
{{ scope.row[scope.prop] == 1 ? "启用" : "禁用" }}
|
||||
</el-tag>
|
||||
</template>
|
||||
<template #gender="scope">
|
||||
<DictLabel v-model="scope.row[scope.prop]" code="gender" />
|
||||
</template>
|
||||
<template #timemanagement="scope">
|
||||
{{ scope.row.startTime }}-{{ scope.row.endTime }}
|
||||
</template>
|
||||
<template #mobile="scope">
|
||||
<el-text>{{ scope.row[scope.prop] }}</el-text>
|
||||
<copy-button v-if="scope.row[scope.prop]" :text="scope.row[scope.prop]" style="margin-left: 2px" />
|
||||
</template>
|
||||
</page-content>
|
||||
</myDialog>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import myDialog from '@/components/mycomponents/myDialog.vue'
|
||||
import usePage from "@/components/CURD/usePage";
|
||||
import searchConfig from "./shopListconfig/search"
|
||||
import contentConfig from "./shopListconfig/content2";
|
||||
|
||||
const {
|
||||
searchRef,
|
||||
contentRef,
|
||||
addModalRef,
|
||||
editModalRef,
|
||||
handleQueryClick,
|
||||
handleResetClick,
|
||||
// handleAddClick,
|
||||
// handleEditClick,
|
||||
handleSubmitClick,
|
||||
handleExportClick,
|
||||
handleSearchClick,
|
||||
handleFilterChange,
|
||||
} = usePage();
|
||||
let myDialogRef: any = ref(null)
|
||||
function opens() {
|
||||
myDialogRef.value.open()
|
||||
}
|
||||
// 添加商品的回调
|
||||
function subitgood() {
|
||||
// selectData.value = contentRefs.value.getselectTable()
|
||||
// myDialogRef.value.close()
|
||||
}
|
||||
defineExpose({ opens })
|
||||
</script>
|
||||
Reference in New Issue
Block a user