mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
fix: 修改默认版本号以及添加修改应用详情页添加系统用户bug
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="footer" :style="style">
|
||||
<div class="pull-right">
|
||||
Version <strong>2.0.2</strong> <span v-if="!publicSettings.XPACK_LICENSE_IS_VALID"> GPLv2. </span>
|
||||
Version <strong> dev </strong> <span v-if="!publicSettings.XPACK_LICENSE_IS_VALID"> GPLv2. </span>
|
||||
</div>
|
||||
<div v-if="!publicSettings.XPACK_LICENSE_IS_VALID" style="padding-left:20px;">
|
||||
<strong>Copyright</strong> FIT2CLOUD 飞致云 © 2014-2020
|
||||
|
||||
@@ -99,15 +99,9 @@ export default {
|
||||
icon: 'fa-edit',
|
||||
title: this.$t('perms.addSystemUserToThisPermission'),
|
||||
objectsAjax: {
|
||||
url: '/api/v1/assets/system-users/',
|
||||
processResults(data) {
|
||||
let results = data.results
|
||||
const protocol = vm.object.category === 'remote_app' ? `rdp` : vm.object.type
|
||||
results = results.filter((item) => item.protocol === protocol).map((item) => {
|
||||
return { label: item.name + '(' + item.username + ')', value: item.id }
|
||||
})
|
||||
const more = !!data.next
|
||||
return { results: results, pagination: more, total: data.count }
|
||||
url: `/api/v1/assets/system-users/?category=${vm.object.category}&type=${vm.object.type}`,
|
||||
transformOption: (item) => {
|
||||
return { label: item.name + ' (' + item.username + ')', value: item.id }
|
||||
}
|
||||
},
|
||||
hasObjectsId: this.object.system_users,
|
||||
|
||||
Reference in New Issue
Block a user