代码格式修改
This commit is contained in:
@@ -7,10 +7,10 @@
|
||||
<el-col :span="7">考评要求:每周按时开展班会(10分)</el-col>
|
||||
<el-col :span="8">考评方式:《辅导员工作笔记》,照片记录,少1次扣2分。质量评价2分。</el-col>
|
||||
<el-col :span="3">辅导员自评分: {{ form.kpiFillingStuMgtList[0].classScoring }}</el-col>
|
||||
<el-col :span="5" v-show="isShow">
|
||||
<el-col v-show="isShow" :span="5">
|
||||
<div style="display: flex; align-items: center;">
|
||||
<div style="min-width: 70px;color: red;">调整分数:</div>
|
||||
<el-input-number v-model="form.kpiFillingStuMgtList[0].classScoring" :min="0" :max="10" label="调整分数" size="mini" style="width: 100%;"></el-input-number>
|
||||
<el-input-number v-model="form.kpiFillingStuMgtList[0].classScoring" :min="0" :max="10" label="调整分数" size="mini" style="width: 100%;" />
|
||||
<!-- <el-input placeholder="请输入自评分" v-model="form.kpiFillingStuMgtList[0].classScoring" clearable size="mini">
|
||||
</el-input> -->
|
||||
</div>
|
||||
@@ -18,8 +18,7 @@
|
||||
</el-row>
|
||||
<div style="margin-top: 20px;">
|
||||
<el-table :data="form.kpiFillingStuMgtList[0].classMeetingMaterialsList" border>
|
||||
<el-table-column label="序号" type="index" width="50" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column label="序号" type="index" width="50" align="center" />
|
||||
<el-table-column label="开展时间" align="center" prop="developmentTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.developmentTime, '{y}-{m}-{d}') }}</span>
|
||||
@@ -43,10 +42,10 @@
|
||||
<el-col :span="7">考评要求:每周深入学生宿舍至少2次(10分)</el-col>
|
||||
<el-col :span="8">考评方式:《辅导员工作笔记》,照片记录,少1次扣2分。质量评价2分。</el-col>
|
||||
<el-col :span="3">辅导员自评分: {{ form.kpiFillingStuMgtList[0].visitDormitoryScoring }}</el-col>
|
||||
<el-col :span="5" v-show="isShow">
|
||||
<el-col v-show="isShow" :span="5">
|
||||
<div style="display: flex; align-items: center;">
|
||||
<div style="min-width: 70px;color: red;">调整分数:</div>
|
||||
<el-input-number v-model="form.kpiFillingStuMgtList[0].visitDormitoryScoring" :min="0" :max="10" label="调整分数" size="mini" style="width: 100%;"></el-input-number>
|
||||
<el-input-number v-model="form.kpiFillingStuMgtList[0].visitDormitoryScoring" :min="0" :max="10" label="调整分数" size="mini" style="width: 100%;" />
|
||||
<!-- <el-input placeholder="请输入自评分" v-model="form.kpiFillingStuMgtList[0].visitDormitoryScoring" clearable size="mini">
|
||||
</el-input> -->
|
||||
</div>
|
||||
@@ -54,8 +53,7 @@
|
||||
</el-row>
|
||||
<div style="margin-top: 20px;">
|
||||
<el-table :data="form.kpiFillingStuMgtList[0].visitDormitoryMaterialsList" border>
|
||||
<el-table-column label="序号" type="index" width="50" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column label="序号" type="index" width="50" align="center" />
|
||||
<el-table-column label="开展时间" align="center" prop="developmentTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.developmentTime, '{y}-{m}-{d}') }}</span>
|
||||
@@ -79,10 +77,10 @@
|
||||
<el-col :span="7">考评要求:每月开展班团干部会议至少2次(5分)</el-col>
|
||||
<el-col :span="8">考评方式:《辅导员工作笔记》,照片记录,少1次扣2分。</el-col>
|
||||
<el-col :span="3">辅导员自评分: {{ form.kpiFillingStuMgtList[0].cadreScoring }}</el-col>
|
||||
<el-col :span="5" v-show="isShow">
|
||||
<el-col v-show="isShow" :span="5">
|
||||
<div style="display: flex; align-items: center;">
|
||||
<div style="min-width: 70px;color: red;">调整分数:</div>
|
||||
<el-input-number v-model="form.kpiFillingStuMgtList[0].cadreScoring" :min="0" :max="5" label="调整分数" size="mini" style="width: 100%;"></el-input-number>
|
||||
<el-input-number v-model="form.kpiFillingStuMgtList[0].cadreScoring" :min="0" :max="5" label="调整分数" size="mini" style="width: 100%;" />
|
||||
<!-- <el-input placeholder="请输入自评分" v-model="form.kpiFillingStuMgtList[0].cadreScoring" clearable size="mini">
|
||||
</el-input> -->
|
||||
</div>
|
||||
@@ -90,8 +88,7 @@
|
||||
</el-row>
|
||||
<div style="margin-top: 20px;">
|
||||
<el-table :data="form.kpiFillingStuMgtList[0].cadreMeetingMaterialsList" border>
|
||||
<el-table-column label="序号" type="index" width="50" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column label="序号" type="index" width="50" align="center" />
|
||||
<el-table-column label="开展时间" align="center" prop="developmentTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.developmentTime, '{y}-{m}-{d}') }}</span>
|
||||
@@ -115,10 +112,10 @@
|
||||
<el-col :span="7">考评要求:每月与带班学生谈心谈话,覆盖率不低于8%(10分)</el-col>
|
||||
<el-col :span="8">考评方式∶《辅导员工作笔记》,照片记录,少1次扣1分。</el-col>
|
||||
<el-col :span="3">辅导员自评分: {{ form.kpiFillingStuMgtList[0].stuTalkScoring }}</el-col>
|
||||
<el-col :span="5" v-show="isShow">
|
||||
<el-col v-show="isShow" :span="5">
|
||||
<div style="display: flex; align-items: center;">
|
||||
<div style="min-width: 70px;color: red;">调整分数:</div>
|
||||
<el-input-number v-model="form.kpiFillingStuMgtList[0].stuTalkScoring" :min="0" :max="10" label="调整分数" size="mini" style="width: 100%;"></el-input-number>
|
||||
<el-input-number v-model="form.kpiFillingStuMgtList[0].stuTalkScoring" :min="0" :max="10" label="调整分数" size="mini" style="width: 100%;" />
|
||||
<!-- <el-input placeholder="请输入自评分" v-model="form.kpiFillingStuMgtList[0].stuTalkScoring" clearable size="mini">
|
||||
</el-input> -->
|
||||
</div>
|
||||
@@ -126,8 +123,7 @@
|
||||
</el-row>
|
||||
<div style="margin-top: 20px;">
|
||||
<el-table :data="form.kpiFillingStuMgtList[0].stuTalkMaterialsList" border>
|
||||
<el-table-column label="序号" type="index" width="50" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column label="序号" type="index" width="50" align="center" />
|
||||
<el-table-column label="开展时间" align="center" prop="developmentTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.developmentTime, '{y}-{m}-{d}') }}</span>
|
||||
@@ -146,10 +142,10 @@
|
||||
<el-col :span="7">考评要求:每月深入学生社区面向学生开展活动1次(5分)</el-col>
|
||||
<el-col :span="8">考评方式:学生社区建设记录</el-col>
|
||||
<el-col :span="3">辅导员自评分: {{ form.kpiFillingStuMgtList[0].stuActivityScoring }}</el-col>
|
||||
<el-col :span="5" v-show="isShow">
|
||||
<el-col v-show="isShow" :span="5">
|
||||
<div style="display: flex; align-items: center;">
|
||||
<div style="min-width: 70px;color: red;">调整分数:</div>
|
||||
<el-input-number v-model="form.kpiFillingStuMgtList[0].stuActivityScoring" :min="0" :max="5" label="调整分数" size="mini" style="width: 100%;"></el-input-number>
|
||||
<el-input-number v-model="form.kpiFillingStuMgtList[0].stuActivityScoring" :min="0" :max="5" label="调整分数" size="mini" style="width: 100%;" />
|
||||
<!-- <el-input placeholder="请输入自评分" v-model="form.kpiFillingStuMgtList[0].stuActivityScoring" clearable size="mini">
|
||||
</el-input> -->
|
||||
</div>
|
||||
@@ -157,8 +153,7 @@
|
||||
</el-row>
|
||||
<div style="margin-top: 20px;">
|
||||
<el-table :data="form.kpiFillingStuMgtList[0].stuActivityMaterialsList" border>
|
||||
<el-table-column label="序号" type="index" width="50" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column label="序号" type="index" width="50" align="center" />
|
||||
<el-table-column label="开展时间" align="center" prop="developmentTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.developmentTime, '{y}-{m}-{d}') }}</span>
|
||||
@@ -176,15 +171,15 @@
|
||||
</el-table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="button" v-if="form.kpiFillingStuMgtList[0].hasOwnProperty('id') && !(form.auditStatus === 1 && form.roleAudit === 4)">
|
||||
<el-button type="primary" v-show="isShow" @click="save">保 存</el-button>
|
||||
<el-button type="warning" @click="switchIsShow" v-if="!roleGroup.includes('辅导员') && audit">修 改</el-button>
|
||||
<div v-if="form.kpiFillingStuMgtList[0].hasOwnProperty('id') && !(form.auditStatus === 1 && form.roleAudit === 4)" class="button">
|
||||
<el-button v-show="isShow" type="primary" @click="save">保 存</el-button>
|
||||
<el-button v-if="!roleGroup.includes('辅导员') && audit" type="warning" @click="switchIsShow">修 改</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getTeacherKpiFillingMgt, updateTeacherKpiFillingMgt } from "@/api/teacher/teacherKpiFillingMgt";
|
||||
import { getTeacherKpiFillingMgt, updateTeacherKpiFillingMgt } from '@/api/teacher/teacherKpiFillingMgt'
|
||||
export default {
|
||||
props: {
|
||||
form: {
|
||||
@@ -193,15 +188,20 @@ export default {
|
||||
},
|
||||
roleGroup: {
|
||||
type: String,
|
||||
default: ""
|
||||
default: ''
|
||||
},
|
||||
audit: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isShow: false
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
"form.kpiFillingStuMgtList": {
|
||||
'form.kpiFillingStuMgtList': {
|
||||
immediate: true,
|
||||
handler() {
|
||||
this.isShow = false
|
||||
@@ -222,10 +222,17 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isShow: false
|
||||
}
|
||||
// 生命周期 - 创建完成(访问当前this实例)
|
||||
created() {
|
||||
|
||||
},
|
||||
// 生命周期 - 挂载完成(访问DOM元素)
|
||||
mounted() {
|
||||
|
||||
},
|
||||
// 离开当前页面时执行代码
|
||||
destroyed() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
switchIsShow() {
|
||||
@@ -241,24 +248,12 @@ export default {
|
||||
this.form.kpiFillingStuMgtList[0].stuActivityScoring = response.data.stuActivityScoring,
|
||||
this.form.kpiFillingStuMgtList[0].stuTalkScoring = response.data.stuTalkScoring,
|
||||
this.form.kpiFillingStuMgtList[0].visitDormitoryScoring = response.data.visitDormitoryScoring
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.$modal.msgSuccess('修改成功')
|
||||
this.switchIsShow()
|
||||
this.$modal.closeLoading()
|
||||
});
|
||||
});
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
// 生命周期 - 创建完成(访问当前this实例)
|
||||
created() {
|
||||
|
||||
},
|
||||
// 生命周期 - 挂载完成(访问DOM元素)
|
||||
mounted() {
|
||||
|
||||
},
|
||||
// 离开当前页面时执行代码
|
||||
destroyed() {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user