新增商品列表拖拽排序

This commit is contained in:
gyq
2024-06-06 09:13:37 +08:00
parent 526aeda953
commit 192c37c946
6 changed files with 74 additions and 13 deletions

View File

@@ -18,8 +18,8 @@
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary">查询</el-button>
<el-button>重置</el-button>
<el-button type="primary" @click="getTableData">查询</el-button>
<el-button @click="resetHandle">重置</el-button>
</el-form-item>
</el-form>
</div>
@@ -122,8 +122,10 @@ export default {
methods: {
// 重置查询
resetHandle() {
this.tableData.page = 0;
this.tableData.page = 0
this.query.name = ''
this.query.telphone = ''
this.query.status = 1
this.getTableData()
},
// 分页回调
@@ -133,8 +135,8 @@ export default {
},
// 获取商品列表
async getTableData() {
this.tableData.loading = true
try {
this.tableData.loading = true
const res = await storageList({
...this.query,
page: this.tableData.page,