|
|
@@ -236,9 +236,9 @@
|
|
|
:formatter="programmeStatusFormatter"
|
|
|
></el-table-column>
|
|
|
<el-table-column label="操作" align="left" fixed="right" min-width="260">
|
|
|
- <template slot-scope="{ row }">
|
|
|
+ <template slot-scope="{ row, $index }">
|
|
|
<el-button @click="showRow(row)" size="mini" plain>查看</el-button>
|
|
|
- <el-button
|
|
|
+ <!-- <el-button
|
|
|
type="warning"
|
|
|
@click="playImg(row)"
|
|
|
v-if="
|
|
|
@@ -271,8 +271,8 @@
|
|
|
size="mini"
|
|
|
plain
|
|
|
>浏览图片</el-button
|
|
|
- >
|
|
|
- <el-button type="warning" @click="playVideo(row)" v-else size="mini" plain>浏览视频</el-button>
|
|
|
+ > -->
|
|
|
+ <el-button type="warning" @click="playVideo(row, $index)" size="mini" plain>查看作品</el-button>
|
|
|
<el-button
|
|
|
@click="audit(row, 'AUDIT_FAILED')"
|
|
|
type="danger"
|
|
|
@@ -290,7 +290,6 @@
|
|
|
>撤回</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>
|
|
|
</el-table>
|
|
|
@@ -322,23 +321,47 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
+ <!-- <el-dialog class="videoDialog" destroy-on-close center append-to-body :visible.sync="showViedo" width="70%">
|
|
|
+ <video
|
|
|
+ :src="programme.video"
|
|
|
+ controls
|
|
|
+ style="height: 600px; width: 85%; margin: 0 auto"
|
|
|
+ v-if="programme.video"
|
|
|
+ >
|
|
|
+ 您的浏览器不支持 video 标签。
|
|
|
+ </video>
|
|
|
+ <div style="width: 85%; height:600px;margin: 0 auto" v-if="programme.annex">
|
|
|
+ <img style="max-height:100%; max-width: 100%; " :src="programme.annex" alt="" />
|
|
|
+ </div>
|
|
|
+ <div style="margin: 10px 10px">
|
|
|
+ <el-button size="mini" @click="move(-1)" :disabled="index == 0">上一个</el-button>
|
|
|
+ <el-button size="mini" @click="move(1)" :disabled="(page - 1) * pageSize + index == totalElements - 1"
|
|
|
+ >下一个</el-button
|
|
|
+ >
|
|
|
+ <el-button @click="showViedo = false" size="mini">关闭</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog> -->
|
|
|
<el-dialog class="videoDialog" destroy-on-close center append-to-body :visible.sync="showViedo" width="70%">
|
|
|
<video
|
|
|
- :src="videoUrl"
|
|
|
- controlsList="nodownload noremote footbar"
|
|
|
+ :src="programme.video"
|
|
|
controls
|
|
|
- style="height: 600px; width: 100%"
|
|
|
- oncontextmenu="return false;"
|
|
|
- ref="video"
|
|
|
- v-if="showViedo"
|
|
|
+ style="max-height: 600px; max-width: 100%; margin: 0 auto"
|
|
|
+ v-if="programme.video"
|
|
|
>
|
|
|
您的浏览器不支持 video 标签。
|
|
|
</video>
|
|
|
+ <!-- <div style="width: 85%; height:600px;margin: 0 auto" v-if="programme.annex"> -->
|
|
|
+ <img style="max-height:600px; max-width: 100%; " :src="programme.annex" alt="" v-if="programme.annex" />
|
|
|
+ <!-- </div> -->
|
|
|
+ <div style="margin: 10px">
|
|
|
+ <el-button size="mini" @click="move(-1)" :disabled="index == 0">上一个</el-button>
|
|
|
+ <el-button size="mini" @click="move(1)" :disabled="(page - 1) * pageSize + index == totalElements - 1"
|
|
|
+ >下一个</el-button
|
|
|
+ >
|
|
|
+ <el-button @click="showViedo = false" size="mini">关闭</el-button>
|
|
|
+ </div>
|
|
|
</el-dialog>
|
|
|
<programme-log :dialogVisible="isShow" @close="isShow = false" ref="public"></programme-log>
|
|
|
- <el-dialog class="videoDialog" destroy-on-close center append-to-body :visible.sync="showImg" width="35%">
|
|
|
- <img style="height: 100%; width: 100%;" :src="annex" alt="" />
|
|
|
- </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -392,7 +415,9 @@ export default {
|
|
|
{ label: '初选未通过', value: 'AUDIT_FAILED' },
|
|
|
{ label: '审核未通过', value: 'REVIEW_FAILED' }
|
|
|
],
|
|
|
- showMore: false
|
|
|
+ showMore: false,
|
|
|
+ programme: {},
|
|
|
+ index: 0
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
@@ -661,14 +686,9 @@ export default {
|
|
|
showCode(row) {
|
|
|
this.dialogCode = true;
|
|
|
this.dialogUrl =
|
|
|
- 'http://wljtest.izouma.com/h5/home?performanceId=' + row.performanceId + '&programmeId=' + row.id;
|
|
|
+ 'http://yskj.njlyw.cn:8081/h5/home?performanceId=' + row.performanceId + '&programmeId=' + row.id;
|
|
|
},
|
|
|
clearSearch() {
|
|
|
- // this.competitionGroup = '';
|
|
|
- // this.levelSettingId = '';
|
|
|
- // this.gradingOrganizationId = '';
|
|
|
- // this.organizationId = '';
|
|
|
- // this.specialtyId = '';
|
|
|
this.form = {};
|
|
|
this.getData();
|
|
|
},
|
|
|
@@ -697,14 +717,14 @@ export default {
|
|
|
// closeEvent() {
|
|
|
// document.exitPictureInPicture();
|
|
|
// },
|
|
|
- playVideo(row) {
|
|
|
- if (row.video) {
|
|
|
- this.showViedo = true;
|
|
|
- this.videoUrl = row.video;
|
|
|
- } else {
|
|
|
- this.$message.success('暂无视频');
|
|
|
- }
|
|
|
- },
|
|
|
+ // playVideo(row) {
|
|
|
+ // if (row.video) {
|
|
|
+ // this.showViedo = true;
|
|
|
+ // this.videoUrl = row.video;
|
|
|
+ // } else {
|
|
|
+ // this.$message.success('暂无视频');
|
|
|
+ // }
|
|
|
+ // },
|
|
|
playImg(row) {
|
|
|
if (row.annex) {
|
|
|
this.showImg = true;
|
|
|
@@ -751,6 +771,16 @@ export default {
|
|
|
});
|
|
|
this.$set(row, 'loading', false);
|
|
|
});
|
|
|
+ },
|
|
|
+ playVideo(row, index) {
|
|
|
+ this.index = index;
|
|
|
+ this.showViedo = true;
|
|
|
+ this.programme = row;
|
|
|
+ },
|
|
|
+ move(direction) {
|
|
|
+ const end = direction + this.index;
|
|
|
+ this.programme = { ...this.tableData[end] };
|
|
|
+ this.index = end;
|
|
|
}
|
|
|
}
|
|
|
};
|