更新核心lib包

pull/59/head
smallchill 7 years ago
parent 7f425f7aa0
commit 046da4ce75
  1. 6
      public/cdn/avue/2.0.0/avue.min.js
  2. 2
      src/lang/zh.js
  3. 8
      src/views/system/role.vue

File diff suppressed because one or more lines are too long

@ -65,7 +65,7 @@ export default {
}, },
login: { login: {
title: '登录 ', title: '登录 ',
info: '企业级开发平台', info: 'BladeX 企业级开发平台',
tenantCode: '请输入租户编号', tenantCode: '请输入租户编号',
username: '请输入账号', username: '请输入账号',
password: '请输入密码', password: '请输入密码',

@ -37,7 +37,7 @@
</avue-crud> </avue-crud>
<el-dialog title="提示" <el-dialog title="提示"
:visible.sync="box" :visible.sync="box"
width="40%"> width="20%">
<el-tree :data="list" <el-tree :data="list"
show-checkbox show-checkbox
node-key="id" node-key="id"
@ -214,7 +214,7 @@ export default {
methods: { methods: {
submit() { submit() {
const menuLIst = this.$refs.tree.getCheckedKeys().join(","); const menuLIst = this.$refs.tree.getCheckedKeys().join(",");
grant(this.ids[0], menuLIst).then(() => { grant(this.ids, menuLIst).then(() => {
this.box = false; this.box = false;
this.$message({ this.$message({
type: "success", type: "success",
@ -272,14 +272,14 @@ export default {
}, },
handleRole() { handleRole() {
if (this.selectionList.length !== 1) { if (this.selectionList.length !== 1) {
this.$message.warning("请选择至少一条数据"); this.$message.warning("只能选择一条数据");
return; return;
} }
this.defaultObj = []; this.defaultObj = [];
grantTree() grantTree()
.then(res => { .then(res => {
this.list = res.data.data; this.list = res.data.data;
return getRole(this.ids[0]); return getRole(this.ids);
}) })
.then(res => { .then(res => {
this.defaultObj = res.data.data; this.defaultObj = res.data.data;

Loading…
Cancel
Save