From dbf48bf983b20754778ba5cd94a889b93738367e Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 27 五月 2024 16:25:28 +0800
Subject: [PATCH] 最新版本

---
 admin/src/components/base/BaseOpera.vue                   |    4 ++--
 admin/src/api/business/hiddenDanger.js                    |    5 ++++-
 admin/src/components/business/OperaHiddenDangerWindow.vue |   20 +++++++++++++++++++-
 admin/src/api/business/cars.js                            |    5 +++++
 admin/src/components/base/BaseTable.vue                   |    2 +-
 5 files changed, 31 insertions(+), 5 deletions(-)

diff --git a/admin/src/api/business/cars.js b/admin/src/api/business/cars.js
index ca31faf..a9802ff 100644
--- a/admin/src/api/business/cars.js
+++ b/admin/src/api/business/cars.js
@@ -6,6 +6,11 @@
     trim: true
   })
 }
+export function allList (data) {
+  return request.post('/visitsAdmin/cloudService/business/cars/list', data, {
+    trim: true
+  })
+}
 
 // 鍒涘缓
 export function create (data) {
diff --git a/admin/src/api/business/hiddenDanger.js b/admin/src/api/business/hiddenDanger.js
index 6d889e0..5c47db0 100644
--- a/admin/src/api/business/hiddenDanger.js
+++ b/admin/src/api/business/hiddenDanger.js
@@ -21,7 +21,10 @@
 export function deleteById (id) {
   return request.get(`/visitsAdmin/cloudService/business/hiddenDanger/delete/${id}`)
 }
-
+// 鏍规嵁ID鏌ヨ
+export function detail(id) {
+  return request.get(`/visitsAdmin/cloudService/business/hiddenDanger/${id}`)
+}
 // 鎵归噺鍒犻櫎
 export function deleteByIdInBatch (ids) {
   return request.get('/visitsAdmin/cloudService/business/hiddenDanger/delete/batch', {
diff --git a/admin/src/components/base/BaseOpera.vue b/admin/src/components/base/BaseOpera.vue
index ad852f7..2052fd7 100644
--- a/admin/src/components/base/BaseOpera.vue
+++ b/admin/src/components/base/BaseOpera.vue
@@ -92,7 +92,7 @@
             this.$emit('success')
           })
           .catch(e => {
-            this.$tip.apiFailed(e)
+            // this.$tip.apiFailed(e)
           })
           .finally(() => {
             this.isWorking = false
@@ -114,7 +114,7 @@
             this.$emit('success')
           })
           .catch(e => {
-            this.$tip.apiFailed(e)
+            // this.$tip.apiFailed(e)
           })
           .finally(() => {
             this.isWorking = false
diff --git a/admin/src/components/base/BaseTable.vue b/admin/src/components/base/BaseTable.vue
index 6df292f..7aea229 100644
--- a/admin/src/components/base/BaseTable.vue
+++ b/admin/src/components/base/BaseTable.vue
@@ -132,7 +132,7 @@
           this.tableData.pagination.total = data.total
         })
         .catch(e => {
-          this.$tip.apiFailed(e)
+          // this.$tip.apiFailed(e)
         })
         .finally(() => {
           this.isWorking.search = false
diff --git a/admin/src/components/business/OperaHiddenDangerWindow.vue b/admin/src/components/business/OperaHiddenDangerWindow.vue
index ae6acc1..4d72830 100644
--- a/admin/src/components/business/OperaHiddenDangerWindow.vue
+++ b/admin/src/components/business/OperaHiddenDangerWindow.vue
@@ -178,13 +178,16 @@
 </template>
 
 <script>
+import BaseOpera from '@/components/base/BaseOpera'
 import GlobalWindow from '@/components/common/GlobalWindow'
 export default {
   components: { GlobalWindow },
+  extends: BaseOpera,
   data() {
     return {
       title: '璁垮棰勭害璇︽儏',
       visible: false,
+      dataId:null,
       model: { },
       isShowAppr: false,
       apprTitle: '鍚屾剰',
@@ -193,11 +196,26 @@
       rules: {}
     }
   },
+  created () {
+    this.config({
+      api: '/business/hiddenDanger',
+      'field.id': 'id'
+    })
+  },
   methods: {
     open(title,target){
       this.title =title
       this.visible=true
-      this.model = target
+      this.model = {}
+      this.dataId =target.id
+      this.getDetail()
+
+    },
+    getDetail(){
+    this.api.detail(this.dataId)
+        .then(res =>{
+         this.model =  res
+    })
     },
     confirm() {
       console.log('--')

--
Gitblit v1.9.3