style: 网元软件代码优化
This commit is contained in:
@@ -68,7 +68,7 @@ export function delNeSoftware(softwareIds: string | number) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 网元软件包设为网元新版本
|
* 网元软件包设为网元新版本
|
||||||
* @param data { "version": "2.2404.18", "neType": "SMF", "name": "smf-r2.2404.18-ub22.deb"}
|
* @param data data { "version": "2.2404.18", "neType": "SMF", "name": "smf-r2.2404.18-ub22.deb"}
|
||||||
* @returns object
|
* @returns object
|
||||||
*/
|
*/
|
||||||
export function newNeVersion(data: Record<string, any>) {
|
export function newNeVersion(data: Record<string, any>) {
|
||||||
|
|||||||
@@ -784,7 +784,7 @@ export default {
|
|||||||
installSourceOption: 'Uploaded',
|
installSourceOption: 'Uploaded',
|
||||||
installSourceUpload: 'New Upload',
|
installSourceUpload: 'New Upload',
|
||||||
installSelect: 'Select Record',
|
installSelect: 'Select Record',
|
||||||
installUpload: 'Upload file',
|
installUpload: 'Upload File',
|
||||||
installText: 'Installed',
|
installText: 'Installed',
|
||||||
licenseTitle: "Licenses",
|
licenseTitle: "Licenses",
|
||||||
licenseDesc: "Network element service authorization certification",
|
licenseDesc: "Network element service authorization certification",
|
||||||
|
|||||||
@@ -157,6 +157,12 @@ type StateType = {
|
|||||||
optionType: 'upload' | 'option';
|
optionType: 'upload' | 'option';
|
||||||
/**文件上传 */
|
/**文件上传 */
|
||||||
visibleByFile: boolean;
|
visibleByFile: boolean;
|
||||||
|
/**
|
||||||
|
* 依赖包类型
|
||||||
|
* IMS-rtproxy/mf/adb
|
||||||
|
* UDM-adb
|
||||||
|
*/
|
||||||
|
depType: string[];
|
||||||
/**软件包信息数据 */
|
/**软件包信息数据 */
|
||||||
from: {
|
from: {
|
||||||
neType: string; // 版本需要
|
neType: string; // 版本需要
|
||||||
@@ -175,6 +181,7 @@ let state: StateType = reactive({
|
|||||||
stepNext: false,
|
stepNext: false,
|
||||||
optionType: 'option',
|
optionType: 'option',
|
||||||
visibleByFile: false,
|
visibleByFile: false,
|
||||||
|
depType: [],
|
||||||
from: {
|
from: {
|
||||||
id: undefined,
|
id: undefined,
|
||||||
neType: '',
|
neType: '',
|
||||||
@@ -199,6 +206,11 @@ function fnOptionTypeChange() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**对话框弹出 */
|
||||||
|
function fnModalOpen() {
|
||||||
|
state.visibleByFile = !state.visibleByFile;
|
||||||
|
}
|
||||||
|
|
||||||
/**对话框弹出确认执行函数*/
|
/**对话框弹出确认执行函数*/
|
||||||
function fnModalOk(e: any) {
|
function fnModalOk(e: any) {
|
||||||
Object.assign(state.from, e, { id: '' });
|
Object.assign(state.from, e, { id: '' });
|
||||||
@@ -320,6 +332,7 @@ onMounted(() => {
|
|||||||
</a-radio-button>
|
</a-radio-button>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|
||||||
<!-- 选择已上传 -->
|
<!-- 选择已上传 -->
|
||||||
<template v-if="state.optionType === 'option'">
|
<template v-if="state.optionType === 'option'">
|
||||||
<a-form-item
|
<a-form-item
|
||||||
@@ -367,12 +380,9 @@ onMounted(() => {
|
|||||||
name="upload"
|
name="upload"
|
||||||
:help="state.from.name"
|
:help="state.from.name"
|
||||||
>
|
>
|
||||||
<a-button
|
<a-button type="primary" @click.prevent="fnModalOpen()">
|
||||||
type="primary"
|
<template #icon><UploadOutlined /></template>
|
||||||
@click.prevent="() => (state.visibleByFile = !state.visibleByFile)"
|
{{ t('views.ne.neSoftware.upload') }}
|
||||||
>
|
|
||||||
<template #icon><PlusOutlined /></template>
|
|
||||||
{{ t('common.addText') }}
|
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user