Fixed: Fix the issue where batch updates cannot be performed on the detection results page in risk detection

This commit is contained in:
zhaojisen
2025-03-04 16:45:00 +08:00
committed by ZhaoJiSen
parent 25b60c1f2b
commit de427b7f20
3 changed files with 5 additions and 4 deletions

View File

@@ -7,7 +7,7 @@
:table-config="tableConfig"
:tree-setting="treeSetting"
/>
<BatchResolveDialog :visible.sync="batchResolveDialog.visible" v-bind="batchResolveDialog" />
<BatchResolveDialog v-if="batchResolveDialog.visible" :visible.sync="batchResolveDialog.visible" v-bind="batchResolveDialog" />
<RiskScanDialog v-if="detectDialog.visible" :asset="detectDialog.asset" :visible.sync="detectDialog.visible" />
</div>
</template>

View File

@@ -1,6 +1,6 @@
<template>
<Dialog :destroy-on-close="true" :show-buttons="false" :title="$tc('ResolveSelected')" :visible.sync="iVisible">
<div v-if="iVisible">
<div>
<el-form class="el-form">
<el-form-item class="risk-select" prop="selected">
<el-select v-model="riskSelected" :placeholder="$t('Select risk')">
@@ -58,6 +58,7 @@ export default {
label: this.$t('Pending')
},
tableConfig: {
url: '',
totalData: [],
columns: [
{

View File

@@ -28,7 +28,7 @@
</div>
</div>
<div class="drawer-footer">
<div v-if="row.status.value === '0'">
<div v-if="row.status && row.status.value === '0'">
<el-input v-model="comment" :placeholder="$tc('PleaseEnterReason')" type="textarea" />
<span class="buttons">
<el-button size="small" type="primary" @click="handleClose">
@@ -181,7 +181,7 @@ export default {
case 'authorized_key_changed':
return this.$t('Diff') + `:
<pre>
${detail.diff}
${detail.diff}
</pre>
`
case 'long_time_password':