liujq 3 年之前
父节点
当前提交
2f546e5178

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


文件差异内容过多而无法显示
+ 0 - 0
dist/static/css/app.12225fb4.css


文件差异内容过多而无法显示
+ 0 - 0
dist/static/css/chunk-7219e7a3.58534ee0.css


文件差异内容过多而无法显示
+ 0 - 0
dist/static/css/chunk-7d0cd1a2.28ba474b.css


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


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


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


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-7219e7a3.49ac99a5.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-7d0cd1a2.83f11007.js


+ 34 - 0
src/components/Common/BaseForm.vue

@@ -240,6 +240,29 @@
           <i v-else class="el-icon-plus icon" @click="focusHandle(item.key)" />
         </el-upload>
       </el-form-item>
+      <el-form-item
+        v-else-if="item.type === 'uploadsGif'"
+        :key="index"
+        :class="item.class"
+        :prop="item.key"
+        :label="isInline && noLabel ? '' : item.label"
+        :rules="item.rules === 1 ? [{ required: true, message: '请选择'+ item.label, trigger: 'blur' }] : item.rules"
+      >
+        <el-upload
+          class="img-upload"
+          :disabled="item.disabled || false"
+          :action="`${requireUrl}/adm/upload/cloudpub`"
+          :data="{logic_type: 'estate', token}"
+          name="upload"
+          :show-file-list="false"
+          :on-success="uploadSuccess"
+          :on-error="uploadError"
+          :before-upload="uploadGifBefore"
+        >
+          <img v-if="baseForm[item.key]" :src="baseForm[item.key]" class="img" @click="focusHandle(item.key)">
+          <i v-else class="el-icon-plus icon" @click="focusHandle(item.key)" />
+        </el-upload>
+      </el-form-item>
       <el-form-item
         v-else-if="item.type === 'uploadIcon'"
         :key="index"
@@ -549,6 +572,17 @@ export default {
     uploadError(file) {
       this.changeHandle(file)
     },
+    uploadGifBefore(file) {
+      const isJPGPNG = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/gif'
+      const isLt2M = file.size / 1024 / 1024 < 30
+      if (!isJPGPNG) {
+        this.$message.error('上传图片只能是 JPG PNG GIF 格式!')
+      }
+      if (!isLt2M) {
+        this.$message.error('上传图片大小不能超过 30M!')
+      }
+      return isJPGPNG && isLt2M
+    },
     uploadBefore(file) {
       const isJPGPNG = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/gif'
       const isLt2M = file.size / 1024 / 1024 < 2

+ 5 - 5
src/views/channel/components/popup/IndexEdit.vue

@@ -73,11 +73,11 @@ export default {
         { label: '标题', key: 'title', rules: 1},
         { label: '状态', rules: 1, key: 'hide_status', class: 'c-2', type: 'select', options: this.$dictData.hide_status},
         { label: '视频分类', key: 'channels_type', class: 'c-2', type: 'select', options: this.$dictData.channels_type},
-        { label: '封面图', rules: 1, key: 'cover', class: 'c-2', type: 'cuImg',
-          options: {
-            w: 175,
-            h: 225,
-          }
+        { label: '封面350*450', rules: 1, key: 'cover', class: 'c-2', type: 'uploadsGif',
+          // options: {
+          //   w: 175,
+          //   h: 225,
+          // }
         },
         { label: '自定义标签', class: 'c-2', key: 'custom_tag', type: 'textarea' },
         { label: '视频ID', rules: 1, key: 'feed_id', type: 'textarea' },

+ 3 - 22
src/views/house/components/popup/SaleEdit.vue

@@ -5,32 +5,13 @@
       :show-close="false"
       :close-on-click-modal="false"
       :visible.sync="isShow"
-      :title="curObj.id ? '编辑楼盘动态' : '新增楼盘动态'"
+      :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="110px">
-        <div slot="otherItem">
-          <div class="scoped-img-area">
-            <div class="sia-op" v-for="(imgsrc,index) in imagesArr" :key="index">
-              <img class="img" :src="imgsrc + '_adm0'" alt="img">
-              <span class="close" @click="imgDel(index)"></span>
-            </div>
-            <el-upload
-              class="sia-img"
-              :action="`${domainUrl}/adm/upload/cloud`"
-              :data="{logic_type: 'estate', token}"
-              name="upload"
-              :show-file-list="false"
-              :on-success="roomAreaUploadSuccess"
-              :before-upload="roomAreaUploadBefore"
-              >
-              <i class="el-icon-plus icon"/>
-            </el-upload>
-          </div>
-        </div>
       </base-form>
       <div class="xl-form">
         <div class="xl-form-footer">
@@ -77,7 +58,7 @@ export default {
       this.formData = [
         { label: '销售列表', key: 'sale_id', type: 'selectRemote',
           remoteParams: { skey: 'sale_name', api: `user.admsaleuserlist`, opKey: 'sale_name', opVal: 'id' },
-          remoteOptions: [{ keyRO: item.sale_name, valRO: item.sale_id }]
+          remoteOptions: [{ keyRO: params.sale_name, valRO: params.sale_id }]
         },
       ]
       this.setDefaultValue(params)
@@ -88,7 +69,7 @@ export default {
           if (valid) {
             const oldform = this.$refs.ruleForm.baseForm
             const newForm = { ...oldform }
-            if (this.curObj.id) newForm.sale_id = this.curObj.id
+            if (this.curObj.id) newForm.id = this.curObj.id
             newForm.estate_id = this.parentData.searchForm.estate_id
             let apiStr = 'admestatesaleadd'
             if (this.curObj.id) apiStr = 'admestatesaleedit'

+ 4 - 0
src/views/house/index.vue

@@ -122,6 +122,7 @@ export default {
             { label: '保存排序', func: this.saveHandle, btnType: 'success' },
             { label: '编辑信息', func: this.openPopup, btnType: 'primary' },
             { label: '编辑相册', func: this.openPhotoPopup, btnType: 'info' },
+            { label: '置业顾问', func: this.openSale, btnType: 'info' },
             { label: '楼盘动态', func: this.openNews, btnType: 'info' },
             { label: '历史成交价', func: this.openPrice, btnType: 'info' },
             { label: '模块主题', func: this.openTHEPopup, btnType: 'info' },
@@ -163,6 +164,9 @@ export default {
     openPrice (item) {
       this.$router.push('/house/price?id=' + item.id + '&name=' + item.estate_name)
     },
+    openSale (item) {
+      this.$router.push('/house/sale?id=' + item.id + '&name=' + item.estate_name)
+    },
     openPhotoPopup(row) {
       if (row && row.id) {
         this.curObj = row

+ 0 - 4
src/views/house/sale.vue

@@ -67,10 +67,6 @@ export default {
         { label: '头像', prop: 'sale_avatar', type: 'img' },
         { label: '联系电话', prop: 'sale_phone' },
         { label: '销售标签', prop: 'custom_tag'},
-        { label: '微信昵称', prop: 'nickname'},
-        { label: '微信头像', prop: 'avatar', type: 'img' },
-        { label: '微信电话', prop: 'phone' },
-        { label: '更新时间', prop: 'update_at' },
         { label: '操作', width: 120, type: 'handle2', operations:
           [
             { label: '编辑', func: this.openPopup, btnType: 'primary' },

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