Commit bd219114 authored by 黄奎's avatar 黄奎

新增页面

parent 08cb82fb
<style scoped>
</style>
<template>
<div class="page-body">
<q-tabs v-model="tabCheck" narrow-indicator dense align="left" class="text-primary q-mb-sm">
<q-tab :ripple="false" :name="1" label="考评项配置" />
<q-tab :ripple="false" :name="2" label="考评审核配置" />
</q-tabs>
<template v-if="tabCheck==1">
<assessmentType></assessmentType>
</template>
<template v-if="tabCheck==2">
<assessmentRule></assessmentRule>
</template>
</div>
</template>
<script>
import assessmentType from './assessmentType';
import assessmentRule from './assessmentRule';
export default {
meta: {
title: "教师考评配置"
},
components: {
assessmentType,
assessmentRule
},
data() {
return {
tabCheck: 1,
}
},
created() {
},
mounted() {
},
methods: {
}
}
</script>
<style lang="sass">
@import url('~assets/css/table.sass')
</style>
\ No newline at end of file
<style>
</style>
<template>
<div>
<q-card flat class="q-pa-lg q-my-lg" v-loading="loading">
<div class="text-h6 text-weight-bold" style="margin-bottom:20px;">分配给以下成员</div>
<q-select class="col-6 q-pb" v-model="saveObj.teachingDirector" style="width:300px;" clearable filled stack-label
use-input option-value="Id" option-label="EmployeeName" ref="ManagerId" :options="EmployeeList" label="教学主管"
:dense="false" emit-value map-options @filter="filterFn">
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">
未找到相关数据
</q-item-section>
</q-item>
</template>
</q-select>
<q-select class="col-6 q-pb" v-model="saveObj.jiaoWuDirector" style="width:300px;margin-top:20px;" clearable
filled stack-label use-input option-value="Id" option-label="EmployeeName" ref="ManagerId"
:options="EmployeeList" label="教务主管" :dense="false" emit-value map-options @filter="filterFn">
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">
未找到相关数据
</q-item-section>
</q-item>
</template>
</q-select>
<q-btn class="q-mt-xl q-px-lg" unelevated color="primary" :loading="saving" @click="saveHandler">立即保存</q-btn>
</q-card>
</div>
</template>
<script>
import {
getDictValue
} from "../../api/administration/administration";
import {
saveDict
} from "../../api/system/notiveSysSet";
import {
queryEmployee
} from "../../api/users/user"; //获取员工
export default {
data() {
return {
saveObj: {
teachingDirector: "", //教学主管
jiaoWuDirector: "", //教务主管
},
saving: false,
loading: false,
EmployeeList: [], // 员工
AllemployeeList: [],
};
},
created() {
this.getEmployee();
},
mounted() {
this.init();
},
methods: {
//获取业务员
getEmployee() {
var qMsg = {
EmployeeName: '',
IsLeave:1,
}
queryEmployee(qMsg).then(res => {
if (res.Code == 1) {
this.EmployeeList = res.Data;
this.AllemployeeList = res.Data;
}
})
},
//筛选员工
filterFn(val, update) {
update(() => {
if (val === '') {
this.EmployeeList = JSON.parse(JSON.stringify(this.AllemployeeList))
} else {
const needle = val.toLowerCase();
this.EmployeeList = this.AllemployeeList.filter(v => v.EmployeeName.toLowerCase().indexOf(needle) > -1);
}
})
},
//获取数据
init() {
},
saveHandler() {
}
}
};
</script>
<style></style>
\ No newline at end of file
...@@ -3,14 +3,12 @@ ...@@ -3,14 +3,12 @@
</style> </style>
<template> <template>
<div class="page-body"> <div class="page-body">
<div class="page-search row items-center">
</div>
<div class="page-content"> <div class="page-content">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat separator="Cell" :data="dataList" <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat separator="Cell" :data="dataList"
:columns="columns" row-key="name"> :columns="columns" row-key="name">
<template v-slot:top> <template v-slot:top>
<div class="col-2 q-table__title">类型配置</div> <div class="col-2 q-table__title">考评项配置列表</div>
<q-space /> <q-space />
<div class="page-option"> <div class="page-option">
<q-btn color="accent" size="sm" class="q-mr-md" icon="add" label="新增" @click="AddMsg(null)" /> <q-btn color="accent" size="sm" class="q-mr-md" icon="add" label="新增" @click="AddMsg(null)" />
......
...@@ -1437,9 +1437,9 @@ const routes = [{ ...@@ -1437,9 +1437,9 @@ const routes = [{
import("pages/teacher/yearStatic") import("pages/teacher/yearStatic")
}, },
{ {
path: "/teacher/assessmentType", //教师季度考评配置 path: "/teacher/assessmentConfig", //教师季度考评配置
component: () => component: () =>
import("pages/teacher/assessmentType") import("pages/teacher/assessmentConfig")
}, },
{ {
path: "/teacher/appraisalList", //考评列表 path: "/teacher/appraisalList", //考评列表
......
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