浏览代码

修改当前状态字段匹配参数

DESKTOP-2S67K1S\31396 2 年之前
父节点
当前提交
4d77f20b4c
共有 1 个文件被更改,包括 17 次插入5 次删除
  1. 17 5
      src/views/operation/recommend/index.vue

+ 17 - 5
src/views/operation/recommend/index.vue

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