|
|
@@ -198,7 +198,12 @@
|
|
|
<el-button type="success" @click="editRow(row)" size="mini" plain v-if="row.status == 0"
|
|
|
>编辑</el-button
|
|
|
>
|
|
|
- <el-button type="warning" @click="playVideo(row)" size="mini" plain>浏览视频</el-button>
|
|
|
+ <el-button type="warning" @click="playVideo(row)" v-if="row.video" size="mini" plain
|
|
|
+ >浏览视频</el-button
|
|
|
+ >
|
|
|
+ <el-button type="warning" @click="playImg(row)" v-if="!row.video" 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>
|
|
|
@@ -245,6 +250,9 @@
|
|
|
您的浏览器不支持 video 标签。
|
|
|
</video>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog class="videoDialog" destroy-on-close center append-to-body :visible.sync="showImg" width="40%">
|
|
|
+ <img style="height: 100%; max-width: 100%" :src="annex" alt="" />
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -291,7 +299,9 @@ export default {
|
|
|
},
|
|
|
specialtyId: '',
|
|
|
showViedo: false,
|
|
|
+ showImg: false,
|
|
|
videoUrl: '',
|
|
|
+ annex: '',
|
|
|
name: '',
|
|
|
instructor: '',
|
|
|
uploadUrl: '',
|
|
|
@@ -305,6 +315,7 @@ export default {
|
|
|
this.$http
|
|
|
.post('/setting/byFlag', { flag: 3 })
|
|
|
.then(res => {
|
|
|
+ // console.log(res);
|
|
|
if (res.length > 0) {
|
|
|
res.forEach(item => {
|
|
|
this.levelSingleOptions.push({
|
|
|
@@ -325,6 +336,7 @@ export default {
|
|
|
this.$http
|
|
|
.post('/setting/byFlag', { flag: 4 })
|
|
|
.then(res => {
|
|
|
+ // console.log(res);
|
|
|
if (res.length > 0) {
|
|
|
res.forEach(item => {
|
|
|
this.levelCollectiveOptions.push({
|
|
|
@@ -342,6 +354,7 @@ export default {
|
|
|
this.$http
|
|
|
.post('/gradingOrganization/all', { size: 1000, query: { del: false } }, { body: 'json' })
|
|
|
.then(res => {
|
|
|
+ // console.log(res);
|
|
|
if (res.content.length > 0) {
|
|
|
res.content.forEach(item => {
|
|
|
this.gradingOrganizationIdOptions.push({
|
|
|
@@ -368,6 +381,7 @@ export default {
|
|
|
{ body: 'json' }
|
|
|
)
|
|
|
.then(res => {
|
|
|
+ // console.log(res);
|
|
|
if (res.content.length > 0) {
|
|
|
// res.content.forEach(item => {
|
|
|
// this.performances.push({
|
|
|
@@ -619,7 +633,11 @@ export default {
|
|
|
playVideo(row) {
|
|
|
this.showViedo = true;
|
|
|
this.videoUrl = row.video;
|
|
|
- console.log(this.videoUrl);
|
|
|
+ },
|
|
|
+ playImg(row) {
|
|
|
+ console.log(row);
|
|
|
+ this.showImg = true;
|
|
|
+ this.annex = row.annex;
|
|
|
},
|
|
|
upload() {},
|
|
|
onfail(e) {
|