230320a303 1 년 전
부모
커밋
ca9e713725
6개의 변경된 파일15개의 추가작업 그리고 12개의 파일을 삭제
  1. 0 0
      dist/index.html
  2. 0 0
      dist/static/js/app.4601ebad.js
  3. 0 0
      dist/static/js/app.6e1d0e89.js
  4. 0 0
      dist/static/js/chunk-45dbef07.102d4d37.js
  5. 3 0
      src/api/house.js
  6. 12 12
      src/views/room/index.vue

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/index.html


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/app.4601ebad.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/app.6e1d0e89.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.