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) => {
return request({
url: '/api/' + moduleName + '/ui/remoteSensing/remove',
method: 'delte',
data: ids,
method: 'get',
params:{
ids
}
});
}

View File

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

View File

@ -2629,6 +2629,18 @@ leaflet-imageoverlay-rotated@^0.2.1:
dependencies:
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:
version "1.9.3"
resolved "https://registry.npmmirror.com/leaflet/-/leaflet-1.9.3.tgz"