Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zc-qiyewx-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨勇飞
zc-qiyewx-app
Commits
e22387ef
Commit
e22387ef
authored
Feb 13, 2025
by
杨勇飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整table
parent
d56b76a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
14 deletions
+37
-14
index.vue
pages/index/index.vue
+37
-14
No files found.
pages/index/index.vue
View file @
e22387ef
...
...
@@ -178,15 +178,29 @@
<!-- 项目运营表格 -->
<view
class=
"table-container"
>
<text
class=
"table-title"
>
项目运营情况
</text>
<uni-table
:data=
"currentData.tableData"
border
stripe
emptyText=
"暂无数据"
>
<uni-tr>
<uni-th
align=
"center"
>
项目
</uni-th>
<uni-th
align=
"center"
>
区域
</uni-th>
<uni-th
align=
"center"
>
销售额
</uni-th>
<uni-th
align=
"center"
>
增长率
</uni-th>
</uni-tr>
</uni-table>
<text
class=
"table-title"
>
模拟老板运营情况
</text>
<view
class=
"table-scroll"
>
<uni-table
:data=
"currentData.tableData"
border
stripe
:loading=
"loading"
emptyText=
"暂无数据"
>
<uni-tr>
<uni-th
align=
"center"
width=
"80"
>
模拟老板
</uni-th>
<uni-th
align=
"center"
width=
"50"
>
区域
</uni-th>
<uni-th
align=
"center"
width=
"50"
>
销售额
</uni-th>
<uni-th
align=
"center"
width=
"50"
>
增长率
</uni-th>
</uni-tr>
<uni-tr
v-for=
"(item, index) in currentData.tableData"
:key=
"index"
>
<uni-td>
{{
item
.
project
}}
</uni-td>
<uni-td>
{{
item
.
area
}}
</uni-td>
<uni-td>
{{
item
.
sales
}}
</uni-td>
<uni-td>
{{
item
.
growth
}}
</uni-td>
</uni-tr>
</uni-table>
</view>
</view>
</view>
</
template
>
...
...
@@ -201,7 +215,7 @@ import { uniIcons } from '@dcloudio/uni-ui'
},
data
()
{
return
{
loading
:
fals
e
,
loading
:
tru
e
,
activeTime
:
'today'
,
myChart
:
null
,
sortType
:
'receivable'
,
...
...
@@ -374,6 +388,9 @@ import { uniIcons } from '@dcloudio/uni-ui'
mounted
()
{
this
.
initChart
()
this
.
$nextTick
(()
=>
{
if
(
this
.
currentData
.
tableData
&&
this
.
currentData
.
tableData
.
length
>
0
)
{
this
.
loading
=
false
}
this
.
sortChart
(
'receivable'
)
window
.
addEventListener
(
'resize'
,
this
.
onResize
)
})
...
...
@@ -1015,20 +1032,26 @@ import { uniIcons } from '@dcloudio/uni-ui'
}
.table-container
{
display
:
block
;
background-color
:
#fff
;
padding
:
15px
;
border-radius
:
8px
;
overflow-x
:
hidden
;
.table-title
{
display
:
block
;
font-size
:
16px
;
font-weight
:
bold
;
color
:
#333
;
margin-bottom
:
12px
;
padding
:
15px
15px
0px
15px
;
}
uni-th
,
uni-td
{
padding
:
12px
!
important
;
text-align
:
center
!
important
;
.table-scroll
{
display
:
block
;
width
:
100%
;
overflow-x
:
auto
;
-webkit-overflow-scrolling
:
touch
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment