Commit c7884d55 authored by 黄奎's avatar 黄奎

新增页面验证

parent da423870
......@@ -97,8 +97,8 @@
emit-value map-options />
</div>
<div class="col-6">
<q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.ClassPersion"
ref="ClassPersion" class="col-6 q-pr-lg q-pb-lg" label="招生人数" :rules="[val => !!val || '请填写招生人数']" />
<q-input filled stack-label maxlength="3" :dense="false" v-model="objOption.ClassPersion"
ref="ClassPersion" class="col-6 q-pr-lg q-pb-lg" label="招生人数" @keyup.native="checkInteger(objOption,'ClassPersion')" :rules="[val => !!val || '请填写招生人数']" />
</div>
</div>
<div class="row wrap">
......@@ -127,12 +127,12 @@
</div>
<div class="row wrap">
<div class="col-6">
<q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.OriginalPrice"
ref="OriginalPrice" class="col-6 q-pr-lg q-pb-lg" label="原价" :rules="[val => !!val || '请填写原价']" />
<q-input filled stack-label maxlength="8" :dense="false" v-model="objOption.OriginalPrice"
ref="OriginalPrice" class="col-6 q-pr-lg q-pb-lg" label="原价" @keyup.native="checkPrice(objOption,'OriginalPrice')" :rules="[val => !!val || '请填写原价']" />
</div>
<div class="col-6">
<q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.SellPrice" ref="SellPrice"
class="col-6 q-pr-lg q-pb-lg" label="卖价" :rules="[val => !!val || '请填写卖价']" />
<q-input filled stack-label maxlength="8" :dense="false" v-model="objOption.SellPrice" ref="SellPrice"
class="col-6 q-pr-lg q-pb-lg" label="卖价" @keyup.native="checkPrice(objOption,'SellPrice')" :rules="[val => !!val || '请填写卖价']" />
</div>
</div>
<div class="row wrap">
......@@ -159,11 +159,11 @@
<template v-if="objOption.IsStepPrice==1">
<div class="row wrap" v-for="(item,index) in ladderPriceList" :key="index">
<div class="col-6">
<q-input filled stack-label maxlength="20" v-model="item.PersionNum" :dense="false"
<q-input filled stack-label maxlength="3" v-model="item.PersionNum" @keyup.native="checkInteger(item,'PersionNum')" :dense="false"
class="col-6 q-pr-lg q-pb-lg" label="人" />
</div>
<div class="col-6" style="position:relative;">
<q-input filled stack-label maxlength="20" v-model="item.PersionPrice" :dense="false"
<q-input filled stack-label maxlength="8" v-model="item.PersionPrice" @keyup.native="checkPrice(item,'PersionPrice')" :dense="false"
class="col-6 q-pr-lg q-pb-lg" label="价格" />
<q-btn style="position:absolute;right:-5px;top:20px;" size="6px" @click="delStepPrice(index)" round
color="red" icon="iconfont icon-guanbi1" />
......@@ -185,7 +185,7 @@
<div class="col-12">
<q-field filled class="col-6 q-pr-lg q-pb-lg">
 <template v-slot:control>
<el-input placeholder="数值" v-model="objOption.CommissionValue">
<el-input placeholder="数值" maxlength="8" v-model="objOption.CommissionValue" @keyup.native="checkPrice(objOption,'CommissionValue')">
<template slot="append">
<span v-if="objOption.CommissionType==1"></span>
<span v-if="objOption.CommissionType==2">%</span>
......@@ -269,8 +269,8 @@
</template>
<div class="row wrap" style="margin-top:30px;">
<div class="col-6">
<q-input filled stack-label maxlength="20" v-model="objOption.ClassHours" :dense="false"
class="col-6 q-pr-lg q-pb-lg" label="学习课时" />
<q-input filled stack-label maxlength="6" v-model="objOption.ClassHours" :dense="false"
class="col-6 q-pr-lg q-pb-lg" label="学习课时" @keyup.native="checkInteger(objOption,'ClassHours')" />
</div>
<div class="col-6">
<q-select filled stack-label option-value="CTypeId" option-label="CTypeName" v-model="objOption.ClassType"
......
This diff is collapsed.
This diff is collapsed.
......@@ -12,7 +12,7 @@
<q-select filled stack-label option-value="SId" option-label="SName" v-model="objOption.School_Id"
ref="School_Id" :options="schoolList" label="所属校区" :dense="false" class="col-6 q-pb-lg" emit-value
map-options :rules="[val => !!val || '请选择所属校区']" @input="schoolChagne" />
<q-input type="tel" filled stack-label maxlength="100" :dense="false" v-model="objOption.AssistTel"
<q-input type="tel" filled stack-label maxlength="20" :dense="false" v-model="objOption.AssistTel"
ref="AssistTel" class="col-6 q-pr-lg q-pb-lg" label="联系电话" :rules="[val => !!val || '请填写助教联系电话']" />
<selectTree v-if="DeptList&&DeptList.length>0" :treeData='DeptList' :defaultArray="returnString"
nodeKey="DeptId" :multiple="false" labelKey="DeptName" childrenKey="ChildList" tipText="选择部门"
......
<template>
<q-dialog v-model="persistent" content-class="bg-grey-1" persistent transition-show="scale" transition-hide="scale">
<q-card style="width: 800px;max-width:900px;">
<q-card style="width: 500px;max-width:600px;">
<q-card-section>
<div class="text-h6">{{objOption.TId==0?'新增教室信息':'修改教室信息'}}</div>
</q-card-section>
......@@ -8,10 +8,12 @@
<div class="text-caption q-mb-lg q-px-md text-grey-6">教室信息</div>
<div class="row wrap">
<q-select filled stack-label option-value="SId" option-label="SName" v-model="objOption.School_Id"
ref="School_Id" :options="schoolList" label="所属校区" :dense="false" class="col-6 q-pb-lg q-pr-lg" emit-value
ref="School_Id" :options="schoolList" label="所属校区" :dense="false" class="col-12 q-pb-lg q-pr-lg" emit-value
map-options :rules="[val => !!val || '请选择所属校区']" />
</div>
<div class="row wrap">
<q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.RoomName" ref="RoomName"
class="col-6 q-pr-lg" label="教室名称" :rules="[val => !!val || '请填写教室名称']" />
class="col-12 q-pr-lg" label="教室名称" :rules="[val => !!val || '请填写教室名称']" />
</div>
</q-card-section>
<q-separator />
......@@ -45,7 +47,7 @@
RoomId: 0,
RoomName: "", //教室名称
School_Id: 0, //校区编号
Status:-1,//状态
Status: -1, //状态
},
optionTitle: "",
schoolList: [],
......@@ -82,9 +84,8 @@
getSchool() {
getSchoolDropdown({}).then(res => {
var tempArray = res.Data;
if(!tempArray)
{
tempArray=[];
if (!tempArray) {
tempArray = [];
}
var obj = {
SName: '不限',
......
......@@ -7,12 +7,12 @@
<q-card-section class="q-pt-none scroll" style="max-height: 70vh">
<div class="text-caption q-mb-lg q-px-md text-grey-6">基本资料</div>
<div class="row wrap">
<q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.TeacherName" ref="TeacherName"
<q-input filled stack-label maxlength="15" :dense="false" v-model="objOption.TeacherName" ref="TeacherName"
class="col-6 q-pr-lg q-pb-lg" label="教师名称" :rules="[val => !!val || '请填写教师姓名']" />
<q-select filled stack-label option-value="SId" option-label="SName" v-model="objOption.School_Id"
ref="School_Id" :options="schoolList" label="所属校区" :dense="false" class="col-6 q-pb-lg" emit-value
map-options :rules="[val => !!val || '请选择所属校区']" @input="schoolChagne" />
<q-input type="tel" filled stack-label maxlength="100" :dense="false" v-model="objOption.TeacherTel"
<q-input type="tel" filled stack-label maxlength="20" :dense="false" v-model="objOption.TeacherTel"
ref="TeacherTel" class="col-6 q-pr-lg q-pb-lg" label="联系电话" :rules="[val => !!val || '请填写教师联系电话']" />
<q-input filled stack-label maxlength="100" :dense="false" v-model="objOption.TeacherSay" ref="TeacherSay"
class="col-6 q-pb-lg" label="教师营销语" />
......@@ -23,9 +23,9 @@
ref="Post_Id" :options="PostList" label="岗位" :dense="false" class="col-6 q-pr-lg q-pb-lg" emit-value
map-options />
<q-input filled stack-label maxlength="5" :dense="false" v-model="objOption.BaseStuNum" ref="BaseStuNum"
class="col-6 q-pr-lg q-pb-lg" label="带班基础人数" />
class="col-6 q-pr-lg q-pb-lg" label="带班基础人数" @keyup.native="checkInteger(objOption,'BaseStuNum')" />
<q-input filled stack-label maxlength="5" :dense="false" v-model="objOption.BaseHourFee" ref="BaseHourFee"
class="col-6 q-pb-lg" label="基础课时费" />
class="col-6 q-pb-lg" label="基础课时费" @keyup.native="checkPrice(objOption,'BaseHourFee')" />
</div>
<div class="row wrap">
<div class="col-6 q-pr-lg q-pb-lg">
......@@ -44,17 +44,18 @@
</div>
</div>
<ext-editor :defaultMsg="objOption.TeacherIntro" classStr="col-12" @getEditValue="getEditValue"></ext-editor>
<div class="col-6 q-pr-lg q-pb-lg q-pt-lg">
<div class="row wrap">
<div class="col-6 q-pr-lg q-pb-lg">
<q-toggle size="md" label="是否显示" color="primary" :false-value="0" :true-value="1"
v-model="objOption.IsShow" />
<div class="text-grey-6 text-caption">注意:隐藏后,教师将在其他任何地方无法显示</div>
</div>
<div class="col-6 q-pb-lg q-pt-lg">
<div class="col-6 q-pb-lg">
<q-toggle size="md" label="是否推荐" color="primary" :false-value="0" :true-value="1"
v-model="objOption.IsRecommend" />
<div class="text-grey-6 text-caption">注意:推荐后教师将在营销端呈现</div>
</div>
</div>
<div class="col-12 q-pb-lg">
<q-field filled label="教师标签" bg-color="white" stack-label>
<template v-slot:control>
......
......@@ -18,8 +18,8 @@
基础课时费:
</div>
<div class="col-3">
<q-input filled stack-label :dense="false" v-model="msg.BasicHourFee" ref="BasicHourFee" class="q-pb-lg"
:rules="[val => !!val || '请填写基础课时费']" />
<q-input filled stack-label maxlength="8" :dense="false" v-model="msg.BasicHourFee" ref="BasicHourFee" class="q-pb-lg"
@keyup.native="checkPrice(msg,'BasicHourFee')" :rules="[val => !!val || '请填写基础课时费']" />
</div>
</div>
<div class="col row wrap">
......@@ -27,8 +27,8 @@
基础带班人数:
</div>
<div class="col-3">
<q-input filled stack-label :dense="false" v-model="msg.BasicClassNum" ref="BasicClassNum" class="q-pb-lg"
:rules="[val => !!val || '请填写基础带班人数']" />
<q-input filled stack-label maxlength="6" :dense="false" v-model="msg.BasicClassNum" ref="BasicClassNum" class="q-pb-lg"
@keyup.native="checkInteger(msg,'BasicClassNum')" :rules="[val => !!val || '请填写基础带班人数']" />
</div>
</div>
<div class="col row wrap">
......@@ -36,8 +36,8 @@
课时分钟数:
</div>
<div class="col-3">
<q-input filled stack-label :dense="false" v-model="msg.BasicMinutes" ref="BasicMinutes" class="q-pb-lg"
:rules="[val => !!val || '请填写课时分钟数']" />
<q-input filled stack-label maxlength="6" :dense="false" v-model="msg.BasicMinutes" ref="BasicMinutes" class="q-pb-lg"
@keyup.native="checkInteger(msg,'BasicMinutes')" :rules="[val => !!val || '请填写课时分钟数']" />
</div>
<div class="col-3" style="padding:18px 0 0 10px;color:gray">
每节课的分钟数,单位为分钟计算
......@@ -45,7 +45,6 @@
</div>
<div class="col row wrap">
<div class="col-2 baseSet_Title">
</div>
<div class="col-3">
<q-btn label="保存" color="accent q-px-md" style="font-weight:400 !important;margin-top:20px;width:100%;"
......@@ -59,7 +58,7 @@
<template v-slot:top="props">
<q-space />
<div class="page-option">
<q-btn color="accent" size="sm" icon="add" @click="clearInfo()" ref="addBtn" label="新增"/>
<q-btn color="accent" size="sm" icon="add" @click="clearInfo()" ref="addBtn" label="新增" />
</div>
</template>
<template v-slot:body-cell-AddHourFee="props">
......@@ -71,12 +70,14 @@
</template>
<template v-slot:body-cell-TotalClassNum="props">
<q-td :props="props">
<span style="color:blue;cursor:pointer" @click="goUrlT('classManage',props.row)">{{props.row.TotalClassNum}}</span>
<span style="color:blue;cursor:pointer"
@click="goUrlT('classManage',props.row)">{{props.row.TotalClassNum}}</span>
</q-td>
</template>
<template v-slot:body-cell-CompleteClassNum="props">
<q-td :props="props">
<span style="color:blue;cursor:pointer" @click="goUrlT('classManage',props.row)">{{props.row.CompleteClassNum}}</span>
<span style="color:blue;cursor:pointer"
@click="goUrlT('classManage',props.row)">{{props.row.CompleteClassNum}}</span>
</q-td>
</template>
<template v-slot:bottom>
......@@ -98,17 +99,15 @@
<q-card-section>
<div class="text-h6">{{commonTitle}}</div>
</q-card-section>
<q-input filled stack-label :dense="false" v-model="addMsg.CTypeName" label="类型名称" ref="CTypeName"
<q-input filled stack-label maxlength="20" :dense="false" v-model="addMsg.CTypeName" label="类型名称" ref="CTypeName"
class="q-pb-lg" :rules="[val => !!val || '请填写类型名称']" />
<q-input filled stack-label :dense="false" style="margin:20px 0;" v-model="addMsg.AddHourFee" label="基础课时费" ref="AddHourFee"
class="q-pb-lg" :rules="[val => !!val || '请填写基础课时费']" />
<q-input filled stack-label :dense="false" v-model="addMsg.DefaultClassNum" label="默认班级人数"
ref="DefaultClassNum" class="q-pb-lg" :rules="[val => !!val || '请填写默认班级人数']" />
<q-input filled stack-label :dense="false" maxlength="6" style="margin:20px 0;" v-model="addMsg.AddHourFee" label="基础课时费"
ref="AddHourFee" class="q-pb-lg" @keyup.native="checkPrice(addMsg,'AddHourFee')" :rules="[val => !!val || '请填写基础课时费']" />
<q-input filled stack-label :dense="false" maxlength="8" v-model="addMsg.DefaultClassNum" label="默认班级人数" ref="DefaultClassNum"
class="q-pb-lg" @keyup.native="checkInteger(addMsg,'DefaultClassNum')" :rules="[val => !!val || '请填写默认班级人数']" />
<q-card-actions align="right" class="bg-white">
<q-btn label="取消" flat color="grey-10" style="font-weight:400 !important"
@click="persistent=false" />
<q-btn label="确认" color="accent q-px-md" style="font-weight:400 !important"
@click="saveClassType()" />
<q-btn label="取消" flat color="grey-10" style="font-weight:400 !important" @click="persistent=false" />
<q-btn label="确认" color="accent q-px-md" style="font-weight:400 !important" @click="saveClassType()" />
</q-card-actions>
</q-card>
</q-dialog>
......@@ -187,7 +186,7 @@
},
pageCount: 0,
persistent: false,
commonTitle:''
commonTitle: ''
}
},
created() {},
......@@ -226,7 +225,7 @@
},
//保存班级类型
saveClassType() {
if(this.addMsg.CTypeName==''){
if (this.addMsg.CTypeName == '') {
this.$q.notify({
type: 'negative',
position: "top",
......@@ -234,7 +233,7 @@
})
return;
}
if(this.addMsg.AddHourFee==''){
if (this.addMsg.AddHourFee == '') {
this.$q.notify({
type: 'negative',
position: "top",
......@@ -242,7 +241,7 @@
})
return;
}
if(this.addMsg.DefaultClassNum==''){
if (this.addMsg.DefaultClassNum == '') {
this.$q.notify({
type: 'negative',
position: "top",
......@@ -282,7 +281,7 @@
},
clearInfo() {
this.commonTitle = '新增班级类型';
this.persistent=true;
this.persistent = true;
this.addMsg.CTypeId = 0;
this.addMsg.CTypeName = '';
this.addMsg.AddHourFee = '';
......@@ -291,7 +290,7 @@
//编辑班级类型
EditClassType(obj) {
this.commonTitle = '修改班级类型';
this.persistent=true;
this.persistent = true;
this.addMsg.CTypeId = obj.CTypeId;
this.addMsg.CTypeName = obj.CTypeName;
this.addMsg.AddHourFee = obj.AddHourFee;
......@@ -323,11 +322,17 @@
});
},
//跳转
goUrlT: function (path, obj){
this.$router.push({ path:path,query:{"CTypeId":obj.CTypeId,blank:'y'}})
goUrlT: function (path, obj) {
this.$router.push({
path: path,
query: {
"CTypeId": obj.CTypeId,
blank: 'y'
}
})
},
closeSetForm(){
this.persistent=false;
closeSetForm() {
this.persistent = false;
}
},
}
......
This diff is collapsed.
......@@ -4,7 +4,7 @@
<div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3">
<q-input @change="getClassList" clearable standout="bg-primary text-white" v-model="msg.ClassName"
label="班级名称" @clear="getClassList" />
label="班级名称" @clear="getClassList" maxlength="20" />
</div>
<div class="col-3">
<q-select @input="getClassList" standout="bg-primary text-white" option-value="Id" option-label="Name"
......@@ -12,11 +12,11 @@
</div>
<div class="col-3">
<q-input @change="getClassList" clearable standout="bg-primary text-white" v-model="msg.TeacherName"
label="带班老师" @clear="getClassList" />
label="带班老师" @clear="getClassList" maxlength="20" />
</div>
<div class="col-3">
<q-input @change="getClassList" clearable standout="bg-primary text-white" v-model="msg.CourseName"
label="学习课程" @clear="getClassList" />
label="学习课程" @clear="getClassList" maxlength="20" />
</div>
<div class="col-3">
<q-select @input="getClassList" standout="bg-primary text-white" option-value="SId" option-label="SName"
......
......@@ -3,8 +3,8 @@
<div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3">
<q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.CourseName"
label="课程名称" />
<q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.CourseName"
label="课程名称" @clear="resetSearch" maxlength="20" />
</div>
<div class="col-3">
<select-tree :treeData='TreeCategoryList'
......
This diff is collapsed.
This diff is collapsed.
......@@ -14,7 +14,7 @@
<q-select @input="resetSearch" clearable filled stack-label option-value="SId" option-label="SName"
v-model="schoolTemp" ref="School_Id" :options="schoolList" label="所属校区" :dense="false" />
</div>
<div class="col-3">
<div class="col-3" style="display:none;">
<q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.AuditStatus" :options="AuditOpts"
emit-value map-options label="审核状态" />
</div>
......@@ -163,12 +163,12 @@
field: 'PostName',
align: 'left',
},
{
name: 'AuditStatus',
label: '审核状态',
align: 'left',
field: 'AuditStatus'
},
// {
// name: 'AuditStatus',
// label: '审核状态',
// align: 'left',
// field: 'AuditStatus'
// },
{
name: 'ClassCount',
label: '带班数量',
......
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