Commit d7bfb968 by qinjianhui

fix: 页面加载添加loading

parent 5d561315
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</ElFormItem> </ElFormItem>
</ElForm> </ElForm>
</div> </div>
<div class="table-wrapper"> <div v-loading="loading" class="table-wrapper">
<TableView <TableView
serial-numberable serial-numberable
:selectionable="true" :selectionable="true"
...@@ -140,6 +140,7 @@ const handleStatusClick = (status: string) => { ...@@ -140,6 +140,7 @@ const handleStatusClick = (status: string) => {
} }
const { const {
loading,
currentPage, currentPage,
pageSize, pageSize,
total, total,
...@@ -176,6 +177,7 @@ const handleEdit = async (row?: WarehouseRuleSettingData) => { ...@@ -176,6 +177,7 @@ const handleEdit = async (row?: WarehouseRuleSettingData) => {
const res = await getWarehouseRuleSettingDetailApi(row.id) const res = await getWarehouseRuleSettingDetailApi(row.id)
if (res.code !== 200) return if (res.code !== 200) return
editFormRef.value.resetFields(res.data) editFormRef.value.resetFields(res.data)
editDialogVisible.value = true
} catch (error) { } catch (error) {
console.error(error) console.error(error)
} finally { } finally {
...@@ -183,8 +185,8 @@ const handleEdit = async (row?: WarehouseRuleSettingData) => { ...@@ -183,8 +185,8 @@ const handleEdit = async (row?: WarehouseRuleSettingData) => {
} }
} else { } else {
await editFormRef.value.resetFields() await editFormRef.value.resetFields()
editDialogVisible.value = true
} }
editDialogVisible.value = true
} }
const getSharedSpuText = (rows: WarehouseRuleSettingData[]) => 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