|
@@ -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(',')
|