Commit 5bc70099 authored by 黄奎's avatar 黄奎

页面修改

parent 86384606
...@@ -35,9 +35,15 @@ ...@@ -35,9 +35,15 @@
</q-uploader> </q-uploader>
</div> </div>
</div> </div>
<div class="text-caption q-my-md q-px-xs text-grey-6">特色</div>
<div class="row wrap"> <div class="row wrap">
<q-input filled stack-label :dense="false" v-model="objOption.Remark" style="margin-top: 20px" type="textarea" <ext-editor :defaultMsg="objOption.StudyFeature" classStr="col-12" @getEditValue="getFeatureValue">
class="col-12" label="介绍" maxlength="300" /> </ext-editor>
</div>
<div class="text-caption q-my-md q-px-xs text-grey-6">介绍</div>
<div class="row wrap">
<ext-editor :defaultMsg="objOption.Remark" classStr="col-12" @getEditValue="getEditValue"></ext-editor>
</div> </div>
<div class="row wrap" style="margin-top:5px;color:red;font-weight:bold;"> <div class="row wrap" style="margin-top:5px;color:red;font-weight:bold;">
必须上传供应商合同才能上架. 必须上传供应商合同才能上架.
...@@ -68,6 +74,7 @@ ...@@ -68,6 +74,7 @@
import { import {
mapState mapState
} from "vuex"; } from "vuex";
import extEditor from "../common/ext-editor";
export default { export default {
props: { props: {
saveObj: { saveObj: {
...@@ -79,6 +86,9 @@ ...@@ -79,6 +86,9 @@
default: null default: null
} }
}, },
components: {
extEditor,
},
data() { data() {
return { return {
persistent: true, persistent: true,
...@@ -92,6 +102,7 @@ ...@@ -92,6 +102,7 @@
School_Id: -1, //所属校区 School_Id: -1, //所属校区
ImgCover: '', //封面图 ImgCover: '', //封面图
ProductType: 1, //产品类型 ProductType: 1, //产品类型
StudyFeature: "", //课程特色
}, },
optionTitle: "", optionTitle: "",
saveLoading: false, saveLoading: false,
...@@ -129,6 +140,14 @@ ...@@ -129,6 +140,14 @@
this.initObj() this.initObj()
}, },
methods: { methods: {
//课程特色
getFeatureValue(obj) {
this.objOption.StudyFeature = obj;
},
//获取编辑器值
getEditValue(obj) {
this.objOption.Remark = obj;
},
//获取产品类型列表 //获取产品类型列表
getProductList() { getProductList() {
queryStudyAbroadProductType({}).then(res => { queryStudyAbroadProductType({}).then(res => {
...@@ -175,6 +194,7 @@ ...@@ -175,6 +194,7 @@
this.objOption.School_Id = tempObj.School_Id; this.objOption.School_Id = tempObj.School_Id;
this.objOption.ImgCover = tempObj.ImgCover; this.objOption.ImgCover = tempObj.ImgCover;
this.objOption.ProductType = tempObj.ProductType; this.objOption.ProductType = tempObj.ProductType;
this.objOption.StudyFeature = tempObj.StudyFeature;
} }
} }
}) })
...@@ -187,6 +207,7 @@ ...@@ -187,6 +207,7 @@
this.objOption.Remark = ''; this.objOption.Remark = '';
this.objOption.School_Id = -1; this.objOption.School_Id = -1;
this.objOption.ProductType = 1; this.objOption.ProductType = 1;
this.objOption.StudyFeature = "";
} }
}, },
//关闭弹窗 //关闭弹窗
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment