|
@@ -33,7 +33,7 @@
|
|
|
>
|
|
|
<el-table-column label="序号" type="index" :index="indexMethod" width="80" align="center" />
|
|
|
<el-table-column label="视频名称" prop="videoTitle" align="center" />
|
|
|
- <el-table-column label="审核状态" width="150px" align="center">
|
|
|
+ <el-table-column label="审核状态" width="120px" align="center">
|
|
|
<template slot-scope="{ row }">
|
|
|
<el-tag v-if="row.auditStatus === 2" size="small" type="warning">待审核</el-tag>
|
|
|
<el-tag v-if="row.auditStatus === 1" size="small" type="success">审核通过</el-tag>
|
|
@@ -43,21 +43,21 @@
|
|
|
<el-popover placement="top-start" title="审核说明" width="400" trigger="hover" :content="row.invalidReason">
|
|
|
<el-tag slot="reference" size="small" type="danger" class="reason">
|
|
|
<span>审核未通过</span>
|
|
|
- <span class="el-icon-question status danger " />
|
|
|
+ <span class="el-icon-question status danger" />
|
|
|
</el-tag>
|
|
|
</el-popover>
|
|
|
<!-- 未通过原因展示END -->
|
|
|
</template>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="审核时间" width="250px" align="center">
|
|
|
+ <el-table-column label="审核时间" width="160px" align="center">
|
|
|
<template slot-scope="{ row }">
|
|
|
<span v-if="row.auditStatus !== 2">{{ row.auditTime | formatTime }}</span>
|
|
|
<span v-else>—</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column label="审核人" align="center" width="200px">
|
|
|
+ <el-table-column label="审核人" align="center" width="280px">
|
|
|
<template slot-scope="{ row }">
|
|
|
<span v-if="row.auditStatus !== 2">{{ row.auditBy }}</span>
|
|
|
<span v-else>—</span>
|
|
@@ -69,7 +69,7 @@
|
|
|
v-if="row.auditStatus !== 1"
|
|
|
type="primary"
|
|
|
size="mini"
|
|
|
- style="margin-right:5px"
|
|
|
+ style="margin-right: 5px"
|
|
|
icon="el-icon-s-check"
|
|
|
@click="handleShowDialog(row)"
|
|
|
>审核</el-button>
|
|
@@ -93,9 +93,7 @@
|
|
|
{{ current.videoTitle }}
|
|
|
</el-form-item>
|
|
|
<el-form-item label="视频:">
|
|
|
- <video :src="current.currentVideoUrl" controls="controls" width="100%">
|
|
|
- 您的浏览器不支持播放该视频
|
|
|
- </video>
|
|
|
+ <video :src="current.currentVideoUrl" controls="controls" width="100%">您的浏览器不支持播放该视频</video>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="审核:">
|
|
|
<el-radio-group v-model="dialogData.auditStatus">
|
|
@@ -118,20 +116,11 @@
|
|
|
|
|
|
<script>
|
|
|
import Pagination from '@/components/Pagination'
|
|
|
-import { formatDate } from '@/utils'
|
|
|
import { getVideoList } from '@/api/doc'
|
|
|
import { auditVideo } from '@/api/docReview'
|
|
|
import { mapGetters } from 'vuex'
|
|
|
export default {
|
|
|
components: { Pagination },
|
|
|
- filters: {
|
|
|
- formatTime(time) {
|
|
|
- if (!time) {
|
|
|
- return ''
|
|
|
- }
|
|
|
- return formatDate(time, 'yyyy-MM-DD HH:mm:ss')
|
|
|
- }
|
|
|
- },
|
|
|
data() {
|
|
|
return {
|
|
|
dialogVisible: false, // 视频审核dialog是否显示
|
|
@@ -178,7 +167,7 @@ export default {
|
|
|
getList() {
|
|
|
this.listLoading = true
|
|
|
getVideoList(this.listQuery)
|
|
|
- .then(res => {
|
|
|
+ .then((res) => {
|
|
|
if (res.code !== 0) return
|
|
|
this.list = res.data.list
|
|
|
this.total = res.data.total
|
|
@@ -205,11 +194,11 @@ export default {
|
|
|
},
|
|
|
// 审核
|
|
|
handleAuditStatus() {
|
|
|
- this.$refs.formRef.validate(valid => {
|
|
|
+ this.$refs.formRef.validate((valid) => {
|
|
|
if (valid) {
|
|
|
console.log(valid)
|
|
|
this.dialogData.auditBy = this.authUserId
|
|
|
- auditVideo(this.dialogData).then(res => {
|
|
|
+ auditVideo(this.dialogData).then((res) => {
|
|
|
console.log(res)
|
|
|
if (res.code !== 0) return
|
|
|
this.$message({
|