Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-zws
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-zws
Commits
49f49cd8
提交
49f49cd8
authored
12月 20, 2022
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: update
上级
acb544f3
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
32 行增加
和
15 行删除
+32
-15
Index.vue
src/modules/base/project/views/Index.vue
+27
-7
Index.vue
src/modules/system/roles/views/Index.vue
+3
-1
Index.vue
src/modules/system/users/views/Index.vue
+1
-1
vite.config.ts
vite.config.ts
+1
-6
没有找到文件。
src/modules/base/project/views/Index.vue
浏览文件 @
49f49cd8
...
...
@@ -4,7 +4,7 @@ import AppList from '@/components/base/AppList.vue'
import
{
getProjectList
,
addMember
,
deleteProject
}
from
'../api'
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
import
{
useMap
}
from
'../composables/useMap'
const
{
types
,
status
}
=
await
useMap
()
const
{
types
,
status
,
hasAuth
}
=
await
useMap
()
const
AddMember
=
defineAsyncComponent
(()
=>
import
(
'../components/AddMember.vue'
))
...
...
@@ -123,26 +123,46 @@ const handleDelete = function (row: any) {
<AppCard
title=
"项目管理"
>
<AppList
:columns=
"columns"
v-bind=
"listOptions"
@
selection-change=
"handleSelectionChange"
ref=
"appList"
>
<template
#
header-buttons
>
<el-button
type=
"primary"
><router-link
:to=
"
{ name: 'projectCreate' }">创建项目
</router-link></el-button>
<el-button
type=
"primary"
@
click=
"toggleSelection"
v-if=
"!selectionVisible"
>
添加成员
</el-button>
<el-button
type=
"primary"
v-permission=
"'project-create'"
>
<router-link
:to=
"
{ name: 'projectCreate' }">创建项目
</router-link>
</el-button>
<el-button
type=
"primary"
@
click=
"toggleSelection"
v-permission=
"'project-member-create'"
v-if=
"!selectionVisible"
>
添加成员
</el-button
>
<template
v-else
>
<el-button
type=
"primary"
:disabled=
"!multipleSelection.length"
@
click=
"addProjectMember"
>
选择成员
</el-button>
<el-button
type=
"primary"
plain
@
click=
"toggleSelection"
>
取消
</el-button>
</
template
>
</template>
<
template
#
table-x=
"{ row }"
>
<el-button
text
>
<el-button
text
v-if=
"hasAuth('project-view', row.project_id)"
>
<router-link
:to=
"
{ name: 'projectView', params: { id: row.id }, query: { project_id: row.project_id } }"
>查看
</router-link
>
</el-button>
<el-button
text
style=
"--el-button-text-color: #3276fc"
>
<el-button
text
style=
"--el-button-text-color: #3276fc"
v-if=
"hasAuth('project-update', row.project_id)"
>
<router-link
:to=
"
{ name: 'projectUpdate', params: { id: row.id }, query: { project_id: row.project_id } }"
>编辑
</router-link
>
</el-button>
<el-button
text
style=
"--el-button-text-color: #00bfbf"
@
click=
"handleAddMember(row)"
>
添加成员
</el-button>
<el-button
text
style=
"--el-button-text-color: #d9001b"
@
click=
"handleDelete(row)"
>
删除
</el-button>
<el-button
text
style=
"--el-button-text-color: #00bfbf"
@
click=
"handleAddMember(row)"
v-if=
"hasAuth('project-member-create', row.project_id)"
>
添加成员
</el-button
>
<el-button
text
style=
"--el-button-text-color: #d9001b"
@
click=
"handleDelete(row)"
v-if=
"hasAuth('project-delete', row.project_id)"
>
删除
</el-button
>
</
template
>
</AppList>
<AddMember
v-model=
"memberVisible"
@
submit=
"handleSubmitMember"
v-if=
"memberVisible"
></AddMember>
...
...
src/modules/system/roles/views/Index.vue
浏览文件 @
49f49cd8
...
...
@@ -39,7 +39,9 @@ function handleView(row: any) {
<AppCard
title=
"角色管理"
>
<AppList
v-bind=
"listOptions"
ref=
"appList"
>
<template
#
table-x=
"
{ row }">
<el-button
text
type=
"primary"
@
click=
"handleView(row)"
>
查看成员
</el-button>
<el-button
text
type=
"primary"
@
click=
"handleView(row)"
v-permission=
"'management-role-view'"
>
查看成员
</el-button
>
</
template
>
</AppList>
</AppCard>
...
...
src/modules/system/users/views/Index.vue
浏览文件 @
49f49cd8
...
...
@@ -49,7 +49,7 @@ function handleView(row: UserItem) {
<AppList
v-bind=
"listOptions"
ref=
"appList"
>
<UserInfo
v-model=
"viewVisible"
:id=
"currentRow.user_id"
v-if=
"viewVisible && currentRow"
></UserInfo>
<template
#
table-x=
"
{ row }: { row: UserItem }">
<el-button
text
type=
"primary"
@
click=
"handleView(row)"
>
查看
</el-button>
<el-button
text
type=
"primary"
@
click=
"handleView(row)"
v-permission=
"'management-member-view'"
>
查看
</el-button>
</
template
>
</AppList>
</AppCard>
...
...
vite.config.ts
浏览文件 @
49f49cd8
...
...
@@ -24,12 +24,7 @@ export default defineConfig(({ mode }) => ({
cert
:
fs
.
readFileSync
(
path
.
join
(
__dirname
,
'./https/dev.ezijing.com.pem'
))
},
proxy
:
{
'/api/zws'
:
{
target
:
'http://localhost-new-zws-backend.ezijing.com'
,
changeOrigin
:
true
,
rewrite
:
path
=>
path
.
replace
(
/^
\/
api
\/
zws/
,
''
)
},
'/api'
:
'https://project-center.ezijing.com'
'/api'
:
'https://zws-center.ezijing.com'
}
},
resolve
:
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论