diff --git a/src/api/remoteSensingSourceData/remoteSensingSourceData.js b/src/api/remoteSensingSourceData/remoteSensingSourceData.js index 231d040..8ca21bc 100644 --- a/src/api/remoteSensingSourceData/remoteSensingSourceData.js +++ b/src/api/remoteSensingSourceData/remoteSensingSourceData.js @@ -52,4 +52,13 @@ export const removeList = (ids) => { method: 'delte', data: ids, }); -} \ No newline at end of file +} + +export const importTemplateImgList = (data) => { + return request({ + url: '/api/' + moduleName + '/ui/remoteSensing/importTemplateImgList', + headers:{'Content-Type': 'multipart/form-data'}, + method: 'post', + data: data + }); +}; diff --git a/src/directive/authDirective.js b/src/directive/authDirective.js index 0013142..e288c06 100644 --- a/src/directive/authDirective.js +++ b/src/directive/authDirective.js @@ -18,7 +18,6 @@ export function authDirective(app) { app.directive('auth-role', { mounted(el, binding) { const stores = useUserInfo(); - console.log('指令验证',stores.userInfos); if (!stores.userInfos.roles.some((v) => v === binding.value)) el.parentNode.removeChild(el); }, }); diff --git a/src/views/dataService/remoteSensingData/components/retrievalCondition.vue b/src/views/dataService/remoteSensingData/components/retrievalCondition.vue index 692f071..ee264ab 100644 --- a/src/views/dataService/remoteSensingData/components/retrievalCondition.vue +++ b/src/views/dataService/remoteSensingData/components/retrievalCondition.vue @@ -48,11 +48,19 @@ + - + + + Upload Img + + @@ -67,6 +75,18 @@ + + + + @@ -111,6 +132,7 @@ import disasterTable from "/@/components/table/DisasterTable.vue"; import approvalData from "./approvalData.vue"; import addAddress from "./addAddress.vue"; import { ElMessageBox, ElMessage } from 'element-plus'; +import uploadData from "./uploadData.vue"; //选择事件 const handleSelectionChange = (val) => { state.multipleSelection = val; @@ -140,6 +162,7 @@ const removeThis = ()=>{ const approvalDataRef = ref(); const addAddressRef = ref(); const upFileRef = ref(); +const uploadDataRef = ref(); const state = reactive({ disasterData: { data: [], @@ -224,6 +247,9 @@ const state = reactive({ }, { label: 'Night light satellite', value: 'Night light satellite' + }, { + label: 'Video satellite', + value: 'Video satellite' }], value_satelliteType: '', value_resolution: [], @@ -261,6 +287,15 @@ const addAddressOpen = (row) => { addAddressRef.value.openDialog(row); }; +// 打开上传弹窗 +const OpenuploadDataRef = () => { + if (state.disasterId == null) { + ElMessage.warning('Please select the disaster first'); + return false; + } + uploadDataRef.value.openDialog(state.disasterId); +}; + // 获取遥感影像元数据 const getData = () => { let data = { diff --git a/src/views/dataService/remoteSensingData/components/uploadData.vue b/src/views/dataService/remoteSensingData/components/uploadData.vue new file mode 100644 index 0000000..647e919 --- /dev/null +++ b/src/views/dataService/remoteSensingData/components/uploadData.vue @@ -0,0 +1,98 @@ + + + + + \ No newline at end of file