Browse Source

增加音频状态

DESKTOP-SVI9JE1\muzen 1 year ago
parent
commit
48805b274e
1 changed files with 7 additions and 3 deletions
  1. 7 3
      src/views/content/article/detail.vue

+ 7 - 3
src/views/content/article/detail.vue

@@ -52,6 +52,7 @@
               </el-form-item>
             </template>
           </el-table-column>
+          <el-table-column label="当前状态" prop="status" align="center" :formatter="statusFormatter" width="100px" />
           <el-table-column label="操作" align="center" width="100px">
             <template slot-scope="scope">
               <el-button type="delete" @click="getDelete(scope.$index)">删除</el-button>
@@ -183,11 +184,11 @@
 </template>
 
 <script>
-import { platformMixin, isFreeMixin } from '@/mixin/index'
+import { platformMixin, isFreeMixin, disabledMixin } from '@/mixin/index'
 import { detail, submit } from '@/api/content/article'
 import { list } from '@/api/operation/channel'
 export default {
-  mixins: [platformMixin, isFreeMixin],
+  mixins: [platformMixin, isFreeMixin, disabledMixin],
   data() {
     return {
       // 遮罩层
@@ -243,7 +244,6 @@ export default {
       dialogForm: {
         pageNum: 1,
         pageSize: 10,
-        status: 1,
         platformId: null,
         audioType: null
       },
@@ -457,6 +457,10 @@ export default {
 
     platformFormatter(row) {
       return this.selectDictLabel(this.platformOptions, row.platformId)
+    },
+
+    statusFormatter(row) {
+      return this.selectDictLabel(this.disabledOptions, row.status)
     }
   }
 }