Commit 3b2efc36 by 胡悦

修改业务场景

1 parent ef88607f
...@@ -174,7 +174,7 @@ export default { ...@@ -174,7 +174,7 @@ export default {
}, },
options: [ options: [
{ {
value: '会员权益/升级', value: '0',
label: '会员权益/升级' label: '会员权益/升级'
} }
], ],
......
const scenarioType = {
0: '会员权益/升级',
1: '精品升级',
2: '次新车转化',
3: '售后众筹',
4: '积分商城'
}
export { scenarioType }
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-04-16 17:54:27 * @Date: 2024-04-16 17:54:27
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-04-24 15:02:34 * @LastEditTime: 2024-04-26 10:39:14
--> -->
<template> <template>
<div> <div>
<div class="title-box"> <div class="title-box">
<div class="title-tag">{{ taskInfo.businessScenario }}</div> <div class="title-tag">{{ scenarioType[taskInfo.businessScenario] }}</div>
<div class="title">{{ taskInfo.taskName }}</div> <div class="title">{{ taskInfo.taskName }}</div>
<div class="title-time">创建时间:{{ taskInfo.createdDate }}</div> <div class="title-time">创建时间:{{ taskInfo.createdDate }}</div>
<div class="title-time">任务时间:{{ taskInfo.startTime }} - {{ taskInfo.endTime }}</div> <div class="title-time">任务时间:{{ taskInfo.startTime }} - {{ taskInfo.endTime }}</div>
...@@ -66,10 +66,12 @@ import { mapActions, mapState } from 'vuex' ...@@ -66,10 +66,12 @@ import { mapActions, mapState } from 'vuex'
import QualityDetail from "./components/dialogResult.vue" import QualityDetail from "./components/dialogResult.vue"
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { getTaskStaffList, remindTaskStaff } from "@api/exercise" import { getTaskStaffList, remindTaskStaff } from "@api/exercise"
import { scenarioType } from './contant'
export default { export default {
components: { QualityDetail }, components: { QualityDetail },
data() { data() {
return { return {
scenarioType,
activeName: 'all', activeName: 'all',
searchForm: {}, searchForm: {},
showFormData: [ showFormData: [
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-04-15 16:26:57 * @Date: 2024-04-15 16:26:57
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-04-24 14:43:49 * @LastEditTime: 2024-04-26 10:24:29
--> -->
<template> <template>
<div> <div>
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { getList, updateTaskPromptStatus } from '@api/exercise' import { getList, updateTaskPromptStatus } from '@api/exercise'
import { scenarioType } from './contant'
export default { export default {
data() { data() {
return { return {
...@@ -103,7 +104,7 @@ export default { ...@@ -103,7 +104,7 @@ export default {
name: '' name: ''
}, { }, {
label: '会员权益/升级', label: '会员权益/升级',
value: '会员权益/升级' value: '0'
}], }],
optionId: "value", optionId: "value",
optionLabel: "label" optionLabel: "label"
...@@ -151,7 +152,10 @@ export default { ...@@ -151,7 +152,10 @@ export default {
tableOption: true, tableOption: true,
tableColumns: [{ tableColumns: [{
label: '业务场景', label: '业务场景',
prop: 'businessScenario' prop: 'businessScenario',
formatter: cellValue => {
return scenarioType[cellValue.businessScenario]
}
}, { }, {
label: '任务名称', label: '任务名称',
prop: 'taskName' prop: 'taskName'
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-04-17 17:50:41 * @Date: 2024-04-17 17:50:41
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-04-24 11:42:03 * @LastEditTime: 2024-04-26 10:38:40
--> -->
<template> <template>
<div> <div>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div class="edit-sub-title title">基本信息</div> <div class="edit-sub-title title">基本信息</div>
</div> </div>
<el-form-item label="业务场景:"> <el-form-item label="业务场景:">
<span>{{ taskInfo.businessScenario }}</span> <span>{{ scenarioType[taskInfo.businessScenario] }}</span>
</el-form-item> </el-form-item>
<el-form-item label="任务名称:"> <el-form-item label="任务名称:">
<span>{{ taskInfo.taskName }}</span> <span>{{ taskInfo.taskName }}</span>
...@@ -63,9 +63,11 @@ ...@@ -63,9 +63,11 @@
<script> <script>
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
import { getTaskStaffList } from "@api/exercise" import { getTaskStaffList } from "@api/exercise"
import { scenarioType } from './contant'
export default { export default {
data() { data() {
return { return {
scenarioType,
tableData: [ tableData: [
{ {
staffName: '张三', staffName: '张三',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!