删除所有文件的日志输出
This commit is contained in:
parent
ce598472b3
commit
8886fb13ae
|
@ -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: () => {
|
||||
|
|
|
@ -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));
|
||||
})
|
||||
})
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -46,7 +46,6 @@ const state = reactive({
|
|||
//通过onchanne触发方法获得文件列表
|
||||
const handleChange = (file, fileList) => {
|
||||
state.fileList = fileList;
|
||||
console.log(state.fileList)
|
||||
};
|
||||
|
||||
//上传处理
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 = () => {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
})
|
||||
|
|
|
@ -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 = () => {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -208,8 +208,6 @@ const formatSizeUnits = (size) => {
|
|||
}
|
||||
//灾害表格点击事件
|
||||
const tableClick = (i) => {
|
||||
console.log(i);
|
||||
|
||||
state.disasterId = i.disasterId;
|
||||
getTableData();
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
//第二栏
|
||||
|
|
|
@ -146,7 +146,6 @@ const state = reactive({
|
|||
});
|
||||
const setValue = () => {
|
||||
const text = toRaw(myQuillEditor.value).getHTML()
|
||||
console.log(text)
|
||||
}
|
||||
// 初始化表格数据
|
||||
const initTableData = () => {
|
||||
|
|
|
@ -51,7 +51,6 @@ const resetField = () => {
|
|||
|
||||
// 打开弹窗
|
||||
const openDialog = (row) => {
|
||||
console.log(row);
|
||||
state.isShowDialog = true;
|
||||
state.data = row;
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -50,7 +50,6 @@ const resetField = () => {
|
|||
|
||||
// 打开弹窗
|
||||
const openDialog = (row) => {
|
||||
console.log(row);
|
||||
state.isShowDialog = true;
|
||||
state.data = row;
|
||||
};
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue