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

页面修改

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