Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
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
viitto
pptist
Commits
e0d0419c
Commit
e0d0419c
authored
Jun 03, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模版管理中心权限, 分享 公司 部门调整
parent
dfbd2572
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
Index.vue
src/views/Index.vue
+1
-1
ShareForm.vue
src/views/SellTemplate/components/ShareForm.vue
+8
-2
No files found.
src/views/Index.vue
View file @
e0d0419c
...
...
@@ -106,7 +106,7 @@
</span>
</div>
</el-tooltip>
<el-tooltip
effect=
"dark"
content=
"模板管理中心"
placement=
"right"
v-if=
"userInfo.isTemplate"
>
<el-tooltip
effect=
"dark"
content=
"模板管理中心"
placement=
"right"
v-if=
"userInfo.isTemplate
|| userInfo.iv || userInfo.ic || userInfo.ia
"
>
<div
class=
"left-button q-mt-md"
@
click=
"redicetTo('/m')"
>
<IconStarOne
size=
"24"
theme=
"filled"
style=
"color:#564bec4d"
></IconStarOne>
</div>
...
...
src/views/SellTemplate/components/ShareForm.vue
View file @
e0d0419c
...
...
@@ -104,6 +104,10 @@ import { ref } from 'vue';
import
{
View
,
Download
,
EditPen
,
Delete
,
CopyDocument
}
from
'@element-plus/icons-vue'
;
import
{
ElDialog
,
ElMessage
,
ElMessageBox
}
from
'element-plus'
;
import
ConfigService
from
'@/services/ConfigService'
;
import
{
useUserStore
}
from
"@/store/user"
;
import
{
storeToRefs
}
from
"pinia"
;
const
{
userInfo
}
=
storeToRefs
(
useUserStore
());
const
props
=
defineProps
({
id
:{
...
...
@@ -137,8 +141,10 @@ const allOrgs = ref<any[]>([])
const
allPeoples
=
ref
<
any
[]
>
([])
const
shareList
=
ref
<
any
[]
>
([])
shareTypeItems
.
value
.
push
({
label
:
'所有人'
,
value
:
0
})
shareTypeItems
.
value
.
push
({
label
:
'公司'
,
value
:
1
})
shareTypeItems
.
value
.
push
({
label
:
'部门'
,
value
:
2
})
if
(
userInfo
.
value
.
isp
)
{
shareTypeItems
.
value
.
push
({
label
:
'公司'
,
value
:
1
})
shareTypeItems
.
value
.
push
({
label
:
'部门'
,
value
:
2
})
}
shareTypeItems
.
value
.
push
({
label
:
'员工'
,
value
:
4
})
permissions
.
value
.
push
({
label
:
'复制'
,
value
:
1
})
permissions
.
value
.
push
({
label
:
'编辑'
,
value
:
2
})
...
...
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