|
|
@@ -161,7 +161,7 @@
|
|
|
:height="tableHeight"
|
|
|
>
|
|
|
<el-table-column v-if="multipleMode" align="center" type="selection" width="50"> </el-table-column>
|
|
|
- <!-- <el-table-column prop="id" label="ID" width="100"> </el-table-column> -->
|
|
|
+ <el-table-column prop="id" label="节目编号" width="80"> </el-table-column>
|
|
|
<el-table-column prop="name" label="节目名称"> </el-table-column>
|
|
|
<el-table-column prop="specialty" label="参赛专业"> </el-table-column>
|
|
|
<el-table-column
|
|
|
@@ -172,7 +172,7 @@
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="level" label="参赛级别" min-width="70"> </el-table-column>
|
|
|
- <el-table-column prop="durationOfWork" label="作品时长" min-width="70"> </el-table-column>
|
|
|
+ <!-- <el-table-column prop="durationOfWork" label="作品时长" min-width="70"> </el-table-column> -->
|
|
|
<el-table-column prop="quantity" label="参赛人数" min-width="70"> </el-table-column>
|
|
|
<el-table-column prop="contact" label="联系人" min-width="68"> </el-table-column>
|
|
|
<el-table-column prop="phone" label="联系电话" min-width="95"> </el-table-column>
|
|
|
@@ -180,13 +180,47 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="organization" label="承办单位" min-width="160"> </el-table-column>
|
|
|
<el-table-column prop="examPoint" label="考级点" min-width="160"> </el-table-column>
|
|
|
- <el-table-column label="操作" align="left" fixed="right" min-width="280">
|
|
|
+ <el-table-column label="操作" align="left" fixed="right" min-width="320">
|
|
|
<template slot-scope="{ row }">
|
|
|
<el-button @click="showRow(row)" size="mini" plain>查看</el-button>
|
|
|
- <el-button type="warning" @click="playVideo(row)" size="mini" plain v-if="row.video"
|
|
|
- >浏览视频</el-button
|
|
|
+ <el-button
|
|
|
+ type="warning"
|
|
|
+ @click="playImg(row)"
|
|
|
+ v-if="
|
|
|
+ row.specialty == '中国画' ||
|
|
|
+ row.specialty == '美术' ||
|
|
|
+ row.specialty == '西画' ||
|
|
|
+ row.specialty == '书法' ||
|
|
|
+ row.specialty == '漫画' ||
|
|
|
+ row.specialty == '手工技艺' ||
|
|
|
+ row.specialty == '摄影' ||
|
|
|
+ row.specialty == '篆刻' ||
|
|
|
+ row.specialty == '人物' ||
|
|
|
+ row.specialty == '山水' ||
|
|
|
+ row.specialty == '花鸟' ||
|
|
|
+ row.specialty == '素描' ||
|
|
|
+ row.specialty == '速写' ||
|
|
|
+ row.specialty == '水粉画' ||
|
|
|
+ row.specialty == '水彩画' ||
|
|
|
+ row.specialty == '油画' ||
|
|
|
+ row.specialty == '软笔书法' ||
|
|
|
+ row.specialty == '硬笔书法' ||
|
|
|
+ row.specialty == '剪纸' ||
|
|
|
+ row.specialty == '泥塑' ||
|
|
|
+ row.specialty == '年画' ||
|
|
|
+ row.specialty == '皮影制作' ||
|
|
|
+ row.specialty == '陶艺' ||
|
|
|
+ row.specialty == '染织' ||
|
|
|
+ row.specialty == '版画'
|
|
|
+ "
|
|
|
+ size="mini"
|
|
|
+ plain
|
|
|
+ >浏览图片</el-button
|
|
|
>
|
|
|
- <el-button @click="showCode(row)" type="primary" size="mini" plain>查看二维码</el-button>
|
|
|
+ <el-button type="warning" @click="playVideo(row)" v-else size="mini" plain>浏览视频</el-button>
|
|
|
+ <el-button @click="audit(row, true)" type="primary" size="mini" plain>通过</el-button>
|
|
|
+ <el-button @click="audit(row, false)" type="danger" size="mini" plain>不通过</el-button>
|
|
|
+ <!-- <el-button @click="showCode(row)" type="primary" size="mini" plain>查看二维码</el-button> -->
|
|
|
<!-- <el-button @click="deleteRow(row)" type="danger" size="mini" plain>删除</el-button> -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -219,15 +253,7 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <el-dialog
|
|
|
- class="videoDialog"
|
|
|
- destroy-on-close
|
|
|
- center
|
|
|
- append-to-body
|
|
|
- :visible.sync="showViedo"
|
|
|
- @close="closeEvent"
|
|
|
- width="70%"
|
|
|
- >
|
|
|
+ <el-dialog class="videoDialog" destroy-on-close center append-to-body :visible.sync="showViedo" width="70%">
|
|
|
<video
|
|
|
:src="videoUrl"
|
|
|
controlsList="nodownload noremote footbar"
|
|
|
@@ -242,6 +268,9 @@
|
|
|
</video>
|
|
|
</el-dialog>
|
|
|
<programme-log :dialogVisible="isShow" @close="closeDialog" ref="public"></programme-log>
|
|
|
+ <el-dialog class="videoDialog" destroy-on-close center append-to-body :visible.sync="showImg" width="35%">
|
|
|
+ <img style="height: 100%; max-width: 100%" :src="annex" alt="" />
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -285,7 +314,9 @@ export default {
|
|
|
expandTrigger: 'hover'
|
|
|
},
|
|
|
showViedo: false,
|
|
|
- videoUrl: ''
|
|
|
+ showImg: false,
|
|
|
+ videoUrl: '',
|
|
|
+ annex: ''
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
@@ -415,7 +446,9 @@ export default {
|
|
|
beforeGetData() {
|
|
|
let data = {
|
|
|
sort: 'createdAt,desc',
|
|
|
- query: {}
|
|
|
+ query: {
|
|
|
+ status: 1
|
|
|
+ }
|
|
|
};
|
|
|
if (this.form.competitionGroup) {
|
|
|
data.query.competitionGroup = this.form.competitionGroup;
|
|
|
@@ -569,13 +602,49 @@ export default {
|
|
|
}
|
|
|
return result;
|
|
|
},
|
|
|
- closeEvent() {
|
|
|
- document.exitPictureInPicture();
|
|
|
- },
|
|
|
+ // closeEvent() {
|
|
|
+ // document.exitPictureInPicture();
|
|
|
+ // },
|
|
|
playVideo(row) {
|
|
|
this.showViedo = true;
|
|
|
this.videoUrl = row.video;
|
|
|
- console.log(row.video);
|
|
|
+ },
|
|
|
+ playImg(row) {
|
|
|
+ this.showImg = true;
|
|
|
+ this.annex = row.annex;
|
|
|
+ },
|
|
|
+ audit(row, pass) {
|
|
|
+ this.$set(row, 'loading', true);
|
|
|
+
|
|
|
+ this.$confirm('审核后将不能修改或撤回,确认要审核吗?', '提示', {
|
|
|
+ confirmButtonText: '审核',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.$http
|
|
|
+ .post('/programme/firstAudit', {
|
|
|
+ id: row.id,
|
|
|
+ pass: pass
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ this.$set(row, 'loading', false);
|
|
|
+ this.$message.success('审核成功');
|
|
|
+ this.getData();
|
|
|
+ })
|
|
|
+ .catch(e => {
|
|
|
+ console.log(e);
|
|
|
+ this.$set(row, 'loading', false);
|
|
|
+ this.$message.error(e.error);
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消'
|
|
|
+ });
|
|
|
+ this.$set(row, 'loading', false);
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
};
|