Commit f385ffff authored by 姬鋆屾's avatar 姬鋆屾

fixed:修改考勤授权不生效的问题及接口传参调整;屏蔽员工列表的编辑功能

parent b2b38ba0
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
:model="form" :model="form"
:rules="rules" :rules="rules"
label-width="120px" label-width="120px"
style="width: 100%;" style="width: 100%"
> >
<div class="cell2"> <div class="cell2">
<div class="history"> <div class="history">
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
:active-value="1" :active-value="1"
:inactive-value="0" :inactive-value="0"
v-model="form.otherCheck" v-model="form.otherCheck"
@change="handleSwitch" @change="handleSwitch(1)"
> >
</el-switch> </el-switch>
</div> </div>
...@@ -72,6 +72,7 @@ ...@@ -72,6 +72,7 @@
:active-value="1" :active-value="1"
:inactive-value="0" :inactive-value="0"
v-model="form.attendCheck" v-model="form.attendCheck"
@change="handleSwitch(2)"
> >
</el-switch> </el-switch>
</div> </div>
...@@ -81,6 +82,7 @@ ...@@ -81,6 +82,7 @@
:active-value="1" :active-value="1"
:inactive-value="0" :inactive-value="0"
v-model="form.reviewCheck" v-model="form.reviewCheck"
@change="handleSwitch(2)"
> >
</el-switch> </el-switch>
</div> </div>
...@@ -99,6 +101,7 @@ ...@@ -99,6 +101,7 @@
:active-value="1" :active-value="1"
:inactive-value="0" :inactive-value="0"
v-model="form.goworkCheck" v-model="form.goworkCheck"
@change="handleSwitch(2)"
> >
</el-switch> </el-switch>
</div> </div>
...@@ -108,6 +111,7 @@ ...@@ -108,6 +111,7 @@
:active-value="1" :active-value="1"
:inactive-value="0" :inactive-value="0"
v-model="form.effectCheck" v-model="form.effectCheck"
@change="handleSwitch(2)"
> >
</el-switch> </el-switch>
</div> </div>
...@@ -117,6 +121,7 @@ ...@@ -117,6 +121,7 @@
:active-value="1" :active-value="1"
:inactive-value="0" :inactive-value="0"
v-model="form.complainCheck" v-model="form.complainCheck"
@change="handleSwitch(2)"
> >
</el-switch> </el-switch>
</div> </div>
...@@ -128,7 +133,8 @@ ...@@ -128,7 +133,8 @@
<form-buttons <form-buttons
@submit="submitForm" @submit="submitForm"
noCancelBtn noCancelBtn
style="position: absolute; left: -100px;" v-if="title != '考核授权'"
style="position: absolute; left: -100px"
/> />
</el-form> </el-form>
</el-drawer> </el-drawer>
...@@ -215,23 +221,36 @@ export default { ...@@ -215,23 +221,36 @@ export default {
}, },
methods: { methods: {
handleSwitch(val) { handleSwitch(i) {
if (this.form.otherCheck == 0) { let obj = {};
this.form.attendCheck = 0; if (i == 1) {
this.form.reviewCheck = 0; if (this.form.otherCheck == 0) {
this.form.goworkCheck = 0; this.form.attendCheck = 0;
this.form.effectCheck = 0; this.form.reviewCheck = 0;
this.form.complainCheck = 0; this.form.goworkCheck = 0;
} else { this.form.effectCheck = 0;
this.form.attendCheck = 1; this.form.complainCheck = 0;
this.form.reviewCheck = 1; } else {
this.form.goworkCheck = 1; this.form.attendCheck = 1;
this.form.effectCheck = 1; this.form.reviewCheck = 1;
this.form.complainCheck = 1; this.form.goworkCheck = 1;
this.form.effectCheck = 1;
this.form.complainCheck = 1;
}
} }
obj = {
otherCheck: this.form.otherCheck,
attendCheck: this.form.attendCheck,
reviewCheck: this.form.reviewCheck,
goworkCheck: this.form.goworkCheck,
effectCheck: this.form.effectCheck,
complainCheck: this.form.complainCheck,
};
obj.staffId = this.form.id;
this.form.staffId = this.form.id; this.form.staffId = this.form.id;
this.form.type = 1; this.form.type = 1;
this.$post("/staff/check/authorize", this.form).then((res) => { this.$post("/staff/check/authorize", obj).then((res) => {
if (res.code == 1) { if (res.code == 1) {
this.$message.success("绩效展示修改成功!"); this.$message.success("绩效展示修改成功!");
} else { } else {
...@@ -239,7 +258,7 @@ export default { ...@@ -239,7 +258,7 @@ export default {
} }
}); });
}, },
renderContent: function(h, { node, data, store }) { renderContent: function (h, { node, data, store }) {
return ( return (
<span> <span>
<i style="font-size:16px;color:#409EFF" class={data.icon}></i> <i style="font-size:16px;color:#409EFF" class={data.icon}></i>
......
...@@ -35,11 +35,11 @@ ...@@ -35,11 +35,11 @@
</div> </div>
</div> </div>
</div> --> </div> -->
<el-row :gutter="20" style="padding-top: 10px;"> <el-row :gutter="20" style="padding-top: 10px">
<el-col :span="6" :xs="12" class="mytree"> <el-col :span="6" :xs="12" class="mytree">
<div class="titles">选择部门</div> <div class="titles">选择部门</div>
<!-- default-expand-all --> <!-- default-expand-all -->
<el-scrollbar style="height:630px;overflow-y: auto;"> <el-scrollbar style="height: 630px; overflow-y: auto">
<el-tree <el-tree
size="mini" size="mini"
ref="siteTree" ref="siteTree"
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
<el-dropdown <el-dropdown
class="moreControll" class="moreControll"
slot="table-head-left2" slot="table-head-left2"
style="margin-left:20px" style="margin-left: 20px"
> >
<el-button type="primary" size="mini"> <el-button type="primary" size="mini">
更多操作<i class="el-icon-arrow-down el-icon--right"></i> 更多操作<i class="el-icon-arrow-down el-icon--right"></i>
...@@ -169,9 +169,7 @@ ...@@ -169,9 +169,7 @@
<div>花名册记录</div> <div>花名册记录</div>
<!-- <el-button type="text">查看</el-button> --> <!-- <el-button type="text">查看</el-button> -->
</div> </div>
<div class="times"> <div class="times">导出时间:2023-07-19</div>
导出时间:2023-07-19
</div>
</div> </div>
</div> </div>
</el-drawer> </el-drawer>
...@@ -189,7 +187,7 @@ ...@@ -189,7 +187,7 @@
> >
</el-checkbox> </el-checkbox>
</el-checkbox-group> </el-checkbox-group>
<div class="mt20" style="text-align:right"> <div class="mt20" style="text-align: right">
<el-button @click="() => (isdialog = falsle)">取消</el-button> <el-button @click="() => (isdialog = falsle)">取消</el-button>
<el-button type="primary" @click="handleOk">确定</el-button> <el-button type="primary" @click="handleOk">确定</el-button>
</div> </div>
...@@ -442,7 +440,7 @@ export default { ...@@ -442,7 +440,7 @@ export default {
noAdd noAdd
noAuth noAuth
noDel noDel
noEdit
row={row} row={row}
onView={this.toView} onView={this.toView}
onEdit={this.toEdit} onEdit={this.toEdit}
......
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