| | |
| | | </div> |
| | | |
| | | <div class="btn_box"> |
| | | <el-button @click="$router.go(-1)">返回</el-button> |
| | | <el-button @click="$closeCurrentView('/system/role')">返回</el-button> |
| | | <el-button type="primary" @click="onSubmit">保存</el-button> |
| | | </div> |
| | | </Card> |
| | |
| | | obj.roleId = this.$route.query.roleId |
| | | edit(obj).then(() => { |
| | | this.msgsuccess('保存成功') |
| | | this.$router.go(-1) |
| | | this.$closeCurrentView('/system/role') |
| | | }) |
| | | } else { |
| | | add(obj).then(() => { |
| | | this.msgsuccess('保存成功') |
| | | this.$router.go(-1) |
| | | this.$closeCurrentView('/system/role') |
| | | }) |
| | | } |
| | | } |
| | |
| | | font-family: 'Source Han Sans CN Bold Bold'; |
| | | } |
| | | } |
| | | </style> |
| | | </style> |