系统管理
This commit is contained in:
@@ -159,12 +159,14 @@ export default {
|
||||
this.code = ''
|
||||
this.name = ''
|
||||
this.value = ''
|
||||
this.remark = ''
|
||||
this.unclick = true
|
||||
break
|
||||
case '2':
|
||||
this.code = e.code
|
||||
this.name = e.name
|
||||
this.value = e.value
|
||||
this.remark = e.remark
|
||||
if (!this.code || !this.name || !this.value) {
|
||||
this.unclick = true
|
||||
} else {
|
||||
@@ -215,7 +217,7 @@ export default {
|
||||
try {
|
||||
let res = await paramAdd(this.code, this.name, this.value, this.remark)
|
||||
if (res.code === '1') {
|
||||
this._usersQuery()
|
||||
this._paramQuery()
|
||||
}
|
||||
this.toast(res.desc)
|
||||
this.$refs.child.active = false
|
||||
@@ -245,7 +247,7 @@ export default {
|
||||
try {
|
||||
let res = await paramEdit(this.pkObj.id, this.code, this.name, this.value, this.remark)
|
||||
if (res.code === '1') {
|
||||
this._usersQuery()
|
||||
this._paramQuery()
|
||||
}
|
||||
this.toast(res.desc)
|
||||
this.$refs.child.active = false
|
||||
@@ -260,7 +262,7 @@ export default {
|
||||
try {
|
||||
let res = await paramDelete([this.pkObj.id])
|
||||
if (res.code === '1') {
|
||||
this._usersQuery()
|
||||
this._paramQuery()
|
||||
}
|
||||
this.toast(res.desc)
|
||||
this.$refs.child.active = false
|
||||
|
||||
@@ -208,7 +208,7 @@ export default {
|
||||
this.username = e.username
|
||||
this.phone = e.phone
|
||||
this.name = e.personName
|
||||
this.sex = this.gender
|
||||
this.sex = e.gender
|
||||
this.options.map(el => {
|
||||
if (el.roleId === e.roles[0].roleId) {
|
||||
this.value = el.roleId
|
||||
|
||||
@@ -245,8 +245,9 @@
|
||||
width: 100%;
|
||||
border-radius: 16px
|
||||
.form_item__textarea
|
||||
line-height 23px
|
||||
height 69px
|
||||
line-height 40px
|
||||
height 110px
|
||||
padding 15px
|
||||
.form_item__radio
|
||||
color: #606266;
|
||||
font-weight: 500;
|
||||
|
||||
Reference in New Issue
Block a user