230320a303 há 1 ano atrás
pai
commit
ca9e713725

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/index.html


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/app.4601ebad.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/app.6e1d0e89.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-45dbef07.102d4d37.js


+ 3 - 0
src/api/house.js

@@ -320,4 +320,7 @@ export default {
   admeshousedetail: params => { // 上房源  详情
     return getRequestNoSort('/adm/eshouse/detail', params, 'loading')
   },
+  admeshousedel: params => { // 上房源  删除
+    return getRequestNoSort('/adm/eshouse/del', params, 'loading')
+  },
 }

+ 12 - 12
src/views/room/index.vue

@@ -75,9 +75,10 @@ export default {
         { label: '更新时间', prop: 'update_at' },
         { label: '创建人', prop: 'sale_name' },
         { label: '创建时间', prop: 'create_at' },
-        { label: '操作', width: 160, type: 'handle2', operations:
+        { label: '操作', width: 220, type: 'handle2', operations:
           [
             { label: '编辑', func: this.openPopup, btnType: 'primary' },
+            { label: '删除', func: this.delHandle, btnType: 'danger' },
             { labelFor: 'hide_status', disabled: true, func: this.statusHandle, hide: 'nosys',
               labelConfig: {
                 texts: {
@@ -118,17 +119,16 @@ export default {
     //     this.fetchData()
     //   })
     // },
-    // delHandle(row) {
-    //   this.$msg(`您确定要删除该楼盘吗?`, 'confirm', () => {
-    //     this.$api.house.admoldhousedel({
-    //       id: row.id,
-    //       status: 2
-    //     }).then(data => {
-    //       this.$msgs(`已删除!`)
-    //       this.fetchData()
-    //     })
-    //   }, null, true)
-    // },
+    delHandle(row) {
+      this.$msg(`您确定要删除该房源吗?`, 'confirm', () => {
+        this.$api.house.admeshousedel({
+          id: row.id,
+        }).then(data => {
+          this.$msgs(`已删除!`)
+          this.fetchData()
+        })
+      }, null, true)
+    },
     openPopup(row) {
       if (row && row.id) {
         this.curObj = row

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff