Merge pull request #1937 from jumpserver/pr@dev@ticket_org

fix: 修复工单选择资源组织问题
This commit is contained in:
feng626
2022-07-15 11:42:17 +08:00
committed by GitHub
2 changed files with 5 additions and 5 deletions

View File

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

View File

@@ -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) => {