NEZ-2622 fix: Agents关闭Download时弹出Download agent

This commit is contained in:
zhangyu
2023-03-01 11:20:25 +08:00
parent 84c32e0538
commit 1af51a16af

View File

@@ -57,7 +57,7 @@
<agent-box v-if="rightBox.show" :agent="object" @close="closeRightBox"></agent-box> <agent-box v-if="rightBox.show" :agent="object" @close="closeRightBox"></agent-box>
</transition> </transition>
<el-dialog :title="$t('guide.downloadAgent')" :visible.sync="showAgentDownload" :append-to-body="false" class="nz-dialog agent-dialog no-transform-dialog" width="800px" @close="closeDialog"> <el-dialog :title="$t('guide.downloadAgent')" :visible.sync="showAgentDownload" :append-to-body="false" class="nz-dialog agent-dialog no-transform-dialog" width="800px" @close="closeDialog">
<div v-if="showAgentDownload" class="agent-box"> <div class="agent-box">
<el-form v-model="agentParam" class="right-box-form right-box-form-left" label-position = "top" label-width="120px" size="small" style="width: 100%"> <el-form v-model="agentParam" class="right-box-form right-box-form-left" label-position = "top" label-width="120px" size="small" style="width: 100%">
<div class="right-box-sub-title">{{$t('overall.download')}}</div> <div class="right-box-sub-title">{{$t('overall.download')}}</div>
<div style="margin-bottom: 20px;width: 100%"></div> <div style="margin-bottom: 20px;width: 100%"></div>
@@ -207,6 +207,11 @@ export default {
}, },
methods: { methods: {
toDownloadAgent: function () { toDownloadAgent: function () {
this.agentParam = {
osType: 'centos',
dc: '',
type: 1
}
this.getAllDc() this.getAllDc()
this.showAgentDownload = true this.showAgentDownload = true
this.token = localStorage.getItem('nz-token') this.token = localStorage.getItem('nz-token')