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 @@