Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
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
杨硕
template_vue
Commits
a0a324a3
Commit
a0a324a3
authored
Jul 21, 2023
by
吴志坤
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'newprotect' of
http://gitlab.91isoft.com:90/yangshuo/template_vue
into newprotect
parents
c6ed0616
bce0edfd
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
397 additions
and
22 deletions
+397
-22
index.vue
src/components/coolbutton/index.vue
+5
-0
permission.js
src/permission.js
+2
-0
user.js
src/store/modules/user.js
+5
-1
index.vue
src/views/monitor/errorLog/index.vue
+1
-1
index.vue
src/views/monitor/loginInfo/index.vue
+1
-1
index.vue
src/views/monitor/operLog/index.vue
+1
-1
index.vue
src/views/processManagement/basicProcessManagement/index.vue
+365
-0
index.vue
src/views/system/dept/index.vue
+6
-6
data.vue
src/views/system/dict/data.vue
+1
-1
index.vue
src/views/system/dict/index.vue
+1
-1
index.vue
src/views/system/menu/index.vue
+1
-1
index.vue
src/views/system/role/index.vue
+8
-9
No files found.
src/components/coolbutton/index.vue
View file @
a0a324a3
...
...
@@ -21,6 +21,7 @@
<
script
>
// import { getInfo } from '@/api/login'
import
store
from
'../../store/index'
import
Cookies
from
'js-cookie'
export
default
{
name
:
'CoolButton'
,
props
:
{
// 调用该组件时需要传递过来的属性
...
...
@@ -69,6 +70,10 @@ export default {
// this.hasper = data
// }
// })
// var p = Cookies.get('permissions')
// const menuList = p.split(',')
// TODO: clear this log
// console.log(`store.getters.permissions`, store.getters.permissions)
if
(
store
.
getters
.
permissions
[
0
]
===
'*:*:*'
)
{
this
.
isShow
=
true
this
.
hasper
=
[]
...
...
src/permission.js
View file @
a0a324a3
...
...
@@ -38,6 +38,8 @@ router.beforeEach((to, from, next) => {
if
(
routers
.
accessedRoutes
&&
routers
.
accessedRoutes
.
length
>
0
&&
routers
.
getRouters
&&
routers
.
getRouters
.
length
>
0
)
{
// 测试 默认静态页面
// store.dispatch('permission/generateRoutes', { roles }).then(accessRoutes => {
// TODO: clear this log
console
.
log
(
`routers.accessedRoutes`
,
routers
.
accessedRoutes
)
// 根据roles权限生成可访问的路由表
router
.
addRoutes
(
routers
.
accessedRoutes
)
// 动态添加可访问路由表
// TODO: clear this log
...
...
src/store/modules/user.js
View file @
a0a324a3
...
...
@@ -67,10 +67,14 @@ const user = {
const
avatar
=
user
.
avatar
===
null
?
require
(
'@/assets/image/profile.jpg'
)
:
user
.
avatar
if
(
res
.
data
.
roles
&&
res
.
data
.
roles
.
length
>
0
)
{
// 验证返回的roles是否是一个非空数组
commit
(
'SET_ROLES'
,
res
.
data
.
roles
)
commit
(
'SET_PERMISSIONS'
,
res
.
data
.
permissions
)
// const a = res.data.permissions.join(',')
// // TODO: clear this log
// console.log(`a`, a)
// Cookies.set('permissions', a)
}
else
{
commit
(
'SET_ROLES'
,
[
'ROLE_DEFAULT'
])
}
commit
(
'SET_PERMISSIONS'
,
res
.
data
.
permissions
)
commit
(
'SET_NAME'
,
user
.
username
)
commit
(
'SET_SPECIALTAG'
,
user
.
specialTag
)
commit
(
'SET_AVATAR'
,
avatar
)
...
...
src/views/monitor/errorLog/index.vue
View file @
a0a324a3
...
...
@@ -146,7 +146,7 @@
<span>
{{
scope
.
row
.
operTime
|
transformDateByFormat
(
'yyyy-MM-DD HH:mm:ss'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
width=
"100px"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
...
...
src/views/monitor/loginInfo/index.vue
View file @
a0a324a3
...
...
@@ -144,7 +144,7 @@
<span>
{{
parseTime
(
scope
.
row
.
loginTime
)
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm:ss'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
>
<el-table-column
label=
"操作"
width=
"100px"
>
<
template
slot-scope=
"scope"
>
<!--
<coolbutton
:type=
"textPrimary"
:name=
"deleteName"
:size=
"deleteSize"
@
btn-click=
"handleDelete(scope.row.businessId)"
/>
-->
<el-button
...
...
src/views/monitor/operLog/index.vue
View file @
a0a324a3
...
...
@@ -146,7 +146,7 @@
<span>
{{
scope
.
row
.
operTime
|
transformDateByFormat
(
'YYYY-MM'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
width=
"100px"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
...
...
src/views/processManagement/basicProcessManagement/index.vue
0 → 100644
View file @
a0a324a3
This diff is collapsed.
Click to expand it.
src/views/system/dept/index.vue
View file @
a0a324a3
...
...
@@ -61,8 +61,8 @@
<!--
{{
scope
.
row
.
businessId
}}
-->
<!--
</
template
>
-->
<!-- </el-table-column>-->
<el-table-column
:show-overflow-tooltip=
"true"
prop=
"deptName"
label=
"部门名称"
width=
"260"
/>
<el-table-column
:show-overflow-tooltip=
"true"
prop=
"orderNum"
label=
"排序"
width=
"200"
/>
<el-table-column
:show-overflow-tooltip=
"true"
prop=
"deptName"
label=
"部门名称"
/>
<el-table-column
:show-overflow-tooltip=
"true"
prop=
"orderNum"
label=
"排序"
/>
<el-table-column
label=
"状态"
align=
"center"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<el-switch
...
...
@@ -73,14 +73,14 @@
/>
</
template
>
</el-table-column>
<el-table-column
:show-overflow-tooltip=
"true"
prop=
"leader"
label=
"负责人"
width=
"200"
/>
<el-table-column
:show-overflow-tooltip=
"true"
prop=
"phone"
label=
"联系电话"
width=
"200"
/>
<el-table-column
:show-overflow-tooltip=
"true"
label=
"创建时间"
align=
"center"
prop=
"createDate"
width=
"200"
>
<el-table-column
:show-overflow-tooltip=
"true"
prop=
"leader"
label=
"负责人"
/>
<el-table-column
:show-overflow-tooltip=
"true"
prop=
"phone"
label=
"联系电话"
/>
<el-table-column
:show-overflow-tooltip=
"true"
label=
"创建时间"
align=
"center"
prop=
"createDate"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
createDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
width=
"180px"
>
<!-- <template slot-scope="scope">-->
<!-- <el-button-->
<!-- v-hasPermi="['system:dept:edit']"-->
...
...
src/views/system/dict/data.vue
View file @
a0a324a3
...
...
@@ -126,7 +126,7 @@
<span>
{{
scope
.
row
.
createDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"180px"
>
<
template
slot-scope=
"scope"
>
<!--
<el-button-->
<!-- v-hasPermi="['sys:dictConfig:edit']"-->
...
...
src/views/system/dict/index.vue
View file @
a0a324a3
...
...
@@ -148,7 +148,7 @@
<span>
{{
scope
.
row
.
createDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"180px"
>
<
template
slot-scope=
"scope"
>
<!--
<el-button-->
<!-- v-hasPermi="['sys:dict:edit']"-->
...
...
src/views/system/menu/index.vue
View file @
a0a324a3
...
...
@@ -60,7 +60,7 @@
<span>
{{
scope
.
row
.
createDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
width=
"180px"
>
<!--<template slot-scope="scope">
<el-button
v-hasPermi="['system:menu:edit']"
...
...
src/views/system/role/index.vue
View file @
a0a324a3
...
...
@@ -97,16 +97,15 @@
<span>
{{
scope
.
row
.
createDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"
24
0px"
>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"
15
0px"
>
<
template
slot-scope=
"scope"
>
<!--
<el-button-->
<!-- v-hasPermi="['sys:role:update']"-->
<!-- size="mini"-->
<!-- type="text"-->
<!-- style="color: #49cec9"-->
<!-- @click="handleUpdate(scope.row)"-->
<!-- >修改
</el-button>
-->
<coolbutton
style=
"color: #49cec9"
:type=
"typeParent"
:name=
"updataName"
:size=
"size"
:haspermi=
"updateHaspermi"
@
btn-click=
"handleUpdate(scope.row)"
/>
<el-button
size=
"mini"
type=
"text"
style=
"color: #49cec9"
@
click=
"handleUpdate(scope.row)"
>
修改
</el-button>
<!--
<coolbutton
style=
"color: #49cec9"
:type=
"typeParent"
:name=
"updataName"
:size=
"size"
:haspermi=
"updateHaspermi"
@
btn-click=
"handleUpdate(scope.row)"
/>
-->
<!--
<el-button-->
<!-- v-hasPermi="['sys:role:update']"-->
<!-- size="mini"-->
...
...
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