更改启用角色

This commit is contained in:
宋伟佳
2022-01-07 18:06:10 +08:00
parent 4669fba5db
commit 561edcc9ea
@@ -393,6 +393,11 @@ export default {
AddRoleOk() { // 新增角色确定
this.$refs['addForm'].validate((valid) => {
if (valid) {
if(this.addForm.useFlag === '启用'){
this.addForm.useFlag = '1'
}else {
this.addForm.useFlag = '0'
}
if (this.type === 1) { // 新增
this.$http.postData('sarRole/role', this.addForm, {}, res => {
if (res.ok) {