Commit 1b4660ff authored by 黄奎's avatar 黄奎

基础设置修改

parent 84bc78fa
<template>
<div class="EmployeeFinace" style="margin:0 20px;">
<q-btn-toggle style="width:50%;margin:0 auto;" v-model="msg.Conditon" spread no-caps toggle-color="primary"
color="white" text-color="black" class="my-custom-toggle" :options="[
color="#2961FE" text-color="black" class="my-custom-toggle" :options="[
{label: '交接人发起的', value: 1},
{label: '待交接人审批的', value: 2}
]" @input="queryChange" />
......@@ -173,7 +173,7 @@
</script>
<style scoped>
.EmployeeFinace .my-custom-toggle {
border: 1px solid #027be3
border: 1px solid #2961FE
}
</style>
......@@ -22,7 +22,7 @@
<q-select filled stack-label option-value="PostId" option-label="PostName" v-model="objOption.Post_Id"
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"
<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="带班基础人数" />
<q-input filled stack-label maxlength="5" :dense="false" v-model="objOption.BaseHourFee" ref="BaseHourFee"
class="col-6 q-pb-lg" label="基础课时费" />
......@@ -99,6 +99,9 @@
import {
queryDeptPostList
} from '../../../api/system/post'
import {
GetClassConfig, //课程基础配置
} from '../../../api/system/index';
import extEditor from '../../common/ext-editor'
import selectTree from '../../common/select-tree'
export default {
......@@ -142,15 +145,25 @@
DeptList: [], //部门列表
PostList: [], //岗位列表
returnString: [], //默认岗位
bacisClassConfig: {}, //班级基础配置
}
},
created() {
this.queryClassConfig();
this.getSchool()
},
mounted() {
this.initObj()
},
methods: {
//获取课程基础配置
queryClassConfig() {
GetClassConfig({}).then(res => {
if (res.Code == 1) {
this.bacisClassConfig = res.Data;
}
});
},
//学校改变
schoolChagne() {
this.objOption.Dept_Id = 0;
......@@ -246,7 +259,8 @@
this.tags = JSON.parse(this.objOption.TeachTag)
}
} else {
this.optionTitle = "新增教师"
this.optionTitle = "新增教师";
}
},
removeTag(i) {
......@@ -334,7 +348,20 @@
}
},
},
watch: {},
watch: {
bacisClassConfig: function (val) {
if (this.objOption.TId == 0) {
if (this.bacisClassConfig) {
if (this.bacisClassConfig.BasicClassNum) {
this.objOption.BaseStuNum = this.bacisClassConfig.BasicClassNum;
}
if (this.bacisClassConfig.BasicHourFee) {
this.objOption.BaseHourFee = this.bacisClassConfig.BasicHourFee;
}
}
}
}
},
}
</script>
......
......@@ -14,10 +14,10 @@
<q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.IsShow" :options="ShowOpts"
emit-value map-options label="显示状态" />
</div>
<div class="col-3">
<!-- <div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.AuditStatus" :options="AuditOpts"
emit-value map-options label="审核状态" />
</div>
</div> -->
</div>
</div>
<div class="page-content">
......@@ -83,17 +83,33 @@
</template>
<template v-slot:body-cell-optioned="props">
<q-td :props="props">
<div style="min-width:190px;width:100%">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
@click="addObj(props.row)" />
<q-btn-dropdown flat size="xs" color="dark" label="更多" style="margin-left:10px;">
<q-list>
<q-item clickable v-close-popup @click="resetPw(props.row.TId)">
<q-item-section>
<q-item-label>重置密码</q-item-label>
</q-item-section>
</q-item>
<q-item clickable v-close-popup @click="deleteUser(props.row.TId)">
<q-item-section>
<q-item-label>删除</q-item-label>
</q-item-section>
</q-item>
<q-item clickable v-close-popup @click="goEAccountId(props.row.EmAccountId)"
v-if="props.row.EmAccountId>0">
<q-item-section>
<q-item-label>账户</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
<div style="display:none">
<q-btn v-if="props.row.AuditStatus==1" flat size="xs" icon="iconfont icon-shenhe" color="info"
style="font-weight:400" class="q-mr-xs" label="审核" @click="showExamine(props.row)" />
<q-btn v-if="props.row.AuditStatus==2" flat size="xs" icon="iconfont icon-ziyuan" color="warning"
style="font-weight:400" class="q-mr-xs" label="重置密码" @click="resetPw(props.row.TId)" />
<q-btn flat size="xs" icon="iconfont icon-shanchu" color="negative" style="font-weight:400"
class="q-mr-xs" label="删除" @click="deleteUser(props.row.TId)" />
<q-btn v-if="props.row.AuditStatus==3" flat size="xs" icon="iconfont icon-ziyuan" color="negative"
style="font-weight:400" class="q-mr-xs" label="重新申请" @click="reApplyTeacher(props.row.TId)" />
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
@click="addObj(props.row)" />
</div>
</q-td>
</template>
......@@ -141,12 +157,12 @@
field: 'TeacherTel',
align: 'left'
},
{
name: 'TeachTag',
label: '标签',
field: 'TeachTag',
align: 'left'
},
// {
// name: 'TeachTag',
// label: '标签',
// field: 'TeachTag',
// align: 'left'
// },
{
name: 'SName',
label: '所属校区',
......@@ -171,12 +187,12 @@
field: 'BaseStuNum',
align: 'left',
},
{
name: 'AuditStatus',
label: '审核状态',
align: 'left',
field: 'AuditStatus'
},
// {
// name: 'AuditStatus',
// label: '审核状态',
// align: 'left',
// field: 'AuditStatus'
// },
{
name: 'IsShow',
label: '是否显示',
......@@ -195,18 +211,18 @@
align: 'left',
field: 'CourseCount'
},
{
name: 'OnlineClassCount',
label: '网课产品',
align: 'left',
field: 'OnlineClassCount'
},
{
name: 'OnlineOrderCount',
label: '网课订单',
align: 'left',
field: 'OnlineOrderCount'
},
// {
// name: 'OnlineClassCount',
// label: '网课产品',
// align: 'left',
// field: 'OnlineClassCount'
// },
// {
// name: 'OnlineOrderCount',
// label: '网课订单',
// align: 'left',
// field: 'OnlineOrderCount'
// },
{
name: 'CreateTimeStr',
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