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
4650bd49
Commit
4650bd49
authored
Jul 21, 2026
by
lijiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 实践发布支持选择所属一级部门
parent
a24b3b2b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletions
+23
-1
types.ts
src/api/practice/types.ts
+1
-0
index.vue
src/components/common/PublishBox/index.vue
+22
-1
No files found.
src/api/practice/types.ts
View file @
4650bd49
...
...
@@ -15,6 +15,7 @@ export interface AddOrUpdatePracticeDto {
tagList
:
{
tagId
:
number
;
sort
:
number
}[]
sendType
:
SendTypeEnum
sendTime
:
string
deptId
?:
string
type
?:
ArticleTypeEnum
}
...
...
src/components/common/PublishBox/index.vue
View file @
4650bd49
...
...
@@ -62,6 +62,21 @@
:height=
"100"
/>
</div>
<div
v-if=
"userInfo.isOfficialAccount && type === ArticleTypeEnum.PRACTICE"
class=
"mb-3"
>
<el-select
v-model=
"form.deptId"
placeholder=
"请选择所属一级部门"
clearable
class=
"w-full"
>
<el-option
v-for=
"item in firstDepListOptions"
:key=
"item.id"
:value=
"item.id"
:label=
"item.name"
/>
</el-select>
</div>
<!-- 标签内容 -->
<div
class=
"mb-2"
>
<!-- 选择的标签内容 -->
...
...
@@ -148,7 +163,12 @@ import { useUserStore } from '@/stores'
import
{
storeToRefs
}
from
'pinia'
import
SelectTagsDialog
from
'./components/selectTagsDialog.vue'
import
{
useResetData
,
useUploadImg
}
from
'@/hooks'
import
{
ArticleTypeEnum
,
ReleaseStatusTypeEnum
,
SendTypeEnum
}
from
'@/constants'
import
{
ArticleTypeEnum
,
firstDepListOptions
,
ReleaseStatusTypeEnum
,
SendTypeEnum
,
}
from
'@/constants'
import
{
useTagsStore
}
from
'@/stores'
import
{
addOrUpdatePractice
,
addOrUpdateArticle
}
from
'@/api'
import
type
{
AddOrUpdatePracticeDto
}
from
'@/api'
...
...
@@ -238,6 +258,7 @@ const [form, , forReset] = useResetData({
tagList
:
[],
sendType
:
SendTypeEnum
.
IMMEDIATE
,
sendTime
:
''
,
deptId
:
''
,
})
const
{
imgList
,
handleFileChange
,
handleDeleteImg
,
uploadPercent
}
=
useUploadImg
(
...
...
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