Browse Source

教师端修改及打包

zengyicheng 2 năm trước cách đây
mục cha
commit
af73f81c34

+ 1 - 1
dist/index.html

@@ -25,4 +25,4 @@
       height: 100%;
       width: 100%;
       background: #e6eaf0;
-    }</style><link href=./static/css/app.ab02d7048514585cd70b2271c25c4016.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.ce85731d7c1d072ed0aa.js></script><script type=text/javascript src=./static/js/vendor.779ee1bbeec2c196af1e.js></script><script type=text/javascript src=./static/js/app.2e07be6af1afab6d9d2b.js></script></body></html>
+    }</style><link href=./static/css/app.d2fa888b761be12b9b24e9acfd575a15.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.fed1de90e0941b3846db.js></script><script type=text/javascript src=./static/js/vendor.779ee1bbeec2c196af1e.js></script><script type=text/javascript src=./static/js/app.aa67f6e04374ba9c0b94.js></script></body></html>

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/css/app.ab02d7048514585cd70b2271c25c4016.css.map


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/css/app.d2fa888b761be12b9b24e9acfd575a15.css


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/css/app.d2fa888b761be12b9b24e9acfd575a15.css.map


BIN
dist/static/img/avatar.3282a78.png


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/0.495dd6dd7e801967b64f.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/0.f867c3655b998d260981.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/0.f867c3655b998d260981.js.map


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/1.a8d1c832d7ea6bc9a183.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/1.a8d1c832d7ea6bc9a183.js.map


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/app.2e07be6af1afab6d9d2b.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/app.aa67f6e04374ba9c0b94.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/app.aa67f6e04374ba9c0b94.js.map


+ 2 - 1
dist/static/js/manifest.ce85731d7c1d072ed0aa.js → dist/static/js/manifest.fed1de90e0941b3846db.js

@@ -1 +1,2 @@
-!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,s=0,l=[];s<r.length;s++)u=r[s],t[u]&&l.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);l.length;)l.shift()();if(a)for(s=0;s<a.length;s++)f=o(o.s=a[s]);return f};var r={},t={4:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"495dd6dd7e801967b64f",1:"a8d1c832d7ea6bc9a183"}[e]+".js";var i=setTimeout(u,12e4);function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=u,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
+!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,s=0,l=[];s<r.length;s++)u=r[s],t[u]&&l.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);l.length;)l.shift()();if(a)for(s=0;s<a.length;s++)f=o(o.s=a[s]);return f};var r={},t={4:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"f867c3655b998d260981",1:"a8d1c832d7ea6bc9a183"}[e]+".js";var i=setTimeout(u,12e4);function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=u,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
+//# sourceMappingURL=manifest.fed1de90e0941b3846db.js.map

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/manifest.fed1de90e0941b3846db.js.map


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/vendor.779ee1bbeec2c196af1e.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/vendor.779ee1bbeec2c196af1e.js.map


BIN
src/assets/avatar.png


BIN
src/assets/icon/line.png


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 581 - 112
src/components/pages/addCourse.vue


+ 1 - 1
src/components/pages/components/worksDetail2.vue

@@ -464,7 +464,7 @@ export default {
       projectJuri: [],
       grade: [],
       mr: require("../../../assets/icon/wheel.png"),
-      tx: require("../../../assets/portal.png"),
+      tx: require("../../../assets/avatar.png"),
       projectchoose: "",
       scopeId: "",
       thumbnail: [],

+ 1 - 1
src/components/pages/data.vue

@@ -160,7 +160,7 @@ export default {
         sBySchool: "",
         headportrait: "",
       },
-      tx: require("../../assets/portal.png"),
+      tx: require("../../assets/avatar.png"),
       userinfo: "",
       schoolJuri: [],
       userid: this.$route.query.userid,

+ 75 - 18
src/components/pages/student.vue

@@ -2,7 +2,12 @@
   <div class="pb_content" style="min-width: 960px; background: unset">
     <div
       class="pb_content_body"
-      style="background: #fff; padding: 0px 25px; box-sizing: border-box;border-radius: 5px;"
+      style="
+        background: #fff;
+        padding: 0px 25px;
+        box-sizing: border-box;
+        border-radius: 5px;
+      "
     >
       <div class="pb_head">
         <span>我的学生列表</span>
@@ -20,7 +25,7 @@
         </div>
         <div class="head_right">
           <el-button @click="addStudent">添加学生</el-button>
-          <el-upload
+          <!-- <el-upload
             class="upload-demo"
             :http-request="handleChange"
             :on-remove="handleRemove"
@@ -29,9 +34,9 @@
             accept=".xlsx"
           >
             <el-button size="primary" type="primary">批量添加</el-button>
-            <!-- <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div> -->
+            <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div>
           </el-upload>
-          <div @click="getExcel">xls 上传样例</div>
+          <div @click="getExcel">xls 上传样例</div> -->
         </div>
       </div>
     </div>
@@ -159,6 +164,16 @@
             ></el-input>
           </span>
         </el-form-item>
+        <el-form-item label="学生邮箱" :label-width="formLabelWidth">
+          <span>
+            <el-input
+              placeholder="请输入学生邮箱"
+              clearable
+              v-model="sMail"
+              class="add_input"
+            ></el-input>
+          </span>
+        </el-form-item>
         <el-form-item label="所属学校" :label-width="formLabelWidth">
           <el-input
             disabled
@@ -204,6 +219,7 @@ export default {
       // sBySchool: [],
       // sBySchoolName:"",
       sByClass: "",
+      sMail: "",
       schoolJuri: [],
       classJuri: [],
       fileListUpload: [],
@@ -212,7 +228,7 @@ export default {
       sPhoneUser: "",
       userid: this.$route.query.userid,
       oid: this.$route.query.oid,
-      tx: require("../../assets/portal.png"),
+      tx: require("../../assets/avatar.png"),
     };
   },
   mounted() {
@@ -302,6 +318,11 @@ export default {
       } else if (!/^[1][3,4,5,7,8][0-9]{9}$/.test(this.sPhone)) {
         this.$message.error("手机号格式不正确");
         return;
+      } else if (
+        !/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/.test(this.sMail)
+      ) {
+        this.$message.error("邮箱格式不正确");
+        return;
       }
       if (this.time()) {
         let params = { un: this.sPhone };
@@ -311,7 +332,19 @@ export default {
             if (res.data[0].length > 0) {
               this.$message.error("此学生手机号码已被注册");
             } else {
-              this.add_Student();
+              let params = { un: this.sMail };
+              this.ajax
+                .get(this.$store.state.api + "findMail", params)
+                .then((res) => {
+                  if (res.data[0].length > 0) {
+                    this.$message.error("此学生邮箱已被注册");
+                  } else {
+                    this.add_Student();
+                  }
+                })
+                .catch((err) => {
+                  console.error(err);
+                });
             }
           })
           .catch((err) => {
@@ -320,19 +353,42 @@ export default {
       }
     },
     add_Student() {
-      let params = {
-        ph: this.sPhone,
-        username: this.sName,
-        userpassword: 123456,
-        type: 2,
-        oid: this.oid,
-        tid: this.userid,
-        cid: this.sByClass,
-      };
+      let params = [
+        {
+          username: this.sMail,
+          userpassword: 123456,
+          alias: this.sName,
+          oid: this.oid,
+          ph: this.sPhone,
+          cid: this.sByClass,
+        },
+      ];
       this.ajax
-        .get(this.$store.state.api + "insertStudent", params)
+        .post(this.$store.state.api + "batchRegistration", params)
         .then((res) => {
-          this.isLoading = false;
+          // console.log(res.data.uid, res.data.ph, res.data.oid, res.data.cid);
+          // this.isLoading = false;
+
+          let params = [
+            {
+              userid: res.data.uid,
+              username: this.sName,
+              type: 2,
+              oid: res.data.oid,
+              phone: res.data.ph,
+              intro: "",
+              sex: "0",
+            },
+          ];
+          this.ajax
+            // .post(this.$store.state.api + "updateUser", params)
+            .post(this.$store.state.api + "updateUserByEdu", params)
+            .then((res) => {
+              console.log(res);
+            })
+            .catch((err) => {
+              console.error(err);
+            });
           this.$message({
             message: "新增成功",
             type: "success",
@@ -342,6 +398,7 @@ export default {
           this.sName = "";
           // this.sBySchool = [];
           this.sByClass = [];
+          this.sMail = "";
           this.getStudent();
         })
         .catch((err) => {
@@ -393,7 +450,7 @@ export default {
     getStudent() {
       this.isLoading = true;
       let params = {
-        uid: this.userid,
+        oid: this.oid,
         cu: "",
         cn: this.sPhoneUser,
         page: this.page,

+ 1 - 1
src/components/pages/worksDetail.vue

@@ -473,7 +473,7 @@ export default {
       projectJuri: [],
       grade: [],
       mr: require("../../assets/icon/wheel.png"),
-      tx: require("../../assets/portal.png"),
+      tx: require("../../assets/avatar.png"),
       projectchoose: "",
       scopeId: "",
       thumbnail: [],

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác