修改花名册
parent
c7162b09ce
commit
42e7f1f2c0
|
@ -85,7 +85,7 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="150">
|
<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)"
|
<el-button link type="primary" icon="ChromeFilled" @click="handleAuth(scope.row)"
|
||||||
v-hasPermi="['manage:attendance_ubi_device:edit']">同步</el-button>
|
v-hasPermi="['manage:attendance_ubi_device:edit']">同步</el-button>
|
||||||
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
|
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
|
||||||
|
|
|
@ -102,7 +102,7 @@
|
||||||
<el-button v-if="scope.row.subDeptType!='4' && scope.row.subDeptType!='5'" link disabled> - </el-button>
|
<el-button v-if="scope.row.subDeptType!='4' && scope.row.subDeptType!='5'" link disabled> - </el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="状态" align="center" prop="enterState">
|
<el-table-column label="状态" align="center" prop="useStatus">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span v-if="scope.row.useStatus == 0" style="color: green;">在场</span>
|
<span v-if="scope.row.useStatus == 0" style="color: green;">在场</span>
|
||||||
<span v-else style="color: red">离场</span>
|
<span v-else style="color: red">离场</span>
|
||||||
|
@ -115,8 +115,8 @@
|
||||||
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
|
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['manage:proProjectInfoSubdeptsUsers:edit']">修改</el-button>
|
v-hasPermi="['manage:proProjectInfoSubdeptsUsers:edit']">修改</el-button>
|
||||||
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
|
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
|
||||||
v-hasPermi="['manage:proProjectInfoSubdeptsUsers:remove']">删除</el-button>
|
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.enterState == 0"
|
<el-button link type="primary" icon="Delete" @click="handleEnter(scope.row)" v-if="scope.row.useStatus == 0"
|
||||||
v-hasPermi="['manage:proProjectInfoSubdeptsUsers:remove']">离场</el-button>
|
v-hasPermi="['manage:proProjectInfoSubdeptsUsers:remove']">离场</el-button>
|
||||||
<el-button link type="primary" icon="Delete" @click="handleEnter(scope.row)" v-else
|
<el-button link type="primary" icon="Delete" @click="handleEnter(scope.row)" v-else
|
||||||
v-hasPermi="['manage:proProjectInfoSubdeptsUsers:remove']">进场</el-button>
|
v-hasPermi="['manage:proProjectInfoSubdeptsUsers:remove']">进场</el-button>
|
||||||
|
@ -355,13 +355,13 @@ const { queryParams, form, rules } = toRefs(data);
|
||||||
//进场,离场
|
//进场,离场
|
||||||
function handleEnter(row) {
|
function handleEnter(row) {
|
||||||
let ids = [row.id];
|
let ids = [row.id];
|
||||||
if (row.enterState == 0) {
|
if (row.useStatus == 0) {
|
||||||
updateEnterState(ids, 1).then(d => {
|
updateEnterState(ids, 1).then(d => {
|
||||||
row.enterState = 1;
|
row.useStatus = 1;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
updateEnterState(ids, 0).then(d => {
|
updateEnterState(ids, 0).then(d => {
|
||||||
row.enterState = 0;
|
row.useStatus = 0;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -375,7 +375,7 @@ function handleBatchEnterState(state) {
|
||||||
updateEnterState(ids.value, state).then(d => {
|
updateEnterState(ids.value, state).then(d => {
|
||||||
proProjectInfoSubdeptsUsersList.value.forEach(it => {
|
proProjectInfoSubdeptsUsersList.value.forEach(it => {
|
||||||
if (ids.value.indexOf(it.id) >= 0) {
|
if (ids.value.indexOf(it.id) >= 0) {
|
||||||
it.enterState = state;
|
it.useStatus = state;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue