xjc %!s(int64=2) %!d(string=hai) anos
pai
achega
972e6c6e2c
Modificáronse 2 ficheiros con 7 adicións e 3 borrados
  1. 5 1
      src/views/menu5/menu5-2/index.vue
  2. 2 2
      vue.config.js

+ 5 - 1
src/views/menu5/menu5-2/index.vue

@@ -74,7 +74,7 @@
       >
         <template slot="tableBtn">
           <div class="tableInfo">
-            <span>试卷名称:</span><span>{{taskInfo.name}}</span>
+            <span>试卷名称:</span><span>{{taskInfo.name}}(T{{taskInfo.id}}-{{taskInfo.pno}})</span>
           </div>
           <div class="tableInfo"><span>学校:</span><span>{{taskInfo.school_name}}</span></div>
           <div class="tableInfo"><span>年级:</span><span>{{taskInfo.grade_name}}</span></div>
@@ -250,7 +250,9 @@ export default {
   data() {
     return {
       taskInfo:{
+        id:"",
         name:"",
+        pno:"",
         school_name:"",
         grade_name:"",
         class_name:""
@@ -589,6 +591,8 @@ export default {
         this.taskInfo.school_name = res.data.school_name;
         this.taskInfo.grade_name = res.data.grade_name;
         this.taskInfo.class_name = res.data.class_name;
+        this.taskInfo.pno = res.data.pno;
+        this.taskInfo.id = res.data.id;
         // res.data.students.forEach((ele) => {
         //   if (ele.pimgs.length > 0) {
         //     ele.pimgs.forEach((img) => {

+ 2 - 2
vue.config.js

@@ -29,8 +29,8 @@ module.exports = {
         /* 使用代理 */
         proxy: {
             "/": {
-                target: "http://47.108.130.28:8000",
-                // target: "http://192.168.192.131:8000",
+                // target: "http://47.108.130.28:8000",
+                target: "http://192.168.192.131:8000",
                 // target: "http://47.104.213.35",
                 changeOrigin: true,
                 // ws: true,//websocket支持