style: 移除l部分无用的log输出
This commit is contained in:
@@ -63,7 +63,11 @@ export async function getAlarmSet() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Object.keys(resultData).length === 0) {
|
if (Object.keys(resultData).length === 0) {
|
||||||
return { code: RESULT_CODE_ERROR, msg: RESULT_MSG_ERROR[language], data: {} };
|
return {
|
||||||
|
code: RESULT_CODE_ERROR,
|
||||||
|
msg: RESULT_MSG_ERROR[language],
|
||||||
|
data: {},
|
||||||
|
};
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
code: RESULT_CODE_SUCCESS,
|
code: RESULT_CODE_SUCCESS,
|
||||||
@@ -117,7 +121,11 @@ export async function updateAlarmSet(data: Record<string, any>) {
|
|||||||
}
|
}
|
||||||
// 无变更时
|
// 无变更时
|
||||||
if (resultNum === 0) {
|
if (resultNum === 0) {
|
||||||
return { code: RESULT_CODE_ERROR, msg: RESULT_MSG_ERROR[language], data: 0 };
|
return {
|
||||||
|
code: RESULT_CODE_ERROR,
|
||||||
|
msg: RESULT_MSG_ERROR[language],
|
||||||
|
data: 0,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
code: RESULT_CODE_SUCCESS,
|
code: RESULT_CODE_SUCCESS,
|
||||||
@@ -166,11 +174,10 @@ export async function getForwardSet() {
|
|||||||
*/
|
*/
|
||||||
export async function updateForwardSet(data: Record<string, any>) {
|
export async function updateForwardSet(data: Record<string, any>) {
|
||||||
// return false;
|
// return false;
|
||||||
console.log(data)
|
let obj: any = [
|
||||||
let obj:any=[
|
{ interface: 'Email', to_user: data.emailObj },
|
||||||
{interface:"Email",to_user:data.emailObj},
|
{ interface: 'SMS', to_user: data.smsObj },
|
||||||
{interface:"SMS",to_user:data.smsObj}
|
];
|
||||||
]
|
|
||||||
const result = await request({
|
const result = await request({
|
||||||
url: `/api/rest/databaseManagement/v1/omc_db/config?WHERE=config_tag='forwardAlarm'`,
|
url: `/api/rest/databaseManagement/v1/omc_db/config?WHERE=config_tag='forwardAlarm'`,
|
||||||
method: 'put',
|
method: 'put',
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ async function fnGetList(reload: boolean = false) {
|
|||||||
const res = await listAllNeInfo({ bandStatus: true });
|
const res = await listAllNeInfo({ bandStatus: true });
|
||||||
tableState.data = res.data;
|
tableState.data = res.data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.error(error);
|
||||||
tableState.data = [];
|
tableState.data = [];
|
||||||
}
|
}
|
||||||
tableState.loading = false;
|
tableState.loading = false;
|
||||||
|
|||||||
@@ -125,7 +125,6 @@ let tableColumns = ref<ColumnsType>([
|
|||||||
width: 150,
|
width: 150,
|
||||||
customRender(opt) {
|
customRender(opt) {
|
||||||
const record = opt.value;
|
const record = opt.value;
|
||||||
console.log(opt);
|
|
||||||
if (record.state === 'OFF') {
|
if (record.state === 'OFF') {
|
||||||
return record.offTime || '-';
|
return record.offTime || '-';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -438,7 +438,6 @@ function fnModalCancel() {
|
|||||||
* 选择性能指标,填充进当前计算公式的值
|
* 选择性能指标,填充进当前计算公式的值
|
||||||
*/
|
*/
|
||||||
function fnSelectPer(s: any, option: any) {
|
function fnSelectPer(s: any, option: any) {
|
||||||
console.log(option);
|
|
||||||
modalState.from.expression += `'${option.label}'`;
|
modalState.from.expression += `'${option.label}'`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -532,7 +532,7 @@ function fnModalVisibleByVive(id: string | number) {
|
|||||||
|
|
||||||
/**对话框tab查看 */
|
/**对话框tab查看 */
|
||||||
function fnViveTab(action: any) {
|
function fnViveTab(action: any) {
|
||||||
console.log('fnViveTab', action);
|
// console.log('fnViveTab', action);
|
||||||
if (modalState.viewFrom.action === action) return;
|
if (modalState.viewFrom.action === action) return;
|
||||||
modalState.viewFrom.action = action;
|
modalState.viewFrom.action = action;
|
||||||
modalState.viewFrom.content = '';
|
modalState.viewFrom.content = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user