Kaynağa Gözat

feat:完善system

AmandaG 9 ay önce
ebeveyn
işleme
1219d63ceb

+ 14 - 0
src/api/module/system.ts

@@ -73,4 +73,18 @@ export const SubscribePagination = (params: any, config: any) => {
     },
     config
   )
+}
+/**
+ * 收藏表格分页切换
+ */
+export const MonitoringInit = (params: any, config: any) => {
+  return HttpAxios.get(
+    `${baseUrl}`,
+    {
+      action: 'monitoring_setting',
+      operate: 'monitoring_rules_init',
+      ...params
+    },
+    config
+  )
 }

+ 0 - 1
src/views/SystemSettings/src/SystemSettings.vue

@@ -186,7 +186,6 @@ const deleteAddedRules = (val: any) => {
 
 onMounted(() => {
   getsubscribe()
-  console.log(sessionStorage.getItem('activeTab'))
   if (sessionStorage.getItem('activeTab') != null) {
     TabActive.value = sessionStorage.getItem('activeTab')
     sessionStorage.removeItem('activeTab')

+ 10 - 14
src/views/SystemSettings/src/components/MonitoringTable/src/MonitoringTable.vue

@@ -109,18 +109,15 @@ const getTableColumns = async () => {
 const getTableData = async () => {
   // 保存页长以及当前页码
   tableData.value.data = datatest.value
-  // await $api
-  //   .getBookingTableData({
-  //     other_filed: '',
-  //     ...filterdataobj.value
-  //   })
-  //   .then((res: any) => {
-  //     if (res.code === 200) {
-  //       tableData.value.data = res.data
-  //     }
-  //   })
-  //   .finally(() => {
-  //   })
+  $api
+    .MonitoringInit({})
+    .then((res: any) => {
+      if (res.code === 200) {
+        // tableData.value.data = res.data
+        console.log(res.data)
+      }
+    })
+    .finally(() => {})
 }
 
 // 实现行点击样式
@@ -128,8 +125,7 @@ useRowClickStyle(tableRef)
 
 // 点击删除
 const handleDelete = (row: any) => {
-  visible.value = true
-  console.log(row)
+  row.visible.value = true
 }
 
 // 跳转Create New Rule页面

+ 0 - 2
src/views/SystemSettings/src/components/SettingTable/src/SettingTable.vue

@@ -75,7 +75,6 @@ const getTableData = (val: any) => {
     pageInfo.value.pageNo = val.cp
     pageInfo.value.pageSize = val.ps
     pageInfo.value.total = val.rc
-    console.log(pageInfo.value)
   }
 }
 
@@ -92,7 +91,6 @@ const handleDelete = (row: any) => {
     })
     .then((res: any) => {
       if (res.code === 200) {
-        console.log(tableData.value.data)
         tableData.value.data = tableData.value.data?.filter((item) => item.Event !== row.Event)
         emits('deleteAddedRules', row.Event)
       }

+ 0 - 1
src/views/Tracking/src/components/TrackingDetail/src/TrackingDetail.vue

@@ -99,7 +99,6 @@ const getData = () => {
     })
     .then((res: any) => {
       if (res.code === 200) {
-        console.log(res.data)
         subscribe_a.value = res.data.a
         is_subscribe.value = res.data.is_subscribe
         // 获取数据