From 9e9d666bbe57503bb0902bda0d23bf34ae75e832 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期一, 21 十月 2024 17:17:25 +0800
Subject: [PATCH] 表格和图表展示 ;同步 colFilter

---
 src/views/project/yw/systemManage/dataSourceMgr/DataSourceMgr.vue |   58 ++++++++++++----------------------------------------------
 1 files changed, 12 insertions(+), 46 deletions(-)

diff --git a/src/views/project/yw/systemManage/dataSourceMgr/DataSourceMgr.vue b/src/views/project/yw/systemManage/dataSourceMgr/DataSourceMgr.vue
index 757aaaa..eced396 100644
--- a/src/views/project/yw/systemManage/dataSourceMgr/DataSourceMgr.vue
+++ b/src/views/project/yw/systemManage/dataSourceMgr/DataSourceMgr.vue
@@ -27,45 +27,37 @@
 					<el-table-column type="expand" fixed="left">
 						<template #default="scope">
 							<div class="ml-16">
-								<h3 >鏁版嵁婧愰厤缃�</h3>
+								<h3>鏁版嵁婧愰厤缃�</h3>
 								<div v-if="scope.row.config" class="mt-3">
 									<div class="w-2/3">
 										<div>
-											<span >椹卞姩锛�</span>
+											<span>椹卞姩锛�</span>
 											<span>{{ scope.row.config.driver }}</span>
 										</div>
 										<div>
-											<span >鍦板潃锛�</span>
+											<span>鍦板潃锛�</span>
 											<span>{{ scope.row.config.url }}</span>
 										</div>
 										<div>
-											<span >鐢ㄦ埛鍚嶏細</span>
+											<span>鐢ㄦ埛鍚嶏細</span>
 											<span>{{ scope.row.config.user }}</span>
 										</div>
-										<div>
+										<!-- <div>
 											<span >瀵嗙爜锛�</span>
 											<span>{{ scope.row.config.pass }}</span>
-										</div>
+										</div> -->
 									</div>
-									
 								</div>
 							</div>
 						</template>
 					</el-table-column>
-					-->
-					<el-table-column prop="title" label="鍚嶇О"  fixed="left" show-overflow-tooltip> </el-table-column>
+					<el-table-column prop="title" label="鍚嶇О" fixed="left" show-overflow-tooltip> </el-table-column>
 
-					<el-table-column label="绫诲瀷" prop="type" width="100" show-overflow-tooltip>
-					
-						
-					</el-table-column>
-					
+					<el-table-column label="绫诲瀷" prop="type" width="100" show-overflow-tooltip> </el-table-column>
 
 					<el-table-column label="鎿嶄綔" width="200" fixed="right" show-overflow-tooltip>
 						<template #default="scope">
 							<div class="space-x-3 items-center flex">
-							
-						
 								<!-- <el-tooltip effect="dark" content="缂栬緫" placement="top">
 									<i class="ywifont ywicon-bianji !text-[15px] text-blue-400 cursor-pointer" @click="openOptDlg(scope.row)"></i>
 								</el-tooltip>
@@ -86,7 +78,6 @@
 						</template>
 					</el-table-column>
 				</el-table>
-	
 			</div>
 		</template>
 
@@ -97,49 +88,25 @@
 </template>
 
 <script setup lang="ts">
-import { useDraggable } from '@vueuse/core';
-import { deleteCurrentRow } from '/@/utils/util';
-
 import { onMounted, ref } from 'vue';
 import { usePageDisplay } from '/@/hooks/usePageDisplay';
 import { useQueryTable } from '/@/hooks/useQueryTable';
 // import { useTableSort } from '/@/hooks/useTableSort';
 // import { useValidateUniqueness } from '/@/hooks/useValidateUniqueness';
 import { ElMessage } from 'element-plus';
-import { nextTick } from 'vue';
-import OptDlg from './optDlg/OptDlg.vue';
 import * as dataSourceApi from '/@/api/dataSource';
-import { checkSupervisorValidate, updatePublishStatus } from '/@/api/supervisorAdmin';
-import Chat from '/@/components/chat/Chat.vue';
-import { gotoRoute } from '/@/utils/route';
-import { useCompRef } from '/@/utils/types';
+import { updatePublishStatus } from '/@/api/supervisorAdmin';
 
-import axios, { CancelTokenSource } from 'axios';
+import { SupervisorPublished } from '../../lowCode/sqlAmis/types';
 import HMContainer from '/@/components/layout/HMContainer.vue';
-import { useUpdateData } from '/@/hooks/useUpdateData';
-import { SupervisorPublished, supervisorPublishedMap } from '../../lowCode/sqlAmis/types';
-import MetricPrompt from './optDlg/MetricPrompt.vue';
-import MetricName from './optDlg/MetricName.vue';
 
 //#region ====================== 琛ㄦ牸鏁版嵁锛宼able init ======================
 const tableLoading = ref(false);
 const tableData = ref([]);
 const isDragStatus = ref(false);
 const getTableData = async () => {
-	// const res = await dataSourceApi.getDataSourceList();
-	const res = {
-		values:[{
-			id:'32',
-			title:'鏁版嵁搴�43',
-			type:'JDBC',
-			config:{
-				driver:'org.postgresql.Driver',
-				url:"jdbc:postgresql://192.168.123.43:5432/hswater_supply?Ap",
-				user:"postgres",
-				pass:"*****"
-			}
-		}]
-	}
+	const res = await dataSourceApi.getDataSourceList();
+
 	tableData.value = res?.values ?? [];
 };
 //#endregion
@@ -224,7 +191,6 @@
 	published === SupervisorPublished.Y ? ElMessage.success('鍙戝竷鎴愬姛') : ElMessage.info('宸插彇娑堝彂甯�');
 };
 //#endregion
-
 
 //#region ====================== 鏇存柊鍙戝竷鐘舵�� ======================
 // useUpdateData({

--
Gitblit v1.9.3