From 87d2624b624ec995cad717c04281f75bb9102651 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期五, 26 九月 2025 15:29:56 +0800 Subject: [PATCH] fix: bug --- src/views/EnterpriseManage/components/WechatConfigureView.vue | 33 +++++++++++++++++++++++++-------- 1 files changed, 25 insertions(+), 8 deletions(-) diff --git a/src/views/EnterpriseManage/components/WechatConfigureView.vue b/src/views/EnterpriseManage/components/WechatConfigureView.vue index fa88b85..e2fd7b3 100644 --- a/src/views/EnterpriseManage/components/WechatConfigureView.vue +++ b/src/views/EnterpriseManage/components/WechatConfigureView.vue @@ -20,12 +20,17 @@ prop="url" :check-rules="[{ type: 'upload', message: '璇蜂笂浼犱笟鍔″姙鐞嗘巿鏉冨嚱' }]" > - <ProFormUpload - v-model:file-url="form.url" - :limit="1" - :limitFileSize="10" - accept="png,jpg,jpeg,pdf" - ></ProFormUpload> + <div style="display: flex"> + <ProFormUpload + v-model:file-url="form.url" + :limit="1" + :limitFileSize="10" + accept="png,jpg,jpeg,pdf" + ></ProFormUpload> + <el-button style="margin-left: 10px" type="primary" link @click="downloadTemplate" + >妯℃澘涓嬭浇</el-button + > + </div> </ProFormItemV2> <ProFormItemV2 label="鎵嬫満鍙�:" @@ -50,7 +55,12 @@ prop="name" :checkRules="[{ type: 'phone', message: '璇疯緭鍏ュ晢鎴风畝绉�' }]" > - <ProFormText :maxlength="64" v-model.trim="form.name" placeholder="璇疯緭鍏ュ晢鎴风畝绉�" /> + <ProFormText + :maxlength="64" + show-word-limit + v-model.trim="form.name" + placeholder="璇疯緭鍏ュ晢鎴风畝绉�" + /> </ProFormItemV2> <ProFormItemV2 label="瀹㈡湇鐢佃瘽:" @@ -124,7 +134,7 @@ } from '@bole-core/components'; import * as enterpriseWalletServices from '@/services/api/enterpriseWallet'; import { useQuery } from '@tanstack/vue-query'; -import { convertWalletApiToFiles, convertWalletFilesToApi } from '@/utils'; +import { convertWalletApiToFiles, convertWalletFilesToApi, downloadFileByUrl } from '@/utils'; defineOptions({ name: 'WechatConfigureView', @@ -179,6 +189,13 @@ } catch (error) {} } +function downloadTemplate() { + downloadFileByUrl( + 'https://parkmanagement.oss-cn-hangzhou.aliyuncs.com/FlexJob/temp/%E4%B8%9A%E5%8A%A1%E5%8A%9E%E7%90%86%E6%8E%88%E6%9D%83%E5%87%BD.png', + '涓氬姟鍔炵悊鎺堟潈鍑�' + ); +} + defineExpose({ onConfirm: enterpriseWalletExpandindirectCreate, }); -- Gitblit v1.9.1