style: 移除非error级别console
This commit is contained in:
@@ -173,7 +173,6 @@ export async function getParamConfigInfo(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(wrRule, dataArr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 拼装数据
|
// 拼装数据
|
||||||
@@ -197,7 +196,6 @@ export async function getParamConfigInfo(
|
|||||||
let dataList = [];
|
let dataList = [];
|
||||||
for (const item of dataArr) {
|
for (const item of dataArr) {
|
||||||
for (const key of Object.keys(item)) {
|
for (const key of Object.keys(item)) {
|
||||||
// console.log(result.data.type, key, item[key]);
|
|
||||||
// 规则为准
|
// 规则为准
|
||||||
for (const rule of ruleArr) {
|
for (const rule of ruleArr) {
|
||||||
if (rule['name'] === key) {
|
if (rule['name'] === key) {
|
||||||
@@ -247,7 +245,6 @@ export async function getParamConfigInfo(
|
|||||||
}
|
}
|
||||||
dataArray.push(record);
|
dataArray.push(record);
|
||||||
}
|
}
|
||||||
// console.log(dataArray);
|
|
||||||
result.data.data = dataArray;
|
result.data.data = dataArray;
|
||||||
|
|
||||||
// 无数据时,用于新增
|
// 无数据时,用于新增
|
||||||
@@ -266,7 +263,6 @@ export async function getParamConfigInfo(
|
|||||||
align: 'left',
|
align: 'left',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// console.log(columns);
|
|
||||||
result.data.columns = columns;
|
result.data.columns = columns;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -133,7 +133,6 @@ function beforeRequest(options: OptionsType): OptionsType | Promise<any> {
|
|||||||
requestObj.time - time < interval
|
requestObj.time - time < interval
|
||||||
) {
|
) {
|
||||||
const message = RESULT_MSG_URL_RESUBMIT;
|
const message = RESULT_MSG_URL_RESUBMIT;
|
||||||
console.warn(`[${url}]: ${message}`);
|
|
||||||
return Promise.resolve({
|
return Promise.resolve({
|
||||||
code: RESULT_CODE_ERROR,
|
code: RESULT_CODE_ERROR,
|
||||||
msg: message,
|
msg: message,
|
||||||
|
|||||||
@@ -350,7 +350,6 @@ function arrayEditOk() {
|
|||||||
function arrayDelete(row: Record<string, any>) {
|
function arrayDelete(row: Record<string, any>) {
|
||||||
const from = toRaw(row);
|
const from = toRaw(row);
|
||||||
const loc = from['index']['value'];
|
const loc = from['index']['value'];
|
||||||
console.log(from, loc);
|
|
||||||
|
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
@@ -564,7 +563,6 @@ function arrayChildExpand(key: Record<string, any>, row: Record<string, any>) {
|
|||||||
}
|
}
|
||||||
dataArray.push(record);
|
dataArray.push(record);
|
||||||
}
|
}
|
||||||
// console.log(dataArray);
|
|
||||||
tableState.arrayChildData = dataArray;
|
tableState.arrayChildData = dataArray;
|
||||||
|
|
||||||
// 无数据时,需要临时数据用于新增
|
// 无数据时,需要临时数据用于新增
|
||||||
@@ -585,7 +583,6 @@ function arrayChildExpand(key: Record<string, any>, row: Record<string, any>) {
|
|||||||
align: 'left',
|
align: 'left',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// console.log(columns);
|
|
||||||
tableState.arrayChildColumns = columns;
|
tableState.arrayChildColumns = columns;
|
||||||
tableState.arrayChildColumns.push({
|
tableState.arrayChildColumns.push({
|
||||||
title: t('common.operate'),
|
title: t('common.operate'),
|
||||||
@@ -698,7 +695,6 @@ function arrayChildEditOk() {
|
|||||||
function arrayChildDelete(row: Record<string, any>) {
|
function arrayChildDelete(row: Record<string, any>) {
|
||||||
const from = toRaw(row);
|
const from = toRaw(row);
|
||||||
const loc = `${tableState.arrayChildLoc}/${from['index']['value']}`;
|
const loc = `${tableState.arrayChildLoc}/${from['index']['value']}`;
|
||||||
console.log(from, loc);
|
|
||||||
|
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
@@ -819,7 +815,6 @@ function arrayChildAddOk() {
|
|||||||
const from = toRaw(tableState.arrayChildEditRecord);
|
const from = toRaw(tableState.arrayChildEditRecord);
|
||||||
const loc = `${tableState.arrayChildLoc}/${from['index']['value']}`;
|
const loc = `${tableState.arrayChildLoc}/${from['index']['value']}`;
|
||||||
const neType = neTypeSelect.value[0];
|
const neType = neTypeSelect.value[0];
|
||||||
console.log(from, loc);
|
|
||||||
|
|
||||||
let data: Record<string, any> = {};
|
let data: Record<string, any> = {};
|
||||||
for (const key in from) {
|
for (const key in from) {
|
||||||
@@ -978,7 +973,6 @@ function ruleVerification(row: Record<string, any>): (string | boolean)[] {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
console.warn('未知类型', type);
|
|
||||||
return [false, `${display} 输入值是未知类型`];
|
return [false, `${display} 输入值是未知类型`];
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import {
|
|||||||
clearAlarm,
|
clearAlarm,
|
||||||
showPass,
|
showPass,
|
||||||
getPass,
|
getPass,
|
||||||
exportAll
|
exportAll,
|
||||||
} from '@/api/faultManage/actAlarm';
|
} from '@/api/faultManage/actAlarm';
|
||||||
import useNeInfoStore from '@/store/modules/neinfo';
|
import useNeInfoStore from '@/store/modules/neinfo';
|
||||||
import useI18n from '@/hooks/useI18n';
|
import useI18n from '@/hooks/useI18n';
|
||||||
@@ -474,9 +474,7 @@ const closeDrawer = () => {
|
|||||||
|
|
||||||
/**抽屉 告警帮助文档详细信息 */
|
/**抽屉 告警帮助文档详细信息 */
|
||||||
function fnModalVisibleBy(code: string) {
|
function fnModalVisibleBy(code: string) {
|
||||||
const result = readLoalXlsx(code);
|
readLoalXlsx(code)
|
||||||
|
|
||||||
result
|
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (!res.length) {
|
if (!res.length) {
|
||||||
visible.value = false;
|
visible.value = false;
|
||||||
@@ -486,7 +484,7 @@ function fnModalVisibleBy(code: string) {
|
|||||||
|
|
||||||
tableState.loading = false;
|
tableState.loading = false;
|
||||||
})
|
})
|
||||||
.catch(error => console.log(error));
|
.catch(error => console.error(error));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -682,11 +680,10 @@ function fnShowSet() {
|
|||||||
/**
|
/**
|
||||||
* 导出全部
|
* 导出全部
|
||||||
*/
|
*/
|
||||||
function fnExportAll(){
|
function fnExportAll() {
|
||||||
const key = 'exportAlarm';
|
const key = 'exportAlarm';
|
||||||
message.loading({ content: '请稍等...', key });
|
message.loading({ content: '请稍等...', key });
|
||||||
exportAll(queryParams)
|
exportAll(queryParams).then(res => {
|
||||||
.then(res => {
|
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: `已完成导出`,
|
content: `已完成导出`,
|
||||||
@@ -703,8 +700,7 @@ function fnExportAll(){
|
|||||||
duration: 3,
|
duration: 3,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 对话框弹出关闭执行函数
|
* 对话框弹出关闭执行函数
|
||||||
|
|||||||
@@ -220,7 +220,6 @@ function ruleVerification(
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
console.warn('未知类型', type);
|
|
||||||
return [false, `${display} 输入值是未知类型`];
|
return [false, `${display} 输入值是未知类型`];
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -219,7 +219,6 @@ function ruleVerification(
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
console.warn('未知类型', type);
|
|
||||||
return [false, `${display} 输入值是未知类型`];
|
return [false, `${display} 输入值是未知类型`];
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -219,7 +219,6 @@ function ruleVerification(
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
console.warn('未知类型', type);
|
|
||||||
return [false, `${display} 输入值是未知类型`];
|
return [false, `${display} 输入值是未知类型`];
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user