perf: update task process loading

This commit is contained in:
ibuler
2025-03-12 18:07:26 +08:00
committed by 老广
parent 33568859cd
commit f140efd326
6 changed files with 24 additions and 12 deletions

View File

@@ -82,7 +82,7 @@ export default {
},
{
prop: 'address',
label: this.$t('IpDomain'),
label: this.$t('IPDomain'),
sortable: 'custom'
},
{

View File

@@ -105,7 +105,10 @@
<template #header>
<span :title="col.label">{{ col.label }}</span>
</template>
<template v-if="col.formatter && typeof col.formatter !== 'function'" v-slot:default="{row, column, $index}">
<template
v-if="col.formatter && typeof col.formatter !== 'function'"
v-slot:default="{row, column, $index}"
>
<div
:is="col.formatter"
:key="row.id"
@@ -1033,7 +1036,7 @@ export default {
// 开启persistSelection时需要同步selected状态到el-table中
this.$nextTick(() => {
this.selectStrategy.updateElTableSelection()
this.selectStrategy?.updateElTableSelection()
})
})
.catch(err => {

View File

@@ -12,7 +12,11 @@
:visible.sync="batchResolveDialog.visible"
v-bind="batchResolveDialog"
/>
<RiskScanDialog v-if="detectDialog.visible" :asset="detectDialog.asset" :visible.sync="detectDialog.visible" />
<RiskScanDialog
v-if="detectDialog.visible"
:asset="detectDialog.asset"
:visible.sync="detectDialog.visible"
/>
</div>
</template>

View File

@@ -16,14 +16,19 @@
:cell-value="fakeCell"
:changed="changed"
:row="fakeRow"
:selected-rows="selectedRows"
:rows="tableConfig.totalData"
:selected-rows="selectedRows"
:value="1"
class="risk-handler"
@processDone="handleProcessDone"
/>
</el-form>
<DataTable ref="table" :config="tableConfig" v-on="$listeners" @selection-change="handleSelectionChange" />
<DataTable
ref="table"
:config="tableConfig"
v-on="$listeners"
@selection-change="handleSelectionChange"
/>
</div>
</Dialog>
</template>

View File

@@ -1,6 +1,5 @@
<template>
<Dialog
v-if="iVisible"
:destroy-on-close="true"
:show-cancel="false"
:show-confirm="false"
@@ -10,8 +9,9 @@
width="80%"
@close="loading=true"
>
<span v-if="loading" v-loading="loading" class="loading" />
<iframe :src="url" frameborder="0" @load="onIframeLoad" />
<div v-loading="loading">
<iframe :src="url" frameborder="0" @load="onIframeLoad" />
</div>
</Dialog>
</template>

View File

@@ -1,7 +1,6 @@
<template>
<div>
<Dialog
v-if="iVisible"
:destroy-on-close="true"
:show-cancel="false"
:show-confirm="false"
@@ -11,8 +10,9 @@
width="80%"
@close="loading=true"
>
<span v-if="loading" v-loading="loading" class="loading" />
<iframe title="dialog" :src="url" style="border: none;" @load="onIframeLoad" />
<div v-loading="loading">
<iframe :src="url" style="border: none;" title="dialog" @load="onIframeLoad" />
</div>
</Dialog>
</div>
</template>