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 |   35 ++++++++++++++++++++++++++++++++---
 1 files changed, 32 insertions(+), 3 deletions(-)

diff --git a/src/views/EnterpriseManage/components/WechatConfigureView.vue b/src/views/EnterpriseManage/components/WechatConfigureView.vue
index 24c7f4d..e2fd7b3 100644
--- a/src/views/EnterpriseManage/components/WechatConfigureView.vue
+++ b/src/views/EnterpriseManage/components/WechatConfigureView.vue
@@ -1,6 +1,6 @@
 <template>
   <LoadingLayout :loading="isLoading">
-    <ProForm :model="form" ref="dialogForm" label-width="120px">
+    <ProForm :model="form" ref="dialogForm" label-width="130px">
       <ProFormItemV2
         label="鑱旂郴浜哄鍚�:"
         prop="name"
@@ -14,6 +14,23 @@
         :checkRules="[{ message: '璇烽�夋嫨鑱旂郴浜虹被鍨�' }]"
       >
         <ProFormRadio v-model.trim="form.name" :value-enum="[]" button-style />
+      </ProFormItemV2>
+      <ProFormItemV2
+        label="涓氬姟鍔炵悊鎺堟潈鍑�:"
+        prop="url"
+        :check-rules="[{ type: 'upload', message: '璇蜂笂浼犱笟鍔″姙鐞嗘巿鏉冨嚱' }]"
+      >
+        <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="鎵嬫満鍙�:"
@@ -38,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="瀹㈡湇鐢佃瘽:"
@@ -112,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',
@@ -167,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