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

基础设置修改

parent 84bc78fa
<template> <template>
<div class="EmployeeFinace" style="margin:0 20px;"> <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" <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: 1},
{label: '待交接人审批的', value: 2} {label: '待交接人审批的', value: 2}
]" @input="queryChange" /> ]" @input="queryChange" />
...@@ -173,7 +173,7 @@ ...@@ -173,7 +173,7 @@
</script> </script>
<style scoped> <style scoped>
.EmployeeFinace .my-custom-toggle { .EmployeeFinace .my-custom-toggle {
border: 1px solid #027be3 border: 1px solid #2961FE
} }
</style> </style>
...@@ -99,6 +99,9 @@ ...@@ -99,6 +99,9 @@
import { import {
queryDeptPostList queryDeptPostList
} from '../../../api/system/post' } from '../../../api/system/post'
import {
GetClassConfig, //课程基础配置
} from '../../../api/system/index';
import extEditor from '../../common/ext-editor' import extEditor from '../../common/ext-editor'
import selectTree from '../../common/select-tree' import selectTree from '../../common/select-tree'
export default { export default {
...@@ -142,15 +145,25 @@ ...@@ -142,15 +145,25 @@
DeptList: [], //部门列表 DeptList: [], //部门列表
PostList: [], //岗位列表 PostList: [], //岗位列表
returnString: [], //默认岗位 returnString: [], //默认岗位
bacisClassConfig: {}, //班级基础配置
} }
}, },
created() { created() {
this.queryClassConfig();
this.getSchool() this.getSchool()
}, },
mounted() { mounted() {
this.initObj() this.initObj()
}, },
methods: { methods: {
//获取课程基础配置
queryClassConfig() {
GetClassConfig({}).then(res => {
if (res.Code == 1) {
this.bacisClassConfig = res.Data;
}
});
},
//学校改变 //学校改变
schoolChagne() { schoolChagne() {
this.objOption.Dept_Id = 0; this.objOption.Dept_Id = 0;
...@@ -246,7 +259,8 @@ ...@@ -246,7 +259,8 @@
this.tags = JSON.parse(this.objOption.TeachTag) this.tags = JSON.parse(this.objOption.TeachTag)
} }
} else { } else {
this.optionTitle = "新增教师" this.optionTitle = "新增教师";
} }
}, },
removeTag(i) { removeTag(i) {
...@@ -334,7 +348,20 @@ ...@@ -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> </script>
......
...@@ -14,10 +14,10 @@ ...@@ -14,10 +14,10 @@
<q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.IsShow" :options="ShowOpts" <q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.IsShow" :options="ShowOpts"
emit-value map-options label="显示状态" /> emit-value map-options label="显示状态" />
</div> </div>
<div class="col-3"> <!-- <div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.AuditStatus" :options="AuditOpts" <q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.AuditStatus" :options="AuditOpts"
emit-value map-options label="审核状态" /> emit-value map-options label="审核状态" />
</div> </div> -->
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
...@@ -83,17 +83,33 @@ ...@@ -83,17 +83,33 @@
</template> </template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="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" <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)" /> 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" <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)" /> 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> </div>
</q-td> </q-td>
</template> </template>
...@@ -141,12 +157,12 @@ ...@@ -141,12 +157,12 @@
field: 'TeacherTel', field: 'TeacherTel',
align: 'left' align: 'left'
}, },
{ // {
name: 'TeachTag', // name: 'TeachTag',
label: '标签', // label: '标签',
field: 'TeachTag', // field: 'TeachTag',
align: 'left' // align: 'left'
}, // },
{ {
name: 'SName', name: 'SName',
label: '所属校区', label: '所属校区',
...@@ -171,12 +187,12 @@ ...@@ -171,12 +187,12 @@
field: 'BaseStuNum', field: 'BaseStuNum',
align: 'left', align: 'left',
}, },
{ // {
name: 'AuditStatus', // name: 'AuditStatus',
label: '审核状态', // label: '审核状态',
align: 'left', // align: 'left',
field: 'AuditStatus' // field: 'AuditStatus'
}, // },
{ {
name: 'IsShow', name: 'IsShow',
label: '是否显示', label: '是否显示',
...@@ -195,18 +211,18 @@ ...@@ -195,18 +211,18 @@
align: 'left', align: 'left',
field: 'CourseCount' field: 'CourseCount'
}, },
{ // {
name: 'OnlineClassCount', // name: 'OnlineClassCount',
label: '网课产品', // label: '网课产品',
align: 'left', // align: 'left',
field: 'OnlineClassCount' // field: 'OnlineClassCount'
}, // },
{ // {
name: 'OnlineOrderCount', // name: 'OnlineOrderCount',
label: '网课订单', // label: '网课订单',
align: 'left', // align: 'left',
field: 'OnlineOrderCount' // field: 'OnlineOrderCount'
}, // },
{ {
name: 'CreateTimeStr', name: 'CreateTimeStr',
label: '入职时间', 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