feat(permission): replace OA roles with post-bound roles and assignee posts
Unify effective roles via post-role bindings, remove dedicated OA role UI, and update OA assignee resolution plus related SQL/docs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
a3c73d76bb
commit
06db3bc966
66 files changed
+55337
-38647
No files matched your search
@@ -404,7 +404,7 @@
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<template #label>
|
||||
节点编号<span class="form-label-tip">可选,与名称共用序号</span>
|
||||
节点编号<span class="form-label-tip">编号 = 前缀 + 序号 + 后缀;前缀后缀都空时 = 序号</span>
|
||||
</template>
|
||||
<div class="storage-name-compose">
|
||||
<div class="storage-compose-field storage-compose-field--affix">
|
||||
@@ -1585,7 +1585,7 @@
|
||||
nameSuffix: '',
|
||||
startNum: 1,
|
||||
endNum: 10,
|
||||
padWidth: 2,
|
||||
padWidth: 0,
|
||||
codePrefix: '',
|
||||
codeSuffix: '',
|
||||
nodeType: 'box',
|
||||
@@ -1619,16 +1619,14 @@
|
||||
if (count > 200) {
|
||||
return { count: 0, samples: [] as Array<{ name: string; code: string }> }
|
||||
}
|
||||
const genCode = !!(batchChildForm.codePrefix.trim() || batchChildForm.codeSuffix.trim())
|
||||
const samples: Array<{ name: string; code: string }> = []
|
||||
const showMax = Math.min(count, 12)
|
||||
for (let i = 0; i < showMax; i++) {
|
||||
const num = start + i
|
||||
const seq = formatBatchSeq(num, batchChildForm.padWidth)
|
||||
const name = `${batchChildForm.namePrefix}${seq}${batchChildForm.nameSuffix}`.trim()
|
||||
const code = genCode
|
||||
? `${batchChildForm.codePrefix}${seq}${batchChildForm.codeSuffix}`.trim()
|
||||
: ''
|
||||
// 前缀、后缀都空时,节点编号即为序号(含补零)
|
||||
const code = `${batchChildForm.codePrefix}${seq}${batchChildForm.codeSuffix}`.trim()
|
||||
samples.push({ name: name || '(空名称)', code })
|
||||
}
|
||||
return { count, samples }
|
||||
@@ -1685,7 +1683,7 @@
|
||||
nameSuffix: '',
|
||||
startNum: 1,
|
||||
endNum: 10,
|
||||
padWidth: 2,
|
||||
padWidth: 0,
|
||||
codePrefix: '',
|
||||
codeSuffix: '',
|
||||
nodeType: data.nodeType === 'facility' ? 'layer' : 'box',
|
||||
@@ -1739,7 +1737,7 @@
|
||||
nameSuffix: '',
|
||||
startNum: 1,
|
||||
endNum: 10,
|
||||
padWidth: 2,
|
||||
padWidth: 0,
|
||||
codePrefix: '',
|
||||
codeSuffix: '',
|
||||
nodeType: 'box',
|
||||
|
||||
Reference in new issue
Block a user