|
|
@@ -151,7 +151,7 @@
|
|
|
</template>
|
|
|
</Modal>
|
|
|
|
|
|
- <component :is="modal1Component" v-model:open="modal1Open" />
|
|
|
+ <component :is="modal1Component" v-model:open="modal1Open" :model-data="selectDatas" @refresh-data="refresh" />
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
@@ -163,6 +163,7 @@ import {
|
|
|
getCurrentInstance,
|
|
|
defineAsyncComponent,
|
|
|
h,
|
|
|
+ onMounted,
|
|
|
} from 'vue';
|
|
|
import Common from '../../common/Common';
|
|
|
import DownloadService from '../../resource/file/DownloadService.js';
|
|
|
@@ -208,6 +209,12 @@ const props = defineProps({
|
|
|
return null;
|
|
|
},
|
|
|
},
|
|
|
+ selectModelDatas: {
|
|
|
+ type: Array,
|
|
|
+ default: function () {
|
|
|
+ return null;
|
|
|
+ },
|
|
|
+ },
|
|
|
showTabDto: {
|
|
|
type: Object,
|
|
|
default: function () {
|
|
|
@@ -241,6 +248,7 @@ const emit = defineEmits([
|
|
|
'judgeIsHaveButtons',
|
|
|
]);
|
|
|
|
|
|
+const selectDatas = ref([]);
|
|
|
const tabButtons = ref([]);
|
|
|
const leftTabButton = ref([]);
|
|
|
const rightTabButton = ref([]);
|
|
|
@@ -265,9 +273,11 @@ const deleteData = () => {
|
|
|
const refresh = () => {
|
|
|
emit('refreshDatas', false);
|
|
|
};
|
|
|
-const closeModal = () => {
|
|
|
- modal1Open.value = false;
|
|
|
-};
|
|
|
+
|
|
|
+watch(()=>props.selectModelDatas,newV => {
|
|
|
+ selectDatas.value = newV;
|
|
|
+},{immediate:true,deep:true});
|
|
|
+
|
|
|
/**
|
|
|
* 导出确认
|
|
|
*/
|