去除日志输出

This commit is contained in:
wangchengming 2025-11-01 23:10:48 +08:00
parent cc4bbc4dbe
commit 063ab62109

View File

@ -1360,7 +1360,6 @@ const handleCheckedBaseFieldChange = (value) => {
} }
// //
const handleCheckAllPriceFieldChange = (val) => { const handleCheckAllPriceFieldChange = (val) => {
console.log('全选报价字段', val)
checkedPriceFields.value = [] checkedPriceFields.value = []
if (val) { if (val) {
priceFields.value.forEach(element => { priceFields.value.forEach(element => {
@ -1368,11 +1367,9 @@ const handleCheckAllPriceFieldChange = (val) => {
}); });
if (ToolOptions.value.length == 8) { if (ToolOptions.value.length == 8) {
console.log('待处理报价', exportForm.value.mediaTypeExport, activeIndex.value)
// //
let curPriceFields = exportForm.value.mediaTypeExport.filter(item => item.type == activeIndex.value); let curPriceFields = exportForm.value.mediaTypeExport.filter(item => item.type == activeIndex.value);
if (curPriceFields.length > 0) { if (curPriceFields.length > 0) {
console.log('过滤后的数据', curPriceFields[0].exportPriceFields)
curPriceFields[0].exportPriceFields = [...checkedPriceFields.value] // 使 curPriceFields[0].exportPriceFields = [...checkedPriceFields.value] // 使
} }
} }
@ -1384,15 +1381,12 @@ const handleCheckAllPriceFieldChange = (val) => {
} }
} }
if (ToolOptions.value.length == 0) { if (ToolOptions.value.length == 0) {
console.log('待处理报价', exportForm.value.mediaTypeExport, 0)
// //
let curPriceFields = exportForm.value.mediaTypeExport.filter(item => item.type == 0); let curPriceFields = exportForm.value.mediaTypeExport.filter(item => item.type == 0);
if (curPriceFields.length > 0) { if (curPriceFields.length > 0) {
console.log('过滤后的数据', curPriceFields[0].exportPriceFields)
curPriceFields[0].exportPriceFields = [...checkedPriceFields.value] // 使 curPriceFields[0].exportPriceFields = [...checkedPriceFields.value] // 使
} }
} }
console.log('处理后的报价字段', exportForm.value.mediaTypeExport)
} else { } else {
if (ToolOptions.value.length == 8) { if (ToolOptions.value.length == 8) {
// //
@ -1414,7 +1408,6 @@ const handleCheckAllPriceFieldChange = (val) => {
curPriceFields[0].exportPriceFields = [] curPriceFields[0].exportPriceFields = []
} }
} }
console.log('处理后的报价字段', exportForm.value.mediaTypeExport)
} }
priceFieldIsIndeterminate.value = false priceFieldIsIndeterminate.value = false
// //
@ -1422,7 +1415,6 @@ const handleCheckAllPriceFieldChange = (val) => {
} }
// //
const handleCheckedPriceFieldChange = (value) => { const handleCheckedPriceFieldChange = (value) => {
console.log('单个选择报价字段', value)
const checkedCount = value.length const checkedCount = value.length
priceFieldCheckAll.value = checkedCount === priceFields.value.length priceFieldCheckAll.value = checkedCount === priceFields.value.length
priceFieldIsIndeterminate.value = checkedCount > 0 && checkedCount < priceFields.value.length priceFieldIsIndeterminate.value = checkedCount > 0 && checkedCount < priceFields.value.length
@ -1531,18 +1523,14 @@ const getMediaExcelPriceField = () => {
const handleCheckPriceField = (_mediaType) => { const handleCheckPriceField = (_mediaType) => {
// //
const currentMediaTypeExport = [...exportForm.value.mediaTypeExport]; // const currentMediaTypeExport = [...exportForm.value.mediaTypeExport]; //
console.log('要导出的报价字段', currentMediaTypeExport)
// //
const filteredFields = currentMediaTypeExport.filter(item => item.type !== _mediaType); const filteredFields = currentMediaTypeExport.filter(item => item.type !== _mediaType);
console.log('要导出的报价旧数据', filteredFields)
// //
const _mediaTypeArr = currentMediaTypeExport.filter(item => item.type == _mediaType); const _mediaTypeArr = currentMediaTypeExport.filter(item => item.type == _mediaType);
console.log('当前类型的报价数据', _mediaTypeArr)
// //
if (_mediaTypeArr.length == 0) { if (_mediaTypeArr.length == 0) {
filteredFields.push({ type: _mediaType, exportPriceFields: [] }); // 使 push filteredFields.push({ type: _mediaType, exportPriceFields: [] }); // 使 push
exportForm.value.mediaTypeExport = [...filteredFields]; // ref exportForm.value.mediaTypeExport = [...filteredFields]; // ref
console.log('更新后的数据', exportForm.value.mediaTypeExport)
} }
} }
// //
@ -1636,7 +1624,6 @@ const handleChangeType = (_type) => {
break; break;
} }
let wlType = _type + 1 let wlType = _type + 1
console.log('网络类型', wlType)
handleCheckPriceField(wlType) handleCheckPriceField(wlType)
} }