diff --git a/frontend-sjgl/src/api/DataQueryMenuModule/index.ts b/frontend-sjgl/src/api/DataQueryMenuModule/index.ts
index 64df9cd7..59f71d69 100644
--- a/frontend-sjgl/src/api/DataQueryMenuModule/index.ts
+++ b/frontend-sjgl/src/api/DataQueryMenuModule/index.ts
@@ -16,6 +16,15 @@ export function getPowerTableList(data) {
data
});
}
+// 基础信息 新增
+export function addPowerInfo(data) {
+ return request({
+ url: '/env/engInfo/add',
+ method: 'post',
+ data
+ });
+}
+
// 基础信息 编辑
export function updatePowerInfo(data) {
return request({
diff --git a/frontend-sjgl/src/views/conventionalHydropower/BasicData/BasicDataSearch.vue b/frontend-sjgl/src/views/conventionalHydropower/BasicData/BasicDataSearch.vue
index 0ebe972b..d0084b58 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/BasicData/BasicDataSearch.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/BasicData/BasicDataSearch.vue
@@ -74,6 +74,7 @@
+ 新增
导出
自定义筛选列
{{ isHide ? '展开' : '隐藏' }}
@@ -94,6 +95,7 @@ const emit = defineEmits<{
(e: 'custom-filter-btn'): void;
(e: 'reset', values: any): void;
(e: 'search-finish', values: any): void;
+ (e: 'add'): void;
}>();
interface Props {
@@ -285,6 +287,10 @@ const exportBtn = () => {
emit('export-btn');
};
+const handleAdd = () => {
+ emit('add');
+};
+
const onValuesChange = (changedValues: any, allValues: any) => {
searchData.value = { ...searchData.value, ...allValues };
};
diff --git a/frontend-sjgl/src/views/conventionalHydropower/BasicData/EditPowerModal.vue b/frontend-sjgl/src/views/conventionalHydropower/BasicData/EditPowerModal.vue
index c2140758..20e5acd8 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/BasicData/EditPowerModal.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/BasicData/EditPowerModal.vue
@@ -1,7 +1,7 @@
import { ref, computed, watch } from 'vue';
import { message } from 'ant-design-vue';
-import { updatePowerInfo } from '@/api/DataQueryMenuModule';
+import { addPowerInfo, updatePowerInfo } from '@/api/DataQueryMenuModule';
import { BasicColumns } from '@/components/MapModal/column.config';
import { getRvcdDropdown, getAddvcdDropdown } from '@/api/select';
import { useJidiSelectEventStore } from '@/store/modules/jidiSelectEvent';
import ConfirmModal from '@/components/ConfirmModal/index.vue';
+import { useDraggable } from '@/utils/drag';
const props = defineProps<{
open: boolean;
record?: any;
+ isAdd?: boolean;
topHynmList?: any[];
hycdList?: any[];
dvtpList?: any[];
@@ -1104,6 +1106,7 @@ const visible = computed({
get: () => props.open,
set: val => emit('update:open', val)
});
+useDraggable(visible, { boundary: true, resetOnOpen: true });
watch(
() => props.open,
val => {
@@ -1312,7 +1315,7 @@ const handleOk = async () => {
try {
await formRef.value?.validateFields();
- if (changeOrder.value.length === 0) {
+ if (!props.isAdd && changeOrder.value.length === 0) {
message.info('未检测到任何修改');
return;
}
@@ -1327,24 +1330,35 @@ const handleOk = async () => {
const handleConfirmSubmit = async (source: string) => {
confirmLoading.value = true;
try {
- // 只传修改过的字段 + stcd
- const engInfo: Record = {
- stcd: formData.value.stcd
- };
- changeOrder.value.forEach(item => {
- engInfo[item.field] = formData.value[item.field];
- });
- const res = await updatePowerInfo({
- engInfo,
- source: source.trim()
- });
+ let res: any;
+ if (props.isAdd) {
+ // 新增时提交所有字段
+ const engInfo: Record = {};
+ Object.assign(engInfo, formData.value);
+ res = await addPowerInfo({
+ engInfo,
+ source: source.trim() || '新增'
+ });
+ } else {
+ // 编辑时只传修改过的字段 + stcd
+ const engInfo: Record = {
+ stcd: formData.value.stcd
+ };
+ changeOrder.value.forEach(item => {
+ engInfo[item.field] = formData.value[item.field];
+ });
+ res = await updatePowerInfo({
+ engInfo,
+ source: source.trim()
+ });
+ }
if (res?.code == 0 || res?.success) {
- message.success('编辑成功');
+ message.success(props.isAdd ? '新增成功' : '编辑成功');
confirmModalVisible.value = false;
visible.value = false;
emit('success');
} else {
- message.error(res?.msg || '编辑失败');
+ message.error(res?.msg || (props.isAdd ? '新增失败' : '编辑失败'));
}
} catch (error) {
console.error('提交失败:', error);
diff --git a/frontend-sjgl/src/views/conventionalHydropower/BasicData/index.vue b/frontend-sjgl/src/views/conventionalHydropower/BasicData/index.vue
index 0aa99243..7b70e226 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/BasicData/index.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/BasicData/index.vue
@@ -7,6 +7,7 @@
:topHynmLoading="topHynmLoading"
:hycdLoading="hycdLoading"
:dvtpList="dvtpList"
+ @add="handleAdd"
@export-btn="exportBtn"
@custom-filter-btn="customFilterBtn"
@search-finish="onSearchFinish"
@@ -78,6 +79,7 @@ import DeleteConfirmModal from './DeleteConfirmModal.vue';
import {
getCompanyList,
getPowerTableList,
+ addPowerInfo,
updatePowerInfo,
deletePowerInfo
} from '@/api/DataQueryMenuModule';
@@ -117,6 +119,7 @@ const customColumnVisible = ref(false);
// 编辑相关
const editVisible = ref(false);
const editRecord = ref(null);
+const isAdd = ref(false);
const deleteModalRef = ref();
// 集团和公司数据
@@ -1026,8 +1029,15 @@ const handleDetail = (record: any) => {
modelStore.params.stcd = record.stcd;
modelStore.title = record.stnm;
};
+// 新增
+const handleAdd = () => {
+ isAdd.value = true;
+ editRecord.value = null;
+ editVisible.value = true;
+};
// 编辑
const handleEdit = (record: any) => {
+ isAdd.value = false;
getEngInfoById({ stcd: record.stcd }).then(res => {
console.log(res);
editRecord.value = { ...res.data };
diff --git a/frontend-sjgl/src/views/conventionalHydropower/aiBox/EditAiBoxModal.vue b/frontend-sjgl/src/views/conventionalHydropower/aiBox/EditAiBoxModal.vue
index a158763d..3b73c23b 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/aiBox/EditAiBoxModal.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/aiBox/EditAiBoxModal.vue
@@ -244,6 +244,7 @@ import { addAiboxInfo, updateAiboxInfo } from '@/api/DataQueryMenuModule';
import { getEngInfoDropdown } from '@/api/select';
import { useJidiSelectEventStore } from '@/store/modules/jidiSelectEvent';
import ConfirmModal from '@/components/ConfirmModal/index.vue';
+import { useDraggable } from '@/utils/drag';
const props = defineProps<{
open: boolean;
@@ -258,6 +259,7 @@ const visible = computed({
get: () => props.open,
set: val => emit('update:open', val)
});
+useDraggable(visible, { boundary: true, resetOnOpen: true });
const formRef = ref();
const confirmLoading = ref(false);
diff --git a/frontend-sjgl/src/views/conventionalHydropower/aquaEco/EditOtweModal.vue b/frontend-sjgl/src/views/conventionalHydropower/aquaEco/EditOtweModal.vue
index a1d0e4fe..1482c6fb 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/aquaEco/EditOtweModal.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/aquaEco/EditOtweModal.vue
@@ -210,6 +210,7 @@ import { getEngInfoDropdown } from '@/api/select';
import { useJidiSelectEventStore } from '@/store/modules/jidiSelectEvent';
import { sttpGetKendoList } from '@/api/system/map/ConfigManagement';
import ConfirmModal from '@/components/ConfirmModal/index.vue';
+import { useDraggable } from '@/utils/drag';
const props = defineProps<{
open: boolean;
@@ -224,6 +225,7 @@ const visible = computed({
get: () => props.open,
set: val => emit('update:open', val)
});
+useDraggable(visible, { boundary: true, resetOnOpen: true });
const formRef = ref();
const confirmLoading = ref(false);
diff --git a/frontend-sjgl/src/views/conventionalHydropower/fishSurvey/EditFishModal.vue b/frontend-sjgl/src/views/conventionalHydropower/fishSurvey/EditFishModal.vue
index abe882fe..bac38950 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/fishSurvey/EditFishModal.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/fishSurvey/EditFishModal.vue
@@ -254,6 +254,7 @@ import { getEngInfoDropdown } from '@/api/select';
import { useJidiSelectEventStore } from '@/store/modules/jidiSelectEvent';
import { sttpGetKendoList } from '@/api/system/map/ConfigManagement';
import ConfirmModal from '@/components/ConfirmModal/index.vue';
+import { useDraggable } from '@/utils/drag';
const props = defineProps<{
open: boolean;
@@ -268,6 +269,7 @@ const visible = computed({
get: () => props.open,
set: val => emit('update:open', val)
});
+useDraggable(visible, { boundary: true, resetOnOpen: true });
const formRef = ref();
const confirmLoading = ref(false);
diff --git a/frontend-sjgl/src/views/conventionalHydropower/guoYuSheShi/EditFpModal.vue b/frontend-sjgl/src/views/conventionalHydropower/guoYuSheShi/EditFpModal.vue
index 963a230e..7f69fc19 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/guoYuSheShi/EditFpModal.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/guoYuSheShi/EditFpModal.vue
@@ -145,12 +145,14 @@ import { getEngInfoDropdown } from '@/api/select';
import { useJidiSelectEventStore } from '@/store/modules/jidiSelectEvent';
import { sttpGetKendoList } from '@/api/system/map/ConfigManagement';
import ConfirmModal from '@/components/ConfirmModal/index.vue';
+import { useDraggable } from '@/utils/drag';
const props = defineProps<{ open: boolean; record?: any; isAdd?: boolean }>();
const emit = defineEmits(['update:open', 'success']);
const jidiSelectEventStore = useJidiSelectEventStore();
const visible = computed({ get: () => props.open, set: val => emit('update:open', val) });
+useDraggable(visible, { boundary: true, resetOnOpen: true });
const formRef = ref();
const confirmLoading = ref(false);
diff --git a/frontend-sjgl/src/views/conventionalHydropower/luShengShengTaiDiaoCha/EditTeModal.vue b/frontend-sjgl/src/views/conventionalHydropower/luShengShengTaiDiaoCha/EditTeModal.vue
index 13c84d71..fb34ac91 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/luShengShengTaiDiaoCha/EditTeModal.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/luShengShengTaiDiaoCha/EditTeModal.vue
@@ -148,6 +148,7 @@ import { getEngInfoDropdown } from '@/api/select';
import { useJidiSelectEventStore } from '@/store/modules/jidiSelectEvent';
import { sttpGetKendoList } from '@/api/system/map/ConfigManagement';
import ConfirmModal from '@/components/ConfirmModal/index.vue';
+import { useDraggable } from '@/utils/drag';
const props = defineProps<{
open: boolean;
@@ -162,6 +163,7 @@ const visible = computed({
get: () => props.open,
set: val => emit('update:open', val)
});
+useDraggable(visible, { boundary: true, resetOnOpen: true });
const formRef = ref();
const confirmLoading = ref(false);
diff --git a/frontend-sjgl/src/views/conventionalHydropower/photoBase/EditPhotoModal.vue b/frontend-sjgl/src/views/conventionalHydropower/photoBase/EditPhotoModal.vue
index da730a4d..e4e25a66 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/photoBase/EditPhotoModal.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/photoBase/EditPhotoModal.vue
@@ -189,6 +189,7 @@ import { getEngInfoDropdown } from '@/api/select';
import { useJidiSelectEventStore } from '@/store/modules/jidiSelectEvent';
import { sttpGetKendoList } from '@/api/system/map/ConfigManagement';
import ConfirmModal from '@/components/ConfirmModal/index.vue';
+import { useDraggable } from '@/utils/drag';
const props = defineProps<{
open: boolean;
@@ -203,6 +204,7 @@ const visible = computed({
get: () => props.open,
set: val => emit('update:open', val)
});
+useDraggable(visible, { boundary: true, resetOnOpen: true });
const formRef = ref();
const confirmLoading = ref(false);
diff --git a/frontend-sjgl/src/views/conventionalHydropower/qiXiDi/EditFhModal.vue b/frontend-sjgl/src/views/conventionalHydropower/qiXiDi/EditFhModal.vue
index 5cca0007..2e616ef6 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/qiXiDi/EditFhModal.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/qiXiDi/EditFhModal.vue
@@ -105,12 +105,14 @@ import { addFhInfo, updateFhInfo } from '@/api/DataQueryMenuModule';
import { getEngInfoDropdown } from '@/api/select';
import { useJidiSelectEventStore } from '@/store/modules/jidiSelectEvent';
import ConfirmModal from '@/components/ConfirmModal/index.vue';
+import { useDraggable } from '@/utils/drag';
const props = defineProps<{ open: boolean; record?: any; isAdd?: boolean }>();
const emit = defineEmits(['update:open', 'success']);
const jidiSelectEventStore = useJidiSelectEventStore();
const visible = computed({ get: () => props.open, set: val => emit('update:open', val) });
+useDraggable(visible, { boundary: true, resetOnOpen: true });
const formRef = ref();
const confirmLoading = ref(false);
diff --git a/frontend-sjgl/src/views/conventionalHydropower/rescueStation/EditVaModal.vue b/frontend-sjgl/src/views/conventionalHydropower/rescueStation/EditVaModal.vue
index 71686651..5b16c2c3 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/rescueStation/EditVaModal.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/rescueStation/EditVaModal.vue
@@ -221,6 +221,7 @@ import { getEngInfoDropdown } from '@/api/select';
import { useJidiSelectEventStore } from '@/store/modules/jidiSelectEvent';
import { sttpGetKendoList } from '@/api/system/map/ConfigManagement';
import ConfirmModal from '@/components/ConfirmModal/index.vue';
+import { useDraggable } from '@/utils/drag';
const props = defineProps<{
open: boolean;
@@ -235,6 +236,7 @@ const visible = computed({
get: () => props.open,
set: val => emit('update:open', val)
});
+useDraggable(visible, { boundary: true, resetOnOpen: true });
const formRef = ref();
const confirmLoading = ref(false);
diff --git a/frontend-sjgl/src/views/conventionalHydropower/shengTaiLiuLiang/EditEqModal.vue b/frontend-sjgl/src/views/conventionalHydropower/shengTaiLiuLiang/EditEqModal.vue
index a46cf73a..c28dd7da 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/shengTaiLiuLiang/EditEqModal.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/shengTaiLiuLiang/EditEqModal.vue
@@ -117,12 +117,14 @@ import { getEngInfoDropdown } from '@/api/select';
import { useJidiSelectEventStore } from '@/store/modules/jidiSelectEvent';
import { sttpGetKendoList } from '@/api/system/map/ConfigManagement';
import ConfirmModal from '@/components/ConfirmModal/index.vue';
+import { useDraggable } from '@/utils/drag';
const props = defineProps<{ open: boolean; record?: any; isAdd?: boolean }>();
const emit = defineEmits(['update:open', 'success']);
const jidiSelectEventStore = useJidiSelectEventStore();
const visible = computed({ get: () => props.open, set: val => emit('update:open', val) });
+useDraggable(visible, { boundary: true, resetOnOpen: true });
const formRef = ref();
const confirmLoading = ref(false);
diff --git a/frontend-sjgl/src/views/conventionalHydropower/shiPinJianKong/EditVdModal.vue b/frontend-sjgl/src/views/conventionalHydropower/shiPinJianKong/EditVdModal.vue
index a5a4a416..ccf77402 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/shiPinJianKong/EditVdModal.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/shiPinJianKong/EditVdModal.vue
@@ -58,12 +58,14 @@ import { getEngInfoDropdown } from '@/api/select';
import { useJidiSelectEventStore } from '@/store/modules/jidiSelectEvent';
import { sttpGetKendoList } from '@/api/system/map/ConfigManagement';
import ConfirmModal from '@/components/ConfirmModal/index.vue';
+import { useDraggable } from '@/utils/drag';
const props = defineProps<{ open: boolean; record?: any; isAdd?: boolean }>();
const emit = defineEmits(['update:open', 'success']);
const jidiSelectEventStore = useJidiSelectEventStore();
const visible = computed({ get: () => props.open, set: val => emit('update:open', val) });
+useDraggable(visible, { boundary: true, resetOnOpen: true });
const formRef = ref();
const confirmLoading = ref(false);
diff --git a/frontend-sjgl/src/views/conventionalHydropower/shuiShengShengTaiDiaoCha/EditWeModal.vue b/frontend-sjgl/src/views/conventionalHydropower/shuiShengShengTaiDiaoCha/EditWeModal.vue
index ee1ce7dd..a91e859d 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/shuiShengShengTaiDiaoCha/EditWeModal.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/shuiShengShengTaiDiaoCha/EditWeModal.vue
@@ -148,6 +148,7 @@ import { getEngInfoDropdown } from '@/api/select';
import { useJidiSelectEventStore } from '@/store/modules/jidiSelectEvent';
import { sttpGetKendoList } from '@/api/system/map/ConfigManagement';
import ConfirmModal from '@/components/ConfirmModal/index.vue';
+import { useDraggable } from '@/utils/drag';
const props = defineProps<{
open: boolean;
@@ -162,6 +163,7 @@ const visible = computed({
get: () => props.open,
set: val => emit('update:open', val)
});
+useDraggable(visible, { boundary: true, resetOnOpen: true });
const formRef = ref();
const confirmLoading = ref(false);
diff --git a/frontend-sjgl/src/views/conventionalHydropower/shuiWenJianCe/EditWtModal.vue b/frontend-sjgl/src/views/conventionalHydropower/shuiWenJianCe/EditWtModal.vue
index ff4aee4f..417c8602 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/shuiWenJianCe/EditWtModal.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/shuiWenJianCe/EditWtModal.vue
@@ -143,6 +143,7 @@ import { getEngInfoDropdown } from '@/api/select';
import { useJidiSelectEventStore } from '@/store/modules/jidiSelectEvent';
import { sttpGetKendoList } from '@/api/system/map/ConfigManagement';
import ConfirmModal from '@/components/ConfirmModal/index.vue';
+import { useDraggable } from '@/utils/drag';
const props = defineProps<{
open: boolean;
@@ -157,6 +158,7 @@ const visible = computed({
get: () => props.open,
set: val => emit('update:open', val)
});
+useDraggable(visible, { boundary: true, resetOnOpen: true });
const formRef = ref();
const confirmLoading = ref(false);
diff --git a/frontend-sjgl/src/views/conventionalHydropower/shuiZhiJianCe/EditWqModal.vue b/frontend-sjgl/src/views/conventionalHydropower/shuiZhiJianCe/EditWqModal.vue
index 654cafa1..af4f360e 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/shuiZhiJianCe/EditWqModal.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/shuiZhiJianCe/EditWqModal.vue
@@ -174,6 +174,7 @@ import { getDictItemsByCode } from '@/api/dict';
import { useJidiSelectEventStore } from '@/store/modules/jidiSelectEvent';
import { sttpGetKendoList } from '@/api/system/map/ConfigManagement';
import ConfirmModal from '@/components/ConfirmModal/index.vue';
+import { useDraggable } from '@/utils/drag';
const props = defineProps<{
open: boolean;
@@ -188,6 +189,7 @@ const visible = computed({
get: () => props.open,
set: val => emit('update:open', val)
});
+useDraggable(visible, { boundary: true, resetOnOpen: true });
const formRef = ref();
const confirmLoading = ref(false);
diff --git a/frontend-sjgl/src/views/conventionalHydropower/sonarCam/EditSonarModal.vue b/frontend-sjgl/src/views/conventionalHydropower/sonarCam/EditSonarModal.vue
index 596f5edb..b75ccbd2 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/sonarCam/EditSonarModal.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/sonarCam/EditSonarModal.vue
@@ -209,6 +209,7 @@ import { getEngInfoDropdown } from '@/api/select';
import { useJidiSelectEventStore } from '@/store/modules/jidiSelectEvent';
import { sttpGetKendoList } from '@/api/system/map/ConfigManagement';
import ConfirmModal from '@/components/ConfirmModal/index.vue';
+import { useDraggable } from '@/utils/drag';
const props = defineProps<{
open: boolean;
@@ -223,6 +224,7 @@ const visible = computed({
get: () => props.open,
set: val => emit('update:open', val)
});
+useDraggable(visible, { boundary: true, resetOnOpen: true });
const formRef = ref();
const confirmLoading = ref(false);
diff --git a/frontend-sjgl/src/views/conventionalHydropower/spawnGround/EditSpawnModal.vue b/frontend-sjgl/src/views/conventionalHydropower/spawnGround/EditSpawnModal.vue
index 4695c105..f59a0880 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/spawnGround/EditSpawnModal.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/spawnGround/EditSpawnModal.vue
@@ -231,6 +231,7 @@ import { getEngInfoDropdown } from '@/api/select';
import { useJidiSelectEventStore } from '@/store/modules/jidiSelectEvent';
import { sttpGetKendoList } from '@/api/system/map/ConfigManagement';
import ConfirmModal from '@/components/ConfirmModal/index.vue';
+import { useDraggable } from '@/utils/drag';
const props = defineProps<{
open: boolean;
@@ -245,6 +246,7 @@ const visible = computed({
get: () => props.open,
set: val => emit('update:open', val)
});
+useDraggable(visible, { boundary: true, resetOnOpen: true });
const formRef = ref();
const confirmLoading = ref(false);
diff --git a/frontend-sjgl/src/views/conventionalHydropower/tempMit/EditDwModal.vue b/frontend-sjgl/src/views/conventionalHydropower/tempMit/EditDwModal.vue
index 90651bbe..c8dc3c2e 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/tempMit/EditDwModal.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/tempMit/EditDwModal.vue
@@ -202,6 +202,7 @@ import { getEngInfoDropdown } from '@/api/select';
import { useJidiSelectEventStore } from '@/store/modules/jidiSelectEvent';
import { sttpGetKendoList } from '@/api/system/map/ConfigManagement';
import ConfirmModal from '@/components/ConfirmModal/index.vue';
+import { useDraggable } from '@/utils/drag';
const props = defineProps<{
open: boolean;
@@ -216,6 +217,7 @@ const visible = computed({
get: () => props.open,
set: val => emit('update:open', val)
});
+useDraggable(visible, { boundary: true, resetOnOpen: true });
const formRef = ref();
const confirmLoading = ref(false);
diff --git a/frontend-sjgl/src/views/conventionalHydropower/terrEco/EditOtteModal.vue b/frontend-sjgl/src/views/conventionalHydropower/terrEco/EditOtteModal.vue
index 7579bb22..ec062ce4 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/terrEco/EditOtteModal.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/terrEco/EditOtteModal.vue
@@ -210,6 +210,7 @@ import { getEngInfoDropdown } from '@/api/select';
import { useJidiSelectEventStore } from '@/store/modules/jidiSelectEvent';
import { sttpGetKendoList } from '@/api/system/map/ConfigManagement';
import ConfirmModal from '@/components/ConfirmModal/index.vue';
+import { useDraggable } from '@/utils/drag';
const props = defineProps<{
open: boolean;
@@ -224,6 +225,7 @@ const visible = computed({
get: () => props.open,
set: val => emit('update:open', val)
});
+useDraggable(visible, { boundary: true, resetOnOpen: true });
const formRef = ref();
const confirmLoading = ref(false);
diff --git a/frontend-sjgl/src/views/conventionalHydropower/yunXingGaoJing/EditWarnModal.vue b/frontend-sjgl/src/views/conventionalHydropower/yunXingGaoJing/EditWarnModal.vue
index cb45a601..24219bfb 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/yunXingGaoJing/EditWarnModal.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/yunXingGaoJing/EditWarnModal.vue
@@ -138,6 +138,7 @@ import { addWarnInfo, updateWarnInfo } from '@/api/DataQueryMenuModule';
import { getEngInfoDropdown } from '@/api/select';
import { useJidiSelectEventStore } from '@/store/modules/jidiSelectEvent';
import ConfirmModal from '@/components/ConfirmModal/index.vue';
+import { useDraggable } from '@/utils/drag';
const props = defineProps<{
open: boolean;
@@ -152,6 +153,7 @@ const visible = computed({
get: () => props.open,
set: val => emit('update:open', val)
});
+useDraggable(visible, { boundary: true, resetOnOpen: true });
const formRef = ref();
const confirmLoading = ref(false);
diff --git a/frontend-sjgl/src/views/conventionalHydropower/zengZhiFangLiu/EditFbModal.vue b/frontend-sjgl/src/views/conventionalHydropower/zengZhiFangLiu/EditFbModal.vue
index f058e50e..81713680 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/zengZhiFangLiu/EditFbModal.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/zengZhiFangLiu/EditFbModal.vue
@@ -120,12 +120,14 @@ import { getEngInfoDropdown } from '@/api/select';
import { useJidiSelectEventStore } from '@/store/modules/jidiSelectEvent';
import { sttpGetKendoList } from '@/api/system/map/ConfigManagement';
import ConfirmModal from '@/components/ConfirmModal/index.vue';
+import { useDraggable } from '@/utils/drag';
const props = defineProps<{ open: boolean; record?: any; isAdd?: boolean }>();
const emit = defineEmits(['update:open', 'success']);
const jidiSelectEventStore = useJidiSelectEventStore();
const visible = computed({ get: () => props.open, set: val => emit('update:open', val) });
+useDraggable(visible, { boundary: true, resetOnOpen: true });
const formRef = ref();
const confirmLoading = ref(false);
diff --git a/frontend-sjgl/src/views/conventionalHydropower/zhenXIZhiWuYuan/EditVpModal.vue b/frontend-sjgl/src/views/conventionalHydropower/zhenXIZhiWuYuan/EditVpModal.vue
index c300c2e8..3ae3d69e 100644
--- a/frontend-sjgl/src/views/conventionalHydropower/zhenXIZhiWuYuan/EditVpModal.vue
+++ b/frontend-sjgl/src/views/conventionalHydropower/zhenXIZhiWuYuan/EditVpModal.vue
@@ -78,12 +78,14 @@ import { getEngInfoDropdown } from '@/api/select';
import { useJidiSelectEventStore } from '@/store/modules/jidiSelectEvent';
import { sttpGetKendoList } from '@/api/system/map/ConfigManagement';
import ConfirmModal from '@/components/ConfirmModal/index.vue';
+import { useDraggable } from '@/utils/drag';
const props = defineProps<{ open: boolean; record?: any; isAdd?: boolean }>();
const emit = defineEmits(['update:open', 'success']);
const jidiSelectEventStore = useJidiSelectEventStore();
const visible = computed({ get: () => props.open, set: val => emit('update:open', val) });
+useDraggable(visible, { boundary: true, resetOnOpen: true });
const formRef = ref();
const confirmLoading = ref(false);