fix: 网元授权上传进行重启网元
This commit is contained in:
@@ -35,6 +35,11 @@ const props = defineProps({
|
|||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
/**是否重启服务 */
|
||||||
|
reload: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
/**对话框对象信息状态类型 */
|
/**对话框对象信息状态类型 */
|
||||||
@@ -220,6 +225,7 @@ function fnModalVisibleById(id: string) {
|
|||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
Object.assign(modalState.from, res.data);
|
Object.assign(modalState.from, res.data);
|
||||||
modalState.from.licensePath = '';
|
modalState.from.licensePath = '';
|
||||||
|
modalState.from.reload = props.reload;
|
||||||
modalState.title = t('views.ne.neLicense.updateTtile');
|
modalState.title = t('views.ne.neLicense.updateTtile');
|
||||||
modalState.visibleByEdit = true;
|
modalState.visibleByEdit = true;
|
||||||
} else {
|
} else {
|
||||||
@@ -244,6 +250,7 @@ function fnModalVisibleByTypeAndId(neType: string, neId: string) {
|
|||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
Object.assign(modalState.from, res.data);
|
Object.assign(modalState.from, res.data);
|
||||||
modalState.from.licensePath = '';
|
modalState.from.licensePath = '';
|
||||||
|
modalState.from.reload = props.reload;
|
||||||
modalState.title = t('views.ne.neLicense.updateTtile');
|
modalState.title = t('views.ne.neLicense.updateTtile');
|
||||||
modalState.visibleByEdit = true;
|
modalState.visibleByEdit = true;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { Modal } from 'ant-design-vue/lib';
|
import { Modal } from 'ant-design-vue/lib';
|
||||||
import { defineAsyncComponent, onMounted, onUnmounted, reactive } from 'vue';
|
import { defineAsyncComponent, onMounted, onUnmounted, reactive } from 'vue';
|
||||||
import { fnRestStepState, fnToStepName, stepState } from '../hooks/useStep';
|
import { fnRestStepState, stepState } from '../hooks/useStep';
|
||||||
import useI18n from '@/hooks/useI18n';
|
import useI18n from '@/hooks/useI18n';
|
||||||
import { codeNeLicense, stateNeLicense } from '@/api/ne/neLicense';
|
import { codeNeLicense, stateNeLicense } from '@/api/ne/neLicense';
|
||||||
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
||||||
@@ -79,7 +79,7 @@ function fnModalCancel() {
|
|||||||
function fnStepEnd() {
|
function fnStepEnd() {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: t('common.tipTitle'),
|
title: t('common.tipTitle'),
|
||||||
content: '确认要结束安装吗?',
|
content: t('views.ne.neQuickSetup.licenseEndTip'),
|
||||||
onOk() {
|
onOk() {
|
||||||
fnRestStepState();
|
fnRestStepState();
|
||||||
},
|
},
|
||||||
@@ -151,11 +151,12 @@ onUnmounted(() => {
|
|||||||
</div>
|
</div>
|
||||||
</a-result>
|
</a-result>
|
||||||
|
|
||||||
<!-- 文件上传框 -->
|
<!-- 许可证上传框 -->
|
||||||
<EditModal
|
<EditModal
|
||||||
v-model:visible="state.visibleByFile"
|
v-model:visible="state.visibleByFile"
|
||||||
:ne-type="state.from.neType"
|
:ne-type="state.from.neType"
|
||||||
:ne-id="state.from.neId"
|
:ne-id="state.from.neId"
|
||||||
|
:reload="true"
|
||||||
@ok="fnModalOk"
|
@ok="fnModalOk"
|
||||||
@cancel="fnModalCancel"
|
@cancel="fnModalCancel"
|
||||||
></EditModal>
|
></EditModal>
|
||||||
|
|||||||
Reference in New Issue
Block a user