Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
67cf57ea
提交
67cf57ea
authored
5月 16, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(mobile/plan): 已删除添加灰色背景色_不能长按和左滑
同上
上级
8711424e
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
14 行增加
和
1 行删除
+14
-1
index.js
src/hooks/promotion/index.js
+3
-0
index.vue
src/mobile/views/promotion/plan/index/index.vue
+6
-1
planSearch.vue
src/mobile/views/promotion/plan/index/planSearch.vue
+5
-0
没有找到文件。
src/hooks/promotion/index.js
浏览文件 @
67cf57ea
...
@@ -4,8 +4,10 @@
...
@@ -4,8 +4,10 @@
* @returns boolean true 可编辑/删除,false 不可编辑/删除
* @returns boolean true 可编辑/删除,false 不可编辑/删除
*/
*/
export
const
checkPlanExpire
=
(
row
)
=>
{
export
const
checkPlanExpire
=
(
row
)
=>
{
// 1. 计划日期已经 1 小时后,不可编辑/删除
const
date
=
new
Date
()
const
date
=
new
Date
()
const
rowDate
=
new
Date
(
row
.
clockInTime
)
const
rowDate
=
new
Date
(
row
.
clockInTime
)
rowDate
.
setHours
(
rowDate
.
getHours
()
+
1
)
rowDate
.
setHours
(
rowDate
.
getHours
()
+
1
)
// 2. 计划状态已经开始了,不可编辑/删除
return
!
(
rowDate
<
date
||
row
.
planStatus
===
1
)
return
!
(
rowDate
<
date
||
row
.
planStatus
===
1
)
}
}
\ No newline at end of file
src/mobile/views/promotion/plan/index/index.vue
浏览文件 @
67cf57ea
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
v-model=
"item.checked"
v-model=
"item.checked"
shape=
"square"
/>
shape=
"square"
/>
<van-cell
:title=
"item.storeName"
<van-cell
:title=
"item.storeName"
:class=
"
{'plan-deleted': query.isDeleted}"
@click="clickDetail(item)">
@click="clickDetail(item)">
<template
#
label
>
<template
#
label
>
<p
class=
"employee"
>
{{
item
.
employeeName
}}
</p>
<p
class=
"employee"
>
{{
item
.
employeeName
}}
</p>
...
@@ -38,7 +39,7 @@
...
@@ -38,7 +39,7 @@
<
/template
>
<
/template
>
<
/van-cell
>
<
/van-cell
>
<
template
#
right
<
template
#
right
v
-
if
=
"!showSelect"
>
v
-
if
=
"!showSelect
&& !query.isDeleted
"
>
<
van
-
button
square
<
van
-
button
square
type
=
"success"
type
=
"success"
text
=
"编辑"
text
=
"编辑"
...
@@ -226,6 +227,7 @@ onMounted(async () => {
...
@@ -226,6 +227,7 @@ onMounted(async () => {
// 长按出现全选功能
// 长按出现全选功能
const
showSelect
=
ref
(
false
)
const
showSelect
=
ref
(
false
)
const
onLongPress
=
()
=>
{
const
onLongPress
=
()
=>
{
if
(
query
.
isDeleted
)
return
// 已删除
showSelect
.
value
=
true
showSelect
.
value
=
true
}
}
...
@@ -349,6 +351,9 @@ onUnmounted(() => {
...
@@ -349,6 +351,9 @@ onUnmounted(() => {
}
}
.
van
-
cell
{
.
van
-
cell
{
&
.
plan
-
deleted
{
background
-
color
:
rgb
(
235
,
235
,
235
);
}
.
van
-
cell__label
{
.
van
-
cell__label
{
font
-
size
:
14
px
!
important
;
font
-
size
:
14
px
!
important
;
...
...
src/mobile/views/promotion/plan/index/planSearch.vue
浏览文件 @
67cf57ea
...
@@ -220,6 +220,11 @@ defineExpose({
...
@@ -220,6 +220,11 @@ defineExpose({
width
:
60%
;
width
:
60%
;
}
}
/* 计划状态 */
.van-radio
:nth-child
(
n
+
2
)
{
margin-top
:
20px
;
}
.reset-btn
{
.reset-btn
{
margin-top
:
20px
;
margin-top
:
20px
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论