Commit 429c5ec0 by cwq0219

路由

1 parent afa43dde
......@@ -50,7 +50,7 @@ export default {
methods: {
handleClose() {
this.$router.push({
name: 'Account2EmployeeIndex'
path: '/employee/index'
})
}
}
......
......@@ -11,10 +11,10 @@
<select-page :form="editForm" width="360" :targetItem="item.scope" @handleChange="handleChangeMerchant"></select-page>
</template>
<template v-if="routeInfo.addOrEdit == 2" slot="passwordSlot">
<el-button type="primary" @click="handleResetPass">重置密码</el-button>
<el-button class="m-l-10" type="primary" @click="handleResetPass">重置密码</el-button>
</template>
<template v-if="userInfo.accountLevel == 4" slot="roleIdsSlot">
<el-button type="primary" @click="handleJumpRole">创建角色</el-button>
<template v-if="userInfo.accountLevel == 4 && routeInfo.addOrEdit == 1" slot="roleIdsSlot">
<el-button class="m-l-10" type="primary" @click="handleJumpRole">创建角色</el-button>
</template>
<template slot="visibleInferiorMer" slot-scope="item">
<el-input :style="{ width: item.width || '360px' }" placeholder="可见商户" v-model="filterText"></el-input>
......@@ -303,7 +303,7 @@ export default {
this.editForm.password = ''
},
handleJumpRole() {
this.$router.push("/role/create/"+0)
this.$router.push('/role/create/'+0)
},
handleConfirm() {
// console.log(this.$refs.tree.getCheckedNodes())
......@@ -339,7 +339,7 @@ export default {
},
handleCancel() {
this.$router.push({
name: 'Account2EmployeeIndex'
path: '/employee/index'
})
}
}
......@@ -415,4 +415,7 @@ export default {
text-overflow: ellipsis;
margin-left: 8px;
}
.config-employee .m-l-10 {
margin-left: 10px;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!