Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
corporate-culture-qd
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王立鹏
corporate-culture-qd
Commits
854e5aea
Commit
854e5aea
authored
Oct 08, 2026
by
lijiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【需求 25171】styles: 查看权限输入框撑满整行,视频推送选人输入框移到单选下方
parent
cf9ae590
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
8 deletions
+17
-8
index.vue
src/components/common/DeptUserPicker/index.vue
+11
-2
index.vue
src/views/backend/contentsMenu/practiceManage/index.vue
+1
-0
PracticeForm.vue
src/views/publishLongArticle/components/PracticeForm.vue
+1
-0
index.vue
src/views/publishVideo/index.vue
+4
-6
No files found.
src/components/common/DeptUserPicker/index.vue
View file @
854e5aea
<
template
>
<
template
>
<!-- 触发区完全交给调用方自己写(长度、placeholder 等都自己控制),这里只负责点击打开弹窗。 -->
<!-- 触发区完全交给调用方自己写(长度、placeholder 等都自己控制),这里只负责点击打开弹窗。
<div
class=
"inline-block"
:class=
"
{ 'cursor-not-allowed': disabled }" @click="open">
组件有两个根节点,class 等属性不会自动落到外层,这里手动挂到触发区上:
想让触发区撑满一行就在组件上写 class="w-full" -->
<div
v-bind=
"$attrs"
class=
"inline-block"
:class=
"
{ 'cursor-not-allowed': disabled }"
@click="open"
>
<slot
:echo-text=
"echoText"
/>
<slot
:echo-text=
"echoText"
/>
</div>
</div>
<DepartmentUserModal
ref=
"modalRef"
@
confirm=
"handleConfirm"
/>
<DepartmentUserModal
ref=
"modalRef"
@
confirm=
"handleConfirm"
/>
...
@@ -52,6 +59,8 @@ const {
...
@@ -52,6 +59,8 @@ const {
valueType
=
'array'
,
valueType
=
'array'
,
}
=
defineProps
<
DeptUserPickerProps
>
()
}
=
defineProps
<
DeptUserPickerProps
>
()
defineOptions
({
inheritAttrs
:
false
})
const
emit
=
defineEmits
<
{
const
emit
=
defineEmits
<
{
confirm
:
[
items
:
DepartmentUserSelection
[]]
confirm
:
[
items
:
DepartmentUserSelection
[]]
}
>
()
}
>
()
...
...
src/views/backend/contentsMenu/practiceManage/index.vue
View file @
854e5aea
...
@@ -303,6 +303,7 @@ const handleSubmitPermission = async () => {
...
@@ -303,6 +303,7 @@ const handleSubmitPermission = async () => {
:close-on-click-modal=
"false"
:close-on-click-modal=
"false"
>
>
<DeptUserPicker
<DeptUserPicker
class=
"w-full"
v-model:dept-value=
"permissionDeptIds"
v-model:dept-value=
"permissionDeptIds"
v-model:user-value=
"permissionUserIds"
v-model:user-value=
"permissionUserIds"
selection-mode=
"both"
selection-mode=
"both"
...
...
src/views/publishLongArticle/components/PracticeForm.vue
View file @
854e5aea
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
<!-- 查看权限:不选就是所有人可见,选了部门/人员之后只有被选中的能看到,本人和管理员都能改 -->
<!-- 查看权限:不选就是所有人可见,选了部门/人员之后只有被选中的能看到,本人和管理员都能改 -->
<el-form-item
label=
"查看权限"
>
<el-form-item
label=
"查看权限"
>
<DeptUserPicker
<DeptUserPicker
class=
"w-full"
v-model:dept-value=
"permissionDeptIds"
v-model:dept-value=
"permissionDeptIds"
v-model:user-value=
"permissionUserIds"
v-model:user-value=
"permissionUserIds"
selection-mode=
"both"
selection-mode=
"both"
...
...
src/views/publishVideo/index.vue
View file @
854e5aea
...
@@ -179,15 +179,14 @@
...
@@ -179,15 +179,14 @@
<div
class=
"mb-8"
>
<div
class=
"mb-8"
>
<el-form-item>
<el-form-item>
<label
class=
"block text-sm font-semibold text-gray-700 mb-3"
>
推送对象
</label>
<label
class=
"block text-sm font-semibold text-gray-700 mb-3"
>
推送对象
</label>
<div
class=
"w-full
flex items-center gap-2
"
>
<div
class=
"w-full"
>
<el-radio-group
v-model=
"form.isPushAll"
>
<el-radio-group
v-model=
"form.isPushAll"
>
<el-radio
:value=
"BooleanFlag.YES"
>
全员
</el-radio>
<el-radio
:value=
"BooleanFlag.YES"
>
全员
</el-radio>
<el-radio
:value=
"BooleanFlag.NO"
>
指定部门/人员
</el-radio>
<el-radio
:value=
"BooleanFlag.NO"
>
指定部门/人员
</el-radio>
</el-radio-group>
</el-radio-group>
<div
</div>
v-show=
"form.isPushAll === BooleanFlag.NO"
<!-- 选人输入框单独放一行,跟帖子/专栏等发布页的推送设置保持一致 -->
class=
"flex items-center gap-2"
<div
v-show=
"form.isPushAll === BooleanFlag.NO"
class=
"w-full mt-2"
>
>
<DeptUserPicker
<DeptUserPicker
v-model:dept-value=
"pushDeptIds"
v-model:dept-value=
"pushDeptIds"
v-model:user-value=
"pushUserIds"
v-model:user-value=
"pushUserIds"
...
@@ -203,7 +202,6 @@
...
@@ -203,7 +202,6 @@
/>
/>
</DeptUserPicker>
</DeptUserPicker>
</div>
</div>
</div>
</el-form-item>
</el-form-item>
</div>
</div>
<div
class=
"mb-8"
>
<div
class=
"mb-8"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment