删除所有文件的日志输出

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -502,7 +502,6 @@ const ClearSubmit = () => {
const mapClick = (res) => { const mapClick = (res) => {
// // mapRef.value.mapOperations.removeLayer( state.wktPoint_Poly ) // // mapRef.value.mapOperations.removeLayer( state.wktPoint_Poly )
// mapRef.value.mapOperations.addInteractMarker(res.latlng.lat.toFixed(3), res.latlng.lng.toFixed(3)) // 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.dislat = res.latlng.lat.toFixed(3)
state.dislon = res.latlng.lng.toFixed(3) state.dislon = res.latlng.lng.toFixed(3)
mapRef.value.mapOperations.addInteractMarker(res.latlng.lat.toFixed(3), 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) => { const openDialog = (row) => {
console.log(row);
state.isShowDialog = true; state.isShowDialog = true;
state.data = row; 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 type { TabsPaneContext } from 'element-plus';
import { getAdminManagerPage, auditData } from '/@/api/response/adminManager.js'; import { getAdminManagerPage, auditData } from '/@/api/response/adminManager.js';
import Audit from './component/audit.vue'; import Audit from './component/audit.vue';
const activeName = ref('first');
const auditRef = ref(); const auditRef = ref();
const handleClick = (tab: TabsPaneContext, event: Event) => {
console.log(tab, event);
};
// //
import { defineAsyncComponent, reactive, onMounted, ref } from 'vue'; import { defineAsyncComponent, reactive, onMounted, ref } from 'vue';

View File

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