Commit 21ea1c3c by 杨北旺

更换提示内容

1 parent 73872664
...@@ -298,7 +298,7 @@ export default { ...@@ -298,7 +298,7 @@ export default {
} }
}, },
insertRole(para) { insertRole(para) {
this.$confirm('是否确定当前信息?', '提示', { this.$confirm('是否保存当前信息?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
...@@ -311,7 +311,7 @@ export default { ...@@ -311,7 +311,7 @@ export default {
}) })
}, },
updateRole(para) { updateRole(para) {
this.$confirm('是否更改当前信息?', '提示', { this.$confirm('是否保存当前信息?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
...@@ -325,7 +325,7 @@ export default { ...@@ -325,7 +325,7 @@ export default {
}, },
toBack() { toBack() {
if (this.isHaveEdit&&this.pageType=='create') { if (this.isHaveEdit&&this.pageType=='create') {
this.$confirm('当前页面有更改,是否继续退出?', '提示', { this.$confirm('离开当前页面内容将不会保存,是否继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
......
<template> <template>
<div class="role-home-page"> <div class="role-home-page">
<div class="top_widget"> <div class="top_widget">
<!-- <el-button size="small" icon="el-icon-plus" type="primary" @click="toCreatePage">创建角色</el-button> --> <el-button size="small" icon="el-icon-plus" type="primary" @click="toCreatePage">创建角色</el-button>
<GLButton type="primary" size="small" @click="toCreatePage" fn="创建角色" icon="el-icon-plus">创建角色</GLButton>
</div> </div>
<div class="table_widget"> <div class="table_widget">
<div class="search_widget"> <div class="search_widget">
...@@ -31,10 +30,8 @@ ...@@ -31,10 +30,8 @@
</div> </div>
<GLTable v-if="distoryTable" ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="getTableData"> <GLTable v-if="distoryTable" ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="getTableData">
<template slot="auth-button" slot-scope="scope" :data="scope.scope"> <template slot="auth-button" slot-scope="scope" :data="scope.scope">
<!-- <el-button type="text" @click="toLookPage(scope.scope)">查看</el-button> --> <el-button type="text" @click="toLookPage(scope.scope)">查看</el-button>
<!-- <el-button v-if="scope.scope.roleName!='超级管理员'" type="text" @click="toEditPage(scope.scope)">修改</el-button> --> <el-button v-if="scope.scope.roleName!='超级管理员'" type="text" @click="toEditPage(scope.scope)">修改</el-button>
<GLButton type="text" fn="查看" display="disabled" @click="toLookPage(scope.scope)">查看</GLButton>
<GLButton v-if="scope.scope.roleName!='超级管理员'" display="disabled" type="text" fn="修改" @click="toEditPage(scope.scope)">修改</GLButton>
<el-button v-if="scope.scope.delFlag" type="text" @click="todelete(scope.scope)">删除</el-button> <el-button v-if="scope.scope.delFlag" type="text" @click="todelete(scope.scope)">删除</el-button>
</template> </template>
</GLTable> </GLTable>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!