|
|
|
@ -48,14 +48,14 @@ |
|
|
|
|
<el-checkbox v-model="row.spouseEnterprise"></el-checkbox> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<!-- <el-table-column label="可以准入" |
|
|
|
|
<el-table-column label="可以准入" |
|
|
|
|
min-width="150" |
|
|
|
|
align="center"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
<el-checkbox v-model="row.hitAccess" |
|
|
|
|
<el-checkbox v-model="row.admittance" |
|
|
|
|
@change="checkNone(row)"></el-checkbox> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> --> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
|
|
|
|
|
<div class="flex justify-end"> |
|
|
|
@ -106,6 +106,7 @@ const getConfig = async () => { |
|
|
|
|
temp.myselfWorkplace = !!cur?.myselfWorkplace; |
|
|
|
|
temp.spouseEnterprise = !!cur?.spouseEnterprise; |
|
|
|
|
temp.spouseWorkplace = !!cur?.spouseWorkplace; |
|
|
|
|
temp.admittance = !!cur?.admittance; |
|
|
|
|
result.push(temp); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
@ -146,7 +147,7 @@ const span = ({ row, column, rowIndex, columnIndex }: SpanMethodProps) => { |
|
|
|
|
if (!columnIndex) { |
|
|
|
|
return { |
|
|
|
|
rowspan: 1, |
|
|
|
|
colspan: 6, |
|
|
|
|
colspan: 7, |
|
|
|
|
}; |
|
|
|
|
} else { |
|
|
|
|
return { |
|
|
|
@ -156,6 +157,14 @@ const span = ({ row, column, rowIndex, columnIndex }: SpanMethodProps) => { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
const checkNone = (row: Record<string, any>) => { |
|
|
|
|
if (row.admittance) { |
|
|
|
|
row.myselfEnterprise = false; |
|
|
|
|
row.myselfWorkplace = false; |
|
|
|
|
row.spouseEnterprise = false; |
|
|
|
|
row.spouseWorkplace = false; |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
// 提交 |
|
|
|
|
const submit = async () => { |
|
|
|
|
let param = []; |
|
|
|
@ -170,6 +179,7 @@ const submit = async () => { |
|
|
|
|
myselfWorkplace: e.myselfWorkplace ? 1 : 0, |
|
|
|
|
spouseEnterprise: e.spouseEnterprise ? 1 : 0, |
|
|
|
|
spouseWorkplace: e.spouseWorkplace ? 1 : 0, |
|
|
|
|
admittance: e.admittance ? 1 : 0, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -190,6 +200,7 @@ const addRecord = async (data: Record<string, any>) => { |
|
|
|
|
e.spouseWorkplace && temp.push(384); |
|
|
|
|
e.myselfEnterprise && temp.push(385); |
|
|
|
|
e.spouseEnterprise && temp.push(386); |
|
|
|
|
e.admittance && temp.push(758); |
|
|
|
|
temp.length && rule.push(handleId(e.stRecordId, e.subjectId, temp.join(), preIds + ',' + e.parentId + ',' + e.stRecordId, 1)); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|