mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-04 08:25:56 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -18,8 +18,12 @@ export default {
|
|||||||
const app_type_meta = REMOTE_APP_TYPE_META_MAP[app_type]
|
const app_type_meta = REMOTE_APP_TYPE_META_MAP[app_type]
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
initial: {
|
||||||
|
type: app_type_meta.name
|
||||||
|
},
|
||||||
fields: [
|
fields: [
|
||||||
[this.$t('route.RemoteApp'), ['name', 'asset', 'type', 'path', 'comment', 'params']]
|
[this.$t('route.RemoteApp'), ['name', 'asset', 'type', 'path', 'comment']],
|
||||||
|
[this.$t('applications.' + app_type), ['params']]
|
||||||
],
|
],
|
||||||
url: '/api/v1/applications/remote-apps/',
|
url: '/api/v1/applications/remote-apps/',
|
||||||
fieldsMeta: {
|
fieldsMeta: {
|
||||||
@@ -28,7 +32,7 @@ export default {
|
|||||||
multiple: false,
|
multiple: false,
|
||||||
value: [],
|
value: [],
|
||||||
ajax: {
|
ajax: {
|
||||||
url: '/api/v1/assets/assets/?platform__base=Linux',
|
url: '/api/v1/assets/assets/?platform__base=Windows',
|
||||||
processResults(data) {
|
processResults(data) {
|
||||||
const results = data.results.map((item) => {
|
const results = data.results.map((item) => {
|
||||||
return { label: item.hostname, value: item.id }
|
return { label: item.hostname, value: item.id }
|
||||||
@@ -44,7 +48,7 @@ export default {
|
|||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
label: app_type_meta.title,
|
label: app_type_meta.title,
|
||||||
value: app_type_meta.value
|
value: app_type_meta.name
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
disabled: true
|
disabled: true
|
||||||
|
Reference in New Issue
Block a user