商品分页

This commit is contained in:
duan 2024-08-06 15:05:29 +08:00
parent 0971b67010
commit 6c4e992283
1 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<template>
<div v-if="dialogVisible">
<el-dialog title="请选择" :visible.sync="dialogVisible" width="">
<el-select v-model="value" placeholder="请选择" @change="getList">
<el-select v-model="value" placeholder="请选择" @change="changeEvent">
<el-option v-for="item in options" :key="item.id" :label="item.name" :value="item.id">
<span style="float: left">{{ item.name }}</span>
<span style="float: right; color: #8492a6; font-size: 13px"><i class="el-icon-error "
@ -75,6 +75,10 @@ export default {
this.getType()
},
methods: {
changeEvent() {
this.page = 1
this.getList()
},
//
deleteType(id) {
this.$confirm('删除该类型, 是否继续?', '提示', {