Commit b64529d9 authored by Mac's avatar Mac

1

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