Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thinkApp
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
游洁
thinkApp
Commits
cab5cd30
Commit
cab5cd30
authored
May 30, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
0caab806
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
jobDetailsComponents.vue
src/components/index/scoreDetails/jobDetailsComponents.vue
+6
-3
jobDetails.vue
src/pages/index/jobDetails.vue
+9
-3
No files found.
src/components/index/scoreDetails/jobDetailsComponents.vue
View file @
cab5cd30
<
template
>
<view
class=
"jobDetailsComponents-box"
>
<view
class=
"jobDetailsComponents activeTwo flex"
v-for=
"(item,index) in dataList"
:key=
"index"
>
<view
class=
"jobDetailsComponents flex"
:class=
"item.Status==0?'activeThree':(tem.Status==1?'activeTwo':'activeOne')"
v-for=
"(item,index) in dataList"
:key=
"index"
>
<view
class=
"jobDetailsComponents-time-box flex"
>
<view
class=
"jobDetailsComponents-time flex"
>
<view>
{{
item
.
student_name
.
slice
(
0
,
1
)
}}
</view>
...
...
@@ -16,7 +18,7 @@
<view
class=
"operation-state flex"
>
<view
class=
"operation-state-img"
></view>
<view
class=
"operation-state-text"
>
{{
item
.
Status
==
0
?
'未
审批
'
:(
tem
.
Status
==
1
?
'已提交'
:
'已批阅'
)
}}
{{
item
.
Status
==
0
?
'未
提交
'
:(
tem
.
Status
==
1
?
'已提交'
:
'已批阅'
)
}}
</view>
</view>
<view
class=
"operation-name"
>
{{
item
.
add_time
}}
</view>
...
...
@@ -24,7 +26,7 @@
<view
class=
"jobDetailsComponents-right flex"
>
<view
class=
"homework-score flex"
>
<view
class=
"homework-score-title"
>
得分
<text>
{{
item
.
score
}}
}
</text>
分
得分
<text>
{{
item
.
score
}}
</text>
分
</view>
</view>
<view
class=
"homework-score flex"
>
...
...
@@ -63,6 +65,7 @@
showLogin
:
true
,
//多次点击
dataList
:
props
.
dataList
});
console
.
log
(
props
.
dataList
)
let
methods
=
{
}
...
...
src/pages/index/jobDetails.vue
View file @
cab5cd30
...
...
@@ -32,12 +32,15 @@
</view>
</view>
<view
class=
"index-student-information"
>
<jobDetailsComponents
:dataList=
"dataList"
></jobDetailsComponents>
<van-empty
description=
"暂无数据"
v-if=
"dataList.length === 0"
/>
<jobDetailsComponents
v-if=
"dataList.length>0"
:dataList=
"dataList"
></jobDetailsComponents>
</view>
<Loadmore
:state=
"pageState"
/>
</view>
</view>
</
template
>
<
script
>
import
Loadmore
from
"@/components/loadmore.vue"
;
import
jobDetailsComponents
from
'@/components/index/scoreDetails/jobDetailsComponents'
import
{
reactive
,
...
...
@@ -52,7 +55,8 @@
},
components
:
{
jobDetailsComponents
jobDetailsComponents
,
Loadmore
},
setup
()
{
let
{
...
...
@@ -67,7 +71,8 @@
showLogin
:
true
,
//多次点击
HomeWorkId
:
''
,
jobDetails
:
{},
dataList
:[]
dataList
:[],
pageState
:
'more'
});
let
methods
=
{
back
(){
...
...
@@ -81,6 +86,7 @@
if
(
res
){
data
.
jobDetails
=
res
.
Data
data
.
dataList
=
res
.
Data
.
DataList
;
data
.
pageState
=
"none"
;
}
})
},
...
...
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