Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
_milo
Great Teamwork
提交
4a3ac424
Great Teamwork
项目概览
_milo
/
Great Teamwork
通知
13
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Great Teamwork
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
4a3ac424
编写于
5月 25, 2023
作者:
0
052004122温宸杰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
后台管理系统优化
上级
e587be01
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
76 addition
and
22 deletion
+76
-22
alpha/admin/js_sdk/validator/mustgo-running-record.js
alpha/admin/js_sdk/validator/mustgo-running-record.js
+1
-1
alpha/admin/pages/content/mustgo-record/running/edit.vue
alpha/admin/pages/content/mustgo-record/running/edit.vue
+25
-10
alpha/admin/pages/content/mustgo-record/walking/edit.vue
alpha/admin/pages/content/mustgo-record/walking/edit.vue
+20
-6
alpha/admin/pages/content/mustgo-user/edit.vue
alpha/admin/pages/content/mustgo-user/edit.vue
+2
-2
alpha/admin/uniCloud-aliyun/cloudfunctions/fe-team-leaveTeam/index.js
...uniCloud-aliyun/cloudfunctions/fe-team-leaveTeam/index.js
+28
-3
未找到文件。
alpha/admin/js_sdk/validator/mustgo-running-record.js
浏览文件 @
4a3ac424
...
...
@@ -5,7 +5,7 @@ const validator = {
"
start_date
"
:
{
"
rules
"
:
[
{
"
format
"
:
"
string
"
"
format
"
:
"
datetime
"
}
],
"
title
"
:
"
开始时间
"
,
...
...
alpha/admin/pages/content/mustgo-record/running/edit.vue
浏览文件 @
4a3ac424
...
...
@@ -2,22 +2,30 @@
<view
class=
"uni-container"
>
<uni-forms
ref=
"form"
:model=
"formData"
validateTrigger=
"bind"
>
<uni-forms-item
name=
"start_date"
label=
"开始时间"
>
<uni-easyinput
placeholder=
"运动开始时间"
v-model=
"formData.start_date"
></uni-easyinput>
<uni-datetime-picker
type=
"datetime"
v-model=
"formData.start_date"
/>
</uni-forms-item>
<uni-forms-item
name=
"duration"
label=
"持续时间"
>
<uni-easyinput
placeholder=
"运动持续时间"
type=
"number"
v-model=
"formData.duration"
></uni-easyinput>
<!--
<uni-easyinput
placeholder=
"运动持续时间"
type=
"number"
v-model=
"formData.duration"
></uni-easyinput>
-->
<uni-number-box
:value=
"0"
:step=
"1"
max=
"100000"
value=
"100000"
v-model=
"formData.duration"
/>
</uni-forms-item>
<uni-forms-item
name=
"feelings"
label=
"感受"
>
<uni-easyinput
placeholder=
"运动感受(good/normal/bad)"
v-model=
"formData.feelings"
/>
<uni-data-select
v-model=
"formData.feelings"
:localdata=
"feelings"
>
</uni-data-select>
</uni-forms-item>
<uni-forms-item
name=
"owner_id"
label=
"用户
id
"
>
<uni-easyinput
placeholder=
"用户id"
v-model=
"formData.owner_id"
></uni-easyinput>
<uni-forms-item
name=
"owner_id"
label=
"用户
名
"
>
<uni-easyinput
placeholder=
"用户id"
v-model=
"formData.owner_id"
disabled
></uni-easyinput>
</uni-forms-item>
<uni-forms-item
name=
"distance"
label=
"距离"
>
<uni-easyinput
placeholder=
"运动距离"
type=
"number"
v-model=
"formData.distance"
></uni-easyinput>
<!--
<uni-easyinput
placeholder=
"运动距离"
type=
"number"
v-model=
"formData.distance"
></uni-easyinput>
-->
<uni-number-box
:value=
"0.0"
:step=
"0.01"
max=
"100000.00"
value=
"100000.00"
v-model=
"formData.distance"
/>
</uni-forms-item>
<uni-forms-item
name=
"pace"
label=
"配速"
>
<uni-easyinput
placeholder=
"运动配速"
type=
"number"
v-model=
"formData.pace"
></uni-easyinput>
<!--
<uni-easyinput
placeholder=
"运动配速"
type=
"number"
v-model=
"formData.pace"
></uni-easyinput>
-->
<uni-number-box
:value=
"0.0"
:step=
"0.01"
max=
"100000.00"
value=
"100000.00"
v-model=
"formData.pace"
/>
</uni-forms-item>
<!--
<uni-forms-item
name=
"path_line"
label=
"路线"
>
<uni-data-checkbox
:multiple=
"true"
v-model=
"formData.path_line"
></uni-data-checkbox>
...
...
@@ -74,15 +82,22 @@
formData
,
formOptions
:
{},
feelings
:
[
"
good
"
,
"
normal
"
,
"
bad
"
{
value
:
'
good
'
,
text
:
'
good
'
}
,
{
value
:
'
normal
'
,
text
:
'
normal
'
}
,
{
value
:
'
bad
'
,
text
:
'
bad
'
},
],
rules
:
{
...
getValidator
(
Object
.
keys
(
formData
))
}
}
},
methods
:
{
change
(
e
)
{
console
.
log
(
"
e:
"
,
e
);
}
},
onLoad
(
e
)
{
if
(
e
.
id
)
{
const
id
=
e
.
id
...
...
alpha/admin/pages/content/mustgo-record/walking/edit.vue
浏览文件 @
4a3ac424
...
...
@@ -2,22 +2,31 @@
<view
class=
"uni-container"
>
<uni-forms
ref=
"form"
:model=
"formData"
validateTrigger=
"bind"
>
<uni-forms-item
name=
"start_date"
label=
"开始时间"
>
<uni-easyinput
placeholder=
"运动开始时间"
v-model=
"formData.start_date"
></uni-easyinput>
<!--
<uni-easyinput
placeholder=
"运动开始时间"
v-model=
"formData.start_date"
></uni-easyinput>
-->
<uni-datetime-picker
type=
"datetime"
v-model=
"formData.start_date"
/>
</uni-forms-item>
<uni-forms-item
name=
"duration"
label=
"持续时间"
>
<uni-easyinput
placeholder=
"运动持续时间"
type=
"number"
v-model=
"formData.duration"
></uni-easyinput>
<!--
<uni-easyinput
placeholder=
"运动持续时间"
type=
"number"
v-model=
"formData.duration"
></uni-easyinput>
-->
<uni-number-box
:value=
"0"
:step=
"1"
max=
"100000"
value=
"100000"
v-model=
"formData.duration"
/>
</uni-forms-item>
<uni-forms-item
name=
"feelings"
label=
"感受"
>
<uni-easyinput
placeholder=
"运动感受(good/normal/bad)"
v-model=
"formData.feelings"
></uni-easyinput>
<uni-data-select
v-model=
"formData.feelings"
:localdata=
"feelings"
>
</uni-data-select>
</uni-forms-item>
<uni-forms-item
name=
"owner_id"
label=
"用户id"
>
<uni-easyinput
placeholder=
"用户id"
v-model=
"formData.owner_id"
></uni-easyinput>
<uni-easyinput
placeholder=
"用户id"
v-model=
"formData.owner_id"
disabled
></uni-easyinput>
</uni-forms-item>
<uni-forms-item
name=
"distance"
label=
"距离"
>
<uni-easyinput
placeholder=
"运动距离"
type=
"number"
v-model=
"formData.distance"
></uni-easyinput>
<!--
<uni-easyinput
placeholder=
"运动距离"
type=
"number"
v-model=
"formData.distance"
></uni-easyinput>
-->
<uni-number-box
:value=
"0.0"
:step=
"0.01"
max=
"100000.00"
value=
"100000.00"
v-model=
"formData.distance"
/>
</uni-forms-item>
<uni-forms-item
name=
"pace"
label=
"配速"
>
<uni-easyinput
placeholder=
"运动配速"
type=
"number"
v-model=
"formData.pace"
></uni-easyinput>
<!--
<uni-easyinput
placeholder=
"运动配速"
type=
"number"
v-model=
"formData.pace"
></uni-easyinput>
-->
<uni-number-box
:value=
"0.0"
:step=
"0.01"
max=
"100000.00"
value=
"100000.00"
v-model=
"formData.pace"
/>
</uni-forms-item>
<!--
<uni-forms-item
name=
"start_point"
label=
"起始地点"
>
<undefined
v-model=
"formData.start_point"
></undefined>
...
...
@@ -73,6 +82,11 @@
return
{
formData
,
formOptions
:
{},
feelings
:
[
{
value
:
'
good
'
,
text
:
'
good
'
},
{
value
:
'
normal
'
,
text
:
'
normal
'
},
{
value
:
'
bad
'
,
text
:
'
bad
'
},
],
rules
:
{
...
getValidator
(
Object
.
keys
(
formData
))
}
...
...
alpha/admin/pages/content/mustgo-user/edit.vue
浏览文件 @
4a3ac424
...
...
@@ -28,11 +28,11 @@
<!--
<uni-easyinput
v-model=
"formData.type"
></uni-easyinput>
-->
</uni-forms-item>
<uni-forms-item
name=
"total_running_distance"
label=
"跑步总距离"
>
<uni-number-box
:value=
"0.0"
:step=
"0.1"
v-model=
"formData.total_running_distance"
/>
<uni-number-box
:value=
"0.0"
:step=
"0.
0
1"
v-model=
"formData.total_running_distance"
/>
<!--
<uni-easyinput
type=
"number"
v-model=
"formData.total_running_distance"
></uni-easyinput>
-->
</uni-forms-item>
<uni-forms-item
name=
"total_walking_distance"
label=
"健走总距离"
>
<uni-number-box
:value=
"0.0"
:step=
"0.1"
v-model=
"formData.total_walking_distance"
/>
<uni-number-box
:value=
"0.0"
:step=
"0.
0
1"
v-model=
"formData.total_walking_distance"
/>
<!--
<uni-easyinput
type=
"number"
v-model=
"formData.total_walking_distance"
></uni-easyinput>
-->
</uni-forms-item>
<view
class=
"uni-button-group"
>
...
...
alpha/admin/uniCloud-aliyun/cloudfunctions/fe-team-leaveTeam/index.js
浏览文件 @
4a3ac424
...
...
@@ -17,7 +17,7 @@ exports.main = async (event, context) => {
if
(
res1
.
affectedDocs
==
1
)
{
teamid
=
res1
.
data
[
0
][
"
team_id
"
]
}
if
(
teamid
==
""
)
{
if
(
teamid
==
""
)
{
return
{
"
code
"
:
400
,
"
message
"
:
"
退出小队失败
"
,
...
...
@@ -31,10 +31,35 @@ exports.main = async (event, context) => {
}).
get
()
if
(
res
.
affectedDocs
==
1
)
{
let
tmp
=
await
collection
.
where
({
team_id
:
teamid
}).
get
()
if
(
tmp
.
affectedDocs
==
1
)
{
const
collection1
=
db
.
collection
(
'
mustgo-team
'
)
const
res1
=
await
collection1
.
doc
(
teamid
).
remove
()
}
const
res
=
await
collection
.
doc
(
event
.
userId
).
update
({
team_id
:
""
})
if
(
res
.
updated
===
1
)
{
const
activity
=
db
.
collection
(
'
mustgo-team-activity
'
)
let
res2
=
await
activity
.
where
({
team_id
:
teamid
}).
get
()
var
arr
=
new
Array
;
arr
=
res2
.
data
const
registration
=
db
.
collection
(
'
mustgo-registration
'
)
for
(
var
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
const
tmp
=
await
registration
.
where
({
team_activity_id
:
arr
[
i
][
"
_id
"
]
}).
remove
()
// doc(`${id}`).update({team_activity_id:{name:dbCmd.remove()}})
}
return
{
"
code
"
:
200
,
"
message
"
:
"
退出小队成功
"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录