Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Elements-SY
2023-08-17 10:00:24 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5f83c8392f0066d92602ba8d20ed5005e31dbe8f
5f83c839
1 parent
b3f20ed8
modify
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
12 deletions
src/assets/styles/btn.scss
src/views/systemConfig/roleConfig/index.vue
src/views/systemConfig/userConfig/index.vue
src/assets/styles/btn.scss
View file @
5f83c83
...
...
@@ -12,7 +12,12 @@
}
}
}
@mixin
mariginBottom
(
$pixe
:
4px
)
{
margin-bottom
:
$pixe
;
}
.btn-mg
{
@include
mariginBottom
()
}
.blue-btn
{
@include
colorBtn
(
$blue
)
}
...
...
src/views/systemConfig/roleConfig/index.vue
View file @
5f83c83
...
...
@@ -34,15 +34,15 @@
:limitSize="formData.size" :page="formData.page" :pageSizes="[20, 30, 40, 50]" :loading="tableLoading"
:height="tableHeight" @sizeChange="sizeChange" @currentChange="currentChange">
<template slot="optionColumn">
<el-table-column header-align="center" align="
left
" label="操作" min-width="210px">
<el-table-column header-align="center" align="
center
" label="操作" min-width="210px">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="buttonClick(scope, 0)">查看</el-button>
<el-button type="primary" size="mini" @click="buttonClick(scope, 1)" v-hasPermi="['system:role:update']">修改
<el-button type="primary" size="mini" @click="buttonClick(scope, 0)"
class="btn-mg"
>查看</el-button>
<el-button type="primary" size="mini" @click="buttonClick(scope, 1)" v-hasPermi="['system:role:update']"
class="btn-mg"
>修改
</el-button>
<el-button :type="scope.row.valid == 1 ? 'warning' : 'primary'" size="mini"
v-hasPermi="['system:role:openClose']" @click="roleStatus(scope)">{{ scope.row.valid == 1 ? "停用" : "启用" }}
v-hasPermi="['system:role:openClose']" @click="roleStatus(scope)"
class="btn-mg"
>{{ scope.row.valid == 1 ? "停用" : "启用" }}
</el-button>
<el-button type="danger" size="mini" @click="removeRole(scope)" v-hasPermi="['system:role:delete']"
style="margin-top: 5px;margin-left: 0;
">删除角色
<el-button type="danger" size="mini" @click="removeRole(scope)" v-hasPermi="['system:role:delete']"
class="btn-mg
">删除角色
</el-button>
</template>
</el-table-column>
...
...
src/views/systemConfig/userConfig/index.vue
View file @
5f83c83
...
...
@@ -32,19 +32,19 @@
:loading="loading" :page="formData.page" :pageSizes="[20, 30, 40, 50]" :height="tableHeight"
@sizeChange="sizeChange" @currentChange="currentChange">
<template slot="optionColumn">
<el-table-column header-align="center" align="
left
" min-width="210px" label="操作">
<el-table-column header-align="center" align="
center
" min-width="210px" label="操作">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="buttonClick(scope, 0)">查看</el-button>
<el-button type="primary" size="mini" @click="buttonClick(scope, 1)" v-hasPermi="['system:user:update']">修改
<el-button type="primary" size="mini" @click="buttonClick(scope, 0)"
class="btn-mg"
>查看</el-button>
<el-button type="primary" size="mini" @click="buttonClick(scope, 1)" v-hasPermi="['system:user:update']"
class="btn-mg"
>修改
</el-button>
<!-- <el-button type="primary" size="mini" @click="passwordShow = !passwordShow"
>修改密码</el-button
> -->
<el-button :type="scope.row.isValid == 1 ? 'warning' : 'primary'" size="mini"
v-hasPermi="['system:user:openClose']" @click="userStatus(scope)">{{
v-hasPermi="['system:user:openClose']" @click="userStatus(scope)"
class="btn-mg"
>{{
scope.row.isValid == 1 ? "停用" : "启用"
}}</el-button>
<el-button type="danger" size="mini" @click="removeUser(scope)" v-hasPermi="['system:user:delete']">删除用户
<el-button type="danger" size="mini" @click="removeUser(scope)" v-hasPermi="['system:user:delete']"
class="btn-mg"
>删除用户
</el-button>
</template>
</el-table-column>
...
...
@@ -253,6 +253,6 @@ export default {
};
</script>
<style>
<style
lang="scss" scoped
>
</style>
...
...
Please
register
or
login
to post a comment