浏览代码

temp save

liujq 4 年之前
父节点
当前提交
cdcc0e7f9f

文件差异内容过多而无法显示
+ 0 - 0
dist/index.html


+ 0 - 0
dist/static/css/chunk-0be11550.6a67fd27.css → dist/static/css/chunk-e24468e0.6a67fd27.css


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.077ca07e.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.99856e29.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-0be11550.0da5357f.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-99416556.75d8ab11.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-e24468e0.c8c5418f.js


+ 9 - 0
src/api/house.js

@@ -19,6 +19,15 @@ export default {
   admestatedel: params => { // 楼盘删除
     return getRequestNoSort('/adm/estate/del', params, 'loading')
   },
+  admestaterecyclelist: params => { // 楼房回收站
+    return getRequest('/adm/estate/recycle/list', params)
+  },
+  admestaterecyclepurge: params => { // 楼房回收站 删除
+    return getRequest('/adm/estate/recycle/purge', params)
+  },
+  admestaterecyclerollback: params => { // 楼房回收站 恢复
+    return getRequest('/adm/estate/recycle/rollback', params)
+  },
   admestatemoduleid: params => { // 资讯列表
     return getRequestNoSort('/adm/estate/module/id', params, 'loading')
   },

+ 3 - 0
src/api/user.js

@@ -7,6 +7,9 @@ export default {
   admwechatuserlist: params => { // 小程序 用户列表
     return getRequest('/adm/wechat/user/list', params)
   },
+  admwechatuseredit: params => { // 小程序 用户添加标签
+    return getRequestNoSort('/adm/wechat/user/edit', params)
+  },
   admadminlist: params => { // 用户列表
     return getRequest('/adm/admin/list', params)
   },

+ 38 - 0
src/views/house/components/searchForm/Del.vue

@@ -0,0 +1,38 @@
+<template>
+  <base-form slot="content" ref="ruleForm" :data="searchData">
+    <div slot="footer">
+      <el-button :loading="listLoading" icon="el-icon-search" class="xl-form-btn bgc1" @click="searchHandle">查询</el-button>
+      </div>
+  </base-form>
+</template>
+<script>
+export default {
+  props: {
+    listLoading: Boolean
+  },
+  inject: ['parentData'],
+  mixins,
+  data() {
+    return {
+      searchData: []
+    }
+  },
+  mounted () {
+    this.getDef()
+  },
+  methods: {
+    getDef (str) {
+      let params = { ...this.$refs.ruleForm.baseForm }
+      this.searchData = [
+        { label: '楼盘名称', key: 'estate_name' },
+      ]
+      this.setDefaultValue(params, 'searchData')
+    },
+    searchHandle() {
+      const oldform = this.$refs.ruleForm.baseForm
+      const newForm = { ...oldform }
+      this.$emit('change', newForm)
+    }
+  }
+}
+</script>

+ 111 - 0
src/views/house/del.vue

@@ -0,0 +1,111 @@
+<template>
+  <div class="app-container">
+    <search-form
+      :list-loading="listLoading"
+      @change="searchHandle"
+    />
+    <table-list
+      :list-loading="listLoading"
+      :data="tableData2"
+      :columns="listConfig"
+      :current-page="currentPage"
+      :page-size="pageSize"
+      :total-records="totalRecords"
+      @currentChange="pageHandle"
+    />
+  </div>
+</template>
+<script>
+import { arrToObj } from '@/utils'
+import SearchForm from './components/searchForm/Del'
+import baseTable from '_m/baseTable.js'
+export default {
+  name: 'index',
+  components: {
+    SearchForm,
+  },
+  provide() {
+    return {
+      parentData: this
+    }
+  },
+  mixins: [baseTable],
+  data() {
+    return {
+      apiStr: 'house.admestaterecyclelist',
+      searchForm: null,
+      isDtlShow: false,
+      isPhotoShow: false,
+      // noCreated: true,
+      curObj: {},
+      isTHEShow: false,
+    }
+  },
+  computed: {
+    tableData2() {
+      const arr = [...this.tableData]
+      arr.map(item => {
+        const metro_type = item.metro_type ? item.metro_type.split(',') : []
+        const metroTypeName = metro_type.map(v => {
+          return arrToObj(this.$dictData.metro_type)[v]
+        })
+        item.metroTypeName = metroTypeName.join(',')
+        const product_type = item.product_type ? item.product_type.split(',') : []
+        const productTypeName = product_type.map(v => {
+          return arrToObj(this.$dictData.product_type)[v]
+        })
+        item.productTypeName = productTypeName.join(',')
+        const metro_line = item.metro_line ? item.metro_line.split(',') : []
+        const metroLineName = metro_line.map(v => {
+          return arrToObj(this.$dictData.metro_line)[v]
+        })
+        item.metroLineName = metroLineName.join(',')
+      })
+      return arr
+    }
+  },
+  created() {},
+  mounted() {
+    this.listConfig = {
+      rows: [
+        { label: '楼盘名称', prop: 'estate_name', minWidth: 150, align: 'left' },
+        { label: '图片', prop: 'pri_image', type: 'img' },
+        { label: '所属区域', prop: 'area_type', type: 'flag', flags: arrToObj(this.$dictData.area_type) }, 
+        { label: '产品类型', prop: 'productTypeName'},
+        { label: '创建人', prop: 'create_by' },
+        { label: '创建时间', prop: 'create_at' },
+        { label: '更新人', prop: 'update_by' },
+        { label: '更新时间', prop: 'update_at' },
+        { label: '操作', width: 120, type: 'handle2', operations:
+          [
+            { label: '恢复', func: this.reHandle, btnType: 'primary' },
+            { label: '删除', func: this.delHandle, btnType: 'danger' },
+          ]
+        }
+      ]
+    }
+  },
+  methods: {
+    delHandle(row) {
+      this.$msg(`您确定要删除该楼盘吗?`, 'confirm', () => {
+        this.$api.house.admestaterecyclepurge({
+          id: row.id,
+        }).then(data => {
+          this.$msgs(`已删除!`)
+          this.fetchData()
+        })
+      }, null, true)
+    },
+    reHandle(row) {
+      this.$msg(`您确定要恢复该楼盘吗?`, 'confirm', () => {
+        this.$api.house.admestaterecyclerollback({
+          id: row.id,
+        }).then(data => {
+          this.$msgs(`已恢复!`)
+          this.fetchData()
+        })
+      }, null, true)
+    },
+  }
+}
+</script>

+ 1 - 0
src/views/plan/index.vue

@@ -88,6 +88,7 @@ export default {
         { label: '交房时间', prop: 'jfsj' },
         { label: '周边配套', prop: 'zbpt' },
         { label: '备注', prop: 'remark' },
+        { label: '提交时间', prop: 'create_at' },
         { label: '操作', width: 60, type: 'handle2', operations:
           [
             { label: '删除', func: this.delHandle, btnType: 'danger' },

+ 13 - 36
src/views/user/app.vue

@@ -62,50 +62,27 @@ export default {
         { label: '昵称', prop: 'nickname' },
         { label: '手机号', prop: 'phones' },
         { label: '注册时间', prop: 'create_at' },
-        // { label: '操作', width: 200, type: 'handle2', operations:
-        //   [
-        //     { label: '编辑', func: this.openPopup, btnType: 'primary' },
-        //     { label: '删除', func: this.delHandle, btnType: 'danger' },
-        //   ]
-        // }
+        { label: '排序', prop: 'tag', type: 'input', width: 200},
+        { label: '操作', width: 100, type: 'handle2', operations:
+          [
+            { label: '保存标签', func: this.saveHandle, btnType: 'primary' },
+          ]
+        }
       ]
     }
   },
   methods: {
-    delHandle(row) {
-      this.$msg(`您确定要删除该用户吗?`, 'confirm', () => {
-        this.$api.user.admadmindel({
-          id: row.id
+    saveHandle(row) {
+      this.$msg(`您确定要保存标签吗?`, 'confirm', () => {
+        this.$api.user.admwechatuseredit({
+          id: row.id,
+          tag: row.tag,
         }).then(data => {
-          this.$msgs(`已删除!`)
+          this.$msgs(`已添加!`)
           this.fetchData()
         })
-      }, null, true)
-    },
-    openPopup(row) {
-      if (row && row.id) {
-        this.curObj = row
-      } else {
-        this.curObj = {}
-      }
-      this.isDtlShow = true
+      })
     },
-    closePopup(obj) {
-      if (obj) {
-        const params = obj
-        let apiStr = 'admadminadd'
-        if (obj.id) apiStr = 'admadminedit'
-        this.$api.user[apiStr]({
-          ...params
-        }).then(data => {
-          this.$msgs(obj.id ? '编辑成功' : '新增成功')
-          this.fetchData()
-          this.isDtlShow = false
-        })
-      } else {
-        this.isDtlShow = false
-      }
-    }
   }
 }
 </script>

部分文件因为文件数量过多而无法显示