Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2fa8de2c
authored
Jul 19, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat 对练功能开发
1 parent
bb34e5f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
22 deletions
src/views/residentManage/exercise/detail.vue
src/views/residentManage/exercise/exerciseRecord.vue
src/views/residentManage/exercise/detail.vue
View file @
2fa8de2
...
...
@@ -110,7 +110,7 @@ export default {
return
{
scenarioType
,
activeName
:
"all"
,
searchForm
:
{},
searchForm
:
{
sparringStatus
:
1
},
showFormData
:
[
{
label
:
"手机号"
,
...
...
@@ -133,7 +133,7 @@ export default {
],
// table 相关
getListApi
:
getTaskStaffList
,
searchFormSearch
:
{},
searchFormSearch
:
{
sparringStatus
:
1
},
tableParams
:
{
listName
:
"list"
,
tableOption
:
true
,
...
...
@@ -230,7 +230,8 @@ export default {
)
delete
params
.
completionTime
}
params
.
sparringStatus
=
activeName
!=
"all"
?
activeName
:
""
// params.sparringStatus = activeName != "all" ? activeName : ""
params
.
sparringStatus
=
1
return
params
},
beforeSearchFn
()
{
...
...
@@ -275,7 +276,8 @@ export default {
// 导出
handleExport
()
{
var
params
=
this
.
getParams
()
params
.
method
=
"dj.api.smartcarlife.ai.sparring.task.staff.list.export"
params
.
method
=
"dj.api.smartcarlife.ai.sparring.task.staff.record.list.export"
const
list
=
[
...
this
.
dowloadList
,
{
...
...
src/views/residentManage/exercise/exerciseRecord.vue
View file @
2fa8de2
...
...
@@ -24,9 +24,6 @@
</d2-search>
</div>
<div
class=
"d2-container-content"
style=
"position: positive"
>
<!--
<span
style=
"position: absolute; right: 41px; top: 42px; z-index: 999"
>
<auth-button
:show-btn-ids=
"['9120801', '9120802']"
category=
"Button"
/>
</span>
-->
<d2-table-header>
<auth-button
category=
"Button"
...
...
@@ -38,11 +35,6 @@
:show-btn-ids="['9120802']"
/>
</d2-table-header>
<!--
<el-tabs
v-model=
"activeName"
type=
"card"
@
tab-click=
"handleTabChange"
>
<el-tab-pane
label=
"全部"
name=
"all"
>
</el-tab-pane>
<el-tab-pane
label=
"进行中"
name=
"1"
>
</el-tab-pane>
<el-tab-pane
label=
"已结束"
name=
"2"
>
</el-tab-pane>
</el-tabs>
-->
<d2-table
ref=
"exerciseTable"
:has-num=
"true"
...
...
@@ -71,23 +63,39 @@
</div>
</d2-table>
</div>
<d2-dialog
:title=
"title"
:is-visible
.
sync=
"relateStoreVisible"
width=
"70%"
btn-ok-label=
"确定"
@
confirmDialog=
"handleRelateStoreConfirm"
@
closeDialog=
"handleRelateStoreClose"
class=
"relateStore"
>
<evaluatingReport></evaluatingReport>
</d2-dialog>
</d2-container>
</template>
<
script
>
import
{
mapActions
,
mapState
}
from
"vuex"
import
{
Util
,
deepClone
}
from
"@/common/util"
import
{
getList
,
getTaskStaffList
,
updateTaskPromptStatus
}
from
"@api/exercise"
import
{
getTaskStaffList
,
updateTaskPromptStatus
}
from
"@api/exercise"
import
evaluatingReport
from
"./components/evaluatingReport"
// import { getTaskStaffList, remindTaskStaff } from "@api/exercise"
import
{
scenarioType
}
from
"./contant"
//
import { scenarioType } from "./contant"
export
default
{
name
:
"exerciseRecord"
,
components
:
{
evaluatingReport
},
data
()
{
return
{
searchForm
:
{},
title
:
"查看结果"
,
searchForm
:
{
sparringStatus
:
1
},
showFormData
:
[
{
label
:
"手机号"
,
...
...
@@ -112,7 +120,7 @@ export default {
activeName
:
"all"
,
// table相关
getListApi
:
getTaskStaffList
,
searchFormSearch
:
{},
searchFormSearch
:
{
sparringStatus
:
1
},
tableParams
:
{
listName
:
"list"
,
tableOption
:
true
,
...
...
@@ -196,13 +204,13 @@ export default {
)
delete
params
.
completionTime
}
params
.
sparringStatus
=
activeName
!=
"all"
?
activeName
:
""
params
.
sparringStatus
=
1
return
params
},
handleReset
()
{
console
.
log
(
"handleReset"
)
this
.
searchForm
=
{}
this
.
activeName
=
"all"
//
this.activeName = "all"
this
.
searchFormSearch
=
{}
this
.
$refs
.
exerciseTable
.
refreshTable
(
true
,
true
)
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment