mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 11:24:17 +00:00
Merge pull request #1937 from jumpserver/pr@dev@ticket_org
fix: 修复工单选择资源组织问题
This commit is contained in:
@@ -68,7 +68,7 @@ export default {
|
||||
value: this.object.apply_applications,
|
||||
ajax: {
|
||||
url: function() {
|
||||
const oid = this.object.org_id === '' ? 'DEFAULT' : this.object.org_id
|
||||
const oid = this.object.org_id
|
||||
return `/api/v1/applications/applications/?oid=${oid}&type=${this.object.apply_type}`
|
||||
}.bind(this)(),
|
||||
transformOption: (item) => {
|
||||
@@ -81,7 +81,7 @@ export default {
|
||||
value: this.object.apply_system_users,
|
||||
ajax: {
|
||||
url: function() {
|
||||
const oid = this.object.org_id === '' ? 'DEFAULT' : this.object.org_id
|
||||
const oid = this.object.org_id
|
||||
const protocol = this.object.apply_category === 'remote_app' ? 'rdp' : this.object.apply_type
|
||||
return `/api/v1/assets/system-users/?oid=${oid}&protocol=${protocol}`
|
||||
}.bind(this)(),
|
||||
|
||||
@@ -77,7 +77,7 @@ export default {
|
||||
value: this.object.apply_nodes,
|
||||
ajax: {
|
||||
url: (function(object) {
|
||||
const oid = object.org_id === '' ? 'DEFAULT' : object.org_id
|
||||
const oid = object.org_id
|
||||
return `/api/v1/assets/nodes/?oid=${oid}&protocol__in=rdp,vnc,ssh,telnet`
|
||||
}(this.object)),
|
||||
transformOption: (item) => {
|
||||
@@ -90,7 +90,7 @@ export default {
|
||||
value: this.object.apply_assets,
|
||||
ajax: {
|
||||
url: (function(object) {
|
||||
const oid = object.org_id === '' ? 'DEFAULT' : object.org_id
|
||||
const oid = object.org_id
|
||||
return `/api/v1/assets/assets/?oid=${oid}&protocol__in=rdp,vnc,ssh,telnet`
|
||||
}(this.object)),
|
||||
transformOption: (item) => {
|
||||
@@ -103,7 +103,7 @@ export default {
|
||||
value: this.object.apply_system_users,
|
||||
ajax: {
|
||||
url: (function(object) {
|
||||
const oid = object.org_id === '' ? 'DEFAULT' : object.org_id
|
||||
const oid = object.org_id
|
||||
return `/api/v1/assets/system-users/?oid=${oid}&protocol__in=rdp,vnc,ssh,telnet`
|
||||
}(this.object)),
|
||||
transformOption: (item) => {
|
||||
|
||||
Reference in New Issue
Block a user