Browse Source

后台-船厂端-查看详情展示可标签

qifengquan 2 years ago
parent
commit
3530ff3d41
1 changed files with 9 additions and 8 deletions
  1. 9 8
      app/admin/view/ship_yard/edit.html

+ 9 - 8
app/admin/view/ship_yard/edit.html

@@ -38,7 +38,8 @@
             <el-input v-model="form.intro"/>
         </el-form-item>
         <el-form-item label="内容" prop="product_intro" :rules="{message:'此项必须',required:true}">
-            <textarea name="product_intro" class="product_intro"></textarea>
+            <el-input v-model="form.product_intro"/>
+
         </el-form-item>
         <el-form-item>
             <el-button type="primary" @click="save" :loading="saving">保存</el-button>
@@ -52,12 +53,12 @@
 <script>
     let editorContent;
     let vo={:json_encode($vo?:null,256)};
-    require(['ckeditor'], function () {
-        editorContent=window.createEditor('[name=product_intro]', {height: 350})
-        if(vo){
-            editorContent.setData(vo.product_intro)
-        }
-    });
+    // require(['ckeditor'], function () {
+    //     editorContent=window.createEditor('[name=product_intro]', {height: 350})
+    //     if(vo){
+    //         editorContent.setData(vo.product_intro)
+    //     }
+    // });
     if(vo){
         vo.head_img=vo.head_img?vo.head_img.split(',').filter(a=>{
             return a
@@ -92,7 +93,7 @@
                 $('#fileUpload').trigger('click')
             },
             save(){
-                this.form.product_intro=editorContent.getData()
+                // this.form.product_intro=editorContent.getData()
                 let _this=this,
                     form=JSON.parse(JSON.stringify(this.form))
                 form.head_img=form.head_img.join(',')