mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
perf: update task process loading
This commit is contained in:
@@ -82,7 +82,7 @@ export default {
|
||||
},
|
||||
{
|
||||
prop: 'address',
|
||||
label: this.$t('IpDomain'),
|
||||
label: this.$t('IPDomain'),
|
||||
sortable: 'custom'
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user