删除所有文件的日志输出

This commit is contained in:
yyhouc 2023-05-26 10:07:44 +08:00
parent ce598472b3
commit 8886fb13ae
24 changed files with 0 additions and 68 deletions

View File

@ -105,17 +105,14 @@ const mapOperations = {
variableStore.layerGroupPoly = res;
let polygons = [];
for (let i = 0; i < attr[0].feature.geometry.coordinates.length; i++) {
console.log(attr[0].feature.geometry.coordinates[i])
polygons.push(turf.polygon([attr[0].feature.geometry.coordinates[i]]));
}
let centers = polygons.map(polygon => turf.centroid(polygon));
// console.log(centers)
let features = []
for (let i = 0; i < centers.length; i++) {
features.push(turf.point(centers[i].geometry.coordinates))
}
let final_center = turf.center(turf.featureCollection(features))
// console.log(final_center)
homeMap.flyTo([final_center.geometry.coordinates[1], final_center.geometry.coordinates[0]], 3)
return { 'layer': layer, 'location': null }
}
@ -152,7 +149,6 @@ const mapOperations = {
featureLayerG_point
)
let features = featureLayerG_point.toGeoJSON().features
// console.log(features)
variableStore.layerGroupPoint = features.map(function (feature) {
return WKT.convert(feature.geometry)
})
@ -276,7 +272,6 @@ const mapOperations = {
*/
goPosition: (param) => {
homeMap.setView(L.latLng(Number(param.y), Number(param.x)), param.zoom)
// console.log(homeMap);
},
/**
* Object param 参数集合
@ -286,7 +281,6 @@ const mapOperations = {
* }
*/
on: (event, func) => {
// console.log("1-1")
homeMap.on(event, func)
},
/**
@ -297,7 +291,6 @@ const mapOperations = {
* }
*/
off: (event, func) => {
// console.log('2-1')
homeMap.off(event, func)
},
/**
@ -335,7 +328,6 @@ const mapOperations = {
* }
*/
drawPolygon: () => {
// console.log('2-2')
variableStore.layerGroupPoint = null
featureLayerG_point.clearLayers()
homeMap.pm.enableDraw('Polygon', { snappable: false });
@ -359,7 +351,6 @@ const mapOperations = {
return polygon
},
clearPolygon: () => {
// console.log('1-2')
featureLayerG_area.clearLayers()
variableStore.layerGroupPoly = null
@ -378,7 +369,6 @@ const mapOperations = {
// })
// featureLayerG_area.addLayer(elll.layer)
// let features = featureLayerG_area.toGeoJSON().features
// // console.log(features)
// variableStore.layerGroupPoly = features.map(function (feature) {
// return WKT.convert(feature.geometry)
// })
@ -414,7 +404,6 @@ const mapOperations = {
});
}
else {
console.log('error')
}
},
drawRectangle: () => {

View File

@ -28,7 +28,6 @@ export const useUserInfo = defineStore('userInfo', {
async Buttons() {
return new Promise((resolve) => {
getButtons().then(data => {
console.log(data)
resolve(this.formatBtns(data));
})
})

View File

@ -287,7 +287,6 @@ const start = (text) => {
state.twitterOption.buttonIs = true;
}
clearInterval(countdown);
console.log('倒计时结束');
}
}, 1000);
let keywords = (text == 'baidu' ? state.baidu.keywords :text == 'bing' ?state.bing.keywords:state.twitter.keywords);

View File

@ -46,7 +46,6 @@ const state = reactive({
//onchanne
const handleChange = (file, fileList) => {
state.fileList = fileList;
console.log(state.fileList)
};
//

View File

@ -238,11 +238,7 @@ const getDisasterData = () => {
}
getList(param).then(res => {
state.disasterData.data = res.records;
console.log(state.disasterData.data[0], "state.disasterData.data[0]");
state.disasterId = state.disasterData.data[0].disasterId;
console.log(state.disasterId, "state.disasterId ");
getTableData()
state.disasterData.data.forEach(item => {
let date = item.disasterTime.slice(0, 10);

View File

@ -121,7 +121,6 @@ const uploadPic = (data) => {
//
const removePic = (data) => {
state.fileArray.splice(state.fileArray.findIndex(item => item.uid === data.raw.uid), 1)
console.log(state.fileArray)
}
//
const resetField = () => {

View File

@ -181,8 +181,6 @@ const getDisasterData = () => {
const getTableData = () => {
state.tableData.loading = true;
getOtherDataPage(state.tableData.param.pageNum, state.tableData.param.pageSize, { "disasterId": state.disasterId, "type": state.searchName, "isDeleted": 0 }).then(res => {
console.log(res);
state.tableData.data = res.records;
state.tableData.total = res.total;
})
@ -244,7 +242,6 @@ const del = (row) => {
//
const pub = (row) => {
console.log(row, "发布信息");
let da = {
vordm_id:state.vordmId,
link:row.link,
@ -252,7 +249,6 @@ const pub = (row) => {
name:row.title
}
pushing(da).then(data => {
console.log(data,"datadatadatadata");
if(data.code == 1500){
ElMessage.error(data.msg);
}

View File

@ -116,7 +116,6 @@ const uploadPic = (data) => {
//
const removePic = (data) => {
state.fileArray.splice(state.fileArray.findIndex(item => item.uid === data.raw.uid), 1)
console.log(state.fileArray)
}
//
const resetField = () => {
@ -151,13 +150,10 @@ const onCancel = () => {
const onSubmit = () => {
adminAddFormRef.value.validate((valid, fields) => {
if (valid) {
console.log(state.fileList);
state.isLoading = true;
state.fileList.forEach(item => {
console.log(item.raw,"item.raw");
if (item.raw) {
console.log(1111111111111);
state.dataForm.append('file', item.raw);
}
})

View File

@ -94,7 +94,6 @@ const uploadPic = (data) => {
//
const removePic = (data) => {
state.fileArray.splice(state.fileArray.findIndex(item => item.uid === data.raw.uid), 1)
console.log(state.fileArray)
}
//
const resetField = () => {

View File

@ -309,8 +309,6 @@ const getData = () => {
}
const addRemoteSensingData = (data, fileList) => {
console.log(data, "data");
console.log(fileList, "fileListfileList");
if (state.disasterId == null) {
ElMessage.warning('Please select the disaster first');
return false;
@ -408,15 +406,9 @@ const searchRemoteSensingSourceData = () => {
getDataByCondition(state.tableData.param.pageNum, state.tableData.param.pageSize, dataNew)
}
const reviseDownload = (row) => {
console.log(row, "rowrowrow");
}
//
const getDataByCondition = (current, size, dataNew) => {
console.log('传过来的数据:', state.tableData.param.pageNum);
getRemoteSensingSourceDataByCondition(current, size, JSON.stringify(dataNew)).then(
(res) => {
state.requestData = res.records;
@ -549,7 +541,6 @@ const onHandleSizeChange = (val) => {
const onHandleCurrentChange = (val) => {
state.tableData.param.pageSize = state.tableData.param.pageSize;
state.tableData.param.pageNum = val;
console.log('当前页:', state.tableData.param.pageNum);
let dataNew = {};
if (state.satelliteCodeList.length != 0) {
dataNew = {

View File

@ -58,14 +58,6 @@ const uploadHandler = () => {
closeDialog();
};
const handleRemove = (uploadFile, uploadFiles) => {
console.log(uploadFile, uploadFiles)
}
const handlePreview = (file) => {
console.log(file)
}
//
const resetField = () => {
adminAddFormRef.value.resetFields();

View File

@ -62,7 +62,6 @@ const uploadPic = (data) => {
//
const removePic = (data) => {
state.fileArray.splice(state.fileArray.findIndex(item=>item.uid===data.raw.uid), 1)
console.log(state.fileArray)
}
//
const rules = reactive({

View File

@ -68,7 +68,6 @@ const uploadPic = (data) => {
//
const removePic = (data) => {
state.fileArray.splice(state.fileArray.findIndex(item=>item.uid===data.raw.uid), 1)
console.log(state.fileArray)
}
//
const rules = reactive({

View File

@ -62,7 +62,6 @@ const uploadPic = (data) => {
//
const removePic = (data) => {
state.fileArray.splice(state.fileArray.findIndex(item=>item.uid===data.raw.uid), 1)
console.log(state.fileArray)
}
//
const rules = reactive({

View File

@ -68,7 +68,6 @@ const uploadPic = (data) => {
//
const removePic = (data) => {
state.fileArray.splice(state.fileArray.findIndex(item=>item.uid===data.raw.uid), 1)
console.log(state.fileArray)
}
//
const rules = reactive({

View File

@ -208,8 +208,6 @@ const formatSizeUnits = (size) => {
}
//
const tableClick = (i) => {
console.log(i);
state.disasterId = i.disasterId;
getTableData();
}

View File

@ -712,7 +712,6 @@ const setDisasterType = (data) => {
const getDashBoradData = () => {
state.param.year = state.year.getFullYear()
statistics(state.param.year).then(res=>{
console.log(res);
//
setHeadData(res.header);
//

View File

@ -146,7 +146,6 @@ const state = reactive({
});
const setValue = () => {
const text = toRaw(myQuillEditor.value).getHTML()
console.log(text)
}
//
const initTableData = () => {

View File

@ -51,7 +51,6 @@ const resetField = () => {
//
const openDialog = (row) => {
console.log(row);
state.isShowDialog = true;
state.data = row;
};

View File

@ -58,9 +58,6 @@ import type { TabsPaneContext } from 'element-plus';
import { getDataUploadPage, getDisasterPage, remove } from '/@/api/response/dataUpload.js'
const activeName = ref('first');
const handleClick = (tab: TabsPaneContext, event: Event) => {
console.log(tab, event);
};
const removeThis =(row) =>{
let arr = [];
arr.push(row.id);

View File

@ -502,7 +502,6 @@ const ClearSubmit = () => {
const mapClick = (res) => {
// // mapRef.value.mapOperations.removeLayer( state.wktPoint_Poly )
// mapRef.value.mapOperations.addInteractMarker(res.latlng.lat.toFixed(3), res.latlng.lng.toFixed(3))
// // console.log(state.wktPoint_Poly)
state.dislat = res.latlng.lat.toFixed(3)
state.dislon = res.latlng.lng.toFixed(3)
mapRef.value.mapOperations.addInteractMarker(res.latlng.lat.toFixed(3), res.latlng.lng.toFixed(3))

View File

@ -50,7 +50,6 @@ const resetField = () => {
//
const openDialog = (row) => {
console.log(row);
state.isShowDialog = true;
state.data = row;
};

View File

@ -58,11 +58,7 @@ import en from 'element-plus/dist/locale/en.mjs'
import type { TabsPaneContext } from 'element-plus';
import { getAdminManagerPage, auditData } from '/@/api/response/adminManager.js';
import Audit from './component/audit.vue';
const activeName = ref('first');
const auditRef = ref();
const handleClick = (tab: TabsPaneContext, event: Event) => {
console.log(tab, event);
};
//
import { defineAsyncComponent, reactive, onMounted, ref } from 'vue';

View File

@ -107,14 +107,9 @@ const gridData = [
address: 'Queens, New York City',
},
]
const activeName = ref('first');
const administratorRef = ref();
const editAdministratorRef = ref();
const manageRef = ref();
const handleClick = (tab: TabsPaneContext, event: Event) => {
console.log(tab, event);
};
//
import { defineAsyncComponent, reactive, onMounted, ref } from 'vue';
import { ElMessageBox, ElMessage } from 'element-plus';