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