From 2baa58f9515a661d53118344e237e3441300b24f Mon Sep 17 00:00:00 2001
From: whychdw <49690745@qq.com>
Date: 星期四, 03 六月 2021 17:03:40 +0800
Subject: [PATCH] 内容修改

---
 src/pages/test/dialog/pointResultTest.vue |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/src/pages/test/dialog/pointResultTest.vue b/src/pages/test/dialog/pointResultTest.vue
index 1e7a18a..6c7d74e 100644
--- a/src/pages/test/dialog/pointResultTest.vue
+++ b/src/pages/test/dialog/pointResultTest.vue
@@ -75,6 +75,7 @@
             </el-form>
         </div>
         <div class="footer-button">
+            <el-button type="primary" size="small" @click="preStep">閲嶅仛褰撳墠姝ラ</el-button>
             <el-button type="primary" size="small" @click="completeTest" v-if="end">瀹屾垚璇曢獙</el-button>
             <el-button type="primary" size="small" @click="nextStep" v-else>寮�濮嬩笅涓�姝�</el-button>
         </div>
@@ -82,6 +83,8 @@
 </template>
 
 <script>
+import {redoTestPoint} from "@/pages/test/js/api";
+
 export default {
     name: "pointResultTest",
     props: {
@@ -120,6 +123,25 @@
         nextStep() {
             this.$emit('nextStep');
         },
+        preStep() {
+            this.$confirm("纭畾閲嶅仛褰撳墠姝ラ", "绯荤粺鎻愮ず", {
+                type: "warning",
+            }).then(()=>{
+                let point = this.point;
+                redoTestPoint(point.id).then(res=>{
+                    let rs = res.data;
+                    if(rs.code == 1) {
+                        this.$emit('preStep');
+                    }
+                    this.$layer.msg(rs.msg);
+                }).catch(error=>{
+                    console.log(error);
+                });
+            }).catch(error=>{
+
+            });
+
+        },
         completeTest() {
             this.$emit('completeTest', this.point);
         }

--
Gitblit v1.9.1