|
@@ -102,7 +102,7 @@
|
|
<span>{{ scope.row.rsDates[0] }} - {{ scope.row.rsDates[1] }}</span>
|
|
<span>{{ scope.row.rsDates[0] }} - {{ scope.row.rsDates[1] }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="当前状态" prop="status" align="center" :formatter="statusFormatter" />
|
|
|
|
|
|
+ <el-table-column label="当前状态" prop="isProgressStatus" align="center" :formatter="statusFormatter" />
|
|
<el-table-column label="创建时间" prop="createTime" align="center" />
|
|
<el-table-column label="创建时间" prop="createTime" align="center" />
|
|
<el-table-column label="操作" align="center">
|
|
<el-table-column label="操作" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -118,10 +118,8 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { tabList, typeList, list, submit, listDetail, remove, history, timeChange } from '@/api/operation/recommend'
|
|
import { tabList, typeList, list, submit, listDetail, remove, history, timeChange } from '@/api/operation/recommend'
|
|
-import { currentMixin } from '@/mixin/index'
|
|
|
|
import { checkPermi } from '@/utils/permission'
|
|
import { checkPermi } from '@/utils/permission'
|
|
export default {
|
|
export default {
|
|
- mixins: [currentMixin],
|
|
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
// 遮罩层
|
|
// 遮罩层
|
|
@@ -158,7 +156,21 @@ export default {
|
|
sort: [{
|
|
sort: [{
|
|
required: true, type: 'number', message: '请选择排序', tirgger: 'blur, change'
|
|
required: true, type: 'number', message: '请选择排序', tirgger: 'blur, change'
|
|
}]
|
|
}]
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ // 当前状态
|
|
|
|
+ statusOptions: [{
|
|
|
|
+ value: 0,
|
|
|
|
+ label: '生效中'
|
|
|
|
+ }, {
|
|
|
|
+ value: 1,
|
|
|
|
+ label: '未生效'
|
|
|
|
+ }, {
|
|
|
|
+ value: 2,
|
|
|
|
+ label: '未配置时间'
|
|
|
|
+ }, {
|
|
|
|
+ value: 3,
|
|
|
|
+ label: '已失效'
|
|
|
|
+ }]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -326,7 +338,7 @@ export default {
|
|
|
|
|
|
// 字典翻译
|
|
// 字典翻译
|
|
statusFormatter(row) {
|
|
statusFormatter(row) {
|
|
- return this.selectDictLabel(this.currentOptions, row.status)
|
|
|
|
|
|
+ return this.selectDictLabel(this.statusOptions, row.status)
|
|
},
|
|
},
|
|
|
|
|
|
typeFormatter(row) {
|
|
typeFormatter(row) {
|