NEZ-793 fix: Agent页面,查询问题
This commit is contained in:
@@ -68,11 +68,15 @@ export default {
|
|||||||
},
|
},
|
||||||
tableDataSort (item) {
|
tableDataSort (item) {
|
||||||
let orderBy = ''
|
let orderBy = ''
|
||||||
|
let str = item.prop
|
||||||
|
if (str === 'dc') {
|
||||||
|
str = 'datacenter'
|
||||||
|
}
|
||||||
if (item.order === 'ascending') {
|
if (item.order === 'ascending') {
|
||||||
orderBy = item.prop
|
orderBy = str
|
||||||
}
|
}
|
||||||
if (item.order === 'descending') {
|
if (item.order === 'descending') {
|
||||||
orderBy = '-' + item.prop
|
orderBy = '-' + str
|
||||||
}
|
}
|
||||||
this.$emit('orderBy', orderBy)
|
this.$emit('orderBy', orderBy)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -165,7 +165,9 @@ export default {
|
|||||||
this.$refs.roleForm.validate((valid) => {
|
this.$refs.roleForm.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.editRole.id) {
|
if (this.editRole.id) {
|
||||||
|
this.editRole.i18n = this.editRole.name
|
||||||
this.$put(this.url, this.editRole).then(res => {
|
this.$put(this.url, this.editRole).then(res => {
|
||||||
|
console.log(this.editRole)
|
||||||
this.prevent_opt.save = false
|
this.prevent_opt.save = false
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.$message({ duration: 2000, type: 'success', message: this.$t('tip.saveSuccess') })
|
this.$message({ duration: 2000, type: 'success', message: this.$t('tip.saveSuccess') })
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
callback()
|
callback()
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
return {
|
return {
|
||||||
editUser: {},
|
editUser: {},
|
||||||
url: 'sys/user',
|
url: 'sys/user',
|
||||||
|
|||||||
@@ -55,9 +55,6 @@ export default {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
created() {
|
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
clickOutside () {
|
clickOutside () {
|
||||||
|
|||||||
@@ -1660,6 +1660,9 @@ export default {
|
|||||||
.localStorage_list_box ul li{
|
.localStorage_list_box ul li{
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
.localStorage_list_box ul li:hover{
|
.localStorage_list_box ul li:hover{
|
||||||
background: #f0f0f0;
|
background: #f0f0f0;
|
||||||
@@ -1671,6 +1674,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.localStorage_list_box ul li .value{
|
.localStorage_list_box ul li .value{
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
width: 350px;
|
||||||
}
|
}
|
||||||
.localStorage_list_box .list_box_clear{
|
.localStorage_list_box .list_box_clear{
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
|
|||||||
Reference in New Issue
Block a user