diff --git a/src/api/remoteSensingSourceData/remoteSensingSourceData.js b/src/api/remoteSensingSourceData/remoteSensingSourceData.js
index da88526..ccf5a1c 100644
--- a/src/api/remoteSensingSourceData/remoteSensingSourceData.js
+++ b/src/api/remoteSensingSourceData/remoteSensingSourceData.js
@@ -45,4 +45,13 @@ export const importTemplate = (data) => {
method: 'post',
data: data
});
+};
+
+export const importTemplateImgList = (data) => {
+ return request({
+ url: '/api/' + moduleName + '/ui/remoteSensing/importTemplateImgList',
+ headers:{'Content-Type': 'multipart/form-data'},
+ method: 'post',
+ data: data
+ });
};
\ No newline at end of file
diff --git a/src/views/dataService/remoteSensingData/components/retrievalCondition.vue b/src/views/dataService/remoteSensingData/components/retrievalCondition.vue
index 6ecba5e..b9c0982 100644
--- a/src/views/dataService/remoteSensingData/components/retrievalCondition.vue
+++ b/src/views/dataService/remoteSensingData/components/retrievalCondition.vue
@@ -48,9 +48,17 @@
- Upload
+
+
+
+ Upload
+
+
+
+
+ Upload Img
@@ -58,6 +66,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -102,12 +123,13 @@ 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";
// import { getList as getDisasterPage } from '/@/api/disasterInfo/index';
const approvalDataRef = ref();
const addAddressRef = ref();
const upFileRef = ref();
+const uploadDataRef = ref();
const state = reactive({
disasterData: {
data: [],
@@ -192,6 +214,9 @@ const state = reactive({
}, {
label: 'Night light satellite',
value: 'Night light satellite'
+ }, {
+ label: 'Video satellite',
+ value: 'Video satellite'
}],
value_satelliteType: '',
value_resolution: [],
@@ -229,6 +254,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 = {
@@ -255,7 +289,7 @@ const addRemoteSensingData = (data, fileList) => {
ElMessage.success("success");
emit('callback');
searchRemoteSensingSourceData();
- upFileRef.value.clearFiles();
+ upFileRef.value.clearFiles();
})
}
@@ -268,7 +302,7 @@ const searchRemoteSensingSourceData = () => {
}
else if (state.value_satelliteType[i] == state.options_satelliteType[1].value) {
let arrData = ['Sentinel -2_Sentinel - 2A', 'Sentinel -2_Sentinel - 2B', 'GF1', 'GF1B', 'GF1C', 'GF1D', 'GF2', 'GF4', 'GF6'];
- arrData.forEach(item => {
+ arrData.forEach(item => {
state.satelliteCodeList.push(item);
})
}
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 @@
+
+
+
+
+
+
+ select file
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file