feat: pad点单设置修复
This commit is contained in:
@@ -43,7 +43,6 @@
|
||||
<el-table-column label="自定义分类" prop="customName"></el-table-column>
|
||||
<el-table-column label="操作" width="200">
|
||||
<template v-slot="scope">
|
||||
<el-button type="text" v-if="isPcBowser">拖动排序</el-button>
|
||||
<el-button type="text" @click="editorHandle(scope.row, 1)">编辑</el-button>
|
||||
<el-popconfirm title="确定删除吗?" @confirm="delTableHandle(scope.row.id)">
|
||||
<template #reference>
|
||||
@@ -76,7 +75,7 @@ import AddPadPage from "./components/addPadPage.vue";
|
||||
import paoductCategoryApi from "@/api/product/productclassification";
|
||||
import padProdApi from "@/api/account/padProd";
|
||||
import { swapArrayEle } from "@/utils/tools.js";
|
||||
|
||||
import { ElMessage, ElNotification } from "element-plus";
|
||||
export default {
|
||||
components: {
|
||||
AddPadPage,
|
||||
@@ -101,11 +100,6 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
this.tbShopCategoryGet();
|
||||
if (this.isPcBowser) {
|
||||
this.$nextTick(() => {
|
||||
this.tableDrag();
|
||||
});
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 搜索分类
|
||||
@@ -150,8 +144,8 @@ export default {
|
||||
// 删除
|
||||
async delTableHandle(id) {
|
||||
try {
|
||||
await padProdApi.delete(id);
|
||||
this.$message.success("已删除");
|
||||
await padProdApi.delete({ id });
|
||||
ElMessage.success("已删除");
|
||||
this.getTableData();
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
@@ -171,7 +165,7 @@ export default {
|
||||
if (this.selectCatory.id) {
|
||||
this.$refs.AddPadPage.show();
|
||||
} else {
|
||||
this.$notify.error({
|
||||
ElNotification.error({
|
||||
title: "错误",
|
||||
message: "请选择分类",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user