update 更新记录加empty
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user