考勤机优化
This commit is contained in:
parent
bc829a0037
commit
029f6168da
|
|
@ -48,7 +48,7 @@
|
|||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-row v-if="formType !== 3">
|
||||
<el-col :span="24">
|
||||
<el-form-item label="工程名称" prop="proId">
|
||||
<el-select
|
||||
|
|
@ -69,7 +69,7 @@
|
|||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-row v-if="formType !== 3">
|
||||
<el-col :span="24">
|
||||
<el-form-item label="分包名称">
|
||||
<el-select
|
||||
|
|
@ -90,7 +90,7 @@
|
|||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-row v-if="formType !== 3">
|
||||
<el-col :span="24">
|
||||
<el-form-item label="班组名称">
|
||||
<el-select
|
||||
|
|
@ -222,7 +222,11 @@ export default {
|
|||
|
||||
if (res.code === 200) {
|
||||
this.$modal.msgSuccess(
|
||||
this.formType === 1 ? '新增成功' : '绑定成功',
|
||||
this.formType === 1
|
||||
? '新增成功'
|
||||
: this.formType === 2
|
||||
? '绑定成功'
|
||||
: '修改成功',
|
||||
)
|
||||
resolve()
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -80,6 +80,19 @@
|
|||
>
|
||||
绑定
|
||||
</el-button>
|
||||
|
||||
<el-button
|
||||
plain
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="el-icon-edit"
|
||||
v-if="
|
||||
data.serialNumber === '' || data.serialNumber === null
|
||||
"
|
||||
@click="onHandleAddOrBindAttendanceMachine(3, data, '修改')"
|
||||
>
|
||||
修改
|
||||
</el-button>
|
||||
<el-button
|
||||
plain
|
||||
size="mini"
|
||||
|
|
@ -175,7 +188,7 @@ export default {
|
|||
onHandleAddOrBindAttendanceMachine(type, data, title) {
|
||||
this.dialogConfig.outerTitle = `${title}考勤机`
|
||||
this.formType = type
|
||||
if (type === 2) {
|
||||
if (type === 2 || type === 3) {
|
||||
const { proId, deviceCode, deviceName, serialNumber } = data
|
||||
|
||||
this.editFormData = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue