修改花名册

dev_xd
haha 2025-01-23 00:02:01 +08:00
parent c7162b09ce
commit 42e7f1f2c0
2 changed files with 8 additions and 8 deletions

View File

@ -85,7 +85,7 @@
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="150">
<template #default="scope">
<template #default="scope">111
<el-button link type="primary" icon="ChromeFilled" @click="handleAuth(scope.row)"
v-hasPermi="['manage:attendance_ubi_device:edit']">同步</el-button>
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"

View File

@ -102,7 +102,7 @@
<el-button v-if="scope.row.subDeptType!='4' && scope.row.subDeptType!='5'" link disabled> - </el-button>
</template>
</el-table-column>
<el-table-column label="状态" align="center" prop="enterState">
<el-table-column label="状态" align="center" prop="useStatus">
<template #default="scope">
<span v-if="scope.row.useStatus == 0" style="color: green;"></span>
<span v-else style="color: red">离场</span>
@ -115,8 +115,8 @@
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
v-hasPermi="['manage:proProjectInfoSubdeptsUsers:edit']">修改</el-button>
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
v-hasPermi="['manage:proProjectInfoSubdeptsUsers:remove']">删除</el-button>
<el-button link type="primary" icon="Delete" @click="handleEnter(scope.row)" v-if="scope.row.enterState == 0"
v-hasPermi="['manage:proProjectInfoSubdeptsUsers:remove']" v-if="1==2">删除</el-button>
<el-button link type="primary" icon="Delete" @click="handleEnter(scope.row)" v-if="scope.row.useStatus == 0"
v-hasPermi="['manage:proProjectInfoSubdeptsUsers:remove']">离场</el-button>
<el-button link type="primary" icon="Delete" @click="handleEnter(scope.row)" v-else
v-hasPermi="['manage:proProjectInfoSubdeptsUsers:remove']">进场</el-button>
@ -355,13 +355,13 @@ const { queryParams, form, rules } = toRefs(data);
//
function handleEnter(row) {
let ids = [row.id];
if (row.enterState == 0) {
if (row.useStatus == 0) {
updateEnterState(ids, 1).then(d => {
row.enterState = 1;
row.useStatus = 1;
});
} else {
updateEnterState(ids, 0).then(d => {
row.enterState = 0;
row.useStatus = 0;
});
}
}
@ -375,7 +375,7 @@ function handleBatchEnterState(state) {
updateEnterState(ids.value, state).then(d => {
proProjectInfoSubdeptsUsersList.value.forEach(it => {
if (ids.value.indexOf(it.id) >= 0) {
it.enterState = state;
it.useStatus = state;
}
});
});