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