Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
ndr
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘旭
ndr
Commits
c5560ab1
提交
c5560ab1
authored
3月 24, 2023
作者:
刘旭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化界面
上级
54d903d1
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
48 行增加
和
50 行删除
+48
-50
pages.json
src/pages.json
+2
-2
formList.vue
src/pages/index/components/formList.vue
+0
-0
index.vue
src/pages/index/index.vue
+1
-1
index.vue
src/pages/query/index.vue
+45
-47
没有找到文件。
src/pages.json
浏览文件 @
c5560ab1
...
...
@@ -3,13 +3,13 @@
{
"path"
:
"pages/index/index"
,
"style"
:
{
"navigationBarTitleText"
:
"
NDT Bot
"
"navigationBarTitleText"
:
"
项目登记
"
}
},
{
"path"
:
"pages/query/index"
,
"style"
:
{
"navigationBarTitleText"
:
"
查询
记录"
"navigationBarTitleText"
:
"
项目
记录"
}
},
{
...
...
src/pages/index/components/formList.vue
浏览文件 @
c5560ab1
src/pages/index/index.vue
浏览文件 @
c5560ab1
<
template
>
<view
class=
"queryRecords"
@
tap=
"toQueryPage"
><text>
登记记录
</text></view>
<view
class=
"queryRecords"
@
tap=
"toQueryPage"
><text>
项目工时登记
</text></view>
<view
class=
"container"
>
<view
class=
"header"
>
<text
class=
"title"
>
登记项目工时
</text>
...
...
src/pages/query/index.vue
浏览文件 @
c5560ab1
<
template
>
<view
class=
'query-container'
>
<view
class=
"query-list"
>
<uni-collapse>
<uni-collapse-item
v-for=
"(item, index) in list"
:key=
"item.FID"
:open=
"false"
:border=
"index === list.length - 1 ? false : true"
show-animation
:title-border=
"index === list.length - 1 ? 'none' : 'auto'"
>
<template
#
title
>
<view
class=
"header"
>
<view
class=
"title"
>
{{
item
.
F_LQKJ_FNAME
}}
</view>
<view
v-if=
"item.F_LQKJ_BILLSTATUS != 'C'"
class=
"button"
@
tap
.
stop=
"edit(item)"
>
修改
</view>
</view>
</
template
>
<view
class=
"card"
v-for=
"(item, index) in list"
:key=
"item.FID"
>
<view
class=
"query-item"
>
<view
class=
"item"
>
<text>
项目编号
:
</text>
<text>
{{ item.F_LQKJ_FITEM
}}
</text>
<text>
项目名称
:
</text>
<text>
{{
item
.
FNAME
}}
</text>
</view>
<view
class=
"item"
>
<text>
工时:
</text>
<text>
{{
item
.
F_LQKJ_WORKTIME
}}
</text>
</view>
<view
class=
"item"
>
<text>
创建时间:
</text>
<!-- <text>{{ item.F_LQKJ_DATE2 }}</text> -->
<uni-dateformat
:date=
"item.F_LQKJ_DATE2"
></uni-dateformat>
<text>
登记时间:
</text>
<uni-dateformat
:date=
"item.F_LQKJ_DATE2"
format=
"yyyy/MM/dd"
></uni-dateformat>
</view>
<view
class=
"item"
>
<text>
审核状态:
</text>
<uni-tag
v-if=
"item.F_LQKJ_BILLSTATUS == 'C'"
text=
"已审核"
type=
"success"
size=
"small"
:circle=
"true"
/>
<uni-tag
v-if=
"item.F_LQKJ_BILLSTATUS == 'C'"
text=
"已审核"
type=
"success"
size=
"small"
:circle=
"true"
/>
<uni-tag
v-else
text=
"未审核"
size=
"small"
:circle=
"true"
/>
</view>
</view>
</uni-collapse-item>
</uni-collapse>
<view
class=
"line"
/>
<view
class=
"footer"
>
<view
v-if=
"item.F_LQKJ_BILLSTATUS != 'C'"
class=
"button"
@
tap
.
stop=
"edit(item)"
>
修改
</view>
</view>
</view>
</
template
>
...
...
@@ -78,22 +64,47 @@ const edit = (row: number) => {
</
script
>
<
style
lang=
"scss"
scoped
>
.query-container
{
padding
:
20rpx
;
}
.card
{
box-sizing
:
border-box
;
margin
:
16rpx
;
padding
:
10rpx
0
;
border-radius
:
8rpx
;
border
:
1px
solid
#e4e7ed
;
background-color
:
#ffffff
;
overflow
:
hidden
;
color
:
#303133
;
transition
:
.3s
;
box-shadow
:
0px
0px
12px
rgba
(
0
,
0
,
0
,
.05
);
.query-list
{
border
:
1rpx
solid
rgba
(
204
,
204
,
204
,
0
.797
);
border-radius
:
6rpx
;
padding
:
6rpx
;
.query-item
{
padding
:
0
30rpx
20rpx
;
font-size
:
28rpx
;
.item
{
padding
:
10rpx
0
;
}
&
.item
:last-child
{
padding
:
0
;
}
}
.line
{
border-bottom
:
1px
solid
#ddd
;
width
:
100%
;
transform
:
scaleY
(
0
.5
);
}
.header
{
.footer
{
box-sizing
:
border-box
;
padding
:
10rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
padding
:
16rpx
;
justify-content
:
flex-end
;
width
:
100%
;
.button
{
width
:
60rpx
;
text-align
:
center
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
.2
);
border-radius
:
6rpx
;
padding
:
6rpx
20rpx
;
...
...
@@ -103,17 +114,5 @@ const edit = (row: number) => {
color
:
#fff
;
}
}
:deep
(
.uni-button
:after
)
{
height
:
20px
;
}
.query-item
{
padding
:
0
30rpx
30rpx
;
.item
{
padding
:
10rpx
0
;
}
}
}
</
style
>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论