01
This commit is contained in:
29
ebts-ui/public/test.html
Normal file
29
ebts-ui/public/test.html
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport"
|
||||||
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
|
<title>Document</title>
|
||||||
|
<!-- css样式-->
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
|
<!-- js块-->
|
||||||
|
<script>
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<link>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
<script>
|
||||||
|
import Link from "@/layout/components/Sidebar/Link";
|
||||||
|
export default {
|
||||||
|
components: {Link}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@@ -94,8 +94,8 @@
|
|||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column label="访问编号" align="center" prop="infoId" />
|
<el-table-column label="访问编号" align="center" prop="infoId" />
|
||||||
<el-table-column label="用户名称" align="center" prop="userName" />
|
<el-table-column label="用户名称" align="center" prop="userName" />
|
||||||
<el-table-column label="登录地址" align="center" prop="ipaddr" width="130" :show-overflow-tooltip="true" />
|
<!-- <el-table-column label="登录地址" align="center" prop="ipaddr" width="130" :show-overflow-tooltip="true" />-->
|
||||||
<el-table-column label="登录地点" align="center" prop="loginLocation" :show-overflow-tooltip="true" />
|
<!-- <el-table-column label="登录地点" align="center" prop="loginLocation" :show-overflow-tooltip="true" />-->
|
||||||
<el-table-column label="浏览器" align="center" prop="browser" />
|
<el-table-column label="浏览器" align="center" prop="browser" />
|
||||||
<el-table-column label="操作系统" align="center" prop="os" />
|
<el-table-column label="操作系统" align="center" prop="os" />
|
||||||
<el-table-column label="登录状态" align="center" prop="status" :formatter="statusFormat" />
|
<el-table-column label="登录状态" align="center" prop="status" :formatter="statusFormat" />
|
||||||
|
|||||||
@@ -38,8 +38,8 @@
|
|||||||
<el-table-column label="会话编号" align="center" prop="tokenId" :show-overflow-tooltip="true" />
|
<el-table-column label="会话编号" align="center" prop="tokenId" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="登录名称" align="center" prop="userName" :show-overflow-tooltip="true" />
|
<el-table-column label="登录名称" align="center" prop="userName" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="部门名称" align="center" prop="deptName" />
|
<el-table-column label="部门名称" align="center" prop="deptName" />
|
||||||
<el-table-column label="主机" align="center" prop="ipaddr" :show-overflow-tooltip="true" />
|
<!-- <el-table-column label="主机" align="center" prop="ipaddr" :show-overflow-tooltip="true" />-->
|
||||||
<el-table-column label="登录地点" align="center" prop="loginLocation" :show-overflow-tooltip="true" />
|
<!-- <el-table-column label="登录地点" align="center" prop="loginLocation" :show-overflow-tooltip="true" />-->
|
||||||
<el-table-column label="浏览器" align="center" prop="browser" />
|
<el-table-column label="浏览器" align="center" prop="browser" />
|
||||||
<el-table-column label="操作系统" align="center" prop="os" />
|
<el-table-column label="操作系统" align="center" prop="os" />
|
||||||
<el-table-column label="登录时间" align="center" prop="loginTime" width="180">
|
<el-table-column label="登录时间" align="center" prop="loginTime" width="180">
|
||||||
|
|||||||
@@ -111,27 +111,27 @@
|
|||||||
<el-table-column label="日志编号" align="center" prop="operId" />
|
<el-table-column label="日志编号" align="center" prop="operId" />
|
||||||
<el-table-column label="系统模块" align="center" prop="title" />
|
<el-table-column label="系统模块" align="center" prop="title" />
|
||||||
<el-table-column label="操作类型" align="center" prop="businessType" :formatter="typeFormat" />
|
<el-table-column label="操作类型" align="center" prop="businessType" :formatter="typeFormat" />
|
||||||
<el-table-column label="请求方式" align="center" prop="requestMethod" />
|
<!-- <el-table-column v-show="userId === 1" label="请求方式" align="center" prop="requestMethod" />-->
|
||||||
<el-table-column label="操作人员" align="center" prop="operName" />
|
<el-table-column label="操作人员" align="center" :disabled="false" prop="operName" />
|
||||||
<el-table-column label="主机" align="center" prop="operIp" width="130" :show-overflow-tooltip="true" />
|
<!-- <el-table-column v-show="userId === 1" label="主机" align="center" prop="operIp" width="130" :show-overflow-tooltip="true" />-->
|
||||||
<el-table-column label="操作地点" align="center" prop="operLocation" :show-overflow-tooltip="true" />
|
<!-- <el-table-column v-show="userId === 1" label="操作地点" align="center" prop="operLocation" :show-overflow-tooltip="true" />-->
|
||||||
<el-table-column label="操作状态" align="center" prop="status" :formatter="statusFormat" />
|
<el-table-column label="操作状态" align="center" prop="status" :formatter="statusFormat" />
|
||||||
<el-table-column label="操作日期" align="center" prop="operTime" width="180">
|
<el-table-column label="操作日期" align="center" prop="operTime" width="180">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ parseTime(scope.row.operTime) }}</span>
|
<span>{{ parseTime(scope.row.operTime) }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<!-- <el-table-column v-show="userId === 1" label="操作" align="center" class-name="small-padding fixed-width">-->
|
||||||
<template slot-scope="scope">
|
<!-- <template slot-scope="scope">-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
type="text"
|
<!-- type="text"-->
|
||||||
icon="el-icon-view"
|
<!-- icon="el-icon-view"-->
|
||||||
@click="handleView(scope.row,scope.index)"
|
<!-- @click="handleView(scope.row,scope.index)"-->
|
||||||
v-hasPermi="['monitor:operlog:query']"
|
<!-- v-hasPermi="['monitor:operlog:query']"-->
|
||||||
>详细</el-button>
|
<!-- >详细</el-button>-->
|
||||||
</template>
|
<!-- </template>-->
|
||||||
</el-table-column>
|
<!-- </el-table-column>-->
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
@@ -188,11 +188,13 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { list, delOperlog, cleanOperlog, exportOperlog } from "@/api/monitor/operlog";
|
import { list, delOperlog, cleanOperlog, exportOperlog } from "@/api/monitor/operlog";
|
||||||
|
import store from "@/store";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Operlog",
|
name: "Operlog",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
userId: store.getters.userId,
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: true,
|
||||||
// 选中数组
|
// 选中数组
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="banner类型" prop="type">
|
<el-form-item label="轮播类型" prop="type">
|
||||||
<el-select v-model="queryParams.type" placeholder="请选择banner类型" clearable size="small">
|
<el-select v-model="queryParams.type" placeholder="请选择轮播类型" clearable size="small">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in bannerStyleOptions"
|
v-for="dict in bannerStyleOptions"
|
||||||
:key="dict.dictValue"
|
:key="dict.dictValue"
|
||||||
@@ -21,15 +21,6 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="状态" prop="delflag">
|
|
||||||
<el-input
|
|
||||||
v-model="queryParams.delflag"
|
|
||||||
placeholder="请输入状态"
|
|
||||||
clearable
|
|
||||||
size="small"
|
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
@@ -89,16 +80,14 @@
|
|||||||
<span>{{ ((queryParams.pageInfo.pageNum - 1) * queryParams.pageInfo.pageSize + scope.$index + 1)}}</span>
|
<span>{{ ((queryParams.pageInfo.pageNum - 1) * queryParams.pageInfo.pageSize + scope.$index + 1)}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="标题" align="center" prop="title" />
|
<el-table-column label="标题" align="left" prop="center" />
|
||||||
<el-table-column label="站点类型" align="center" prop="sitetype" :formatter="sitetypeFormat"/>
|
<el-table-column label="站点类型" align="center" prop="sitetype" :formatter="sitetypeFormat"/>
|
||||||
<el-table-column label="banner类型" align="center" prop="type":formatter="bannerStyleFormat" />
|
<el-table-column label="轮播类型" align="center" prop="type":formatter="bannerStyleFormat" />
|
||||||
<el-table-column label="图表路径" align="center">
|
<el-table-column label="图表路径" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<img style="width: 100%;" :src="scope.row.imgurl" alt="">
|
<img style="width: 100%;" :src="scope.row.imgurl" alt="">
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="排序" align="center" prop="sort" />
|
|
||||||
<el-table-column label="状态" align="center" prop="delflag" :formatter="delflagFormat" />
|
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
@@ -140,8 +129,8 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="banner类型" prop="type">
|
<el-form-item label="轮播类型" prop="type">
|
||||||
<el-select v-model="form.type" placeholder="请选择banner类型">
|
<el-select v-model="form.type" placeholder="请选择轮播类型">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in bannerStyleOptions"
|
v-for="dict in bannerStyleOptions"
|
||||||
:key="dict.dictValue"
|
:key="dict.dictValue"
|
||||||
@@ -163,9 +152,6 @@
|
|||||||
<el-form-item label="跳转链接">
|
<el-form-item label="跳转链接">
|
||||||
<el-input v-model="form.link" placeholder="请输入内容" />
|
<el-input v-model="form.link" placeholder="请输入内容" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="排序" prop="sort">
|
|
||||||
<el-input v-model="form.sort" type="number" placeholder="请输入排序" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
@@ -207,9 +193,6 @@ export default {
|
|||||||
// 站点类型 1: sist 2: lab 3: 双边都发字典
|
// 站点类型 1: sist 2: lab 3: 双边都发字典
|
||||||
sitetypeOptions: [],
|
sitetypeOptions: [],
|
||||||
bannerStyleOptions: [],
|
bannerStyleOptions: [],
|
||||||
// 1: 正常 0:软删除字典
|
|
||||||
delflagOptions: [],
|
|
||||||
|
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageInfo:{
|
pageInfo:{
|
||||||
@@ -223,15 +206,13 @@ export default {
|
|||||||
imgurl: null,
|
imgurl: null,
|
||||||
link: null,
|
link: null,
|
||||||
sort: null,
|
sort: null,
|
||||||
delflag: null,
|
|
||||||
|
|
||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
type: [
|
type: [
|
||||||
{ required: true, message: "banner类型不能为空", trigger: "change" },
|
{ required: true, message: "轮播类型不能为空", trigger: "change" },
|
||||||
],
|
],
|
||||||
title: [
|
title: [
|
||||||
{ required: true, message: "标题不能为空", trigger: "blur" },
|
{ required: true, message: "标题不能为空", trigger: "blur" },
|
||||||
@@ -250,9 +231,6 @@ export default {
|
|||||||
this.getDicts("banner_style").then(response => {
|
this.getDicts("banner_style").then(response => {
|
||||||
this.bannerStyleOptions = response.data;
|
this.bannerStyleOptions = response.data;
|
||||||
});
|
});
|
||||||
this.getDicts("delflag").then(response => {
|
|
||||||
this.delflagOptions = response.data;
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 查询首页banner图列表 */
|
/** 查询首页banner图列表 */
|
||||||
@@ -271,10 +249,6 @@ export default {
|
|||||||
bannerStyleFormat(row, column) {
|
bannerStyleFormat(row, column) {
|
||||||
return this.selectDictLabel(this.bannerStyleOptions, row.type);
|
return this.selectDictLabel(this.bannerStyleOptions, row.type);
|
||||||
},
|
},
|
||||||
// 1: 正常 0:软删除字典翻译
|
|
||||||
delflagFormat(row, column) {
|
|
||||||
return this.selectDictLabel(this.delflagOptions, row.delflag);
|
|
||||||
},
|
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
cancel() {
|
cancel() {
|
||||||
this.open = false;
|
this.open = false;
|
||||||
@@ -290,7 +264,6 @@ export default {
|
|||||||
imgurl: null,
|
imgurl: null,
|
||||||
link: null,
|
link: null,
|
||||||
sort: null,
|
sort: null,
|
||||||
delflag: null,
|
|
||||||
};
|
};
|
||||||
this.resetForm("form");
|
this.resetForm("form");
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -47,20 +47,26 @@
|
|||||||
default-expand-all
|
default-expand-all
|
||||||
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
||||||
>
|
>
|
||||||
<el-table-column label="导航名称" align="center" prop="title"/>
|
<el-table-column label="导航名称" align="left" prop="title"/>
|
||||||
<el-table-column label="英语名称" align="center" prop="englishTitle"/>
|
<el-table-column label="英语名称" align="center" prop="englishTitle"/>
|
||||||
<el-table-column label="导航类型" align="center" prop="type" :formatter="typeFormat"/>
|
<el-table-column label="导航类型" align="center" prop="type" :formatter="typeFormat"/>
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" width="300" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button v-show="scope.row.type == '0'"
|
||||||
type="text"
|
type="text"
|
||||||
plain
|
|
||||||
icon="el-icon-plus"
|
icon="el-icon-plus"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleAdd(scope.row)"
|
@click="handleAdd(scope.row)"
|
||||||
v-hasPermi="['sist:navigation:add']"
|
v-hasPermi="['sist:navigation:add']"
|
||||||
>新增下级
|
>新增下级
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button v-show="scope.row.type == '1'"
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
>修改详情
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
@@ -174,6 +180,7 @@ export default {
|
|||||||
sistDireTypeOptions: [],
|
sistDireTypeOptions: [],
|
||||||
labDireTypeOptions: [],
|
labDireTypeOptions: [],
|
||||||
navigationType: [],
|
navigationType: [],
|
||||||
|
navList:[],
|
||||||
// 弹出层标题
|
// 弹出层标题
|
||||||
title: "",
|
title: "",
|
||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
@@ -228,8 +235,8 @@ export default {
|
|||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
listNavigation(this.queryParams).then(response => {
|
listNavigation(this.queryParams).then(response => {
|
||||||
|
this.navList = response.data;
|
||||||
this.navigationList = this.handleTree(response.data, "id", "pid");
|
this.navigationList = this.handleTree(response.data, "id", "pid");
|
||||||
console.log(this.navigationList)
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -292,11 +299,11 @@ export default {
|
|||||||
this.form.ptitle = row.title
|
this.form.ptitle = row.title
|
||||||
this.form.pid = row.id
|
this.form.pid = row.id
|
||||||
this.form.sitetype = row.sitetype
|
this.form.sitetype = row.sitetype
|
||||||
|
this.form.type= '0'
|
||||||
this.title = "添加下级导航";
|
this.title = "添加下级导航";
|
||||||
},
|
},
|
||||||
//导航类型变化
|
//导航类型变化
|
||||||
navigationTypeChang(type) {
|
navigationTypeChang(type) {
|
||||||
console.log(type)
|
|
||||||
this.articleTypeOptions = []
|
this.articleTypeOptions = []
|
||||||
this.direTypeOptions = []
|
this.direTypeOptions = []
|
||||||
if (type == 2) {
|
if (type == 2) {
|
||||||
@@ -323,10 +330,6 @@ export default {
|
|||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
this.reset();
|
this.reset();
|
||||||
// this.getTreeselect();
|
|
||||||
// if (row != null) {
|
|
||||||
// this.form.pid = row.id;
|
|
||||||
// }
|
|
||||||
if (row.sisttype == 1) {
|
if (row.sisttype == 1) {
|
||||||
this.articleTypeOptions = this.sistArticleTypeOption
|
this.articleTypeOptions = this.sistArticleTypeOption
|
||||||
} else if (row.sisttype == 2) {
|
} else if (row.sisttype == 2) {
|
||||||
@@ -334,6 +337,18 @@ export default {
|
|||||||
}
|
}
|
||||||
getNavigation(row.id).then(response => {
|
getNavigation(row.id).then(response => {
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
|
if (this.form.pid==0){
|
||||||
|
this.form.ptitle = "顶级节点"
|
||||||
|
}else {
|
||||||
|
for (let nav of this.navList) {
|
||||||
|
if (nav.id == this.form.pid){
|
||||||
|
this.form.ptitle = nav.title;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
console.log(this.navigationList);
|
||||||
|
}
|
||||||
|
this.form.refId = parseInt(this.form.refId)
|
||||||
|
this.navigationTypeChang(this.form.type)
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "修改导航";
|
this.title = "修改导航";
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -92,16 +92,16 @@
|
|||||||
v-hasPermi="['system:config:export']"
|
v-hasPermi="['system:config:export']"
|
||||||
>导出</el-button>
|
>导出</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<!-- <el-col :span="1.5">-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
type="danger"
|
<!-- type="danger"-->
|
||||||
plain
|
<!-- plain-->
|
||||||
icon="el-icon-refresh"
|
<!-- icon="el-icon-refresh"-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
@click="handleClearCache"
|
<!-- @click="handleClearCache"-->
|
||||||
v-hasPermi="['system:config:remove']"
|
<!-- v-hasPermi="['system:config:remove']"-->
|
||||||
>清理缓存</el-button>
|
<!-- >清理缓存</el-button>-->
|
||||||
</el-col>
|
<!-- </el-col>-->
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
|
|||||||
@@ -117,7 +117,7 @@
|
|||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column label="角色编号" prop="roleId" width="120" />
|
<el-table-column label="角色编号" prop="roleId" width="120" />
|
||||||
<el-table-column label="角色名称" prop="roleName" :show-overflow-tooltip="true" width="150" />
|
<el-table-column label="角色名称" prop="roleName" :show-overflow-tooltip="true" width="150" />
|
||||||
<el-table-column label="权限字符" prop="roleKey" :show-overflow-tooltip="true" width="150" />
|
<!-- <el-table-column label="权限字符" prop="roleKey" :show-overflow-tooltip="true" width="150" />-->
|
||||||
<el-table-column label="显示顺序" prop="roleSort" width="100" />
|
<el-table-column label="显示顺序" prop="roleSort" width="100" />
|
||||||
<el-table-column label="状态" align="center" width="100">
|
<el-table-column label="状态" align="center" width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -143,13 +143,13 @@
|
|||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['system:role:edit']"
|
v-hasPermi="['system:role:edit']"
|
||||||
>修改</el-button>
|
>修改</el-button>
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
size="mini"
|
<!-- size="mini"-->
|
||||||
type="text"
|
<!-- type="text"-->
|
||||||
icon="el-icon-circle-check"
|
<!-- icon="el-icon-circle-check"-->
|
||||||
@click="handleDataScope(scope.row)"
|
<!-- @click="handleDataScope(scope.row)"-->
|
||||||
v-hasPermi="['system:role:edit']"
|
<!-- v-hasPermi="['system:role:edit']"-->
|
||||||
>数据权限</el-button>
|
<!-- >数据权限</el-button>-->
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
@@ -175,9 +175,9 @@
|
|||||||
<el-form-item label="角色名称" prop="roleName">
|
<el-form-item label="角色名称" prop="roleName">
|
||||||
<el-input v-model="form.roleName" placeholder="请输入角色名称" />
|
<el-input v-model="form.roleName" placeholder="请输入角色名称" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="权限字符" prop="roleKey">
|
<!-- <el-form-item label="权限字符" prop="roleKey">-->
|
||||||
<el-input v-model="form.roleKey" placeholder="请输入权限字符" />
|
<!-- <el-input v-model="form.roleKey" placeholder="请输入权限字符" />-->
|
||||||
</el-form-item>
|
<!-- </el-form-item>-->
|
||||||
<el-form-item label="角色顺序" prop="roleSort">
|
<el-form-item label="角色顺序" prop="roleSort">
|
||||||
<el-input-number v-model="form.roleSort" controls-position="right" :min="0" />
|
<el-input-number v-model="form.roleSort" controls-position="right" :min="0" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -343,9 +343,9 @@ export default {
|
|||||||
roleName: [
|
roleName: [
|
||||||
{ required: true, message: "角色名称不能为空", trigger: "blur" }
|
{ required: true, message: "角色名称不能为空", trigger: "blur" }
|
||||||
],
|
],
|
||||||
roleKey: [
|
// roleKey: [
|
||||||
{ required: true, message: "权限字符不能为空", trigger: "blur" }
|
// { required: true, message: "权限字符不能为空", trigger: "blur" }
|
||||||
],
|
// ],
|
||||||
roleSort: [
|
roleSort: [
|
||||||
{ required: true, message: "角色顺序不能为空", trigger: "blur" }
|
{ required: true, message: "角色顺序不能为空", trigger: "blur" }
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user