style: 移除l部分无用的log输出

This commit is contained in:
TsMask
2025-01-15 21:07:17 +08:00
parent 96acbc0919
commit 74b55423d5
5 changed files with 16 additions and 11 deletions

View File

@@ -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',

View File

@@ -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;

View File

@@ -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 || '-';
} }

View File

@@ -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}'`;
} }

View File

@@ -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 = '';