Commit a17525ae authored by 岑歆奕's avatar 岑歆奕 Committed by AiNoeLiYa

1.移入了新文件

2.去除掉了报错的文件
3.去除了自定义的coolbutton
4.去除了权限v-hasP
Signed-off-by: 's avatarAiNoeLiYa <jzbcxy@gmail.com>
parent 45beff07
......@@ -70,20 +70,17 @@
</el-form-item>
<el-form-item style="float: right">
<el-button
v-hasPermi="['monitor:errorLog:delete']"
type="danger"
size="small"
:disabled="ids.length === 0"
@click="handleDelete"
>删除</el-button>
<el-button
v-hasPermi="['zt:errlog:clear']"
type="danger"
size="small"
@click="handleClean"
>清空</el-button>
<el-button
v-hasPermi="['zt:errlog:export']"
type="success"
size="small"
@click="handleExport"
......@@ -146,7 +143,6 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
v-hasPermi="['zt:operLog:detail']"
size="mini"
type="text"
@click="handleView(scope.row,scope.index)"
......@@ -208,7 +204,7 @@
</template>
<script>
import { list, delErrLog, cleanErrLog, exportErrLog } from '@/api/monitor/errorLog'
import {cleanErrLog, delErrLog, exportErrLog, list} from '@/api/monitor/errorLog'
export default {
name: 'Operlog',
......
......@@ -70,20 +70,17 @@
</el-form-item>
<el-form-item style="float: right">
<el-button
v-hasPermi="['zt:operLog:delete']"
type="danger"
size="small"
:disabled="ids.length === 0"
@click="handleDelete"
>删除</el-button>
<el-button
v-hasPermi="['zt:operLog:clear']"
type="danger"
size="small"
@click="handleClean"
>清空</el-button>
<el-button
v-hasPermi="['zt:operLog:export']"
type="success"
size="small"
@click="handleExport"
......@@ -146,7 +143,6 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
v-hasPermi="['zt:operLog:detail']"
size="mini"
type="text"
@click="handleView(scope.row,scope.index)"
......@@ -208,7 +204,7 @@
</template>
<script>
import { list, delOperLog, cleanOperLog, exportOperLog } from '@/api/monitor/operLog'
import {cleanOperLog, delOperLog, exportOperLog, list} from '@/api/monitor/operLog'
export default {
name: 'Operlog',
......
......@@ -99,7 +99,6 @@
<!-- </template>-->
<template slot-scope="scope">
<el-button
v-hasPermi="['sys:dept:update']"
size="mini"
type="text"
style="color: #49cec9"
......@@ -113,14 +112,12 @@
<!-- @change="handleStatusChange(scope.row)"-->
<!-- />-->
<el-button
v-hasPermi="['sys:dept:add']"
size="mini"
type="text"
@click="handleAdd(scope.row)"
>新增</el-button>
<el-button
v-if="scope.row.parentId !== 0"
v-hasPermi="['sys:dept:delete']"
size="mini"
type="text"
@click="handleDelete(scope.row)"
......@@ -193,7 +190,7 @@
</template>
<script>
import { addDept, delDept, getDept, listDept, listDeptExcludeChild, updateDept } from '@/api/system/dept'
import {addDept, delDept, getDept, listDept, listDeptExcludeChild, updateDept} from '@/api/system/dept'
import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
......
......@@ -53,28 +53,24 @@
<template slot-scope="scope">
<el-button
v-if="scope.row.$nodeLevel > 1"
v-hasPermi="['sys:dept:edit']"
size="mini success"
type="text"
@click="editDeptNode(scope.row)"
>修改</el-button>
<el-button
v-if="scope.row.$nodeLevel < 3"
v-hasPermi="['sys:dept:add']"
size="mini"
type="text"
@click="addNewDeptNode(scope.row)"
>新增</el-button>
<el-button
v-if="scope.row.$nodeLevel > 1"
v-hasPermi="['sys:dept:remove']"
size="mini"
type="text"
@click="delDeptNode(scope.row)"
>删除</el-button>
<el-button
v-if="scope.row.$nodeLevel === 1"
v-hasPermi="['sys:otree:list']"
type="text primary"
size="mini"
@click="toTransformOtree"
......@@ -261,8 +257,9 @@
</template>
<script>
import { listAllDept, addDept, updateDept, delDept, queryUserByDeptId, treeselect } from '../../../api/system/dept'
import { getFullTimeUsers } from '../../../api/user'
import {addDept, delDept, listAllDept, updateDept} from '../../../api/system/dept'
import {getFullTimeUsers} from '../../../api/user'
export default {
name: 'DeptManage',
data() {
......
......@@ -39,7 +39,6 @@
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
v-hasPermi="['sys:dict:add']"
type="primary"
icon="el-icon-plus"
size="mini"
......@@ -49,7 +48,6 @@
</el-col>
<el-col :span="1.5">
<el-button
v-hasPermi="['sys:dict:update']"
type="success"
icon="el-icon-edit"
size="mini"
......@@ -60,7 +58,6 @@
</el-col>
<el-col :span="1.5">
<el-button
v-hasPermi="['sys:dict:delete']"
type="danger"
icon="el-icon-delete"
size="mini"
......@@ -131,14 +128,12 @@
<el-table-column label="操作" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
v-hasPermi="['sys:dictConfig:edit']"
size="mini"
type="text"
style="color: #49cec9"
@click="handleUpdate(scope.row)"
>修改</el-button>
<el-button
v-hasPermi="['sys:dictConfig:remove']"
size="mini"
type="text"
@click="handleDelete(scope.row)"
......@@ -201,9 +196,8 @@
</template>
<script>
import { listData, getData, delData, addData, updateData, exportData, checkDictLabelUnique } from '@/api/system/dict/data'
import { listType, getType, updateType } from '@/api/system/dict/type'
import dictCons from '@/utils/dictCons'
import {addData, checkDictLabelUnique, delData, exportData, getData, listData, updateData} from '@/api/system/dict/data'
import {getType, listType} from '@/api/system/dict/type'
export default {
name: 'Data',
......
......@@ -58,7 +58,6 @@
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
v-hasPermi="['sys:dict:add']"
type="primary"
icon="el-icon-plus"
size="small"
......@@ -67,7 +66,6 @@
</el-col>
<el-col :span="1.5">
<el-button
v-hasPermi="['sys:dict:update']"
type="success"
icon="el-icon-edit"
size="mini"
......@@ -78,7 +76,6 @@
</el-col>
<el-col :span="1.5">
<el-button
v-hasPermi="['sys:dict:delete']"
type="danger"
icon="el-icon-delete"
size="mini"
......@@ -89,7 +86,6 @@
</el-col>
<el-col :span="1.5">
<el-button
v-hasPermi="['sys:dict:export']"
type="success"
icon="el-icon-download"
size="small"
......@@ -148,14 +144,12 @@
<el-table-column label="操作" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
v-hasPermi="['sys:dict:edit']"
size="mini"
type="text"
style="color: #49cec9"
@click="handleUpdate(scope.row)"
>修改</el-button>
<el-button
v-hasPermi="['sys:dict:remove']"
size="mini"
type="text"
@click="handleDelete(scope.row)"
......@@ -228,17 +222,17 @@
</template>
<script>
import { listType,
getType,
delType,
import {
addType,
updateType,
exportType,
checkDictNameUnique,
clearCache,
delType,
exportType,
getType,
listType,
optionselect,
selectRegionCode,
checkDictNameUnique,
selectDictType
updateType
} from '@/api/system/dict/type'
import dictCons from '@/utils/dictCons'
import Template from '@/views/instance/Template'
......
......@@ -12,11 +12,11 @@
/>
</el-form-item>
<el-form-item>
<el-button v-hasPermi="['sys:menu:query']" type="primary" size="small" @click="handleQuery">查询</el-button>
<el-button type="primary" size="small" @click="handleQuery">查询</el-button>
</el-form-item>
<div style="float: right">
<el-form-item>
<el-button v-hasPermi="['sys:menu:add']" type="primary" size="small" @click="handleAdd">新增</el-button>
<el-button type="primary" size="small" @click="handleAdd">新增</el-button>
<!-- <el-button size="small" @click="resetQuery">重置</el-button>-->
</el-form-item>
</div>
......@@ -84,7 +84,6 @@
</template>-->
<template slot-scope="scope">
<el-button
v-hasPermi="['sys:menu:update']"
size="mini"
type="text"
style="color: #49cec9"
......@@ -92,7 +91,6 @@
>修改</el-button>
<el-switch
v-model="scope.row.flag"
v-hasPermi="['sys:menu:toggle']"
active-value="1"
inactive-value="0"
@change="handleStatusChange(scope.row)"
......@@ -104,7 +102,6 @@
<el-dropdown-menu slot="dropdown">
<el-dropdown-item>
<el-button
v-hasPermi="['sys:menu:delete']"
size="mini"
type="text"
@click="handleDelete(scope.row)"
......@@ -112,7 +109,6 @@
</el-dropdown-item>
<el-dropdown-item>
<el-button
v-hasPermi="['sys:menu:add']"
size="mini"
type="text"
@click="handleAdd(scope.row)"
......@@ -254,7 +250,7 @@
</template>
<script>
import { addMenu, delMenu, getMenu, listMenu, updateMenu } from '@/api/system/menu'
import {addMenu, delMenu, getMenu, listMenu, updateMenu} from '@/api/system/menu'
import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import IconSelect from '@/components/IconSelect'
......
......@@ -73,8 +73,8 @@
label="操作"
>
<template slot-scope="scope">
<el-link v-hasPermi="['system:otree:transform']" :underline="false" type="primary" size="mini" @click="transformDept(scope)">转部门</el-link>
<el-link v-if="scope.row.deptId" v-hasPermi="['system:otree:remove']" :underline="false" type="primary" size="mini" style="margin-left: 20px" @click="delPerson(scope)">移出</el-link>
<el-link :underline="false" type="primary" size="mini" @click="transformDept(scope)">转部门</el-link>
<el-link v-if="scope.row.deptId" :underline="false" type="primary" size="mini" style="margin-left: 20px" @click="delPerson(scope)">移出</el-link>
</template>
</el-table-column>
</el-table>
......@@ -130,7 +130,14 @@
</section>
</template>
<script>
import { treeselect, queryUserByDeptId, queryUserWithoutDept, transformDept, queryUserByName } from '../../../api/system/dept'
import {
queryUserByDeptId,
queryUserByName,
queryUserWithoutDept,
transformDept,
treeselect
} from '../../../api/system/dept'
export default {
name: 'Otree',
data() {
......
......@@ -38,7 +38,6 @@
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
v-hasPermi="['sys:post:add']"
type="primary"
icon="el-icon-plus"
size="small"
......@@ -47,7 +46,6 @@
</el-col>
<el-col :span="1.5">
<el-button
v-hasPermi="['sys:post:update']"
type="success"
icon="el-icon-edit"
size="mini"
......@@ -58,7 +56,6 @@
</el-col>
<el-col :span="1.5">
<el-button
v-hasPermi="['sys:post:delete']"
type="danger"
icon="el-icon-delete"
size="mini"
......@@ -128,7 +125,6 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
v-hasPermi="['sys:post:edit']"
size="mini"
type="text"
style="color: #49cec9"
......@@ -136,7 +132,6 @@
@click="handleUpdate(scope.row)"
>修改</el-button>
<el-button
v-hasPermi="['sys:post:remove']"
size="mini"
type="text"
icon="el-icon-delete"
......@@ -221,13 +216,22 @@
</template>
<script>
import { listPost, getPost, delPost, addPost, updatePost, exportPost, checkpostIdUnique, checkpostNameUnique } from '@/api/system/post'
import {
addPost,
checkpostIdUnique,
checkpostNameUnique,
delPost,
exportPost,
getPost,
listPost,
updatePost
} from '@/api/system/post'
import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import dictCons from '@/utils/dictCons'
import { listDept } from '@/api/system/dept'
import { listRole } from '@/api/system/role'
import {updateType} from "@/api/system/dict/type";
import {listDept} from '@/api/system/dept'
import {listRole} from '@/api/system/role'
export default {
name: 'Post',
components: { Treeselect },
......
......@@ -44,13 +44,11 @@
<div style="float: right">
<el-form-item>
<el-button
v-hasPermi="['sys:role:add']"
type="primary"
size="small"
@click="handleAdd"
>新增</el-button>
<el-button
v-hasPermi="['sys:role:export']"
style="padding: 8px 7px;"
type="success"
size="small"
......@@ -103,7 +101,6 @@
<el-table-column label="操作" class-name="small-padding fixed-width" width="240px">
<template slot-scope="scope">
<el-button
v-hasPermi="['sys:role:update']"
size="mini"
type="text"
style="color: #49cec9"
......@@ -260,9 +257,18 @@
</template>
<script>
import { listRole, getRole, delRole, addRole, updateRole, exportRole, dataScope, changeRoleStatus } from '@/api/system/role'
import { roleMenuTreeselectMC, treeselect as menuTreeselect, roleMenuTreeselect } from '@/api/system/menu'
import { treeselect as deptTreeselect, roleDeptTreeselect } from '@/api/system/dept'
import {
addRole,
changeRoleStatus,
dataScope,
delRole,
exportRole,
getRole,
listRole,
updateRole
} from '@/api/system/role'
import {roleMenuTreeselect, roleMenuTreeselectMC, treeselect as menuTreeselect} from '@/api/system/menu'
import {roleDeptTreeselect, treeselect as deptTreeselect} from '@/api/system/dept'
// import { getRolesByInsId } from '../../../api/businessManage/template'
export default {
name: 'Role',
......
......@@ -52,7 +52,6 @@
<!-- @click="handleFormAdd"-->
<!-- >表单页新增模板</el-button>-->
<el-button
v-hasPermi="['sys:user:add']"
style="padding: 8px 7px;"
type="primary"
size="small"
......@@ -67,7 +66,6 @@
@click="handleImport"
>导入</el-button>
<el-button
v-hasPermi="['sys:user:export']"
style="padding: 8px 7px;"
type="success"
size="small"
......@@ -162,14 +160,12 @@
>
<template slot-scope="scope">
<el-button
v-hasPermi="['sys:user:update']"
size="mini"
type="text"
style="color: #49cec9"
@click="handleUpdate(scope.row)"
>修改</el-button>
<el-button
v-hasPermi="['sys:user:resetPwd']"
size="mini"
type="text"
:loading="addLoading"
......@@ -177,7 +173,6 @@
>重置</el-button>
<el-button
v-if="scope.row.businessId !== 1"
v-hasPermi="['sys:user:delete']"
size="mini"
type="text"
icon="el-icon-delete"
......@@ -383,24 +378,23 @@
</template>
<script>
import {
listUser,
getUser,
delUser,
addUser,
updateUser,
exportUser,
resetUserPwd,
changeUserStatus,
delUser,
exportUser,
getUser,
importExcel,
uploadFalseFile,
importTemplate
// userLoginManage
importTemplate,
listUser,
resetUserPwd,
updateUser,
uploadFalseFile
} from '@/api/system/user'
import { getToken } from '@/utils/auth'
import { getChildrenDept, treeselect } from '@/api/system/dept'
import {getToken} from '@/utils/auth'
import {treeselect} from '@/api/system/dept'
import TreeSelect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import { getlistRole, listRole } from '@/api/system/role'
import {getlistRole} from '@/api/system/role'
export default {
name: 'User',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment