From dcbb73e59d833164b0eabf3520bd2e7ea1d7535a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9C=E6=80=80=E7=A3=8A=E2=80=9D?= <2280131253@qq.com> Date: Thu, 28 Oct 2021 17:20:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E6=8E=88=E6=9D=83=E5=B7=A5=E5=8D=95=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/tickets/RequestApplicationPerm/CreateUpdate.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/tickets/RequestApplicationPerm/CreateUpdate.vue b/src/views/tickets/RequestApplicationPerm/CreateUpdate.vue index 765102232..33dedd16c 100644 --- a/src/views/tickets/RequestApplicationPerm/CreateUpdate.vue +++ b/src/views/tickets/RequestApplicationPerm/CreateUpdate.vue @@ -34,7 +34,8 @@ export default { meta: { apply_date_expired: date_expired, apply_date_start: date_start, - apply_actions: ['all', 'connect', 'updownload', 'upload_file', 'download_file'] + apply_actions: ['all', 'connect', 'updownload', 'upload_file', 'download_file'], + apply_category_type: ['db', 'mysql'] }, org_id: '', type: 'apply_application' @@ -206,8 +207,9 @@ export default { }, methods: { performSubmit(validValues) { - validValues.meta.apply_category = validValues.meta.apply_category_type[0] - validValues.meta.apply_type = validValues.meta.apply_category_type[1] + const applyCategoryType = validValues.meta.apply_category_type + validValues.meta.apply_category = applyCategoryType && applyCategoryType.length > 0 ? applyCategoryType[0] : '' + validValues.meta.apply_type = applyCategoryType && applyCategoryType.length > 0 ? applyCategoryType[1] : '' delete validValues.meta['apply_category_type'] return this.$axios['post'](`/api/v1/tickets/tickets/open/?type=apply_application`, validValues) }