Commit 804e4236 authored by 姬鋆屾's avatar 姬鋆屾

提交智能人事绩效展示开关

parent b01f3ee8
...@@ -14,8 +14,6 @@ ...@@ -14,8 +14,6 @@
label-width="120px" label-width="120px"
style="width: 100%;" style="width: 100%;"
> >
<div class="cell2"> <div class="cell2">
<div class="history"> <div class="history">
<span>姓名:</span> <span>姓名:</span>
...@@ -58,24 +56,35 @@ ...@@ -58,24 +56,35 @@
<span class="times">{{ form.phoneNumber }}</span> <span class="times">{{ form.phoneNumber }}</span>
</div> </div>
<div class="history"> <div class="history">
<span>考勤授权:</span> <span>绩效展示:</span>
<el-switch
:active-value="1"
:inactive-value="0"
v-model="form.attendCheck"
>
</el-switch>
</div>
<div class="history">
<span>评价授权:</span>
<el-switch <el-switch
:active-value="1" :active-value="1"
:inactive-value="0" :inactive-value="0"
v-model="form.complainCheck" v-model="form.otherCheck"
@change="handleSwitch"
> >
</el-switch> </el-switch>
</div> </div>
<!-- <div class="history"> <div class="box" v-if="form.otherCheck == 1">
<div class="history">
<span>考勤授权:</span>
<el-switch
:active-value="1"
:inactive-value="0"
v-model="form.attendCheck"
>
</el-switch>
</div>
<div class="history">
<span>评价授权:</span>
<el-switch
:active-value="1"
:inactive-value="0"
v-model="form.reviewCheck"
>
</el-switch>
</div>
<!-- <div class="history">
<span>投诉授权:</span> <span>投诉授权:</span>
<el-switch <el-switch
:active-value="1" :active-value="1"
...@@ -84,38 +93,37 @@ ...@@ -84,38 +93,37 @@
> >
</el-switch> </el-switch>
</div> --> </div> -->
<div class="history"> <div class="history">
<span>办件授权:</span> <span>办件授权:</span>
<el-switch <el-switch
:active-value="1" :active-value="1"
:inactive-value="0" :inactive-value="0"
v-model="form.goworkCheck" v-model="form.goworkCheck"
> >
</el-switch> </el-switch>
</div> </div>
<div class="history"> <div class="history">
<span>效能授权:</span> <span>效能授权:</span>
<el-switch <el-switch
:active-value="1" :active-value="1"
:inactive-value="0" :inactive-value="0"
v-model="form.effectCheck" v-model="form.effectCheck"
> >
</el-switch> </el-switch>
</div> </div>
<div class="history"> <div class="history">
<span>自评授权:</span> <span>自评授权:</span>
<el-switch <el-switch
:active-value="1" :active-value="1"
:inactive-value="0" :inactive-value="0"
v-model="form.otherCheck" v-model="form.complainCheck"
> >
</el-switch> </el-switch>
</div>
</div> </div>
</div> </div>
<el-row> <el-row> </el-row>
</el-row>
<form-buttons <form-buttons
@submit="submitForm" @submit="submitForm"
...@@ -207,6 +215,21 @@ export default { ...@@ -207,6 +215,21 @@ export default {
}, },
methods: { methods: {
handleSwitch(val) {
if (this.form.otherCheck == 0) {
this.form.attendCheck = 0;
this.form.reviewCheck = 0;
this.form.goworkCheck = 0;
this.form.effectCheck = 0;
this.form.complainCheck = 0;
} else {
this.form.attendCheck = 1;
this.form.reviewCheck = 1;
this.form.goworkCheck = 1;
this.form.effectCheck = 1;
this.form.complainCheck = 1;
}
},
renderContent: function(h, { node, data, store }) { renderContent: function(h, { node, data, store }) {
return ( return (
<span> <span>
......
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