liujq 4 jaren geleden
bovenliggende
commit
443339b43a

+ 1 - 1
src/components/Tinymce/components/EditorImage.vue

@@ -12,7 +12,7 @@
         :before-upload="beforeUpload"
         action="https://httpbin.org/post" -->
       <el-upload
-        :action="`${domainUrl}/adm/upload/cloud`"
+        :action="`${domainUrl}/adm/upload/cloudpub`"
         :data="{logic_type: 'textcontent', token}"
         name="upload"
         :file-list="fileList"

+ 4 - 3
src/views/news/components/popup/IndexEditSelf.vue

@@ -11,8 +11,8 @@
       custom-class="xl-drawer"
       direction="rtl"
     >
-      <base-form ref="ruleForm" class="lib-edit" :data="formData" :is-inline="false" label-width="110px">
-        <div class="scoped-textarea" slot="otherItem">
+      <base-form ref="ruleForm" class="lib-edit" :data="formData" :is-inline="false" label-width="60px" :insertSlotArr="[1]">
+        <div class="scoped-textarea"  slot="OI1">
           <div class="st-text">房票科技</div>
           <tinymce v-model="content" :height="500" />
         </div>
@@ -81,7 +81,7 @@ export default {
         { label: '作者', key: 'author', class: 'c-2' },
         { label: '状态', key: 'hide_status', type: 'select', class: 'c-2', options: this.$dictData.hide_status },
         { label: '主图', key: 'pri_image', type: 'uploads', class: 'c-2' },
-        { label: '关联楼盘', key: 'estate_id_list', type: 'selectRemote', multiple: true, changeHandle: this.deviceChange,
+        { label: '楼盘', key: 'estate_id_list', type: 'selectRemote', multiple: true, changeHandle: this.deviceChange,
           remoteParams: { skey: 'estate_name', api: `house.admestatelist?search_EQ_status=1`, opKey: 'estate_name', opVal: 'id' },
           remoteOptions: remoteOptionsIds
         },
@@ -141,6 +141,7 @@ export default {
 .scoped-textarea {
   width: 100%;
   position: relative;
+  margin-bottom: 20px;
   .st-text {
     position: absolute;
     bottom: 2px;

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

@@ -77,7 +77,9 @@ export default {
       const arr = [...this.tableData]
       arr.map(item => {
         // item.pri_image = this.IMadd(item.pri_image)
-        item.linkStr = `${item.link.length}---${item.link.substring(item.link.length-16, item.link.length-1)}`
+        if (item.link) {
+          item.linkStr = `${item.link.length}---${item.link.substring(item.link.length-16, item.link.length-1)}`
+        }
         item.hideStatus = Number(item.hide_status)
       })
       return arr