Commit a87c7849 authored by zhengke's avatar zhengke

修改

parent bb1b1bb1
......@@ -81,7 +81,7 @@
</div>
<div class="row wrap">
<div class="col-6">
<q-input filled stack-label @keyup.native="checkPrice(objOption, 'ClassHours')" reverse-fill-mask
<q-input filled stack-label :disable="!isHaveCourseHoursEdit" @keyup.native="checkPrice(objOption, 'ClassHours')" reverse-fill-mask
v-model="objOption.ClassHours" ref="ClassHours" class="col-6 q-pr-lg q-pb-lg" label="课时数量"
:rules="[val => !!val || '请填写课时信息']" />
</div>
......@@ -130,6 +130,9 @@
UploadSelfFile
} from "../../api/common/common";
import extEditor from "../common/ext-editor";
import {
mapState
} from "vuex";
export default {
components: {
......@@ -172,17 +175,31 @@
SaleplatList: [], //销售端口
choosePlat: [], //选择的平台
chooseTeacher: [], //选择老师
isShowPrice: 0 //是否显示价格【hk2021-03-05新增】
isShowPrice: 0, //是否显示价格【hk2021-03-05新增】
};
},
created() {
this.GetTeacherList();
this.getSaleplat();
},
computed: mapState({
isHaveCourseHoursEdit(state) {
if (state.user.userInfo && state.user.userInfo.ActionMenuList && state.user.userInfo.ActionMenuList.length >
0) {
let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "Edit_CourseClassHours") {
return x;
}
});
if(action){
return true
}
}
return false;
}
}),
mounted() {
this.initObj();
},
methods: {
//获取教师下拉
......
......@@ -287,22 +287,22 @@
<q-item-label>取消订单</q-item-label>
</q-item-section>
</q-item>
<q-item clickable v-close-popup v-close-popup v-if="AuthorityObj.isShowBackClass">
<q-item clickable v-close-popup v-if="AuthorityObj.isShowBackClass">
<q-item-section>
<q-item-label @click="showBackClassForm(item)">退课</q-item-label>
</q-item-section>
</q-item>
<q-item clickable v-close-popup v-close-popup v-if="AuthorityObj.isShowRenewClass">
<q-item clickable v-close-popup v-if="AuthorityObj.isShowRenewClass">
<q-item-section>
<q-item-label @click="showContinueClass(item)">续课</q-item-label>
</q-item-section>
</q-item>
<q-item clickable v-close-popup v-close-popup v-if="AuthorityObj.isShowTransClassOrder">
<q-item clickable v-close-popup v-if="AuthorityObj.isShowTransClassOrder">
<q-item-section>
<q-item-label @click="transferClass(item,1)">转班</q-item-label>
</q-item-section>
</q-item>
<q-item clickable v-close-popup v-if="AuthorityObj.isShowSeparater" style="display:none">
<q-item clickable v-close-popup v-if="AuthorityObj.isShowSeparater">
<q-item-section>
<q-item-label @click="transferClass(item,2)">分拆</q-item-label>
</q-item-section>
......
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