|
@@ -71,6 +71,30 @@
|
|
|
</el-tab-pane>
|
|
|
</template>
|
|
|
</el-tabs>
|
|
|
+ <el-dialog
|
|
|
+ title="查看图片"
|
|
|
+ width="800px"
|
|
|
+ :visible.sync="picModel"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ @close="closePicModel"
|
|
|
+ >
|
|
|
+ <el-button size="mini" icon="el-icon-refresh-left" @click="leftRotate"
|
|
|
+ >左旋</el-button
|
|
|
+ >
|
|
|
+ <el-button size="mini" icon="el-icon-refresh-right" @click="rightRotate"
|
|
|
+ >右旋</el-button
|
|
|
+ >
|
|
|
+ <div class="block-seperator"></div>
|
|
|
+ <img
|
|
|
+ :src="picForm.imgUrl"
|
|
|
+ height="100%"
|
|
|
+ width="100%"
|
|
|
+ :style="{
|
|
|
+ width: '90%',
|
|
|
+ transform: 'rotate(' + picForm.rotate + 'deg)'
|
|
|
+ }"
|
|
|
+ />
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -83,7 +107,13 @@ export default {
|
|
|
activeName: "first",
|
|
|
drawing: {},
|
|
|
tmpSignScores: this.signScores,
|
|
|
- tmpMarkSign: this.markSign
|
|
|
+ tmpMarkSign: this.markSign,
|
|
|
+ picModelKey: Math.random(),
|
|
|
+ picModel: false,
|
|
|
+ picForm: {
|
|
|
+ imgUrl: "",
|
|
|
+ rotate: 0
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
props: [
|
|
@@ -97,6 +127,21 @@ export default {
|
|
|
"answerHtml"
|
|
|
],
|
|
|
methods: {
|
|
|
+ rightRotate() {
|
|
|
+ this.picForm.rotate = this.picForm.rotate + 90;
|
|
|
+ },
|
|
|
+ leftRotate() {
|
|
|
+ this.picForm.rotate = this.picForm.rotate - 90;
|
|
|
+ },
|
|
|
+ closePicModel() {
|
|
|
+ this.picForm.rotate = 0;
|
|
|
+ this.picModel = false;
|
|
|
+ this.picModelKey = Math.random();
|
|
|
+ },
|
|
|
+ viewPicture(src) {
|
|
|
+ this.picForm.imgUrl = src;
|
|
|
+ this.picModel = true;
|
|
|
+ },
|
|
|
getPdfUrl() {
|
|
|
var url = this.studentPaper.studentSubjectiveHtml;
|
|
|
var content = "";
|
|
@@ -356,6 +401,7 @@ export default {
|
|
|
updated() {},
|
|
|
mounted() {
|
|
|
//this.createMarkDraw();
|
|
|
+ window.viewPicture = this.viewPicture;
|
|
|
},
|
|
|
created() {
|
|
|
EVENTHUB.$on("positionDiv", function(id) {
|
|
@@ -465,4 +511,7 @@ img {
|
|
|
.paper >>> .photo-answers-block {
|
|
|
width: 350px !important;
|
|
|
}
|
|
|
+.paper >>> .photo-answers-block a {
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
</style>
|