liujq 2 anni fa
parent
commit
4829ab18ea

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-429e6d9a.9e590483.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-4a9beb7e.e112ef7d.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.2bce587e.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.b54238dc.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-093b5b3c.08a40870.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-093b5b3c.d8246d25.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-429e6d9a.726bd84d.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-4a9beb7e.e59c1612.js


+ 7 - 0
src/api/house.js

@@ -25,4 +25,11 @@ export default {
   admestatecontentdetail: params => { //  楼盘介绍内容 详情
     return getRequestNoSort('/adm/estate/content/detail', params, 'loading')
   },
+  admestateinfoedit: params => { // 楼盘一页纸 编辑
+    return getRequestNoSort('/adm/estate/info/edit', params, 'loading')
+  },
+  admestateinfodetail: params => { //  楼盘一页纸 详情
+    return getRequestNoSort('/adm/estate/info/detail', params, 'loading')
+  },
 }
+

+ 1 - 0
src/views/base/role.vue

@@ -47,6 +47,7 @@ export default {
   mounted () {
     this.listConfig = {
       rows: [
+        { label: 'id', prop: 'id' },
         { label: '角色名称', prop: 'name' },
         { label: '角色描述', prop: 'description' },
         { label: '操作', width: 230, type: 'handle2',

+ 108 - 0
src/views/house/components/popup/OneImg.vue

@@ -0,0 +1,108 @@
+<template>
+  <div>
+    <el-dialog
+      v-loading="loading"
+      :show-close="false"
+      :close-on-click-modal="false"
+      :visible.sync="isShow"
+      :title="curObj.id ? '编辑一页纸' : '添加一页纸'"
+      :fullscreen="false"
+      width="700px"
+      custom-class="xl-dialog"
+      center
+    >
+      <base-form ref="ruleForm" class="lib-edit" :data="formData" :is-inline="false" label-width="100px">
+        <div slot="footer" style="padding-top: 20px;">
+          <el-button class="xl-form-btn t2" @click="close">关 闭</el-button>
+          <el-button class="xl-form-btn t1" @click="close('confirm')">确定</el-button>
+        </div>
+      </base-form>
+    </el-dialog>
+  </div>
+</template>
+<script>
+export default {
+  components: { },
+  mixins,
+  props: {
+    isShow: Boolean,
+    curObj: Object
+  },
+  inject: ['parentData'],
+  data() {
+    return {
+      formData: [],
+      loading: true,
+      cObj: {},
+      posTips: '',
+    }
+  },
+  watch: {
+    isShow: function(val) {
+      if (val) {
+        if (this.curObj.id) {
+          this.$api.house.admestateinfodetail({id: this.curObj.id}).then(res => {
+            let curData = res || {}
+            this.cObj = curData || {}
+            this.getDef()
+          })
+        } else {
+          this.cObj = this.curObj
+          this.getDef()
+        }
+      }
+    },
+  },
+  methods: {
+    getDef(fieldStr) {
+      let params = { ...this.cObj }
+      this.formData = [
+        { label: '一页纸图片', key: 'info_img', type: 'uploads' },
+      ]
+      this.setDefaultValue(params)
+    },
+    close(str) {
+      if (str === 'confirm') {
+        this.$refs['ruleForm'].$refs['baseForm'].validate((valid) => {
+          if (valid) {
+            const oldform = this.$refs.ruleForm.baseForm
+            const newForm = { ...oldform }
+            if (this.curObj.id) newForm.id = this.curObj.id
+            let apiStr = 'admestateinfoedit'
+            if (newForm.id) apiStr = 'admestateinfoedit'
+            this.$api.house[apiStr](newForm).then(data => {
+              this.$msgs(newForm.id ? '编辑成功' : '新增成功')
+              this.$emit('close', newForm)
+            })
+          }
+        })
+      } else {
+        this.$emit('close')
+        this.setDefaultValue()
+      }
+    },
+  }
+}
+</script>
+<style lang="scss" scoped>
+@import '../../../../styles/libEdit.scss';
+.lib-edit {
+  padding-top: 0;
+  ::v-deep .el-form-item {
+    margin-bottom: 10px;
+  }
+  ::v-deep .el-date-editor.el-input {
+    width: 100%;
+  }
+}
+::v-deep .img-upload {
+  height: 180px;
+  overflow: hidden;
+  .icon {
+    width: 278px;
+  }
+  .img {
+    width: 278px;
+  }
+}
+</style>

+ 3 - 1
src/views/house/index.vue

@@ -34,7 +34,7 @@
 import { arrToObj } from '@/utils'
 import SearchForm from './components/searchForm/Index'
 import PopupEdit from './components/popup/IndexEdit'
-import HelpRule from './components/popup/HelpRule'
+import HelpRule from './components/popup/OneImg'
 import baseTable from '_m/baseTable.js'
 export default {
   name: 'houseIndex',
@@ -84,6 +84,7 @@ export default {
             { label: '编辑信息', func: this.openPopup, btnType: 'primary' },
             { label: '删除', func: this.delHandle, btnType: 'danger' },
             { label: '楼盘介绍', func: this.linkDesc, btnType: 'success' },
+            { label: '一页纸', func: this.openHRPopup, btnType: 'success' },
           ]
         }
       ]
@@ -114,6 +115,7 @@ export default {
       }, null, true)
     },
     openPopup(row) {
+      console.log(row)
       if (row && row.id) {
         this.curObj = row
       } else {

Some files were not shown because too many files changed in this diff