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

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

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