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