From 2d92ca1ecab9596b6dd574b5e9be9cf2a338e6e8 Mon Sep 17 00:00:00 2001 From: glj Date: Mon, 10 Jul 2023 10:53:13 +0800 Subject: [PATCH] =?UTF-8?q?glj-=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.js | 2 +- .../visualData/component/hotspotForm.vue | 5 +- src/views/dataService/visualData/index.vue | 190 +++++++++++------- 3 files changed, 121 insertions(+), 76 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index 66754fa..a952728 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -2,7 +2,7 @@ import axios from 'axios'; import { ElMessage, ElMessageBox } from 'element-plus'; import qs from 'qs'; import { Session } from '/@/utils/storage'; -export const moduleName = 'yyhouc-biz-vordm'; +export const moduleName = 'biz-vordm'; export const crawlModule = 'vordm-crawl'; export const twitterModule = "vordm-twitter"; const service = axios.create({ diff --git a/src/views/dataService/visualData/component/hotspotForm.vue b/src/views/dataService/visualData/component/hotspotForm.vue index 2d6889f..5e46f0c 100644 --- a/src/views/dataService/visualData/component/hotspotForm.vue +++ b/src/views/dataService/visualData/component/hotspotForm.vue @@ -42,6 +42,7 @@ const options = [ const emit = defineEmits(['callback']); const adminAddFormRef = ref(); const state = reactive({ + source:0, isShowDialog: false, isLoading:false, ruleForm: { @@ -77,7 +78,8 @@ const resetField = () => { // 打开弹窗 const openDialog = (row) => { state.isShowDialog = true; - state.disasterId = row; + state.disasterId = row.disasterId; + state.source = row.source; }; // 关闭弹窗 const closeDialog = () => { @@ -97,6 +99,7 @@ const onSubmit = () => { state.isLoading = true; state.ruleForm.type = 2; state.ruleForm.disasterId = state.disasterId; + state.ruleForm.source = state.source; uploadData(state.ruleForm).then(res => { ElMessage.success("Submit successfully"); emit('callback'); diff --git a/src/views/dataService/visualData/index.vue b/src/views/dataService/visualData/index.vue index bb3e5fa..1b721ca 100644 --- a/src/views/dataService/visualData/index.vue +++ b/src/views/dataService/visualData/index.vue @@ -1,15 +1,15 @@