diff --git a/src/views/system/role/components/role-edit.vue b/src/views/system/role/components/role-edit.vue index 89a0127..c356763 100644 --- a/src/views/system/role/components/role-edit.vue +++ b/src/views/system/role/components/role-edit.vue @@ -4,7 +4,7 @@ :width="460" :visible="visible" :confirm-loading="loading" - :title="isUpdate ? '修改角色' : '添加角色'" + :title="isUpdate ? '编辑角色' : '添加角色'" :body-style="{ paddingBottom: '8px' }" @update:visible="updateVisible" @ok="save" @@ -26,10 +26,17 @@ v-model:value="form.roleName" /> - + @@ -119,7 +126,15 @@ .then(() => { loading.value = true; const saveOrUpdate = isUpdate.value ? updateRole : addRole; - saveOrUpdate(form) + // 角色标识参与审批流程判断,修改时只提交可编辑的字段 + const data: Role = isUpdate.value + ? { + roleId: form.roleId, + roleName: form.roleName, + comments: form.comments + } + : { ...form }; + saveOrUpdate(data) .then((msg) => { loading.value = false; message.success(msg); diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index 6b5ddf5..c041662 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -37,13 +37,11 @@