style: 移除无用console输出
This commit is contained in:
@@ -128,11 +128,15 @@ function fnFormForwardFinish() {
|
|||||||
forwardStateFrom.validate().then(() => {
|
forwardStateFrom.validate().then(() => {
|
||||||
forwardState.confirmLoading = true;
|
forwardState.confirmLoading = true;
|
||||||
const from = toRaw(forwardState.from);
|
const from = toRaw(forwardState.from);
|
||||||
console.log(from);
|
|
||||||
updateForwardSet(from)
|
updateForwardSet(from)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success( t('common.msgSuccess', { msg: t('views.faultManage.faultSetting.save')}), 3);
|
message.success(
|
||||||
|
t('common.msgSuccess', {
|
||||||
|
msg: t('views.faultManage.faultSetting.save'),
|
||||||
|
}),
|
||||||
|
3
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
message.warning(t('views.faultManage.faultSetting.noChange'), 3);
|
message.warning(t('views.faultManage.faultSetting.noChange'), 3);
|
||||||
}
|
}
|
||||||
@@ -158,7 +162,6 @@ onMounted(() => {
|
|||||||
if (resArr[1].status === 'fulfilled') {
|
if (resArr[1].status === 'fulfilled') {
|
||||||
const result = resArr[1].value;
|
const result = resArr[1].value;
|
||||||
if (result.code === RESULT_CODE_SUCCESS) {
|
if (result.code === RESULT_CODE_SUCCESS) {
|
||||||
console.log(result.data);
|
|
||||||
let finalData: any = {
|
let finalData: any = {
|
||||||
emailObj: result.data[0]['to_user'],
|
emailObj: result.data[0]['to_user'],
|
||||||
smsObj: result.data[1]['to_user'],
|
smsObj: result.data[1]['to_user'],
|
||||||
@@ -273,12 +276,11 @@ onMounted(() => {
|
|||||||
</a-button>
|
</a-button>
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
<a-form
|
<a-form name="forwardState" layout="horizontal" autocomplete="off">
|
||||||
name="forwardState"
|
<a-form-item
|
||||||
layout="horizontal"
|
:label="t('views.faultManage.faultSetting.interfaceType')"
|
||||||
autocomplete="off"
|
name="interface"
|
||||||
>
|
>
|
||||||
<a-form-item :label="t('views.faultManage.faultSetting.interfaceType')" name="interface">
|
|
||||||
<a-input value="Email" allow-clear disabled></a-input>
|
<a-input value="Email" allow-clear disabled></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item
|
<a-form-item
|
||||||
@@ -292,7 +294,10 @@ onMounted(() => {
|
|||||||
:token-separators="[',']"
|
:token-separators="[',']"
|
||||||
></a-select>
|
></a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item :label="t('views.faultManage.faultSetting.interfaceType')" name="interface">
|
<a-form-item
|
||||||
|
:label="t('views.faultManage.faultSetting.interfaceType')"
|
||||||
|
name="interface"
|
||||||
|
>
|
||||||
<a-input value="SMS" allow-clear disabled></a-input>
|
<a-input value="SMS" allow-clear disabled></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item
|
<a-form-item
|
||||||
|
|||||||
@@ -140,7 +140,6 @@ function fnGetList(refresh: boolean = false) {
|
|||||||
})
|
})
|
||||||
.then(hasNeList => {
|
.then(hasNeList => {
|
||||||
if (!hasNeList) return;
|
if (!hasNeList) return;
|
||||||
console.log(graphG6Data)
|
|
||||||
if (refresh) {
|
if (refresh) {
|
||||||
// graphG6.value.get('canvas').set('localRefresh', true);
|
// graphG6.value.get('canvas').set('localRefresh', true);
|
||||||
graphG6.value.destroy();
|
graphG6.value.destroy();
|
||||||
|
|||||||
@@ -174,8 +174,6 @@ export default function useEdge() {
|
|||||||
}
|
}
|
||||||
// 不存在fontWeight会触发异常
|
// 不存在fontWeight会触发异常
|
||||||
if(!edge.labelCfg.style.fontWeight){
|
if(!edge.labelCfg.style.fontWeight){
|
||||||
console.log(edge)
|
|
||||||
debugger
|
|
||||||
edge.labelCfg.style.fontWeight = 500
|
edge.labelCfg.style.fontWeight = 500
|
||||||
}
|
}
|
||||||
// 存在更新,新增id是#不监听变化
|
// 存在更新,新增id是#不监听变化
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ export default function useGraph() {
|
|||||||
</div>`;
|
</div>`;
|
||||||
},
|
},
|
||||||
handleMenuClick(target, item) {
|
handleMenuClick(target, item) {
|
||||||
console.log(target, item);
|
// console.log(target, item);
|
||||||
const targetId = target.id;
|
const targetId = target.id;
|
||||||
switch (targetId) {
|
switch (targetId) {
|
||||||
case 'create-edge':
|
case 'create-edge':
|
||||||
@@ -223,7 +223,7 @@ export default function useGraph() {
|
|||||||
`;
|
`;
|
||||||
},
|
},
|
||||||
handleMenuClick(target, item) {
|
handleMenuClick(target, item) {
|
||||||
console.log(target, item);
|
// console.log(target, item);
|
||||||
const targetId = target.id;
|
const targetId = target.id;
|
||||||
switch (targetId) {
|
switch (targetId) {
|
||||||
case 'edit':
|
case 'edit':
|
||||||
@@ -302,7 +302,7 @@ export default function useGraph() {
|
|||||||
`;
|
`;
|
||||||
},
|
},
|
||||||
handleMenuClick(target, item) {
|
handleMenuClick(target, item) {
|
||||||
console.log(target, item);
|
// console.log(target, item);
|
||||||
const targetId = target.id;
|
const targetId = target.id;
|
||||||
switch (targetId) {
|
switch (targetId) {
|
||||||
case 'edit':
|
case 'edit':
|
||||||
|
|||||||
@@ -64,7 +64,6 @@ function fnGetList(pageNum?: number) {
|
|||||||
tableState.loading = true;
|
tableState.loading = true;
|
||||||
listNSSFAMF().then(res => {
|
listNSSFAMF().then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
|
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
|
||||||
console.log(res.rows);
|
|
||||||
// 取消勾选
|
// 取消勾选
|
||||||
if (tableState.selectedRowKeys.length > 0) {
|
if (tableState.selectedRowKeys.length > 0) {
|
||||||
tableState.selectedRowKeys = [];
|
tableState.selectedRowKeys = [];
|
||||||
|
|||||||
@@ -300,7 +300,6 @@ function fnModalVisibleByEdit(row?: Record<string, any>) {
|
|||||||
sessRules = [sessRules];
|
sessRules = [sessRules];
|
||||||
}
|
}
|
||||||
modalState.from.sessRules = sessRules;
|
modalState.from.sessRules = sessRules;
|
||||||
console.log(modalState.from);
|
|
||||||
|
|
||||||
modalState.title = t('views.neUser.pcf.updateTitle', {
|
modalState.title = t('views.neUser.pcf.updateTitle', {
|
||||||
imsi: row.imsi,
|
imsi: row.imsi,
|
||||||
@@ -327,7 +326,6 @@ function fnModalOk() {
|
|||||||
const from = JSON.parse(JSON.stringify(modalState.from));
|
const from = JSON.parse(JSON.stringify(modalState.from));
|
||||||
from.neId = queryParams.neId || '-';
|
from.neId = queryParams.neId || '-';
|
||||||
from.rfsp = Number(from.rfsp) || 0;
|
from.rfsp = Number(from.rfsp) || 0;
|
||||||
console.log(from);
|
|
||||||
let pccRules = modalState.from.pccRules;
|
let pccRules = modalState.from.pccRules;
|
||||||
if (Array.isArray(pccRules)) {
|
if (Array.isArray(pccRules)) {
|
||||||
pccRules = pccRules.join('|');
|
pccRules = pccRules.join('|');
|
||||||
|
|||||||
@@ -301,7 +301,6 @@ function fnModalVisibleByVive(row: Record<string, string>) {
|
|||||||
* @param dictCode 数据编号id, 不传为新增
|
* @param dictCode 数据编号id, 不传为新增
|
||||||
*/
|
*/
|
||||||
function fnModalVisibleByEdit(dictCode?: string | number, record?: any) {
|
function fnModalVisibleByEdit(dictCode?: string | number, record?: any) {
|
||||||
console.log(record);
|
|
||||||
if (!dictCode) {
|
if (!dictCode) {
|
||||||
modalStateFrom.resetFields();
|
modalStateFrom.resetFields();
|
||||||
modalState.from.dictType = queryParams.dictType;
|
modalState.from.dictType = queryParams.dictType;
|
||||||
|
|||||||
@@ -117,7 +117,6 @@ function fnSaveAcount() {
|
|||||||
// 发送保存
|
// 发送保存
|
||||||
state.confirmLoading = true;
|
state.confirmLoading = true;
|
||||||
bootloaderAccount(state.username, state.password).then(res => {
|
bootloaderAccount(state.username, state.password).then(res => {
|
||||||
console.log(res);
|
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success(t('common.operateOk'));
|
message.success(t('common.operateOk'));
|
||||||
} else {
|
} else {
|
||||||
@@ -158,7 +157,6 @@ function fnSaveSystem() {
|
|||||||
// 发送保存
|
// 发送保存
|
||||||
state.confirmLoading = true;
|
state.confirmLoading = true;
|
||||||
Promise.all(reqArr).then(resArr => {
|
Promise.all(reqArr).then(resArr => {
|
||||||
console.log(resArr);
|
|
||||||
message.success(t('views.system.quickStart.sysSaveOk'));
|
message.success(t('views.system.quickStart.sysSaveOk'));
|
||||||
state.confirmLoading = false;
|
state.confirmLoading = false;
|
||||||
});
|
});
|
||||||
@@ -206,7 +204,6 @@ function fnCheckAppNameOverflow() {
|
|||||||
if (!container) return;
|
if (!container) return;
|
||||||
const text: HTMLDivElement | null = container.querySelector('.marquee');
|
const text: HTMLDivElement | null = container.querySelector('.marquee');
|
||||||
if (!text) return;
|
if (!text) return;
|
||||||
console.log(text.offsetWidth, container.offsetWidth);
|
|
||||||
if (text.offsetWidth > container.offsetWidth) {
|
if (text.offsetWidth > container.offsetWidth) {
|
||||||
text.classList.add('app-name_scrollable');
|
text.classList.add('app-name_scrollable');
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ let state: StateType = reactive({
|
|||||||
|
|
||||||
/**上传前检查或转换压缩 */
|
/**上传前检查或转换压缩 */
|
||||||
function fnBeforeUpload(file: FileType) {
|
function fnBeforeUpload(file: FileType) {
|
||||||
console.log(file.type);
|
|
||||||
if (state.loading) return false;
|
if (state.loading) return false;
|
||||||
const isType = ['application/pdf'].includes(file.type);
|
const isType = ['application/pdf'].includes(file.type);
|
||||||
if (!isType) {
|
if (!isType) {
|
||||||
|
|||||||
Reference in New Issue
Block a user