mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-05 23:11:24 +08:00
Solve update attendance message problem
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
<template>
|
||||
<el-form ref="ruleForm" :rules="rules" :model="form" :label-width="formLabelWidth">
|
||||
<el-form-item label="用户" prop="userId">
|
||||
<el-form-item label="用户" prop="userId" v-show="isShow">
|
||||
<el-select
|
||||
v-model="form.userId"
|
||||
filterable
|
||||
:disabled="isDisabled"
|
||||
v-show="isShow"
|
||||
:reserve-keyword="false"
|
||||
placeholder="选择相对应的工作人员"
|
||||
>
|
||||
@@ -48,7 +49,8 @@ export default {
|
||||
props: {
|
||||
users: {},
|
||||
formData: {},
|
||||
isDisabled: Boolean
|
||||
isDisabled: Boolean,
|
||||
isShow: Boolean
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -63,8 +65,7 @@ export default {
|
||||
status: [{ required: true, message: '请选择考勤状态', trigger: 'change' }],
|
||||
attTime: [{ required: true, message: '请选择考勤时间', trigger: 'change' }]
|
||||
},
|
||||
formLabelWidth: '80px',
|
||||
isdisabled: false
|
||||
formLabelWidth: '80px'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
</el-button>
|
||||
<el-button type="success" @click="handleAdd()">
|
||||
<el-icon :size="SIZE_ICON_SM()" style="vertical-align: center">
|
||||
<icon-pinnacle-click />
|
||||
<icon-pinnacle-plus />
|
||||
</el-icon>
|
||||
<span style="vertical-align: center">打卡</span>
|
||||
<span style="vertical-align: center">添加</span>
|
||||
</el-button>
|
||||
<el-popconfirm
|
||||
title="你确定要批量删除这些数据吗?"
|
||||
@@ -134,6 +134,7 @@
|
||||
>
|
||||
<edit-attendance
|
||||
:users="users"
|
||||
:isShow="isShow"
|
||||
:isDisabled="isDisabled"
|
||||
@addAttendance="addAttendance"
|
||||
@setDialogVisible="setDialogVisible"
|
||||
@@ -150,6 +151,7 @@
|
||||
<edit-attendance
|
||||
:users="users"
|
||||
:form-data="form"
|
||||
:isShow="isShow"
|
||||
:isDisabled="isDisabled"
|
||||
@addAttendance="addAttendance"
|
||||
@setDialogVisible="setDialogVisible"
|
||||
@@ -189,6 +191,7 @@ export default {
|
||||
attTime: ''
|
||||
},
|
||||
isDisabled: false,
|
||||
isShow: true,
|
||||
dataLoading: true,
|
||||
options: [
|
||||
{
|
||||
@@ -311,6 +314,7 @@ export default {
|
||||
this.getFormData()
|
||||
this.addDialogFormVisible = true
|
||||
this.isDisabled = false
|
||||
this.isShow = true
|
||||
},
|
||||
// 处理保存
|
||||
doSave(formData) {
|
||||
@@ -326,6 +330,7 @@ export default {
|
||||
this.getFormData()
|
||||
this.editDialogFormVisible = true
|
||||
this.isDisabled = true
|
||||
this.isShow = false
|
||||
this.form = row
|
||||
this.form.status = row.status + ''
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user