From 8dcca60350b78759d50473cbe1b36e6228711b75 Mon Sep 17 00:00:00 2001
From: WindowBird <13870814+windows-bird@user.noreply.gitee.com>
Date: Tue, 18 Nov 2025 14:32:15 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=89=E6=8B=A9=E6=88=90?=
=?UTF-8?q?=E5=91=98=E5=88=97=E8=A1=A8=E6=97=A0=E6=B3=95=E6=BB=9A=E5=8A=A8?=
=?UTF-8?q?=E7=9A=84=E5=BC=82=E5=B8=B8=EF=BC=8C=E4=BF=AE=E6=AD=A3=E4=BB=BB?=
=?UTF-8?q?=E5=8A=A1=E5=A7=93=E5=90=8D=E4=B8=BAnickname?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/project/form/index.vue | 82 ++++++++++++++++++++----------------
utils/request/index.js | 2 +-
2 files changed, 47 insertions(+), 37 deletions(-)
diff --git a/pages/project/form/index.vue b/pages/project/form/index.vue
index 86cb32f..c26d017 100644
--- a/pages/project/form/index.vue
+++ b/pages/project/form/index.vue
@@ -18,7 +18,7 @@
加载中...
-
+
基本信息
@@ -153,44 +153,46 @@
角色
操作
-
- {{ index + 1 }}
-
- {{ member.userName || '未命名' }}
+
+
+ {{ index + 1 }}
+
+ {{ member.userName || '未命名' }}
+
+
+
+
+
+
+ 删除
+
-
-
-
+
+ 请点击「选择成员」添加项目成员
-
- 删除
-
-
-
- 请点击「选择成员」添加项目成员
-
+
-
+
{
const res = await getUserList({ pageSize: 200 });
memberOptions.value = (res.rows || res.data || res.list || []).map((item) => ({
userId: String(item.userId || item.id),
- userName: item.userName || item.nickName || '',
+ userName: item.nickName || '',
deptName: item.deptName || item.dept?.deptName || '',
avatar: item.avatar || item.userAvatar || ''
}));
@@ -869,6 +871,14 @@ const formatDate = (timestamp) => {
border-radius: 12px;
border: 1px solid #f0f0f0;
overflow: hidden;
+ display: flex;
+ flex-direction: column;
+}
+
+.member-scroll {
+ max-height: 400rpx;
+ min-height: 80rpx;
+ overflow-y: auto;
}
.member-row {
@@ -1023,7 +1033,7 @@ const formatDate = (timestamp) => {
}
.member-list {
- flex: 1;
+ height: 600px;
}
.member-item {
diff --git a/utils/request/index.js b/utils/request/index.js
index 814ab9f..f97b9cc 100644
--- a/utils/request/index.js
+++ b/utils/request/index.js
@@ -10,7 +10,7 @@ export const Request = () => {
// 初始化请求配置
uni.$uv.http.setConfig((config) => {
/* config 为默认全局配置*/
- config.baseURL = 'http://192.168.1.9:4001'; /* 根域名 */
+ config.baseURL = 'http://192.168.1.4:4001'; /* 根域名 */
// config.baseURL = 'https://pm.ccttiot.com/prod-api'; /* 根域名 */
return config
})