From dbfa58dc36d95662bba407ad160e0feefc6acd3d Mon Sep 17 00:00:00 2001 From: sunzehua Date: Fri, 18 Oct 2024 17:10:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E8=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bookingcabin/CabinManagement/api.ts | 2 +- .../bookingcabin/CabinManagement/index.vue | 6 +- .../TenantAuditStepModal.vue | 13 ++- .../CodeDataRuleTemplate/columnView.vue | 85 ++++++++++++++++++- src/views/taskmanage/columns.tsx | 2 +- 5 files changed, 97 insertions(+), 11 deletions(-) diff --git a/src/views/bookingcabin/CabinManagement/api.ts b/src/views/bookingcabin/CabinManagement/api.ts index 45dd19cf..72e9d154 100644 --- a/src/views/bookingcabin/CabinManagement/api.ts +++ b/src/views/bookingcabin/CabinManagement/api.ts @@ -161,7 +161,7 @@ export function SaveDataInList(parameter) { export function PrintOrder(parameter) { return request({ - url: '/opApi/BookingSlotService/PrintOrder', + url: '/opApi/BookingSlotService/ExportOrder', method: 'post', data: parameter }) diff --git a/src/views/bookingcabin/CabinManagement/index.vue b/src/views/bookingcabin/CabinManagement/index.vue index 0c61468a..ae5ddec7 100644 --- a/src/views/bookingcabin/CabinManagement/index.vue +++ b/src/views/bookingcabin/CabinManagement/index.vue @@ -141,6 +141,7 @@ import { useMessage } from '../../../hooks/web/useMessage' const { createMessage } = useMessage() const optionsStore = useOptionsStore() const go = useGo() +const queryStr = ref({}) const [registerModal, { openModal }] = useModal() const [registerTable, { reload, setLoading, getForm, getSelectRows, setProps, setSelectedRowKeys }] = useTable({ title: '', @@ -189,6 +190,7 @@ const [registerTable, { reload, setLoading, getForm, getSelectRows, setProps, se }) }, beforeFetch: (p) => { + queryStr.value = formatParams(p) return formatParams(p) }, columns, @@ -396,7 +398,7 @@ function handleClickLable(index) { const loadingExport = ref(false) function handleSuport() { loadingExport.value = true - PrintOrder(getForm().getFieldsValue()).then(res => { + PrintOrder(queryStr.value).then(res => { if (res.succeeded) { // window.open( // ` ${process.env.VUE_APP_API_BASE_URL}/BookingOrder/downloadPrint?filename=${res.data}`, @@ -406,6 +408,8 @@ function handleSuport() { createMessage.error(res.message) } loadingExport.value = false + }).catch(()=>{ + loadingExport.value = false }) } diff --git a/src/views/system/CodeDataRuleTemplate/TenantAuditStepModal.vue b/src/views/system/CodeDataRuleTemplate/TenantAuditStepModal.vue index 962627b6..423a6422 100644 --- a/src/views/system/CodeDataRuleTemplate/TenantAuditStepModal.vue +++ b/src/views/system/CodeDataRuleTemplate/TenantAuditStepModal.vue @@ -3,7 +3,7 @@ @ok="handleSave"> -
权限规则
+
主表权限规则
本人 本部门 @@ -22,6 +22,10 @@ +
附加权限规则
+ + +