update 更新记录加empty

This commit is contained in:
赵霄
2023-11-10 19:46:30 +08:00
parent 816a87981b
commit 8e69213678
2 changed files with 13 additions and 7 deletions
@@ -9,9 +9,12 @@
@cancel="handleCancel"> @cancel="handleCancel">
<a-spin :spinning="confirmLoading"> <a-spin :spinning="confirmLoading">
<div class="record-item" v-for="record in recordList" :key="record.id"> <template v-if="recordList && recordList.length > 0">
{{ record.content }} <div class="record-item" v-for="record in recordList" :key="record.id">
</div> {{ record.content }}
</div>
</template>
<a-empty v-else />
</a-spin> </a-spin>
<template v-slot:footer> <template v-slot:footer>
@@ -9,9 +9,12 @@
@cancel="handleCancel"> @cancel="handleCancel">
<a-spin :spinning="confirmLoading"> <a-spin :spinning="confirmLoading">
<div class="record-item" v-for="record in recordList" :key="record.id"> <template v-if="recordList && recordList.length > 0">
{{ record.content }} <div class="record-item" v-for="record in recordList" :key="record.id">
</div> {{ record.content }}
</div>
</template>
<a-empty v-else/>
</a-spin> </a-spin>
<template v-slot:footer> <template v-slot:footer>
@@ -40,7 +43,7 @@ export default {
}, },
initRecord (standardNumber) { initRecord (standardNumber) {
this.confirmLoading = true this.confirmLoading = true
getDomesticStandardUpdateRecord({standardNumber}).then(res => { getDomesticStandardUpdateRecord({ standardNumber }).then(res => {
if (res.success) { if (res.success) {
this.recordList = res.result || [] this.recordList = res.result || []
} else { } else {