|
@@ -15,6 +15,7 @@
|
|
{{ scope.row.startTime }} 至 {{ scope.row.endTime }}
|
|
{{ scope.row.startTime }} 至 {{ scope.row.endTime }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column label="活动状态" prop="currentStatus" align="center" :formatter="currentFormatter" />
|
|
<el-table-column label="操作" align="center">
|
|
<el-table-column label="操作" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button type="text" @click="getDetail(scope.row.id, true)">查看</el-button>
|
|
<el-button type="text" @click="getDetail(scope.row.id, true)">查看</el-button>
|
|
@@ -32,9 +33,9 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { list, change, remove } from '@/api/registration/lottery'
|
|
import { list, change, remove } from '@/api/registration/lottery'
|
|
-import { disabledMixin } from '@/mixin/index'
|
|
|
|
|
|
+import { disabledMixin, currentMixin } from '@/mixin/index'
|
|
export default {
|
|
export default {
|
|
- mixins: [disabledMixin],
|
|
|
|
|
|
+ mixins: [disabledMixin, currentMixin],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
// 遮罩层
|
|
// 遮罩层
|
|
@@ -114,6 +115,9 @@ export default {
|
|
// 字典翻译
|
|
// 字典翻译
|
|
statusFormatter(row) {
|
|
statusFormatter(row) {
|
|
return this.selectDictLabel(this.disabledOptions, row.status)
|
|
return this.selectDictLabel(this.disabledOptions, row.status)
|
|
|
|
+ },
|
|
|
|
+ currentFormatter(row) {
|
|
|
|
+ return this.selectDictLabel(this.currentOptions, row.currentStatus)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|