This commit is contained in:
yyhouc 2023-06-12 15:04:45 +08:00
commit 608475eabe
3 changed files with 22 additions and 8 deletions

View File

@ -49,8 +49,10 @@ export const importTemplate = (data) => {
export const removeList = (ids) => { export const removeList = (ids) => {
return request({ return request({
url: '/api/' + moduleName + '/ui/remoteSensing/remove', url: '/api/' + moduleName + '/ui/remoteSensing/remove',
method: 'delte', method: 'get',
data: ids, params:{
ids
}
}); });
} }

View File

@ -151,7 +151,7 @@ const removeThis = ()=>{
type: 'warning', type: 'warning',
}).then(() => { }).then(() => {
// //
removeList(ids,(state.searchName=='1'?"News":null)).then((res) => { removeList(ids.join(','),(state.searchName=='1'?"News":null)).then((res) => {
ElMessage.success("Delete successfully"); ElMessage.success("Delete successfully");
getTableData(); getTableData();
}); });
@ -397,6 +397,7 @@ const searchRemoteSensingSourceData = () => {
// //
const getDataByCondition = (current, size, dataNew) => { const getDataByCondition = (current, size, dataNew) => {
dataNew.beforeOrAfter = 3;
getRemoteSensingSourceDataByCondition(current, size, JSON.stringify(dataNew)).then( getRemoteSensingSourceDataByCondition(current, size, JSON.stringify(dataNew)).then(
(res) => { (res) => {
state.requestData = res.records; state.requestData = res.records;
@ -496,8 +497,8 @@ const onHandleDisasterCurrentChange = (val) => {
// size // size
const onHandleSizeChange = (val) => { const onHandleSizeChange = (val) => {
state.tableData.param.pageSize = val; state.tableData.param.pageNum = val;
state.tableData.param.pageNum = state.tableData.param.pageNum; state.tableData.param.pageSize = state.tableData.param.pageSize;
let dataNew = {}; let dataNew = {};
if (state.satelliteCodeList.length != 0) { if (state.satelliteCodeList.length != 0) {
dataNew = { dataNew = {
@ -529,7 +530,6 @@ const onHandleSizeChange = (val) => {
// current // current
const onHandleCurrentChange = (val) => { const onHandleCurrentChange = (val) => {
state.tableData.param.pageSize = state.tableData.param.pageSize;
state.tableData.param.pageNum = val; state.tableData.param.pageNum = val;
let dataNew = {}; let dataNew = {};
if (state.satelliteCodeList.length != 0) { if (state.satelliteCodeList.length != 0) {

View File

@ -2629,6 +2629,18 @@ leaflet-imageoverlay-rotated@^0.2.1:
dependencies: dependencies:
leaflet "^1.0.0" leaflet "^1.0.0"
leaflet-search@^2.9.6:
version "2.9.11"
resolved "https://registry.npmmirror.com/leaflet-search/-/leaflet-search-2.9.11.tgz#9ceff372efdabbdfb71f1f3ac7c1f8e7d2fdc267"
integrity sha512-Tsp2rbd4SyBTaSJ2hGk/hdSzTLWlaehVDx0nQta4Ih9MjajxAWoizGB9RTMSFNnXYvqSRwWL8udLZXc83j5ivA==
dependencies:
leaflet "*"
leaflet@*:
version "1.9.4"
resolved "https://registry.npmmirror.com/leaflet/-/leaflet-1.9.4.tgz#23fae724e282fa25745aff82ca4d394748db7d8d"
integrity sha512-nxS1ynzJOmOlHp+iL3FyWqK89GtNL8U8rvlMOsQdTTssxZwCXh8N2NB3GDQOL+YR3XnWyZAxwQixURb+FA74PA==
leaflet@^1.0.0, leaflet@^1.9.3: leaflet@^1.0.0, leaflet@^1.9.3:
version "1.9.3" version "1.9.3"
resolved "https://registry.npmmirror.com/leaflet/-/leaflet-1.9.3.tgz" resolved "https://registry.npmmirror.com/leaflet/-/leaflet-1.9.3.tgz"