From 307e714ec9f85bae11ed892cb90e199a341b6be3 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期三, 06 八月 2025 11:06:13 +0800 Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/flexJobAdminBClient --- src/views/FlexJobManage/FlexJobManage.vue | 39 ++++++++++++++++++++++++++++++++++++++- 1 files changed, 38 insertions(+), 1 deletions(-) diff --git a/src/views/FlexJobManage/FlexJobManage.vue b/src/views/FlexJobManage/FlexJobManage.vue index 9bc6e6c..9661fc8 100644 --- a/src/views/FlexJobManage/FlexJobManage.vue +++ b/src/views/FlexJobManage/FlexJobManage.vue @@ -100,6 +100,9 @@ :operationBtns="operationBtns" show-column-check ref="proTable" + :table-props="{ + rowKey: 'id', + }" > </ProTableV2> </AppContainer> @@ -108,6 +111,7 @@ v-bind="dialogBatchImportProps" @onDownloadTemplate="handleDownloadTemplate" /> + <SendShotMessageDialog v-bind="dialogShotMessageProps" /> </LoadingLayout> </template> @@ -134,6 +138,7 @@ import { convertApi2FormUrlOnlyOne, downloadFileByUrl } from '@/utils'; import StaffInfoDialog from './components/StaffInfoDialog.vue'; import BatchImportDialog from './components/BatchImportDialog.vue'; +import SendShotMessageDialog from './components/SendShotMessageDialog.vue'; defineOptions({ name: 'EnterpriseManageList', @@ -326,12 +331,44 @@ async function handleBatchImport() {} +const { + dialogProps: dialogShotMessageProps, + handleAdd: handleShotMessageAdd, + editForm: editShotMessageForm, +} = useFormDialog({ + onConfirm: sendMessageForSign, + defaultFormParams: { + ids: [] as string[], + customerId: '', + name: '', + }, +}); + +async function handleSendShotMessage() { + try { + const selectionRows = getSelectionRows(); + if (selectionRows) { + if (selectionRows.some((x) => x.status === 10)) { + await Message.tipMessage('鍕鹃�変汉鍛樹腑鍖呭惈宸茬绾﹀畬鎴愪汉鍛橈紝纭瑕佺户缁彂閫佺煭淇¢�氱煡鍚楋紵'); + } + handleShotMessageAdd({ + ids: selectionRows.map((x) => x.id), + name: '浜哄憳绛剧害閫氶亾鐭俊', + }); + } + } catch (error) {} +} + +async function sendMessageForSign() { + try { + } catch (error) {} +} + function handleDownloadTemplate() { downloadFileByUrl('', '鎵归噺瀵煎叆妯℃澘'); } function handleBatchUnSign() {} -function handleSendShotMessage() {} function handleSign(row) {} function handleBatchSign() {} -- Gitblit v1.9.1