新增项目管理员角色权限控制

This commit is contained in:
wkc
2026-07-01 16:12:03 +08:00
parent 6c70149e0c
commit 64ddc362e3
33 changed files with 727 additions and 92 deletions

View File

@@ -30,13 +30,14 @@
maxlength="500"
show-word-limit
placeholder="请填写为什么将该详情确认为证据"
:disabled="!canOperate"
/>
</el-form-item>
</el-form>
<div slot="footer">
<el-button @click="handleClose">取消</el-button>
<el-button type="primary" :loading="submitting" @click="handleSubmit">
<el-button type="primary" :loading="submitting" :disabled="!canOperate" @click="handleSubmit">
确认入库
</el-button>
</div>
@@ -63,6 +64,10 @@ export default {
type: Object,
default: () => ({}),
},
canOperate: {
type: Boolean,
default: true,
},
},
data() {
return {
@@ -100,6 +105,10 @@ export default {
this.$emit("update:visible", false);
},
async handleSubmit() {
if (!this.canOperate) {
this.$message.warning("当前项目仅可查看,不能确认入库证据");
return;
}
if (!this.confirmReason) {
this.$message.warning("请填写确认理由/备注");
return;