更改启用角色
This commit is contained in:
@@ -393,6 +393,11 @@ export default {
|
|||||||
AddRoleOk() { // 新增角色确定
|
AddRoleOk() { // 新增角色确定
|
||||||
this.$refs['addForm'].validate((valid) => {
|
this.$refs['addForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
if(this.addForm.useFlag === '启用'){
|
||||||
|
this.addForm.useFlag = '1'
|
||||||
|
}else {
|
||||||
|
this.addForm.useFlag = '0'
|
||||||
|
}
|
||||||
if (this.type === 1) { // 新增
|
if (this.type === 1) { // 新增
|
||||||
this.$http.postData('sarRole/role', this.addForm, {}, res => {
|
this.$http.postData('sarRole/role', this.addForm, {}, res => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
|
|||||||
Reference in New Issue
Block a user