fix:菜单管理、角色管理、字典管理页面内容的中文改为英文

This commit is contained in:
orgin 2023-05-23 18:27:53 +08:00
parent 9362b403a1
commit ac8acd3d38
3 changed files with 91 additions and 91 deletions

View File

@ -6,33 +6,33 @@
<a-form layout="inline" @keyup.enter.native="searchQuery"> <a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="12"> <a-row :gutter="12">
<a-col :md="7" :sm="8"> <a-col :md="7" :sm="8">
<a-form-item label="字典名称" :labelCol="{span: 6}" :wrapperCol="{span: 14, offset: 1}"> <a-form-item label="DictName" :labelCol="{span: 6}" :wrapperCol="{span: 14, offset: 1}">
<a-input placeholder="请输入字典名称" v-model="queryParam.dictName"></a-input> <a-input placeholder="Please Enter DictName" v-model="queryParam.dictName"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="7" :sm="8"> <a-col :md="7" :sm="8">
<a-form-item label="字典编号" :labelCol="{span: 6}" :wrapperCol="{span: 14, offset: 1}"> <a-form-item label="DictCode" :labelCol="{span: 6}" :wrapperCol="{span: 14, offset: 1}">
<a-input placeholder="请输入字典编号" v-model="queryParam.dictCode"></a-input> <a-input placeholder="Please Enter DictCode" v-model="queryParam.dictCode"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="7" :sm="8"> <a-col :md="7" :sm="8">
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button> <a-button type="primary" @click="searchQuery" icon="search">Search</a-button>
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">Reload</a-button>
</span> </span>
</a-col> </a-col>
</a-row> </a-row>
</a-form> </a-form>
<div class="table-operator" style="border-top: 5px"> <div class="table-operator" style="border-top: 5px">
<a-button @click="handleAdd" type="primary" icon="plus">添加</a-button> <a-button @click="handleAdd" type="primary" icon="plus">Add</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('字典信息')">导出</a-button> <a-button type="primary" icon="download" @click="handleExportXls('字典信息')">Export</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button> <a-button type="primary" icon="import">Import</a-button>
</a-upload> </a-upload>
<a-button type="primary" icon="sync" @click="refleshCache()">刷新缓存</a-button> <a-button type="primary" icon="sync" @click="refleshCache()">RefleshCache</a-button>
<a-button type="primary" icon="hdd" @click="openDeleteList">回收站</a-button> <a-button type="primary" icon="hdd" @click="openDeleteList">RecycleBin</a-button>
</div> </div>
<a-table <a-table
@ -47,13 +47,13 @@
<span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)"> <a @click="handleEdit(record)">
<a-icon type="edit"/> <a-icon type="edit"/>
编辑 Edit
</a> </a>
<a-divider type="vertical"/> <a-divider type="vertical"/>
<a @click="editDictItem(record)"><a-icon type="setting"/> 字典配置</a> <a @click="editDictItem(record)"><a-icon type="setting"/> EditDict</a>
<a-divider type="vertical"/> <a-divider type="vertical"/>
<a-popconfirm title="确定删除吗?" @confirm="() =>handleDelete(record.id)"> <a-popconfirm title="Do You Want To Delete This Item?" @confirm="() =>handleDelete(record.id)">
<a>删除</a> <a>Delete</a>
</a-popconfirm> </a-popconfirm>
</span> </span>
</a-table> </a-table>
@ -101,22 +101,22 @@
} }
}, },
{ {
title: '字典名称', title: 'DICTNAME',
align: "left", align: "left",
dataIndex: 'dictName', dataIndex: 'dictName',
}, },
{ {
title: '字典编号', title: 'DICTCODE',
align: "left", align: "left",
dataIndex: 'dictCode', dataIndex: 'dictCode',
}, },
{ {
title: '描述', title: 'DESCRIPTION',
align: "left", align: "left",
dataIndex: 'description', dataIndex: 'description',
}, },
{ {
title: '操作', title: 'ACTION',
dataIndex: 'action', dataIndex: 'action',
align: "center", align: "center",
scopedSlots: {customRender: 'action'}, scopedSlots: {customRender: 'action'},
@ -188,11 +188,11 @@
Vue.ls.set(UI_CACHE_DB_DICT_DATA, res.result, 7 * 24 * 60 * 60 * 1000) Vue.ls.set(UI_CACHE_DB_DICT_DATA, res.result, 7 * 24 * 60 * 60 * 1000)
} }
}) })
this.$message.success("刷新缓存完成"); this.$message.success("Flush cache succeeded");
} }
}).catch(e=>{ }).catch(e=>{
this.$message.warn("刷新缓存失败"); this.$message.warn("Cache refresh failure");
console.log("刷新失败",e) console.log("Refresh failure",e)
}) })
} }
}, },

View File

@ -3,13 +3,13 @@
<!-- 操作按钮区域 --> <!-- 操作按钮区域 -->
<div class="table-operator"> <div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> <a-button @click="handleAdd" type="primary" icon="plus">Add</a-button>
<a-button <a-button
@click="batchDel" @click="batchDel"
v-if="selectedRowKeys.length > 0" v-if="selectedRowKeys.length > 0"
ghost ghost
type="primary" type="primary"
icon="delete">批量删除 icon="delete">Batch Remove
</a-button> </a-button>
</div> </div>
@ -17,9 +17,9 @@
<div> <div>
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
<i class="anticon anticon-info-circle ant-alert-icon"></i>已选择&nbsp;<a style="font-weight: 600">{{ <i class="anticon anticon-info-circle ant-alert-icon"></i>To Select&nbsp;<a style="font-weight: 600">{{
selectedRowKeys.length }}</a>&nbsp;&nbsp; selectedRowKeys.length }}</a> Item&nbsp;&nbsp;
<a style="margin-left: 24px" @click="onClearSelected">清空</a> <a style="margin-left: 24px" @click="onClearSelected">Clear</a>
</div> </div>
<a-table <a-table
@ -34,27 +34,27 @@
@expandedRowsChange="handleExpandedRowsChange"> @expandedRowsChange="handleExpandedRowsChange">
<span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)">编辑</a> <a @click="handleEdit(record)">Edit</a>
<a-divider type="vertical"/> <a-divider type="vertical"/>
<a-dropdown> <a-dropdown>
<a class="ant-dropdown-link"> <a class="ant-dropdown-link">
更多 <a-icon type="down"/> More <a-icon type="down"/>
</a> </a>
<a-menu slot="overlay"> <a-menu slot="overlay">
<a-menu-item> <a-menu-item>
<a href="javascript:;" @click="handleDetail(record)">详情</a> <a href="javascript:;" @click="handleDetail(record)">Detail</a>
</a-menu-item> </a-menu-item>
<a-menu-item> <a-menu-item>
<a href="javascript:;" @click="handleAddSub(record)">添加下级</a> <a href="javascript:;" @click="handleAddSub(record)">AddSub</a>
</a-menu-item> </a-menu-item>
<a-menu-item> <a-menu-item>
<a href="javascript:;" @click="handleDataRule(record)">数据规则</a> <a href="javascript:;" @click="handleDataRule(record)">DataRule</a>
</a-menu-item> </a-menu-item>
<a-menu-item> <a-menu-item>
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)" placement="topLeft"> <a-popconfirm title="Do You Want To Delete This Item?'" @confirm="() => handleDelete(record.id)" placement="topLeft">
<a>删除</a> <a>Delete</a>
</a-popconfirm> </a-popconfirm>
</a-menu-item> </a-menu-item>
</a-menu> </a-menu>
@ -88,20 +88,20 @@
const columns = [ const columns = [
{ {
title: '菜单名称', title: 'NAME',
dataIndex: 'name', dataIndex: 'name',
key: 'name' key: 'name'
}, { }, {
title: '菜单类型', title: 'MENU TYPE',
dataIndex: 'menuType', dataIndex: 'menuType',
key: 'menuType', key: 'menuType',
customRender: function(text) { customRender: function(text) {
if (text == 0) { if (text == 0) {
return '菜单' return 'MENU'
} else if (text == 1) { } else if (text == 1) {
return '菜单' return 'MENU'
} else if (text == 2) { } else if (text == 2) {
return '按钮/权限' return 'BUTTON/PERMS'
} else { } else {
return text return text
} }
@ -111,29 +111,29 @@
dataIndex: 'perms', dataIndex: 'perms',
key: 'permissionCode', key: 'permissionCode',
},*/{ },*/{
title: 'icon', title: 'ICON',
dataIndex: 'icon', dataIndex: 'icon',
key: 'icon' key: 'icon'
}, },
{ {
title: '组件', title: 'COMPONENT',
dataIndex: 'component', dataIndex: 'component',
key: 'component', key: 'component',
scopedSlots: { customRender: 'component' } scopedSlots: { customRender: 'component' }
}, },
{ {
title: '路径', title: 'URL',
dataIndex: 'url', dataIndex: 'url',
key: 'url', key: 'url',
scopedSlots: { customRender: 'url' } scopedSlots: { customRender: 'url' }
}, },
{ {
title: '排序', title: 'SORT NO',
dataIndex: 'sortNo', dataIndex: 'sortNo',
key: 'sortNo' key: 'sortNo'
}, },
{ {
title: '操作', title: 'ACTION',
dataIndex: 'action', dataIndex: 'action',
scopedSlots: { customRender: 'action' }, scopedSlots: { customRender: 'action' },
align: 'center', align: 'center',
@ -213,7 +213,7 @@
this.$refs.PermissionDataRuleList.edit(record) this.$refs.PermissionDataRuleList.edit(record)
}, },
handleAddSub(record) { handleAddSub(record) {
this.$refs.modalForm.title = "添加子菜单"; this.$refs.modalForm.title = "Add submenu";
this.$refs.modalForm.disableSubmit = false; this.$refs.modalForm.disableSubmit = false;
this.$refs.modalForm.edit({status:'1',permsType:'1',route:true,'parentId':record.id,menuType:1}); this.$refs.modalForm.edit({status:'1',permsType:'1',route:true,'parentId':record.id,menuType:1});
}, },

View File

@ -8,7 +8,7 @@
<a-form layout="inline" @keyup.enter.native="searchQuery"> <a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :md="12" :sm="8"> <a-col :md="12" :sm="8">
<a-form-item label="角色名称" :labelCol="{span: 5}" :wrapperCol="{span: 18, offset: 1}"> <a-form-item label="RoleName" :labelCol="{span: 5}" :wrapperCol="{span: 18, offset: 1}">
<a-input placeholder="" v-model="queryParam.roleName"></a-input> <a-input placeholder="" v-model="queryParam.roleName"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
@ -23,8 +23,8 @@
--> -->
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-col :md="12" :sm="24"> <a-col :md="12" :sm="24">
<a-button type="primary" @click="searchQuery" icon="search" style="margin-left: 21px">查询</a-button> <a-button type="primary" @click="searchQuery" icon="search" style="margin-left: 21px">Search</a-button>
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">Reload</a-button>
</a-col> </a-col>
</span> </span>
</a-row> </a-row>
@ -32,18 +32,18 @@
</div> </div>
<!-- 操作按钮区域 --> <!-- 操作按钮区域 -->
<div class="table-operator" style="margin: 5px 0 10px 2px"> <div class="table-operator" style="margin: 5px 0 10px 2px">
<a-button @click="handleAdd" type="primary" icon="plus">新建角色</a-button> <a-button @click="handleAdd" type="primary" icon="plus">ADD</a-button>
<!--<a-button @click="handleEdit(model1)" type="primary" icon="plus">角色编辑</a-button>--> <!--<a-button @click="handleEdit(model1)" type="primary" icon="plus">角色编辑</a-button>-->
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button> <a-button type="primary" icon="import">Import</a-button>
</a-upload> </a-upload>
<a-button type="primary" icon="download" @click="handleExportXls('角色管理')">导出</a-button> <a-button type="primary" icon="download" @click="handleExportXls('角色管理')">Export</a-button>
</div> </div>
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
<i class="anticon anticon-info-circle ant-alert-icon"> <i class="anticon anticon-info-circle ant-alert-icon">
</i> 已选择 <a><b>{{ selectedRowKeys1.length }}</b></a> </i> To Select <a><b>{{ selectedRowKeys1.length }}</b></a> Item
<a style="margin-left: 24px" @click="onClearSelected1">清空</a> <a style="margin-left: 24px" @click="onClearSelected1">Clear</a>
</div> </div>
<div style="margin-top: 15px"> <div style="margin-top: 15px">
@ -60,23 +60,23 @@
:rowSelection="{selectedRowKeys: selectedRowKeys1, onChange: onSelectChange1, type:'radio'}" :rowSelection="{selectedRowKeys: selectedRowKeys1, onChange: onSelectChange1, type:'radio'}"
@change="handleTableChange"> @change="handleTableChange">
<span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record">
<a @click="handleOpen(record)">用户</a> <a @click="handleOpen(record)">User</a>
<a-divider type="vertical"/> <a-divider type="vertical"/>
<a-dropdown> <a-dropdown>
<a class="ant-dropdown-link"> <a class="ant-dropdown-link">
更多 <a-icon type="down"/> More <a-icon type="down"/>
</a> </a>
<a-menu slot="overlay"> <a-menu slot="overlay">
<a-menu-item> <a-menu-item>
<a @click="handlePerssion(record.id)">授权</a> <a @click="handlePerssion(record.id)">Perssion</a>
</a-menu-item> </a-menu-item>
<a-menu-item> <a-menu-item>
<a @click="handleEdit(record)">编辑</a> <a @click="handleEdit(record)">Edit</a>
</a-menu-item> </a-menu-item>
<a-menu-item> <a-menu-item>
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete1(record.id)"> <a-popconfirm title="Do You Want To Delete This Item?'" @confirm="() => handleDelete1(record.id)">
<a>删除</a> <a>Delete</a>
</a-popconfirm> </a-popconfirm>
</a-menu-item> </a-menu-item>
</a-menu> </a-menu>
@ -100,14 +100,14 @@
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :md="12" :sm="12"> <a-col :md="12" :sm="12">
<a-form-item label="用户账号"> <a-form-item label="UserName">
<a-input placeholder="" v-model="queryParam2.username"></a-input> <a-input placeholder="" v-model="queryParam2.username"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-col :md="9" :sm="24"> <a-col :md="9" :sm="24">
<a-button type="primary" @click="searchQuery2" icon="search" style="margin-left: 21px">查询</a-button> <a-button type="primary" @click="searchQuery2" icon="search" style="margin-left: 21px">Search</a-button>
<a-button type="primary" @click="searchReset2" icon="reload" style="margin-left: 8px">重置</a-button> <a-button type="primary" @click="searchReset2" icon="reload" style="margin-left: 8px">Reload</a-button>
</a-col> </a-col>
</span> </span>
@ -116,18 +116,18 @@
</div> </div>
<!-- 操作按钮区域 --> <!-- 操作按钮区域 -->
<div class="table-operator" :md="24" :sm="24"> <div class="table-operator" :md="24" :sm="24">
<a-button @click="handleAdd2" type="primary" icon="plus" style="margin-top: 16px">新增用户</a-button> <a-button @click="handleAdd2" type="primary" icon="plus" style="margin-top: 16px">Add</a-button>
<!--<a-button @click="handleEdit2" type="primary" icon="edit" style="margin-top: 16px">用户编辑</a-button>--> <!--<a-button @click="handleEdit2" type="primary" icon="edit" style="margin-top: 16px">用户编辑</a-button>-->
<a-button @click="handleAddUserRole" type="primary" icon="plus" style="margin-top: 16px">已有用户</a-button> <a-button @click="handleAddUserRole" type="primary" icon="plus" style="margin-top: 16px">Existing users</a-button>
<a-dropdown v-if="selectedRowKeys2.length > 0"> <a-dropdown v-if="selectedRowKeys2.length > 0">
<a-menu slot="overlay"> <a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel2"> <a-menu-item key="1" @click="batchDel2">
<a-icon type="delete"/> <a-icon type="delete"/>
取消关联 Unbind
</a-menu-item> </a-menu-item>
</a-menu> </a-menu>
<a-button style="margin-left: 8px"> 批量操作 <a-button style="margin-left: 8px"> Batch operation
<a-icon type="down"/> <a-icon type="down"/>
</a-button> </a-button>
</a-dropdown> </a-dropdown>
@ -135,9 +135,9 @@
<!-- table区域-begin --> <!-- table区域-begin -->
<div> <div>
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
<i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ <i class="anticon anticon-info-circle ant-alert-icon"></i> To Select <a style="font-weight: 600">{{
selectedRowKeys2.length }}</a> selectedRowKeys2.length }}</a> Item
<a style="margin-left: 24px" @click="onClearSelected2">清空</a> <a style="margin-left: 24px" @click="onClearSelected2">Clear</a>
</div> </div>
<a-table <a-table
style="height:500px" style="height:500px"
@ -152,16 +152,16 @@
:rowSelection="{selectedRowKeys: selectedRowKeys2, onChange: onSelectChange2}" :rowSelection="{selectedRowKeys: selectedRowKeys2, onChange: onSelectChange2}"
@change="handleTableChange2"> @change="handleTableChange2">
<span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record">
<a @click="handleEdit2(record)">编辑</a> <a @click="handleEdit2(record)">Edit</a>
<a-divider type="vertical"/> <a-divider type="vertical"/>
<a-dropdown> <a-dropdown>
<a class="ant-dropdown-link"> <a class="ant-dropdown-link">
更多 <a-icon type="down"/> More <a-icon type="down"/>
</a> </a>
<a-menu slot="overlay"> <a-menu slot="overlay">
<a-menu-item> <a-menu-item>
<a-popconfirm title="确定取消关联吗?" @confirm="() => handleDelete2(record.id)"> <a-popconfirm title="Are you sure you want to unbind?" @confirm="() => handleDelete2(record.id)">
<a>取消关联</a> <a>Unbind</a>
</a-popconfirm> </a-popconfirm>
</a-menu-item> </a-menu-item>
</a-menu> </a-menu>
@ -249,17 +249,17 @@
columns: columns:
[ [
{ {
title: '角色编码', title: 'ROLECODE',
align: 'center', align: 'center',
dataIndex: 'roleCode' dataIndex: 'roleCode'
}, },
{ {
title: '角色名称', title: 'ROLENAME',
align: 'center', align: 'center',
dataIndex: 'roleName' dataIndex: 'roleName'
}, },
{ {
title: '创建时间', title: 'CREATETIME',
dataIndex: 'createTime', dataIndex: 'createTime',
align:"center", align:"center",
sorter: true, sorter: true,
@ -268,33 +268,33 @@
} }
}, },
{ {
title: '操作', title: 'ACTION',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center',
scopedSlots: { customRender: 'action' } scopedSlots: { customRender: 'action' }
} }
], ],
columns2: [{ columns2: [{
title: '用户账号', title: 'USERNAME',
align: 'center', align: 'center',
dataIndex: 'username', dataIndex: 'username',
width: 120 width: 120
}, },
{ {
title: '用户名称', title: 'REALNAME',
align: 'center', align: 'center',
width: 100, width: 100,
dataIndex: 'realname' dataIndex: 'realname'
}, },
{ {
title: '状态', title: 'STATUS',
align: 'center', align: 'center',
width: 80, width: 80,
dataIndex: 'status_dictText' dataIndex: 'status_dictText'
}, },
{ {
title: '操作', title: 'ACTION',
dataIndex: 'action', dataIndex: 'action',
scopedSlots: { customRender: 'action' }, scopedSlots: { customRender: 'action' },
align: 'center', align: 'center',
@ -375,16 +375,16 @@
return str return str
}, },
handleEdit2: function(record) { handleEdit2: function(record) {
this.$refs.modalForm2.title = '编辑' this.$refs.modalForm2.title = 'Edit'
this.$refs.modalForm2.roleDisabled = true this.$refs.modalForm2.roleDisabled = true
this.$refs.modalForm2.edit(record) this.$refs.modalForm2.edit(record)
}, },
handleAdd2: function() { handleAdd2: function() {
if (this.currentRoleId == '') { if (this.currentRoleId == '') {
this.$message.error('请选择一个角色!') this.$message.error('Please select a role!')
} else { } else {
this.$refs.modalForm2.roleDisabled = true this.$refs.modalForm2.roleDisabled = true
this.$refs.modalForm2.title = '新增' this.$refs.modalForm2.title = 'Add'
this.$refs.modalForm2.edit({activitiSync:'1',userIdentity:1,selectedroles:this.currentRoleId}) this.$refs.modalForm2.edit({activitiSync:'1',userIdentity:1,selectedroles:this.currentRoleId})
} }
}, },
@ -394,7 +394,7 @@
}, },
loadData2(arg) { loadData2(arg) {
if (!this.url.list2) { if (!this.url.list2) {
this.$message.error('请设置url.list2属性!') this.$message.error('Please set url.list2 property!')
return return
} }
// 1 // 1
@ -422,7 +422,7 @@
}, },
handleDelete2: function(id) { handleDelete2: function(id) {
if (!this.url.delete2) { if (!this.url.delete2) {
this.$message.error('请设置url.delete2属性!') this.$message.error('Please set url.delete2 property!')
return return
} }
var that = this var that = this
@ -438,11 +438,11 @@
batchDel2: function() { batchDel2: function() {
if (!this.url.deleteBatch2) { if (!this.url.deleteBatch2) {
this.$message.error('请设置url.deleteBatch2属性!') this.$message.error('Please set rl.deleteBatch2 property!')
return return
} }
if (this.selectedRowKeys2.length <= 0) { if (this.selectedRowKeys2.length <= 0) {
this.$message.warning('请选择一条记录') this.$message.warning('Please select a record')
return return
} else { } else {
var ids = '' var ids = ''
@ -452,8 +452,8 @@
var that = this var that = this
console.log(this.currentDeptId) console.log(this.currentDeptId)
this.$confirm({ this.$confirm({
title: '确认取消关联', title: 'Confirm unbinding',
content: '是否删除选中数据?', content: 'Whether to delete the selected data?',
onOk: function() { onOk: function() {
deleteAction(that.url.deleteBatch2, { roleId: that.currentRoleId, userIds: ids }).then((res) => { deleteAction(that.url.deleteBatch2, { roleId: that.currentRoleId, userIds: ids }).then((res) => {
if (res.success) { if (res.success) {
@ -488,7 +488,7 @@
handleAddUserRole() { handleAddUserRole() {
if (this.currentRoleId == '') { if (this.currentRoleId == '') {
this.$message.error('请选择一个角色!') this.$message.error('Please select a role!')
} else { } else {
this.$refs.selectUserModal.visible = true this.$refs.selectUserModal.visible = true
} }