fix: 修改默认版本号以及添加修改应用详情页添加系统用户bug

This commit is contained in:
Orange
2020-11-17 18:07:32 +08:00
committed by 老广
parent 98886149f9
commit 7df5736354
2 changed files with 4 additions and 10 deletions

View File

@@ -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

View File

@@ -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,