修复工作台删除数据没刷新问题与商品添加显示问题
This commit is contained in:
1 parent
631efcd616
commit
f4b3dee1dd
2 files changed
+3
-4
No files matched your search
@@ -110,7 +110,7 @@ import OrderRecord from './OrderRecord.vue'
|
|||||||
import type { TabsPaneContext } from 'element-plus'
|
import type { TabsPaneContext } from 'element-plus'
|
||||||
import { formatDate } from '@/utils/formatTime'
|
import { formatDate } from '@/utils/formatTime'
|
||||||
const message = useMessage() // 消息弹窗
|
const message = useMessage() // 消息弹窗
|
||||||
//const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
const loading = ref(true) // 列表的加载中
|
const loading = ref(true) // 列表的加载中
|
||||||
const total = ref(0) // 列表的总页数
|
const total = ref(0) // 列表的总页数
|
||||||
@@ -198,9 +198,8 @@ const handleDelete = async (id: number) => {
|
|||||||
await message.delConfirm()
|
await message.delConfirm()
|
||||||
// 发起删除
|
// 发起删除
|
||||||
await StoreOrderApi.deleteStoreOrder(id)
|
await StoreOrderApi.deleteStoreOrder(id)
|
||||||
message.success(t('common.delSuccess'))
|
|
||||||
// 刷新列表
|
// 刷新列表
|
||||||
await getList()
|
getList()
|
||||||
} catch {}
|
} catch {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
<el-form-item label="商品分类" prop="cate_id">
|
<el-form-item label="商品分类" prop="cate_id">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="formValidate.cate_id"
|
v-model="formValidate.cate_id"
|
||||||
placeholder="选择店铺"
|
placeholder="选择分类"
|
||||||
@change="selectShop"
|
@change="selectShop"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
|
|||||||
Reference in new issue
Block a user