|
@@ -2,7 +2,7 @@
|
2
|
2
|
<div class="p-2 auto-overflow-y">
|
3
|
3
|
<el-row :gutter="10">
|
4
|
4
|
<el-col :lg="8" :xs="24">
|
5
|
|
- <pt-area @get-area-id="getAreaId"></pt-area>
|
|
5
|
+ <ptArea @get-area-id="getAreaId"></ptArea>
|
6
|
6
|
</el-col>
|
7
|
7
|
<el-col :lg="16" :xs="24" class="p-2">
|
8
|
8
|
<transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
|
|
@@ -190,6 +190,7 @@ import { PtRoomVO } from '@/api/basics/room/ptRoom/types';
|
190
|
190
|
import DetailForm from './DetailForm.vue';
|
191
|
191
|
import ptArea from '../ptArea/index.vue';
|
192
|
192
|
import { globalHeaders } from '@/utils/request';
|
|
193
|
+import { c } from 'node_modules/vite/dist/node/types.d-aGj9QkWt';
|
193
|
194
|
const uploadRef = ref<ElUploadInstance>();
|
194
|
195
|
|
195
|
196
|
defineOptions({ name: 'PtRoom' });
|
|
@@ -216,8 +217,9 @@ const unsetLoading = ref(false);
|
216
|
217
|
|
217
|
218
|
const areaId = ref<string | number>(null);
|
218
|
219
|
|
219
|
|
-const getAreaId = (v: string | number) => {
|
220
|
|
- queryParams.areaId = v;
|
|
220
|
+const getAreaId = (v: any) => {
|
|
221
|
+ queryParams.areaId = v.areaId;
|
|
222
|
+ selectedArea.value = v;
|
221
|
223
|
getList();
|
222
|
224
|
};
|
223
|
225
|
|
|
@@ -263,6 +265,8 @@ const queryParams = reactive({
|
263
|
265
|
params: {}
|
264
|
266
|
});
|
265
|
267
|
|
|
268
|
+const selectedArea = ref<any>({});
|
|
269
|
+
|
266
|
270
|
/*** 用户导入参数 */
|
267
|
271
|
const upload = reactive<ImportOption>({
|
268
|
272
|
// 是否显示弹出层(用户导入)
|
|
@@ -407,7 +411,7 @@ const handleFileSuccess = (response: any, file: UploadFile) => {
|
407
|
411
|
const detailFormRef = ref();
|
408
|
412
|
const openForm = (type: string, row?: PtRoomVO) => {
|
409
|
413
|
const id = row?.roomId || ids.value[0];
|
410
|
|
- detailFormRef?.value.open(type, id);
|
|
414
|
+ detailFormRef?.value.open(type, id, selectedArea.value);
|
411
|
415
|
};
|
412
|
416
|
onMounted(() => {
|
413
|
417
|
getList();
|