Jing 1 hónapja
szülő
commit
0a1a835328
2 módosított fájl, 20 hozzáadás és 19 törlés
  1. 2 2
      src/views/login/index.vue
  2. 18 17
      src/views/news/creatNews.vue

+ 2 - 2
src/views/login/index.vue

@@ -58,7 +58,7 @@
                 </el-form-item>
               </el-tooltip>
             </div>
-            <div class="inputBoxSpecial">
+            <!-- <div class="inputBoxSpecial">
               <div class="inputBoxLeft greyBg">
                 <img src="@/assets/login/hardware-chip-outline.png" class="inputIcon">
                 <el-form-item prop="captcha">
@@ -80,7 +80,7 @@
                 </div>
                 <div class="reloadBtn" @click="getImgCode">看不清?换一张图</div>
               </div>
-            </div>
+            </div> -->
             <el-button :loading="loading" type="primary" class="loginBtn" @click.native.prevent="singleLogin">
               登录
             </el-button>

+ 18 - 17
src/views/news/creatNews.vue

@@ -160,7 +160,7 @@
               </div>
               <el-form-item label="" prop="content">
                 <div class="editor-container">
-                  <div v-if="showHtml">
+                  <div v-if="showHtml" style="width: 100%; height: 375px;">
                     <textarea v-model="editorHtml" style="width: 100%; height: 375px;"></textarea>
                   </div>
                   <div v-else>
@@ -639,7 +639,7 @@ export default {
       }
       //如果推荐等级为空,则设置为0
       if (this.form.level == "") {
-        this.form.level = 0;
+        this.form.level = "[0]";
       }
       //取出行政职能和行政区划数组的最后一个数字
       this.form.department_id = this.form.department_arr_id[this.form.department_arr_id.length - 1];
@@ -657,7 +657,7 @@ export default {
         this.form.status = 0;
         this.form.web_site_id = this.websiteid;
         //如果是普通用户 推荐等级设置为0 
-        this.form.level = 0;
+        this.form.level = "[0]";
       }
 
       //先进行验证
@@ -775,7 +775,7 @@ export default {
           this.form.linkurl = res.data.linkurl;
         }
         //如果推荐等级为0 不再回显等级
-        if (res.data.level == "[]") {
+        if (res.data.level == "[0]") {
           this.form.level = "";
         } else {
           this.form.level = JSON.parse(res.data.level);
@@ -884,11 +884,11 @@ export default {
         this.cleatForm(1)
       }
       //如果推荐等级为空,则设置为0
-      // if (this.form.level == "") {
-      //   this.form.level = "0";
-      // }else{
-      this.form.level = JSON.stringify(this.form.level);
-      // }
+      if (this.form.level == "") {
+        this.form.level = "[0]";
+      } else {
+        this.form.level = JSON.stringify(this.form.level);
+      }
 
       //取出行政职能和行政区划数组的最后一个数字
       this.form.department_id = this.form.department_arr_id[this.form.department_arr_id.length - 1];
@@ -1203,18 +1203,18 @@ export default {
   }
 }
 
-.editor-container {
-  height: 375px;
-  padding-bottom: 5px;
-  background-color: #fff;
-}
+// .editor-container {
+//   height: auto;
+//   padding-bottom: 5px;
+//   background-color: #fff;
+// }
 
 .my-quill-editor {
-  height: 280px;
+  height: auto;
 }
 
-.ql-editor {
-  height: 280px;
+::v-deep .ql-editor {
+  min-height: 220px;
 }
 
 /* 富文本对齐方式 */
@@ -1329,4 +1329,5 @@ export default {
   font-size: 12px;
   color: #999;
 }
+
 // 执行v-deep穿透scope选择器 end------------------------------------------------------------></style>