明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jt_front
Project
Project
Details
Activity
Releases
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
Administrator
jt_front
Commits
80000d67
Commit
80000d67
authored
May 15, 2026
by
zhanghan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
722521b8
Pipeline
#111387
passed with stage
in 20 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
user.js
src/stores/user.js
+12
-0
addProject.vue
src/views/projectManage/addProject.vue
+0
-1
projectDraft.vue
src/views/projectManage/projectDraft.vue
+6
-1
No files found.
src/stores/user.js
View file @
80000d67
...
...
@@ -3,12 +3,24 @@ export const useUserStore = defineStore("user", {
state
:
()
=>
({
userInfo
:
null
,
authToken
:
""
,
// 判断当前用户是不是投管部角色用户
isTgbu
:
false
,
// 判断是否是项目填报角色
isXmtb
:
false
,
}),
actions
:
{
setUseInfo
(
data
)
{
this
.
userInfo
=
data
;
this
.
authToken
=
data
.
token
;
this
.
isTgbu
=
data
.
departs
.
some
(
(
recoed
)
=>
recoed
.
parentIds
?.
includes
(
"41"
)
||
recoed
.
id
==
"41"
,
);
this
.
isXmtb
=
data
.
roles
.
some
((
recoed
)
=>
recoed
.
key
?.
includes
(
"company_dep"
),
);
console
.
log
(
"this.isXmtb"
,
this
.
isXmtb
);
console
.
log
(
"this.isTgbu"
,
this
.
isTgbu
);
sessionStorage
.
setItem
(
"authToken"
,
data
.
token
);
sessionStorage
.
setItem
(
"userInfo"
,
JSON
.
stringify
(
data
));
},
...
...
src/views/projectManage/addProject.vue
View file @
80000d67
...
...
@@ -109,7 +109,6 @@
@
click=
"auditDialogVisible = true"
>
审核
</el-button
>
<el-button
v-if=
"
isPreview &&
...
...
src/views/projectManage/projectDraft.vue
View file @
80000d67
...
...
@@ -6,7 +6,9 @@
<div
class=
"manage-header"
>
<div
class=
"header-left"
></div>
<div
class=
"header-right"
>
<el-button
type=
"primary"
@
click=
"addProject"
>
新增
</el-button>
<el-button
type=
"primary"
v-if=
"isXmtb"
@
click=
"addProject"
>
新增
</el-button
>
</div>
</div>
<div
class=
"manage-content"
v-loading=
"loading"
>
...
...
@@ -60,10 +62,13 @@ import { useRouter } from "vue-router";
import
{
ElMessage
,
ElMessageBox
}
from
"element-plus"
;
import
CommonTable
from
"@/components/common/commonTable.vue"
;
import
SearchForm
from
"@/components/common/SearchForm.vue"
;
import
{
useUserStore
}
from
"@/stores/user.js"
;
const
handleSearch
=
(
formData
)
=>
{
currentPage
.
value
=
1
;
getProjectData
(
formData
);
};
const
isXmtb
=
useUserStore
()?.
isXmtb
;
const
router
=
useRouter
();
const
{
proxy
}
=
getCurrentInstance
();
...
...
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