From 86ead728588509ce6a31c96182318d09a7742a4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Tue, 19 Jul 2022 10:48:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=9B=E5=BB=BA=E5=B7=A5=E5=8D=95-?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E7=BB=84=E7=BB=87=E6=97=B6=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E3=80=81=E8=B5=84=E4=BA=A7=E3=80=81=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tickets/RequestApplicationPerm/CreateUpdate.vue | 8 ++++++++ src/views/tickets/RequestAssetPerm/CreateUpdate.vue | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/src/views/tickets/RequestApplicationPerm/CreateUpdate.vue b/src/views/tickets/RequestApplicationPerm/CreateUpdate.vue index f6f8249f6..c54c92619 100644 --- a/src/views/tickets/RequestApplicationPerm/CreateUpdate.vue +++ b/src/views/tickets/RequestApplicationPerm/CreateUpdate.vue @@ -139,6 +139,14 @@ export default { fieldsMeta.apply_applications.el.ajax.url = `/api/v1/applications/applications/suggestions/?oid=${vm.org_id}&category=${apply_category_type[0]}&type=${apply_category_type[1]}` fieldsMeta.apply_system_users.el.ajax.url = apply_category_type[0] === 'remote_app' ? `/api/v1/assets/system-users/suggestions/?oid=${vm.org_id}&protocol=rdp` : `/api/v1/assets/system-users/suggestions/?oid=${vm.org_id}&protocol=${apply_category_type[1]}` } + }, + on: { + change: ([event], updateForm) => { + updateForm({ + apply_applications: [], + apply_system_users: [] + }) + } } } }, diff --git a/src/views/tickets/RequestAssetPerm/CreateUpdate.vue b/src/views/tickets/RequestAssetPerm/CreateUpdate.vue index c036b4fc7..848481eae 100644 --- a/src/views/tickets/RequestAssetPerm/CreateUpdate.vue +++ b/src/views/tickets/RequestAssetPerm/CreateUpdate.vue @@ -114,6 +114,15 @@ export default { fieldsMeta.apply_system_users.el.ajax.url = `/api/v1/assets/system-users/suggestions/?oid=${form['org_id']}&protocol__in=rdp,ssh,vnc,telnet` fieldsMeta.apply_assets.el.ajax.url = `/api/v1/assets/assets/suggestions/?oid=${form['org_id']}` fieldsMeta.apply_nodes.el.ajax.url = `/api/v1/assets/nodes/suggestions/?oid=${form['org_id']}` + }, + on: { + change: ([event], updateForm) => { + updateForm({ + apply_nodes: [], + apply_assets: [], + apply_system_users: [] + }) + } } } },