Commit 719d0f09 authored by zhengke's avatar zhengke

修改设置

parent 3af1bbec
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<div> <div>
<div class="col" style="display:flex;margin-top:20px;"> <div class="col" style="display:flex;margin-top:20px;">
<div> <div>
<q-select class="q-pb-lg q-pr-lg" style="width:300px;" multiple clearable filled stack-label use-input use-chips <q-select class="q-pb-lg q-pr-lg" style="width:450px;" multiple clearable filled stack-label use-input use-chips
option-value="CTypeId" option-label="CTypeName" v-model="tempSchool" ref="PostId" :options="DropDownList" option-value="CTypeId" option-label="CTypeName" v-model="tempSchool" ref="PostId" :options="DropDownList"
label="班级类型" :dense="false" emit-value map-options> label="班级类型" :dense="false" emit-value map-options>
</q-select> </q-select>
...@@ -534,6 +534,9 @@ ...@@ -534,6 +534,9 @@
this.setTeachMsg.Id = res.Data.Id; this.setTeachMsg.Id = res.Data.Id;
this.setTeachMsg.BasicMoney = res.Data.BasicMoney; this.setTeachMsg.BasicMoney = res.Data.BasicMoney;
this.setTeachMsg.BasicHour = res.Data.BasicHour; this.setTeachMsg.BasicHour = res.Data.BasicHour;
if(res.Data.ClassTypeIdList){
this.tempSchool = res.Data.ClassTypeIdList;
}
} }
}) })
}, },
...@@ -552,7 +555,11 @@ ...@@ -552,7 +555,11 @@
}, },
//保存上部 //保存上部
saveClass() { saveClass() {
this.setTeachMsg.ClassTypeIds = this.tempSchool.toString(); if(this.tempSchool){
this.setTeachMsg.ClassTypeIds = this.tempSchool.toString();
}else{
this.setTeachMsg.ClassTypeIds = '';
}
SetTeachingRewardsBase(this.setTeachMsg).then(res => { SetTeachingRewardsBase(this.setTeachMsg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.$q.notify({ this.$q.notify({
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<div> <div>
<div class="col" style="display:flex;margin-top:20px;"> <div class="col" style="display:flex;margin-top:20px;">
<div> <div>
<q-select class="q-pb-lg q-pr-lg" style="width:300px;" multiple clearable filled stack-label use-input use-chips <q-select class="q-pb-lg q-pr-lg" style="width:450px;" multiple clearable filled stack-label use-input use-chips
option-value="CTypeId" option-label="CTypeName" v-model="tempSchool" ref="PostId" :options="DropDownList" option-value="CTypeId" option-label="CTypeName" v-model="tempSchool" ref="PostId" :options="DropDownList"
label="班级类型" :dense="false" emit-value map-options> label="班级类型" :dense="false" emit-value map-options>
</q-select> </q-select>
...@@ -534,6 +534,9 @@ ...@@ -534,6 +534,9 @@
this.setTeachMsg.Id = res.Data.Id; this.setTeachMsg.Id = res.Data.Id;
this.setTeachMsg.BasicMoney = res.Data.BasicMoney; this.setTeachMsg.BasicMoney = res.Data.BasicMoney;
this.setTeachMsg.BasicHour = res.Data.BasicHour; this.setTeachMsg.BasicHour = res.Data.BasicHour;
if(res.Data.ClassTypeIdList){
this.tempSchool = res.Data.ClassTypeIdList;
}
} }
}) })
}, },
...@@ -552,7 +555,11 @@ ...@@ -552,7 +555,11 @@
}, },
//保存上部 //保存上部
saveClass() { saveClass() {
this.setTeachMsg.ClassTypeIds = this.tempSchool.toString(); if(this.tempSchool){
this.setTeachMsg.ClassTypeIds = this.tempSchool.toString();
}else{
this.setTeachMsg.ClassTypeIds = '';
}
SetTeachingRewardsBase(this.setTeachMsg).then(res => { SetTeachingRewardsBase(this.setTeachMsg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.$q.notify({ this.$q.notify({
......
...@@ -44,14 +44,14 @@ ...@@ -44,14 +44,14 @@
<template> <template>
<div class="page-body"> <div class="page-body">
<q-tabs v-model="tabCheck" narrow-indicator dense align="left" class="text-primary"> <q-tabs v-model="tabCheck" narrow-indicator dense align="left" class="text-primary">
<q-tab :ripple="false" name="first" label="奖金设置" /> <q-tab :ripple="false" name="first" label="奖金设置" @click="getBaseDropInfo" />
<q-tab :ripple="false" name="second" label="课时费设置" /> <q-tab :ripple="false" name="second" label="课时费设置" />
</q-tabs> </q-tabs>
<template v-if="tabCheck=='first'"> <template v-if="tabCheck=='first'">
<div style="margin-top:20px;"> <div style="margin-top:20px;">
<div class="col" style="display:flex;"> <div class="col" style="display:flex;">
<div> <div>
<q-select class="q-pb-lg q-pr-lg" style="width:300px;" multiple clearable filled stack-label use-input <q-select class="q-pb-lg q-pr-lg" style="width:450px;" multiple clearable filled stack-label use-input
use-chips option-value="CTypeId" option-label="CTypeName" v-model="tempSchool" ref="PostId" use-chips option-value="CTypeId" option-label="CTypeName" v-model="tempSchool" ref="PostId"
:options="DropDownList" label="班级类型" :dense="false" emit-value map-options> :options="DropDownList" label="班级类型" :dense="false" emit-value map-options>
</q-select> </q-select>
...@@ -544,6 +544,9 @@ ...@@ -544,6 +544,9 @@
this.setTeachMsg.Id = res.Data.Id; this.setTeachMsg.Id = res.Data.Id;
this.setTeachMsg.BasicMoney = res.Data.BasicMoney; this.setTeachMsg.BasicMoney = res.Data.BasicMoney;
this.setTeachMsg.BasicHour = res.Data.BasicHour; this.setTeachMsg.BasicHour = res.Data.BasicHour;
if(res.Data.ClassTypeIdList){
this.tempSchool = res.Data.ClassTypeIdList;
}
} }
}) })
}, },
...@@ -562,7 +565,11 @@ ...@@ -562,7 +565,11 @@
}, },
//保存上部 //保存上部
saveClass() { saveClass() {
this.setTeachMsg.ClassTypeIds = this.tempSchool.toString(); if(this.tempSchool){
this.setTeachMsg.ClassTypeIds = this.tempSchool.toString();
}else{
this.setTeachMsg.ClassTypeIds = '';
}
SetTeachingRewardsBase(this.setTeachMsg).then(res => { SetTeachingRewardsBase(this.setTeachMsg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.$q.notify({ this.$q.notify({
...@@ -593,7 +600,7 @@ ...@@ -593,7 +600,7 @@
} }
}) })
} }
}, }
} }
</script> </script>
......
...@@ -44,14 +44,14 @@ ...@@ -44,14 +44,14 @@
<template> <template>
<div class="page-body"> <div class="page-body">
<q-tabs v-model="tabCheck" narrow-indicator dense align="left" class="text-primary"> <q-tabs v-model="tabCheck" narrow-indicator dense align="left" class="text-primary">
<q-tab :ripple="false" name="first" label="奖金设置" /> <q-tab :ripple="false" name="first" label="奖金设置" @click="getBaseDropInfo" />
<q-tab :ripple="false" name="second" label="课时费设置" /> <q-tab :ripple="false" name="second" label="课时费设置" />
</q-tabs> </q-tabs>
<template v-if="tabCheck=='first'"> <template v-if="tabCheck=='first'">
<div style="margin-top:20px;"> <div style="margin-top:20px;">
<div class="col" style="display:flex;"> <div class="col" style="display:flex;">
<div> <div>
<q-select class="q-pb-lg q-pr-lg" style="width:300px;" multiple clearable filled stack-label use-input <q-select class="q-pb-lg q-pr-lg" style="width:450px;" multiple clearable filled stack-label use-input
use-chips option-value="CTypeId" option-label="CTypeName" v-model="tempSchool" ref="PostId" use-chips option-value="CTypeId" option-label="CTypeName" v-model="tempSchool" ref="PostId"
:options="DropDownList" label="班级类型" :dense="false" emit-value map-options> :options="DropDownList" label="班级类型" :dense="false" emit-value map-options>
</q-select> </q-select>
...@@ -544,6 +544,9 @@ ...@@ -544,6 +544,9 @@
this.setTeachMsg.Id = res.Data.Id; this.setTeachMsg.Id = res.Data.Id;
this.setTeachMsg.BasicMoney = res.Data.BasicMoney; this.setTeachMsg.BasicMoney = res.Data.BasicMoney;
this.setTeachMsg.BasicHour = res.Data.BasicHour; this.setTeachMsg.BasicHour = res.Data.BasicHour;
if(res.Data.ClassTypeIdList){
this.tempSchool = res.Data.ClassTypeIdList;
}
} }
}) })
}, },
...@@ -562,7 +565,11 @@ ...@@ -562,7 +565,11 @@
}, },
//保存上部 //保存上部
saveClass() { saveClass() {
this.setTeachMsg.ClassTypeIds = this.tempSchool.toString(); if(this.tempSchool){
this.setTeachMsg.ClassTypeIds = this.tempSchool.toString();
}else{
this.setTeachMsg.ClassTypeIds = '';
}
SetTeachingRewardsBase(this.setTeachMsg).then(res => { SetTeachingRewardsBase(this.setTeachMsg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.$q.notify({ this.$q.notify({
......
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