|
|
@@ -180,7 +180,7 @@
|
|
|
</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="200">
|
|
|
+ <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
|
|
|
@@ -218,8 +218,8 @@
|
|
|
>浏览图片</el-button
|
|
|
>
|
|
|
<el-button type="warning" @click="playVideo(row)" v-else size="mini" plain>浏览视频</el-button>
|
|
|
- <!-- <el-button @click="showCode(row)" type="primary" size="mini" plain>通过</el-button>
|
|
|
- <el-button @click="showCode(row)" type="danger" 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>
|
|
|
@@ -253,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"
|
|
|
@@ -275,6 +267,9 @@
|
|
|
您的浏览器不支持 video 标签。
|
|
|
</video>
|
|
|
</el-dialog>
|
|
|
+ <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>
|
|
|
@@ -316,7 +311,9 @@ export default {
|
|
|
expandTrigger: 'hover'
|
|
|
},
|
|
|
showViedo: false,
|
|
|
- videoUrl: ''
|
|
|
+ showImg: false,
|
|
|
+ videoUrl: '',
|
|
|
+ annex: ''
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
@@ -602,49 +599,49 @@ export default {
|
|
|
}
|
|
|
return result;
|
|
|
},
|
|
|
- closeEvent() {
|
|
|
- document.exitPictureInPicture();
|
|
|
- },
|
|
|
+ // closeEvent() {
|
|
|
+ // document.exitPictureInPicture();
|
|
|
+ // },
|
|
|
playVideo(row) {
|
|
|
this.showViedo = true;
|
|
|
this.videoUrl = row.video;
|
|
|
- console.log(row.video);
|
|
|
},
|
|
|
- audit(row, status) {
|
|
|
+ playImg(row) {
|
|
|
+ this.showImg = true;
|
|
|
+ this.annex = row.annex;
|
|
|
+ },
|
|
|
+ audit(row, pass) {
|
|
|
this.$set(row, 'loading', true);
|
|
|
- if (row.status === 1) {
|
|
|
- this.$confirm('确认此承办单位同意上报?', '提示', {
|
|
|
- confirmButtonText: '同意上报',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- this.$http
|
|
|
- .post('/rate/audit', {
|
|
|
- id: row.id,
|
|
|
- status: status,
|
|
|
- score: 0,
|
|
|
- remark: remark
|
|
|
- })
|
|
|
- .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.$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);
|
|
|
});
|
|
|
- this.$set(row, 'loading', false);
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消'
|
|
|
});
|
|
|
- }
|
|
|
+ this.$set(row, 'loading', false);
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
};
|