Commit b64529d9 authored by Mac's avatar Mac

1

parent d1731ca4
...@@ -72,6 +72,12 @@ ...@@ -72,6 +72,12 @@
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="抵扣金额" prop="MaxDiscountsPrice" class="is-required">
<el-input v-model="msg.MaxDiscountsPrice" step="1" min="0" onkeyup="this.value= this.value.match(/\d+(\.\d{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''">
<template slot="append"></template>
</el-input>
</el-form-item>
<el-form-item label="卡券有效期" class="is-required"> <el-form-item label="卡券有效期" class="is-required">
<el-radio-group v-model="msg.IndateType"> <el-radio-group v-model="msg.IndateType">
<el-radio :label="1">领取后N天内有效</el-radio> <el-radio :label="1">领取后N天内有效</el-radio>
...@@ -303,6 +309,9 @@ ...@@ -303,6 +309,9 @@
IndateDay:[ IndateDay:[
{required: true, message: "课程卡有效天数不能为空", trigger: "blur"} {required: true, message: "课程卡有效天数不能为空", trigger: "blur"}
], ],
MaxDiscountsPrice:[
{required: true, message: "抵扣金额不能为空", trigger: "blur"}
],
TotalNum:[ TotalNum:[
{required: true, message: "发放总数不能为空", trigger: "blur"} {required: true, message: "发放总数不能为空", trigger: "blur"}
], ],
......
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
</el-switch> </el-switch>
</el-form-item> </el-form-item>
<el-form-item label="资讯内容"> <el-form-item label="资讯内容">
<el-input type="textarea" class="w300" :rows="4" v-model="addMsg.Describe"></el-input> <UE style="width:750px;" :defaultMsg="defaultMsg" :config="config" :IsMultiple="true" ref="ue"></UE>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -166,11 +166,12 @@ ...@@ -166,11 +166,12 @@
</template> </template>
<script> <script>
import ChooseImg from "@/components/global/ChooseImg.vue"; import ChooseImg from "@/components/global/ChooseImg.vue";
import UE from "@/components/global/UE.vue";
export default { export default {
components: { components: {
ChooseImg, ChooseImg,
UE
}, },
data() { data() {
return { return {
...@@ -221,6 +222,11 @@ ...@@ -221,6 +222,11 @@
inputValue: '', inputValue: '',
changeState:false, changeState:false,
imgType:0, imgType:0,
defaultMsg: "",
config: {
initialFrameWidth: null,
initialFrameHeight: 350
},
}; };
}, },
created() { created() {
...@@ -271,6 +277,9 @@ ...@@ -271,6 +277,9 @@
if(myData.LableNameList !=null && myData.LableNameList.length>0){ if(myData.LableNameList !=null && myData.LableNameList.length>0){
this.addMsg.LableNameList = myData.LableNameList; this.addMsg.LableNameList = myData.LableNameList;
} }
if (this.addMsg.Describe && this.addMsg.Describe != "") {
this.defaultMsg = this.addMsg.Describe;
}
this.addMsg.TeacherId = myData.TeacherId; this.addMsg.TeacherId = myData.TeacherId;
this.addMsg.ArticlePic = myData.ArticlePic; this.addMsg.ArticlePic = myData.ArticlePic;
} else { } else {
...@@ -310,6 +319,8 @@ ...@@ -310,6 +319,8 @@
this.Error('请上传图片') this.Error('请上传图片')
return false return false
} }
let content = this.$refs.ue.getUEContent();
this.addMsg.Describe = content;
this.apipost("/api/Education/AddOrUpdateArticle", this.addMsg, res => { this.apipost("/api/Education/AddOrUpdateArticle", this.addMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.informationShowAdd = true; this.informationShowAdd = true;
......
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