Commit 2fa8de2c by 张立顺

feat 对练功能开发

1 parent bb34e5f7
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
return { return {
scenarioType, scenarioType,
activeName: "all", activeName: "all",
searchForm: {}, searchForm: { sparringStatus: 1 },
showFormData: [ showFormData: [
{ {
label: "手机号", label: "手机号",
...@@ -133,7 +133,7 @@ export default { ...@@ -133,7 +133,7 @@ export default {
], ],
// table 相关 // table 相关
getListApi: getTaskStaffList, getListApi: getTaskStaffList,
searchFormSearch: {}, searchFormSearch: { sparringStatus: 1 },
tableParams: { tableParams: {
listName: "list", listName: "list",
tableOption: true, tableOption: true,
...@@ -230,7 +230,8 @@ export default { ...@@ -230,7 +230,8 @@ export default {
) )
delete params.completionTime delete params.completionTime
} }
params.sparringStatus = activeName != "all" ? activeName : "" // params.sparringStatus = activeName != "all" ? activeName : ""
params.sparringStatus = 1
return params return params
}, },
beforeSearchFn() { beforeSearchFn() {
...@@ -275,7 +276,8 @@ export default { ...@@ -275,7 +276,8 @@ export default {
// 导出 // 导出
handleExport() { handleExport() {
var params = this.getParams() 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 = [ const list = [
...this.dowloadList, ...this.dowloadList,
{ {
......
...@@ -24,9 +24,6 @@ ...@@ -24,9 +24,6 @@
</d2-search> </d2-search>
</div> </div>
<div class="d2-container-content" style="position: positive"> <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> <d2-table-header>
<auth-button <auth-button
category="Button" category="Button"
...@@ -38,11 +35,6 @@ ...@@ -38,11 +35,6 @@
:show-btn-ids="['9120802']" :show-btn-ids="['9120802']"
/> />
</d2-table-header> </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 <d2-table
ref="exerciseTable" ref="exerciseTable"
:has-num="true" :has-num="true"
...@@ -71,23 +63,39 @@ ...@@ -71,23 +63,39 @@
</div> </div>
</d2-table> </d2-table>
</div> </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> </d2-container>
</template> </template>
<script> <script>
import { mapActions, mapState } from "vuex" import { mapActions, mapState } from "vuex"
import { Util, deepClone } from "@/common/util" import { Util, deepClone } from "@/common/util"
import { import { getTaskStaffList, updateTaskPromptStatus } from "@api/exercise"
getList, import evaluatingReport from "./components/evaluatingReport"
getTaskStaffList,
updateTaskPromptStatus
} from "@api/exercise"
// import { getTaskStaffList, remindTaskStaff } from "@api/exercise" // import { getTaskStaffList, remindTaskStaff } from "@api/exercise"
import { scenarioType } from "./contant" // import { scenarioType } from "./contant"
export default { export default {
name: "exerciseRecord",
components: {
evaluatingReport
},
data() { data() {
return { return {
searchForm: {}, title: "查看结果",
searchForm: {
sparringStatus: 1
},
showFormData: [ showFormData: [
{ {
label: "手机号", label: "手机号",
...@@ -112,7 +120,7 @@ export default { ...@@ -112,7 +120,7 @@ export default {
activeName: "all", activeName: "all",
// table相关 // table相关
getListApi: getTaskStaffList, getListApi: getTaskStaffList,
searchFormSearch: {}, searchFormSearch: { sparringStatus: 1 },
tableParams: { tableParams: {
listName: "list", listName: "list",
tableOption: true, tableOption: true,
...@@ -196,13 +204,13 @@ export default { ...@@ -196,13 +204,13 @@ export default {
) )
delete params.completionTime delete params.completionTime
} }
params.sparringStatus = activeName != "all" ? activeName : "" params.sparringStatus = 1
return params return params
}, },
handleReset() { handleReset() {
console.log("handleReset") console.log("handleReset")
this.searchForm = {} this.searchForm = {}
this.activeName = "all" // this.activeName = "all"
this.searchFormSearch = {} this.searchFormSearch = {}
this.$refs.exerciseTable.refreshTable(true, true) this.$refs.exerciseTable.refreshTable(true, true)
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!