|
@@ -59,14 +59,16 @@
|
|
|
<el-tab-pane label="数据归集统计表" name="data">
|
|
|
<transition name="fade" mode="out-in">
|
|
|
<div v-show="activeTab === 'data'">
|
|
|
- <iframe :src="baseUrl() + '/LogVisualization/viewExcel'"></iframe>
|
|
|
+<!-- <iframe ref="iframe_data" :src="baseUrl() + '/LogVisualization/viewExcel'"></iframe>-->
|
|
|
+ <iframe ref="iframe_data" ></iframe>
|
|
|
</div>
|
|
|
</transition>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="DM业务时间统计表" name="dm">
|
|
|
<transition name="fade" mode="out-in">
|
|
|
<div v-show="activeTab === 'dm'">
|
|
|
- <iframe :src="baseUrl() + '/LogVisualization/viewDMExcel'"></iframe>
|
|
|
+<!-- <iframe ref="iframe_dm" :src="baseUrl() + '/LogVisualization/viewDMExcel'"></iframe>-->
|
|
|
+ <iframe ref="iframe_dm" ></iframe>
|
|
|
</div>
|
|
|
</transition>
|
|
|
</el-tab-pane>
|
|
@@ -77,16 +79,17 @@
|
|
|
<script>
|
|
|
import DiyElForm from "@/components/common/DiyElForm.vue";
|
|
|
import {dataSyncHandleTableFilterForm} from "@/data/all-forms";
|
|
|
-import {onBeforeMount, ref} from "vue";
|
|
|
+import {onBeforeMount, onMounted, ref} from "vue";
|
|
|
import {Search} from "@element-plus/icons-vue";
|
|
|
import MyTable from "@/components/common/MyTable.vue";
|
|
|
import {useActiveGetTableData, usePagination} from "@/unit/use-method/usePagination";
|
|
|
import {dataSyncHandleSyncTabTableHeader} from "@/data/all-table-header";
|
|
|
import ElePagination from "@/components/common/ElePagination.vue";
|
|
|
import {getDataSyncHandleWatchSheet} from "@/service/data-sync-hanlle-watch/data-sync-handle-watch-sheet";
|
|
|
-import {baseUrl, baseUrl_Address} from "@/service/config";
|
|
|
+import {baseUrl, baseUrl_Address, withCredentials} from "@/service/config";
|
|
|
import {useRootStore} from "@/stores/useStore";
|
|
|
import {UserInfo} from "@/unit/UserInfo";
|
|
|
+import {getLoginImg, loadIframeDataContent, loadIframeDmContent} from "@/service/show-platform";
|
|
|
|
|
|
export default {
|
|
|
name: "DataSyncHandleTableHome",
|
|
@@ -106,6 +109,8 @@ export default {
|
|
|
},
|
|
|
components: {ElePagination, MyTable, DiyElForm},
|
|
|
setup() {
|
|
|
+ let iframe_data = ref(null);
|
|
|
+ let iframe_dm = ref(null);
|
|
|
useActiveGetTableData(getSyncTableData)
|
|
|
function clickOperationBtn(item) {
|
|
|
if (item.type === '导出'){
|
|
@@ -126,8 +131,24 @@ export default {
|
|
|
|
|
|
}
|
|
|
const {pageIndex,pageSize,handleSizeChange,totalCount,tableData,refEl}= usePagination(getSyncTableData)
|
|
|
+ function getLoadIframeDataContent() {
|
|
|
+ loadIframeDataContent().then(async res => {
|
|
|
+ const html = await res.text();
|
|
|
+ iframe_data.value.srcdoc = html;
|
|
|
+ })
|
|
|
+ }
|
|
|
+ function getLoadIframeDmContent() {
|
|
|
+ loadIframeDmContent().then(async res => {
|
|
|
+ const html = await res.text();
|
|
|
+ iframe_dm.value.srcdoc = html;
|
|
|
+ })
|
|
|
+ }
|
|
|
onBeforeMount((item) => {
|
|
|
|
|
|
+ })
|
|
|
+ onMounted((item) => {
|
|
|
+ getLoadIframeDataContent();
|
|
|
+ getLoadIframeDmContent();
|
|
|
})
|
|
|
const tableControlBtns = [
|
|
|
|
|
@@ -146,8 +167,9 @@ export default {
|
|
|
activeTab,
|
|
|
pageIndex,pageSize,handleSizeChange,totalCount,tableData,refEl,
|
|
|
dataSyncHandleSyncTabTableHeader,getSyncTableData,
|
|
|
- clickOperationBtn
|
|
|
-
|
|
|
+ clickOperationBtn,
|
|
|
+ iframe_data,
|
|
|
+ iframe_dm
|
|
|
}
|
|
|
}
|
|
|
}
|