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