ref: v3变更,,api路由调整
This commit is contained in:
@@ -8,11 +8,12 @@ import useDictStore from '@/store/modules/dict';
|
||||
import { listNeVersion, operateNeVersion } from '@/api/ne/neVersion';
|
||||
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
||||
import { NE_TYPE_LIST } from '@/constants/ne-constants';
|
||||
import { currentCoreUid } from '@/hooks/useCoreUid';
|
||||
const { t } = useI18n();
|
||||
const { getDict } = useDictStore();
|
||||
|
||||
const UploadMoreFile = defineAsyncComponent(
|
||||
() => import('../../../ne/neSoftware/components/UploadMoreFile.vue')
|
||||
() => import('@/views/ne/neSoftware/components/UploadMoreFile.vue')
|
||||
);
|
||||
|
||||
/**字典数据-状态 */
|
||||
@@ -28,7 +29,7 @@ let tableColumns = ref<TableColumnsType>([
|
||||
},
|
||||
{
|
||||
title: t('views.ne.common.neUid'),
|
||||
dataIndex: 'neId',
|
||||
dataIndex: 'neUid',
|
||||
align: 'left',
|
||||
width: 100,
|
||||
},
|
||||
@@ -152,8 +153,9 @@ async function fnRecordInstall() {
|
||||
for (const row of selectRows) {
|
||||
if (row.newVersion === '-' || row.newVersion === '') {
|
||||
state.operateDataUpgrade.push({
|
||||
coreUid: row.coreUid,
|
||||
neType: row.neType,
|
||||
neId: row.neId,
|
||||
neUid: row.neUid,
|
||||
status: 'fail',
|
||||
log: t('views.system.quickStart.stepInstallNotNewVer'),
|
||||
});
|
||||
@@ -165,8 +167,9 @@ async function fnRecordInstall() {
|
||||
preinput = { pisCSCF: 'y', updateMFetc: 'No', updateMFshare: 'No' };
|
||||
}
|
||||
const installData = {
|
||||
coreUid: row.coreUid,
|
||||
neType: row.neType,
|
||||
neId: row.neId,
|
||||
neUid: row.neUid,
|
||||
action: 'install',
|
||||
preinput: preinput,
|
||||
};
|
||||
@@ -174,8 +177,9 @@ async function fnRecordInstall() {
|
||||
try {
|
||||
const res = await operateNeVersion(installData);
|
||||
const operateData = {
|
||||
coreUid: row.coreUid,
|
||||
neType: row.neType,
|
||||
neId: row.neId,
|
||||
neUid: row.neUid,
|
||||
status: 'fail',
|
||||
log: t('common.operateErr'),
|
||||
};
|
||||
@@ -200,11 +204,10 @@ async function fnRecordInstall() {
|
||||
function fnGetList() {
|
||||
state.loading = true;
|
||||
listNeVersion({
|
||||
neType: undefined,
|
||||
neId: '',
|
||||
version: '',
|
||||
coreUid: currentCoreUid(),
|
||||
checkVersion: false,
|
||||
pageNum: 1,
|
||||
pageSize: 20,
|
||||
pageSize: 50,
|
||||
}).then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
// 取消勾选
|
||||
@@ -283,10 +286,6 @@ onMounted(() => {
|
||||
|
||||
<div class="ne-oper">
|
||||
<a-space direction="horizontal" :size="18">
|
||||
<a-button @click="fnStepPrev()">
|
||||
{{ t('views.system.quickStart.stepPrev') }}
|
||||
</a-button>
|
||||
|
||||
<a-button
|
||||
type="dashed"
|
||||
:disabled="state.selectedRowKeys.length > 1"
|
||||
@@ -308,6 +307,10 @@ onMounted(() => {
|
||||
{{ t('views.system.quickStart.stepInstallText') }}
|
||||
</a-button>
|
||||
|
||||
<a-button @click="fnStepPrev()">
|
||||
{{ t('views.system.quickStart.stepPrev') }}
|
||||
</a-button>
|
||||
|
||||
<a-button type="primary" @click="fnStepNext('NeInfoSoftwareLicense')">
|
||||
{{ t('views.system.quickStart.stepNext') }}
|
||||
</a-button>
|
||||
@@ -360,9 +363,9 @@ onMounted(() => {
|
||||
</a-alert>
|
||||
</p>
|
||||
|
||||
<p v-for="o in state.operateDataUpgrade" :key="o.neId">
|
||||
<p v-for="o in state.operateDataUpgrade" :key="o.neUid">
|
||||
<a-alert
|
||||
:message="`${o.neType}-${o.neId}`"
|
||||
:message="`${o.neType}-${o.neUid}`"
|
||||
:description="o.log"
|
||||
:type="o.status === 'done' ? 'success' : 'error'"
|
||||
show-icon
|
||||
|
||||
Reference in New Issue
Block a user