Commit d7bfb968 by qinjianhui

fix: 页面加载添加loading

parent 5d561315
......@@ -70,7 +70,7 @@
</ElFormItem>
</ElForm>
</div>
<div class="table-wrapper">
<div v-loading="loading" class="table-wrapper">
<TableView
serial-numberable
:selectionable="true"
......@@ -140,6 +140,7 @@ const handleStatusClick = (status: string) => {
}
const {
loading,
currentPage,
pageSize,
total,
......@@ -176,6 +177,7 @@ const handleEdit = async (row?: WarehouseRuleSettingData) => {
const res = await getWarehouseRuleSettingDetailApi(row.id)
if (res.code !== 200) return
editFormRef.value.resetFields(res.data)
editDialogVisible.value = true
} catch (error) {
console.error(error)
} finally {
......@@ -183,8 +185,8 @@ const handleEdit = async (row?: WarehouseRuleSettingData) => {
}
} else {
await editFormRef.value.resetFields()
editDialogVisible.value = true
}
editDialogVisible.value = true
}
const getSharedSpuText = (rows: WarehouseRuleSettingData[]) =>
[
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment