网元管理新增同步网元开关
This commit is contained in:
@@ -8,8 +8,8 @@ import { parseObjLineToHump } from '@/utils/parse-utils';
|
|||||||
* @returns object
|
* @returns object
|
||||||
*/
|
*/
|
||||||
export async function listNeInfo(query: Record<string, any>) {
|
export async function listNeInfo(query: Record<string, any>) {
|
||||||
let totalSQL = 'select count(*) as total from ne_info where status=0 ';
|
let totalSQL = 'select count(*) as total from ne_info where (status=0 or status=3)';
|
||||||
let rowsSQL = 'select * from ne_info where status=0 ';
|
let rowsSQL = 'select * from ne_info where (status=0 or status=3) ';
|
||||||
|
|
||||||
// 系统特定顺序
|
// 系统特定顺序
|
||||||
const specificOrder = [
|
const specificOrder = [
|
||||||
@@ -91,7 +91,7 @@ export async function getNeInfo(id: string | number) {
|
|||||||
url: `/api/rest/databaseManagement/v1/select/omc_db/ne_info`,
|
url: `/api/rest/databaseManagement/v1/select/omc_db/ne_info`,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
SQL: `select * from ne_info where status=0 and id = ${id}`,
|
SQL: `select * from ne_info where (status=0 or status=3) and id = ${id}`,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
// 解析数据
|
// 解析数据
|
||||||
@@ -112,7 +112,7 @@ export async function getNeInfo(id: string | number) {
|
|||||||
export function addNeInfo(data: Record<string, any>) {
|
export function addNeInfo(data: Record<string, any>) {
|
||||||
data.port = `${data.port}`;
|
data.port = `${data.port}`;
|
||||||
return request({
|
return request({
|
||||||
url: `/api/rest/systemManagement/v1/elementType/${data.neType}/objectType/neInfo`,
|
url: `/api/rest/systemManagement/v1/elementType/${data.neType.toLowerCase()}/objectType/neInfo?sync2ne=${data.sync}`,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data,
|
data: data,
|
||||||
});
|
});
|
||||||
@@ -126,7 +126,7 @@ export function addNeInfo(data: Record<string, any>) {
|
|||||||
export function updateNeInfo(data: Record<string, any>) {
|
export function updateNeInfo(data: Record<string, any>) {
|
||||||
data.port = `${data.port}`;
|
data.port = `${data.port}`;
|
||||||
return request({
|
return request({
|
||||||
url: `/api/rest/systemManagement/v1/elementType/${data.neType}/objectType/neInfo`,
|
url: `/api/rest/systemManagement/v1/elementType/${data.neType}/objectType/neInfo?sync2ne=${data.sync}`,
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data: data,
|
data: data,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -221,6 +221,7 @@ let modalState: ModalStateType = reactive({
|
|||||||
pvFlag: '',
|
pvFlag: '',
|
||||||
rmUid: '',
|
rmUid: '',
|
||||||
vendorName: '',
|
vendorName: '',
|
||||||
|
sync: true,
|
||||||
},
|
},
|
||||||
importFrom: {
|
importFrom: {
|
||||||
neId: '',
|
neId: '',
|
||||||
@@ -1110,6 +1111,18 @@ onMounted(() => {
|
|||||||
></a-input>
|
></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
<a-col :lg="12" :md="12" :xs="24">
|
||||||
|
<a-form-item
|
||||||
|
:label="t('views.configManage.neManage.sync')"
|
||||||
|
name="province"
|
||||||
|
>
|
||||||
|
<a-switch
|
||||||
|
v-model:checked="modalState.from.sync"
|
||||||
|
:checked-children="t('views.configManage.neManage.open')"
|
||||||
|
:un-checked-children="t('views.configManage.neManage.close')"
|
||||||
|
/>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
</DraggableModal>
|
</DraggableModal>
|
||||||
|
|||||||
Reference in New Issue
Block a user