Commit 429c5ec0 by cwq0219

路由

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