Skip to content

Commit

Permalink
feat:允许编辑默认扫描方案 TencentBlueKing#1407 (TencentBlueKing#1409)
Browse files Browse the repository at this point in the history
  • Loading branch information
lannoy0523 authored Nov 10, 2023
1 parent ff7cf80 commit 089b678
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<template #default="{ row }">
<operation-list
:list="[
!row.readOnly && { label: $t('setting'), clickEvent: () => showScanConfig(row) },
{ label: $t('setting'), clickEvent: () => showScanConfig(row) },
{ label: $t('suspend'), clickEvent: () => stopScanHandler(row) },
!row.readOnly && { label: $t('scanImmediately'), clickEvent: () => startScanHandler(row) },
!row.readOnly && { label: $t('delete'), clickEvent: () => deleteScanHandler(row) }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="scan-config-container" v-bkloading="{ isLoading }">
<bk-tab class="scan-config-tab page-tab" type="unborder-card" :active.sync="tabName">
<bk-tab-panel name="baseInfo" :label="$t('baseSetting')">
<bk-tab-panel name="baseInfo" :label="$t('baseSetting')" v-if="!scanBaseInfo.readOnly">
<bk-form :label-width="120">
<bk-form-item :label="$t('schemeName')">
<bk-input class="w250" v-model.trim="scanBaseInfo.name" maxlength="32" show-word-limit></bk-input>
Expand All @@ -21,7 +21,7 @@
</bk-form-item>
</bk-form>
</bk-tab-panel>
<bk-tab-panel render-directive="if" name="autoConfig" :label="$t('monitorSettings')">
<bk-tab-panel render-directive="if" name="autoConfig" :label="$t('monitorSettings')" v-if="!scanBaseInfo.readOnly">
<auto-scan-config :data="scanBaseInfo" @save="ajaxSaveConfig"></auto-scan-config>
</bk-tab-panel>
<bk-tab-panel render-directive="if" name="qualityRule" :label="$t('qualityRules')">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</bk-date-picker>
<bk-button class="mr10" theme="default" @click="stopScanHandler">{{ $t('abortScan') }}</bk-button>
<bk-button v-if="!scanPlan.readOnly" class="mr10" theme="default" @click="startScanHandler">{{ $t('scanImmediately') }}</bk-button>
<bk-button v-if="!scanPlan.readOnly" theme="default" @click="scanSettingHandler">{{ $t('setting') }}</bk-button>
<bk-button theme="default" @click="scanSettingHandler">{{ $t('setting') }}</bk-button>
</div>
</div>
<div class="mt10 flex-align-center">
Expand Down

0 comments on commit 089b678

Please sign in to comment.