fix: Application history log interface loading status display error (#2151)
This commit is contained in:
parent
a3d6083188
commit
06feeecedc
@ -277,7 +277,7 @@
|
|||||||
</LayoutContainer>
|
</LayoutContainer>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted, reactive, computed } from 'vue'
|
import { ref, type Ref, onMounted, reactive, computed } from 'vue'
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
import { cloneDeep } from 'lodash'
|
import { cloneDeep } from 'lodash'
|
||||||
import ChatRecordDrawer from './component/ChatRecordDrawer.vue'
|
import ChatRecordDrawer from './component/ChatRecordDrawer.vue'
|
||||||
@ -507,11 +507,13 @@ function getList() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDetail() {
|
function getDetail(isLoading = false) {
|
||||||
application.asyncGetApplicationDetail(id as string, loading).then((res: any) => {
|
application
|
||||||
detail.value = res.data
|
.asyncGetApplicationDetail(id as string, isLoading ? loading : undefined)
|
||||||
days.value = res.data.clean_time
|
.then((res: any) => {
|
||||||
})
|
detail.value = res.data
|
||||||
|
days.value = res.data.clean_time
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const exportLog = () => {
|
const exportLog = () => {
|
||||||
@ -562,7 +564,7 @@ function saveCleanTime() {
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
MsgSuccess(t('common.saveSuccess'))
|
MsgSuccess(t('common.saveSuccess'))
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
getDetail()
|
getDetail(true)
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user