Pārlūkot izejas kodu

1

Signed-off-by: lcw <1324309909@qq.com>
lcw 3 gadi atpakaļ
vecāks
revīzija
3fcb40eca7

+ 1 - 1
dist/index.html

@@ -25,4 +25,4 @@
       height: 100%;
       width: 100%;
       background: #e6eaf0;
-    }</style><link href=./static/css/app.67c1a33c1e5aeec24693d7adc862ece2.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.e92d4f5fd2eb9df34011.js></script><script type=text/javascript src=./static/js/vendor.57c88615aac160d2c474.js></script><script type=text/javascript src=./static/js/app.dafe6e5f489ebd306949.js></script></body></html>
+    }</style><link href=./static/css/app.f0e477f1d233672ce36fcc0d2aa91dd4.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.e92d4f5fd2eb9df34011.js></script><script type=text/javascript src=./static/js/vendor.57c88615aac160d2c474.js></script><script type=text/javascript src=./static/js/app.c5d93b6248eb7e781f46.js></script></body></html>

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/css/app.67c1a33c1e5aeec24693d7adc862ece2.css


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/css/app.67c1a33c1e5aeec24693d7adc862ece2.css.map


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/css/app.f0e477f1d233672ce36fcc0d2aa91dd4.css


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/css/app.f0e477f1d233672ce36fcc0d2aa91dd4.css.map


BIN
dist/static/img/user.7f16b85.png


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/app.c5d93b6248eb7e781f46.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/app.c5d93b6248eb7e781f46.js.map


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/app.dafe6e5f489ebd306949.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/app.dafe6e5f489ebd306949.js.map


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/manifest.e92d4f5fd2eb9df34011.js.map


+ 278 - 280
src/App.vue

@@ -1,7 +1,7 @@
 <template>
-  <div id="app">
-    <div class="app_head" :class="{stuWidth:$route.path == '/student'}">
-      <div class="logo" @click="goTo('/course')"></div>
+	<div id="app">
+		<!-- <div class="app_head" :class="{stuWidth:$route.path == '/student'}"> -->
+		<!-- <div class="logo" @click="goTo('/course')"></div>
       <span style="margin-left: 10px; color: #fff; font-weight: 600" @click="goTo('/course')"
         >PBL项目管理平台</span
       >
@@ -21,289 +21,287 @@
             >退出</el-button
           >
         </div>
-      </div>
-    </div>
-    <div style="height: calc(100% - 67.5px)">
-      <!-- main 内容 -->
-      <keep-alive v-if="$route.meta.keepAlive">
-        <!-- 这里是会被缓存的视图组件 -->
-        <router-view
-          v-if="$route.meta.keepAlive"
-          :class="{ pb_body: isShowNav }"
-        />
-      </keep-alive>
-      <!-- 这里是不被缓存的视图组件 -->
-      <router-view
-        v-if="!$route.meta.keepAlive"
-        :class="{ pb_body: isShowNav }"
-      />
+      </div> -->
+		<!-- </div> -->
+		<div style="height: calc(100% - 67.5px)">
+			<!-- main 内容 -->
+			<keep-alive v-if="$route.meta.keepAlive">
+				<!-- 这里是会被缓存的视图组件 -->
+				<router-view
+					v-if="$route.meta.keepAlive"
+					:class="{ pb_body: isShowNav }"
+				/>
+			</keep-alive>
+			<!-- 这里是不被缓存的视图组件 -->
+			<router-view
+				v-if="!$route.meta.keepAlive"
+				:class="{ pb_body: isShowNav }"
+			/>
 
-      <!-- 底部导航 -->
-      <footer-nav
-        v-if="isShowNav"
-        :luyou="this.$store.state.luyou"
-      ></footer-nav>
-    </div>
-  </div>
+			<!-- 底部导航 -->
+			<footer-nav
+				v-if="isShowNav"
+				:luyou="this.$store.state.luyou"
+			></footer-nav>
+		</div>
+	</div>
 </template>
 
 <script>
-import leftBar from "./components/tools/leftBar";
-import { Message } from "element-ui";
-export default {
-  name: "App",
-  data() {
-    return {
-      isShowNav: true, // 是否显示导航 Tab
-      navTabs: [
-        "/class",
-        "/course",
-        "/data",
-        "/notice",
-        "/student",
-        "/works",
-        "/worksDetail",
-        "/course/courseDetail",
-        "/library",
-        // "/course/addCourse",
-        // "/ask",
-        // "/ask/askList",
-      ], // 导航
-    };
-  },
-  components: {
-    "footer-nav": leftBar,
-  },
-  created: function () {
-    this.routerP();
-    // this.getnCount();
-    setInterval(() => {
-      // this.getnCount();
-    }, 60000);
-  },
-  methods: {
-    isLogin() {
-      const loading = this.$loading.service({
-        background: "rgba(255, 255, 255)",
-        target: document.querySelector("body"),
-      });
-      var _isLogin = this.$cookies.get("tlogin");
-      var userInfo = this.$cookies.get("teacherInfo");
-      // if (_isLogin == "1" && userInfo) {
-        loading.close();
-        this.$store.commit("update", ["isLogin", true]);
-        // var info = JSON.parse(window.sessionStorage.getItem("userInfo"));
-        this.$store.commit("update", ["userInfo", userInfo]);
-        let router_path = this.$route.path;
-        if(router_path == "/"){
-          this.$router.push("/course");
-        }
-      // } else {
-      //   this.$store.commit("update", ["isLogin", false]);
-      //   Message({
-      //     message: "未登录,请登录",
-      //     type: "warning",
-      //   });
-      //   setTimeout(() => {
-      //     loading.close();
-      //     this.$router.push("/login");
-      //   }, 2000);
-      // }
-    },
-    getnCount() {
-      let params = {
-        bid: this.$store.state.userInfo.userid,
-      };
-      this.ajax
-        .get(this.$store.state.api + "getNcount", params)
-        .then((res) => {
-          console.log(res);
-          if (res.data[0].length > 0) {
-            this.$store.commit("update", ["nCount", res.data[0][0].num]);
-          } else {
-            this.$store.commit("update", ["nCount", 0]);
-          }
-        })
-        .catch((err) => {
-          console.error(err);
-        });
-    },
-    routerP() {
-      const { navTabs } = this.$data;
-      let router_path = this.$route.path;
-      console.log(router_path);
-      if (router_path != "/login") {
-        this.isLogin();
-      }
-      var a = 0;
-      for (var i = 0; i < navTabs.length; i++) {
-        if (router_path == navTabs[i]) {
-          this.isShowNav = true;
-          a = 1;
-          break;
-        }
-      }
-      if (a == 0) {
-        this.isShowNav = false;
-      }
-    },
-    exit() {
-      sessionStorage.clear();
-      this.$cookies.remove("tlogin");
-      this.$cookies.remove("teacherInfo");
-      this.$store.commit("update", ["isLogin", false]);
-      this.$store.commit("update", ["userInfo", {}]);
-      Message({
-        message: "退出成功",
-        type: "success",
-      });
-      this.$router.push("/login");
-    },
-    goTo(path) {
-      this.$router.push(path);
-    },
-  },
-  watch: {
-    $route(to, from) {
-      const { navTabs } = this.$data;
-      const toPath = to.path;
-      const fromName = from.name;
-      var a = 0;
-      for (var i = 0; i < navTabs.length; i++) {
-        if (toPath == navTabs[i]) {
-          this.isShowNav = true;
-          a = 1;
-          break;
-        }
-      }
-      if (a == 0) {
-        this.isShowNav = false;
-      }
-    },
-  },
-};
+	// import leftBar from "./components/tools/leftBar";
+	import { Message } from "element-ui";
+	export default {
+		name: "App",
+		data() {
+			return {
+				isShowNav: true, // 是否显示导航 Tab
+				navTabs: [
+					"/class",
+					"/course",
+					"/data",
+					"/notice",
+					"/student",
+					"/works",
+					"/worksDetail",
+					"/course/courseDetail",
+					"/library",
+					// "/course/addCourse",
+					// "/ask",
+					// "/ask/askList",
+				], // 导航
+			};
+		},
+		// components: {
+		//   "footer-nav": leftBar,
+		// },
+		created: function () {
+			this.routerP();
+			// this.getnCount();
+			setInterval(() => {
+				// this.getnCount();
+			}, 60000);
+		},
+		methods: {
+			isLogin() {
+				const loading = this.$loading.service({
+					background: "rgba(255, 255, 255)",
+					target: document.querySelector("body"),
+				});
+				var _isLogin = this.$cookies.get("tlogin");
+				var userInfo = this.$cookies.get("teacherInfo");
+				// if (_isLogin == "1" && userInfo) {
+				loading.close();
+				this.$store.commit("update", ["isLogin", true]);
+				// var info = JSON.parse(window.sessionStorage.getItem("userInfo"));
+				this.$store.commit("update", ["userInfo", userInfo]);
+				let router_path = this.$route.path;
+				if (router_path == "/") {
+					this.$router.push("/course");
+				}
+				// } else {
+				//   this.$store.commit("update", ["isLogin", false]);
+				//   Message({
+				//     message: "未登录,请登录",
+				//     type: "warning",
+				//   });
+				//   setTimeout(() => {
+				//     loading.close();
+				//     this.$router.push("/login");
+				//   }, 2000);
+				// }
+			},
+			getnCount() {
+				let params = {
+					bid: this.$store.state.userInfo.userid,
+				};
+				this.ajax
+					.get(this.$store.state.api + "getNcount", params)
+					.then((res) => {
+						console.log(res);
+						if (res.data[0].length > 0) {
+							this.$store.commit("update", ["nCount", res.data[0][0].num]);
+						} else {
+							this.$store.commit("update", ["nCount", 0]);
+						}
+					})
+					.catch((err) => {
+						console.error(err);
+					});
+			},
+			routerP() {
+				const { navTabs } = this.$data;
+				let router_path = this.$route.path;
+				console.log(router_path);
+				if (router_path != "/login") {
+					this.isLogin();
+				}
+				var a = 0;
+				for (var i = 0; i < navTabs.length; i++) {
+					if (router_path == navTabs[i]) {
+						this.isShowNav = true;
+						a = 1;
+						break;
+					}
+				}
+				if (a == 0) {
+					this.isShowNav = false;
+				}
+			},
+			exit() {
+				sessionStorage.clear();
+				this.$cookies.remove("tlogin");
+				this.$cookies.remove("teacherInfo");
+				this.$store.commit("update", ["isLogin", false]);
+				this.$store.commit("update", ["userInfo", {}]);
+				Message({
+					message: "退出成功",
+					type: "success",
+				});
+				this.$router.push("/login");
+			},
+			goTo(path) {
+				this.$router.push(path);
+			},
+		},
+		watch: {
+			$route(to, from) {
+				const { navTabs } = this.$data;
+				const toPath = to.path;
+				const fromName = from.name;
+				var a = 0;
+				for (var i = 0; i < navTabs.length; i++) {
+					if (toPath == navTabs[i]) {
+						this.isShowNav = true;
+						a = 1;
+						break;
+					}
+				}
+				if (a == 0) {
+					this.isShowNav = false;
+				}
+			},
+		},
+	};
 </script>
 
 <style>
-* {
-  margin: 0;
-  padding: 0;
-}
-body {
-  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
-    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
-}
-#app {
-  height: 100%;
-  width: 100%;
-  background: #e6eaf0;
-  /* min-width: 1380px; */
-  min-width: 1000px;
-}
-.app_head {
-  height: 67.5px;
-  width: 100%;
-  background-color: rgb(61, 103, 188);
-  display: flex;
-  align-items: center;
-  min-width: 1000px;
-}
-.logo {
-  height: 48px;
-  width: 73px;
-  background: url("./assets/logo.png");
-  background-size: 100% 100%;
-  margin-left: 20px;
-}
-.pb_body {
-  margin-left: 220px;
-  width: calc(100% - 240px);
-  /* min-width: 1140px; */
-  min-width: 745px;
-  display: inline-block;
-  height: calc(100% - 100px);
-  min-height: 750px;
-  background: #fff;
-  margin-top: 20px;
-  border-radius: 5px;
-  position: absolute;
-}
-.pb_head {
-  font-size: 26px;
-  /* font-weight: 600; */
-  width: 95%;
-  margin: 10px auto;
-  padding: 10px 5px;
-  border-bottom: 3px solid #eee;
-}
-.pb_content {
-  /* height: 100%; */
-}
-.pb_content_body {
-  width: 94%;
-  margin: 10px auto;
-  /* overflow: auto;
-  height: calc(100% - 120px); */
-}
-.user_head {
-  display: flex;
-  align-items: center;
-  margin-left: auto;
-  margin-right: 20px;
-  font-size: 18px;
-  font-weight: 600;
-}
-.user_head .user_name {
-  color: #fff;
-  margin-right: 10px;
-}
-.user_head div {
-  display: flex;
-  align-items: center;
-  cursor: pointer;
-}
-.user_head .exitI {
-  background-image: url("./assets/exit.png");
-  width: 25px;
-  height: 25px;
-  background-size: 100% 100%;
-  margin-top: 1px;
-  line-height: 25px;
-  vertical-align: text-top;
-  background-repeat: no-repeat;
-}
-.noticeBox {
-  position: relative;
-  margin-right: 10px;
-}
+	* {
+		margin: 0;
+		padding: 0;
+	}
+	body {
+		font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
+			"Microsoft YaHei", "微软雅黑", Arial, sans-serif;
+	}
+	#app {
+		height: 100%;
+		width: 100%;
+		background: #e6eaf0;
+		/* min-width: 1380px; */
+		min-width: 1000px;
+	}
+	.app_head {
+		height: 67.5px;
+		width: 100%;
+		background-color: rgb(61, 103, 188);
+		display: flex;
+		align-items: center;
+		min-width: 1000px;
+	}
+	.logo {
+		height: 48px;
+		width: 73px;
+		background: url("./assets/logo.png");
+		background-size: 100% 100%;
+		margin-left: 20px;
+	}
+	.pb_body {
+		margin: 20px;
+		width: 98%;
+		min-width: 745px;
+		display: inline-block;
+		height: 95%;
+		min-height: 750px;
+		background: #fff;
+		border-radius: 5px;
+		position: absolute;
+	}
+	.pb_head {
+		font-size: 26px;
+		/* font-weight: 600; */
+		width: 95%;
+		margin: 10px auto;
+		padding: 10px 5px;
+		border-bottom: 3px solid #eee;
+	}
+	.pb_content {
+		/* height: 100%; */
+	}
+	.pb_content_body {
+		width: 94%;
+		margin: 10px auto;
+		/* overflow: auto;
+	  height: calc(100% - 120px); */
+	}
+	.user_head {
+		display: flex;
+		align-items: center;
+		margin-left: auto;
+		margin-right: 20px;
+		font-size: 18px;
+		font-weight: 600;
+	}
+	.user_head .user_name {
+		color: #fff;
+		margin-right: 10px;
+	}
+	.user_head div {
+		display: flex;
+		align-items: center;
+		cursor: pointer;
+	}
+	.user_head .exitI {
+		background-image: url("./assets/exit.png");
+		width: 25px;
+		height: 25px;
+		background-size: 100% 100%;
+		margin-top: 1px;
+		line-height: 25px;
+		vertical-align: text-top;
+		background-repeat: no-repeat;
+	}
+	.noticeBox {
+		position: relative;
+		margin-right: 10px;
+	}
 
-.user_head .noticeI {
-  background-image: url("./assets/icon/noticeA.png");
-  width: 25px;
-  height: 25px;
-  background-size: 100% 100%;
-  margin-top: 1px;
-  line-height: 25px;
-  vertical-align: text-top;
-  background-repeat: no-repeat;
-  cursor: pointer;
-}
-.noticeBox span {
-  position: absolute;
-  background: red;
-  width: 15px;
-  height: 15px;
-  border-radius: 30px;
-  color: #fff;
-  text-align: center;
-  font-size: 12px;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  top: -3px;
-  right: -3px;
-}
-.stuWidth{
-  min-width: 1180px;
-}
+	.user_head .noticeI {
+		background-image: url("./assets/icon/noticeA.png");
+		width: 25px;
+		height: 25px;
+		background-size: 100% 100%;
+		margin-top: 1px;
+		line-height: 25px;
+		vertical-align: text-top;
+		background-repeat: no-repeat;
+		cursor: pointer;
+	}
+	.noticeBox span {
+		position: absolute;
+		background: red;
+		width: 15px;
+		height: 15px;
+		border-radius: 30px;
+		color: #fff;
+		text-align: center;
+		font-size: 12px;
+		display: flex;
+		align-items: center;
+		justify-content: center;
+		top: -3px;
+		right: -3px;
+	}
+	.stuWidth {
+		min-width: 1180px;
+	}
 </style>

+ 392 - 392
src/components/login.vue

@@ -1,12 +1,12 @@
 <template>
-  <div class="login_content">
-    <!-- <el-button type="primary" @click="login()">登录</el-button> -->
-    <div class="login_box" v-show="islogin">
-      <div style="padding: 0px 20px">
-        <div class="login_title">
-          <span>PBL项目式平台</span>
-        </div>
-        <!-- <div class="userLogin">
+	<div class="login_content">
+		<!-- <el-button type="primary" @click="login()">登录</el-button> -->
+		<div class="login_box" v-show="islogin">
+			<div style="padding: 0px 20px">
+				<div class="login_title">
+					<span>PBL项目式平台</span>
+				</div>
+				<!-- <div class="userLogin">
           <img src="../assets/username.png" />
           <el-input v-model="phoneNum" placeholder="手机号码"></el-input>
         </div>
@@ -18,45 +18,45 @@
             type="password"
           ></el-input>
         </div> -->
-        <el-form
-          label-position="right"
-          label-width="80px"
-          style="margin-top: 30px"
-        >
-          <el-form-item label="手机号码">
-            <el-input
-              v-model="phoneNum"
-              auto-complete="off"
-              placeholder="请输入手机号码"
-              style="width: 100%"
-              @keyup.enter.native="findPhone"
-            ></el-input>
-          </el-form-item>
-          <el-form-item label="密码">
-            <el-input
-              v-model="password"
-              auto-complete="off"
-              placeholder="请输入密码"
-              type="password"
-              style="width: 100%"
-              @keyup.enter.native="findPhone"
-            ></el-input>
-          </el-form-item>
-        </el-form>
-        <div style="display: flex; justify-content: flex-end">
-          <el-button type="text" @click="islogin = false">立即注册</el-button>
-        </div>
-        <div class="login_button">
-          <button @click="findPhone()">登录</button>
-        </div>
-      </div>
-    </div>
-    <div class="login_box" v-show="!islogin">
-      <div style="padding: 0px 20px">
-        <div class="login_title">
-          <span>PBL项目平台注册</span>
-        </div>
-        <!-- <div class="userLogin">
+				<el-form
+					label-position="right"
+					label-width="80px"
+					style="margin-top: 30px"
+				>
+					<el-form-item label="手机号码">
+						<el-input
+							v-model="phoneNum"
+							auto-complete="off"
+							placeholder="请输入手机号码"
+							style="width: 100%"
+							@keyup.enter.native="findPhone"
+						></el-input>
+					</el-form-item>
+					<el-form-item label="密码">
+						<el-input
+							v-model="password"
+							auto-complete="off"
+							placeholder="请输入密码"
+							type="password"
+							style="width: 100%"
+							@keyup.enter.native="findPhone"
+						></el-input>
+					</el-form-item>
+				</el-form>
+				<div style="display: flex; justify-content: flex-end">
+					<el-button type="text" @click="islogin = false">立即注册</el-button>
+				</div>
+				<div class="login_button">
+					<button @click="findPhone()">登录</button>
+				</div>
+			</div>
+		</div>
+		<div class="login_box" v-show="!islogin">
+			<div style="padding: 0px 20px">
+				<div class="login_title">
+					<span>PBL项目平台注册</span>
+				</div>
+				<!-- <div class="userLogin">
           <img src="../assets/username.png" />
           <el-input v-model="phoneNum" placeholder="手机号码"></el-input>
         </div>
@@ -64,297 +64,297 @@
           <img src="../assets/password.png" />
           <el-input v-model="password" placeholder="密码" type="password"></el-input>
         </div> -->
-        <el-form
-          label-position="right"
-          label-width="80px"
-          style="margin-top: 30px"
-          :rules="rules2"
-          ref="ruleForm2"
-          :model="registerForm"
-        >
-          <el-form-item label="手机号码" prop="phone">
-            <el-input
-              v-model="registerForm.rphoneNum"
-              auto-complete="off"
-              placeholder="请输入手机号码"
-              style="width: 100%"
-            ></el-input>
-          </el-form-item>
-          <el-form-item label="密码" prop="pass">
-            <el-input
-              v-model="registerForm.rpassword"
-              auto-complete="off"
-              placeholder="请输入密码"
-              type="password"
-              style="width: 100%"
-            ></el-input>
-          </el-form-item>
-          <el-form-item label="确认密码" prop="checkPass">
-            <el-input
-              v-model="registerForm.repassword"
-              auto-complete="off"
-              placeholder="请再输入一遍密码"
-              type="password"
-              style="width: 100%"
-            ></el-input>
-          </el-form-item>
-          <el-form-item label="学校" prop="school">
-            <el-select v-model="registerForm.school" placeholder="请选择学校">
-								<el-option
-									v-for="(item, index) in schoolArray"
-									:key="index"
-									:label="item.name"
-									:value="item.id"
-								>
-								</el-option>
-							</el-select>
-          </el-form-item>
-        </el-form>
-        <div style="display: flex; justify-content: flex-end">
-          <el-button type="text" @click="islogin = true">返回登录</el-button>
-        </div>
-        <div class="login_button">
-          <button @click="register()">注册</button>
-        </div>
-      </div>
-    </div>
-  </div>
+				<el-form
+					label-position="right"
+					label-width="80px"
+					style="margin-top: 30px"
+					:rules="rules2"
+					ref="ruleForm2"
+					:model="registerForm"
+				>
+					<el-form-item label="手机号码" prop="phone">
+						<el-input
+							v-model="registerForm.rphoneNum"
+							auto-complete="off"
+							placeholder="请输入手机号码"
+							style="width: 100%"
+						></el-input>
+					</el-form-item>
+					<el-form-item label="密码" prop="pass">
+						<el-input
+							v-model="registerForm.rpassword"
+							auto-complete="off"
+							placeholder="请输入密码"
+							type="password"
+							style="width: 100%"
+						></el-input>
+					</el-form-item>
+					<el-form-item label="确认密码" prop="checkPass">
+						<el-input
+							v-model="registerForm.repassword"
+							auto-complete="off"
+							placeholder="请再输入一遍密码"
+							type="password"
+							style="width: 100%"
+						></el-input>
+					</el-form-item>
+					<el-form-item label="学校" prop="school">
+						<el-select v-model="registerForm.school" placeholder="请选择学校">
+							<el-option
+								v-for="(item, index) in schoolArray"
+								:key="index"
+								:label="item.name"
+								:value="item.id"
+							>
+							</el-option>
+						</el-select>
+					</el-form-item>
+				</el-form>
+				<div style="display: flex; justify-content: flex-end">
+					<el-button type="text" @click="islogin = true">返回登录</el-button>
+				</div>
+				<div class="login_button">
+					<button @click="register()">注册</button>
+				</div>
+			</div>
+		</div>
+	</div>
 </template>
 
 <script>
-export default {
-  data() {
-    var validatePass = (rule, value, callback) => {
-      var _this = this;
-      if (_this.registerForm.rpassword === "") {
-        callback(new Error("请输入密码"));
-      } else {
-        if (_this.registerForm.rpassword.length < 6) {
-          callback(new Error("输入的密码需不少于6位"));
-        } else if (_this.registerForm.repassword !== "") {
-          _this.$refs.ruleForm2.validateField("checkPass");
-        }
-        callback();
-      }
-    };
-    var validatePass2 = (rule, value, callback) => {
-      var _this = this;
-      if (_this.registerForm.repassword === "") {
-        callback(new Error("请再次输入密码"));
-      } else if (
-        _this.registerForm.repassword !== _this.registerForm.rpassword
-      ) {
-        callback(new Error("两次输入密码不一致!"));
-      } else {
-        callback();
-      }
-    };
-    // 验证手机
-    var checkPhone = (rule, value, callback) => {
-      var _this = this;
-      let reg = /^1\d{10}$/;
-      if (_this.registerForm.rphoneNum === "") {
-        callback(new Error("请输入手机号码"));
-      } else {
-        if (!reg.test(_this.registerForm.rphoneNum)) {
-          callback(new Error("请输入11位手机号"));
-        } else {
-          let params = { un: _this.registerForm.rphoneNum };
-          this.ajax
-            .get(this.$store.state.api + "findPhone", params)
-            .then((res) => {
-              if (res.data[0].length > 0) {
-                callback(new Error("此手机号已注册"));
-              } else {
-                callback();
-              }
-              console.log(res.data[0]);
-            })
-            .catch((err) => {
-              callback();
-              console.error(err);
-            });
-        }
-      }
-    };
-    return {
-      islogin: true,
-      phoneNum: "",
-      password: "",
-      sqlPassword: "",
-      registerForm: {
-        rphoneNum: "",
-        rpassword: "",
-        repassword: "",
-        school: "",
-      },
-      schoolArray: [],
-      now: "",
-      rules2: {
-        phone: [
-          {
-            required: true,
-            type: "number",
-            validator: checkPhone,
-            trigger: ["blur", "change"],
-          },
-        ],
-        pass: [{ required: true, validator: validatePass, trigger: "blur" }],
-        checkPass: [
-          { required: true, validator: validatePass2, trigger: "blur" },
-        ],
-        school: [
-          { required: true, message: "请选择活动区域", trigger: "blur" },
-        ],
-      },
-      userInfo: [],
-    };
-  },
-  created() {
-    // this.getOrg();
-    this.getSchool();
-  },
-  methods: {
-    time() {
-      if (!this.now) {
-        this.now = new Date().getTime();
-        return true;
-      } else {
-        let time = new Date().getTime();
-        if (time - this.now > 3000) {
-          this.now = time;
-          return true;
-        } else {
-          return false;
-        }
-      }
-    },
-    register() {
-      this.$refs.ruleForm2.validate((valid) => {
-        if (valid) {
-          if (this.time()) {
-            let params = [
-              {
-                username: this.registerForm.rphoneNum,
-                userpassword: this.registerForm.repassword,
-                oid: this.registerForm.school,
-              },
-            ];
-            this.ajax
-              .post(this.$store.state.api + "register", params)
-              .then((res) => {
-                this.$message({
-                  message: "注册成功",
-                  type: "success",
-                });
-                this.registerForm = {
-                  rphoneNum: "",
-                  rpassword: "",
-                  repassword: "",
-                  school: "",
-                };
-                this.islogin = true;
-              })
-              .catch((err) => {
-                this.$message.error("注册失败");
-                console.error(err);
-              });
-          }
-        } else {
-          return false;
-        }
-      });
-    },
-    findPhone() {
-      let params = { un: this.phoneNum };
-      this.ajax
-        .get(this.$store.state.api + "findPhone", params)
-        .then((res) => {
-          if (res.data[0].length > 0) {
-            if (res.data[0][0].state == 0) {
-              this.$message.error("此账号已被屏蔽登录,请咨询管理员");
-              return;
-            }
-            if (res.data[0][0].type == 1) {
-              // this.sqlPassword = res.data[0][0].userpassword;
-              // this.userInfo = res.data[0][0]
-              this.isU = 1;
-            } else {
-              this.isU = 2;
-            }
-          } else {
-            this.isU = false;
-          }
-          this.login();
-          console.log(res.data[0][0]);
-        })
-        .catch((err) => {
-          console.error(err);
-        });
-    },
-    login() {
-      if (this.time()) {
-        var _this = this;
-        var isU = _this.isU;
-        if (isU == 1) {
-          let params = [
-            {
-              uname: this.phoneNum,
-              upassword: this.password,
-              // sqlpassword: this.sqlPassword,
-            },
-          ];
-          _this.ajax
-            .post(_this.$store.state.api + "login", params)
-            .then((res) => {
-              if (res.data.status == "1") {
-                _this.$message({
-                  message: "登录成功",
-                  type: "success",
-                });
+	export default {
+		data() {
+			var validatePass = (rule, value, callback) => {
+				var _this = this;
+				if (_this.registerForm.rpassword === "") {
+					callback(new Error("请输入密码"));
+				} else {
+					if (_this.registerForm.rpassword.length < 6) {
+						callback(new Error("输入的密码需不少于6位"));
+					} else if (_this.registerForm.repassword !== "") {
+						_this.$refs.ruleForm2.validateField("checkPass");
+					}
+					callback();
+				}
+			};
+			var validatePass2 = (rule, value, callback) => {
+				var _this = this;
+				if (_this.registerForm.repassword === "") {
+					callback(new Error("请再次输入密码"));
+				} else if (
+					_this.registerForm.repassword !== _this.registerForm.rpassword
+				) {
+					callback(new Error("两次输入密码不一致!"));
+				} else {
+					callback();
+				}
+			};
+			// 验证手机
+			var checkPhone = (rule, value, callback) => {
+				var _this = this;
+				let reg = /^1\d{10}$/;
+				if (_this.registerForm.rphoneNum === "") {
+					callback(new Error("请输入手机号码"));
+				} else {
+					if (!reg.test(_this.registerForm.rphoneNum)) {
+						callback(new Error("请输入11位手机号"));
+					} else {
+						let params = { un: _this.registerForm.rphoneNum };
+						this.ajax
+							.get(this.$store.state.api + "findPhone", params)
+							.then((res) => {
+								if (res.data[0].length > 0) {
+									callback(new Error("此手机号已注册"));
+								} else {
+									callback();
+								}
+								console.log(res.data[0]);
+							})
+							.catch((err) => {
+								callback();
+								console.error(err);
+							});
+					}
+				}
+			};
+			return {
+				islogin: true,
+				phoneNum: "",
+				password: "",
+				sqlPassword: "",
+				registerForm: {
+					rphoneNum: "",
+					rpassword: "",
+					repassword: "",
+					school: "",
+				},
+				schoolArray: [],
+				now: "",
+				rules2: {
+					phone: [
+						{
+							required: true,
+							type: "number",
+							validator: checkPhone,
+							trigger: ["blur", "change"],
+						},
+					],
+					pass: [{ required: true, validator: validatePass, trigger: "blur" }],
+					checkPass: [
+						{ required: true, validator: validatePass2, trigger: "blur" },
+					],
+					school: [
+						{ required: true, message: "请选择活动区域", trigger: "blur" },
+					],
+				},
+				userInfo: [],
+			};
+		},
+		created() {
+			// this.getOrg();
+			this.getSchool();
+		},
+		methods: {
+			time() {
+				if (!this.now) {
+					this.now = new Date().getTime();
+					return true;
+				} else {
+					let time = new Date().getTime();
+					if (time - this.now > 3000) {
+						this.now = time;
+						return true;
+					} else {
+						return false;
+					}
+				}
+			},
+			register() {
+				this.$refs.ruleForm2.validate((valid) => {
+					if (valid) {
+						if (this.time()) {
+							let params = [
+								{
+									username: this.registerForm.rphoneNum,
+									userpassword: this.registerForm.repassword,
+									oid: this.registerForm.school,
+								},
+							];
+							this.ajax
+								.post(this.$store.state.api + "register", params)
+								.then((res) => {
+									this.$message({
+										message: "注册成功",
+										type: "success",
+									});
+									this.registerForm = {
+										rphoneNum: "",
+										rpassword: "",
+										repassword: "",
+										school: "",
+									};
+									this.islogin = true;
+								})
+								.catch((err) => {
+									this.$message.error("注册失败");
+									console.error(err);
+								});
+						}
+					} else {
+						return false;
+					}
+				});
+			},
+			findPhone() {
+				let params = { un: this.phoneNum };
+				this.ajax
+					.get(this.$store.state.api + "findPhone", params)
+					.then((res) => {
+						if (res.data[0].length > 0) {
+							if (res.data[0][0].state == 0) {
+								this.$message.error("此账号已被屏蔽登录,请咨询管理员");
+								return;
+							}
+							if (res.data[0][0].type == 1) {
+								// this.sqlPassword = res.data[0][0].userpassword;
+								// this.userInfo = res.data[0][0]
+								this.isU = 1;
+							} else {
+								this.isU = 2;
+							}
+						} else {
+							this.isU = false;
+						}
+						this.login();
+						console.log(res.data[0][0]);
+					})
+					.catch((err) => {
+						console.error(err);
+					});
+			},
+			login() {
+				if (this.time()) {
+					var _this = this;
+					var isU = _this.isU;
+					if (isU == 1) {
+						let params = [
+							{
+								uname: this.phoneNum,
+								upassword: this.password,
+								// sqlpassword: this.sqlPassword,
+							},
+						];
+						_this.ajax
+							.post(_this.$store.state.api + "login", params)
+							.then((res) => {
+								if (res.data.status == "1") {
+									_this.$message({
+										message: "登录成功",
+										type: "success",
+									});
 
-                _this.userInfo = res.data[0][0];
-                _this.$cookies.set("tlogin", "1", -1);
+									_this.userInfo = res.data[0][0];
+									_this.$cookies.set("tlogin", "1", -1);
 
-                _this.$cookies.set("tuserid", _this.userInfo.userid, -1);
-                _this.$cookies.set("teacherInfo", _this.userInfo, -1);
-                // window.sessionStorage.setItem("login", true);
-                // window.sessionStorage.setItem("userInfo", JSON.stringify(this.userInfo));
-                _this.$store.commit("update", ["isLogin", true]);
-                _this.$store.commit("update", ["userInfo", _this.userInfo]);
-                // console.log(_this.$store.state);
-                _this.$router.push("/course");
-              } else {
-                this.$message.error("密码错误");
-              }
-              console.log(res.data);
-            })
-            .catch((err) => {
-              this.$message.error("登录失败");
-              console.error(err);
-            });
-        } else if (isU == 2) {
-          this.$message.error("此账号角色不是老师");
-        } else {
-          this.$message.error("此账号还未注册请去注册");
-        }
-      }
+									_this.$cookies.set("tuserid", _this.userInfo.userid, -1);
+									_this.$cookies.set("teacherInfo", _this.userInfo, -1);
+									// window.sessionStorage.setItem("login", true);
+									// window.sessionStorage.setItem("userInfo", JSON.stringify(this.userInfo));
+									_this.$store.commit("update", ["isLogin", true]);
+									_this.$store.commit("update", ["userInfo", _this.userInfo]);
+									// console.log(_this.$store.state);
+									_this.$router.push("/course?userid=" + _this.userInfo.userid);
+								} else {
+									this.$message.error("密码错误");
+								}
+								console.log(res.data);
+							})
+							.catch((err) => {
+								this.$message.error("登录失败");
+								console.error(err);
+							});
+					} else if (isU == 2) {
+						this.$message.error("此账号角色不是老师");
+					} else {
+						this.$message.error("此账号还未注册请去注册");
+					}
+				}
 
-      //   sessionStorage.removeItem("key");
-    },
-    //查询学校
-    // getOrg() {
-    //   this.ajax
-    //     .get(this.$store.state.api + "getAllOrg", "")
-    //     .then((res) => {
-    //       this.schoolArray = res.data[0];
-    //       console.log(res.data[0]);
-    //     })
-    //     .catch((err) => {
-    //       console.error(err);
-    //     });
-    // },
-    getSchool() {
+				//   sessionStorage.removeItem("key");
+			},
+			//查询学校
+			// getOrg() {
+			//   this.ajax
+			//     .get(this.$store.state.api + "getAllOrg", "")
+			//     .then((res) => {
+			//       this.schoolArray = res.data[0];
+			//       console.log(res.data[0]);
+			//     })
+			//     .catch((err) => {
+			//       console.error(err);
+			//     });
+			// },
+			getSchool() {
 				this.ajax
 					.get(this.$store.state.api + "selectOrg", "")
 					.then((res) => {
@@ -364,69 +364,69 @@ export default {
 						console.error(err);
 					});
 			},
-  },
-};
+		},
+	};
 </script>
 
 <style scoped>
-.login_content {
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  height: calc(100% - (67.5px * 2));
-  /* position: absolute; */
-  width: 100%;
-}
-.login_box {
-  width: 23%;
-  min-width: 400px;
-  margin: 0 auto;
-  background: #fff;
-  padding: 20px;
-  box-shadow: 0 0 20px #eee;
-}
+	.login_content {
+		display: flex;
+		align-items: center;
+		justify-content: center;
+		height: calc(100% - (67.5px * 2));
+		/* position: absolute; */
+		width: 100%;
+	}
+	.login_box {
+		width: 23%;
+		min-width: 400px;
+		margin: 0 auto;
+		background: #fff;
+		padding: 20px;
+		box-shadow: 0 0 20px #eee;
+	}
 
-/* .userLogin img {
-  width: 50%;
-  display: inline-block;
-  width: 18px;
-  padding-right: 5px;
-  border-right: 1px solid #2a97ff;
-  position: absolute;
-  top: 8px;
-  left: 10px;
-  z-index: 999;
-} */
+	/* .userLogin img {
+	  width: 50%;
+	  display: inline-block;
+	  width: 18px;
+	  padding-right: 5px;
+	  border-right: 1px solid #2a97ff;
+	  position: absolute;
+	  top: 8px;
+	  left: 10px;
+	  z-index: 999;
+	} */
 
-/* .el-input >>> input {
-  width: 100%;
-  padding: 15px 0 15px 40px;
-  outline: none;
-  border: 1px solid #ccc;
-  font-size: 14px;
-} */
-/* .userLogin {
-  margin-top: 25px;
-  position: relative;
-} */
-.login_button {
-  margin-top: 10px;
-}
-.login_button button {
-  width: 100%;
-  color: #fff;
-  background: #2a97ff;
-  padding: 10px;
-  border-radius: 10px;
-  border: none;
-  font-size: 18px;
-  text-align: center;
-  outline: none;
-  cursor: pointer;
-}
-.login_title {
-  text-align: center;
-  font-size: 26px;
-  font-weight: 600;
-}
+	/* .el-input >>> input {
+	  width: 100%;
+	  padding: 15px 0 15px 40px;
+	  outline: none;
+	  border: 1px solid #ccc;
+	  font-size: 14px;
+	} */
+	/* .userLogin {
+	  margin-top: 25px;
+	  position: relative;
+	} */
+	.login_button {
+		margin-top: 10px;
+	}
+	.login_button button {
+		width: 100%;
+		color: #fff;
+		background: #2a97ff;
+		padding: 10px;
+		border-radius: 10px;
+		border: none;
+		font-size: 18px;
+		text-align: center;
+		outline: none;
+		cursor: pointer;
+	}
+	.login_title {
+		text-align: center;
+		font-size: 26px;
+		font-weight: 600;
+	}
 </style>

+ 6 - 4
src/components/pages/addCourse.vue

@@ -746,7 +746,7 @@
           </div>
         </div>
         <div class="info_btnBox">
-          <button class="info_btn" v-if="steps == 1" @click="goTo('/course')">
+          <button class="info_btn" v-if="steps == 1" @click="goTo('/course?userid='+ userid + '&oid=' + oid)">
             返回课程
           </button>
           <button
@@ -852,6 +852,8 @@ export default {
       dialogVisible1: false,
       dialogVisible2: false,
       searchPeople: "",
+      userid: this.$route.query.userid,
+      oid:this.$route.query.oid,
       cover: [], //课程封面
       unitJson: [
         {
@@ -1278,8 +1280,8 @@ export default {
     getStudent() {
       let params = {
         cn: this.searchPeople,
-        oid: this.$store.state.userInfo.organizeid,
-        uid: this.$store.state.userInfo.userid,
+        oid: this.oid,
+        uid: this.userid,
       };
       this.ajax
         .get(this.$store.state.api + "selectProjectStudent", params)
@@ -1353,7 +1355,7 @@ export default {
       }
       let params = [
         {
-          uid: this.$store.state.userInfo.userid,
+          uid: this.userid,
           title: this.courseName,
           brief: this.courseText.replace(/%/g, "%25"),
           cover: this.cover.length > 0 ? JSON.stringify(this.cover) : "",

+ 6 - 4
src/components/pages/class.vue

@@ -102,6 +102,8 @@
 				tableData: [],
 				page: 1,
 				total: 0,
+				userid: this.$route.query.userid,
+				oid: this.$route.query.oid,
 			};
 		},
 		created() {
@@ -162,8 +164,8 @@
 			insertClass() {
 				let params = {
 					name: this.className,
-					oid: this.$store.state.userInfo.organizeid,
-					uid: this.$store.state.userInfo.userid,
+					oid: this.oid,
+					uid: this.userid,
 				};
 				this.ajax
 					.get(this.$store.state.api + "insertClass", params)
@@ -191,7 +193,7 @@
 				let params = {
 					// username: this.$store.state.userInfo.userid,
 					cu: "",
-					oid:this.$store.state.userInfo.organizeid,
+					oid:this.oid,
 					cn: this.sClassName,
 					page: this.page,
 				};
@@ -207,7 +209,7 @@
 						console.error(err);
 					});
 			},
-			//新增班级
+			//删除班级
 			deleteClass(id) {
 				let params = {
 					id: id,

+ 464 - 449
src/components/pages/course.vue

@@ -1,470 +1,485 @@
 <template>
-  <div class="pb_content">
-    <div class="pb_head">
-      <span>课程管理</span>
-    </div>
-    <div class="pb_content_body" style="height: calc(100% - 150px)">
-      <div class="student_head">
-        <div class="student_search">
-          <span>课程筛选</span>
-          <el-select v-model="groupA" @change="search">
-            <el-option value="0" label="我的课程"></el-option>
-            <el-option value="1" label="他人课程"></el-option>
-          </el-select>
-        </div>
-        <div class="student_button">
-          <el-button type="primary" @click="goTo('/course/addCourse')"
-            >添加课程</el-button
-          >
-        </div>
-      </div>
-      <div class="student_table">
-        <div class="course_box">
-          <div class="out_box" v-for="(item, index) in course" :key="index">
-            <div class="tup">
-              <img
-                :src="
-                  item.cover != null && item.cover != ''
-                    ? JSON.parse(item.cover).length > 0
-                      ? JSON.parse(item.cover)[0].url
-                      : mr
-                    : mr
-                "
-                alt=""
-              />
-            </div>
-            <div class="bottom_box">
-              <div>{{ item.title }}</div>
-              <div class="kc_t" v-if="groupA == '1'">
-                创建老师:{{ item.uname }}
-              </div>
-              <div class="kc_time">{{ item.time }}</div>
-            </div>
-            <div class="three_bottom">
-              <div @click="jump(item.courseId)">开始教学</div>
-              <div v-if="groupA == '0'">修改文档模板</div>
-              <div @click="goTo('/worksDetail?cid=' + item.courseId)">作业</div>
-            </div>
-          </div>
-          <div class="course_empty" v-if="course.length == 0">暂无数据</div>
-        </div>
-      </div>
-    </div>
-    <div class="student_page">
-      <el-pagination
-        background
-        layout="prev, pager, next"
-        :page-size="10"
-        :total="total"
-        v-if="!isLoading && page"
-        @current-change="handleCurrentChange"
-      >
-      </el-pagination>
-    </div>
-    <el-dialog :visible.sync="dialogVisible1" size="tiny">
-      <img width="100%" :src="dialogImageUrl" alt="" />
-    </el-dialog>
-  </div>
+	<div class="pb_content">
+		<div class="pb_head">
+			<span>项目管理</span>
+		</div>
+		<div class="pb_content_body">
+			<div class="student_head">
+				<div class="student_search">
+					<span>课程筛选</span>
+					<el-select v-model="groupA" @change="search">
+						<el-option value="0" label="我的课程"></el-option>
+						<el-option value="1" label="他人课程"></el-option>
+					</el-select>
+				</div>
+				<div class="student_button">
+					<el-button
+						type="primary"
+						@click="goTo('/course/addCourse?userid=' + userid + '&oid=' + oid)"
+						>添加课程</el-button
+					>
+				</div>
+			</div>
+			<div class="student_table">
+				<div class="course_box">
+					<div class="out_box" v-for="(item, index) in course" :key="index">
+						<div class="tup">
+							<img
+								:src="
+									item.cover != null && item.cover != ''
+										? JSON.parse(item.cover).length > 0
+											? JSON.parse(item.cover)[0].url
+											: mr
+										: mr
+								"
+								alt=""
+							/>
+						</div>
+						<div class="bottom_box">
+							<div>{{ item.title }}</div>
+							<div class="kc_t" v-if="groupA == '1'">
+								创建老师:{{ item.uname }}
+							</div>
+							<div class="kc_time">{{ item.time }}</div>
+						</div>
+						<div class="three_bottom">
+							<div @click="jump(item.courseId)">开始教学</div>
+							<div v-if="groupA == '0'">修改文档模板</div>
+							<div
+								@click="
+									goTo(
+										'/worksDetail?cid=' +
+											item.courseId +
+											'&userid=' +
+											userid
+									)
+								"
+							>
+								作业
+							</div>
+						</div>
+					</div>
+					<div class="course_empty" v-if="course.length == 0">暂无数据</div>
+				</div>
+			</div>
+		</div>
+		<div class="student_page">
+			<el-pagination
+				background
+				layout="prev, pager, next"
+				:page-size="10"
+				:total="total"
+				v-if="!isLoading && page"
+				@current-change="handleCurrentChange"
+			>
+			</el-pagination>
+		</div>
+		<el-dialog :visible.sync="dialogVisible1" size="tiny">
+			<img width="100%" :src="dialogImageUrl" alt="" />
+		</el-dialog>
+	</div>
 </template>
 
 <script>
-import "../../common/aws-sdk-2.235.1.min";
-import EditorBar from "../../components/tools/wangEnduit";
-export default {
-  components: { EditorBar },
-  data() {
-    return {
-      itemCount: 1,
-      courseTitle: "",
-      courseText: "",
-      courseTime: "",
-      isLoading: false,
-      fileList: [],
-      fileList1: [],
-      homeworkList: [{ name: "" }],
-      formLabelWidth: "100px",
-      dialogVisible: false,
-      dialogVisible1: false,
-      dialogImageUrl: "",
-      group: "",
-      Juri: "",
-      groupList: [],
-      JuriList: [],
-      page: 1,
-      total: 0,
-      tableData: [],
-      now: "",
-      courseDetail: {},
-      addCourse: {},
-      groupA: "0",
-      classX: "",
-      course: [],
-      mr: require("../../assets/icon/kc1.png"),
-    };
-  },
-  methods: {
-    change(val) {
-      console.log(val);
-    },
-    addHomeworkBox() {
-      this.homeworkList.push({ name: "" });
-      this.itemCount++;
-    },
-    reduceHomeworkBox() {
-      var a = this.homeworkList;
-      a.splice(a.length - 1);
-      this.itemCount--;
-    },
-    goTo(path) {
-      this.$router.push(path);
-    },
-    tableRowClassName({ row, rowIndex }) {
-      if ((rowIndex + 1) % 2 === 0) {
-        return "even_row";
-      } else {
-        return "";
-      }
-    },
-    jump(cid) {
-      window.open("//pbl.cocorobo.cn/student/#/courseDetail?courseId=" + cid);
-    },
-    handle_remove(file, fileList) {
-      var _tmp = this.fileList;
-      for (var i = 0, len = _tmp.length; i < len; i++) {
-        if (_tmp[i].uid == file.uid) {
-          _tmp.splice(i, 1);
-          break;
-        }
-        this.fileList = _tmp;
-      }
-    },
-    handle_remove1(file, fileList) {
-      var _tmp = this.fileList1;
-      for (var i = 0, len = _tmp.length; i < len; i++) {
-        if (_tmp[i].uid == file.uid) {
-          _tmp.splice(i, 1);
-          break;
-        }
-        this.fileList1 = _tmp;
-      }
-    },
-    handleCurrentChange(val) {
-      // console.log(`当前页: ${val}`);
-      this.page = val;
-    },
-    init() {},
-    handleClose(done) {
-      done();
-    },
-    handleRemove(file, fileList) {
-      console.log(file, fileList);
-    },
-    handlePictureCardPreview(file) {
-      this.dialogImageUrl = file.url;
-      this.dialogVisible1 = true;
-    },
-    onExceed() {
-      this.$message.error("课程海报仅支持上传一张,请删除后再进行上传");
-    },
-    //uuid生成
-    guid() {
-      return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
-        /[xy]/g,
-        function (c) {
-          var r = (Math.random() * 16) | 0,
-            v = c == "x" ? r : (r & 0x3) | 0x8;
-          return v.toString(16);
-        }
-      );
-    },
-    time() {
-      if (!this.now) {
-        this.now = new Date().getTime();
-        return true;
-      } else {
-        let time = new Date().getTime();
-        if (time - this.now > 3000) {
-          this.now = time;
-          return true;
-        } else {
-          return false;
-        }
-      }
-    },
-    getCourse() {
-      const loading = this.openLoading(
-        document.querySelector(".student_table")
-      );
-      this.isLoading = true;
-      let params = {
-        type: this.groupA,
-        uid: this.$store.state.userInfo.userid,
-        oid: this.$store.state.userInfo.organizeid,
-        page: this.page,
-      };
-      this.ajax
-        .get(this.$store.state.api + "selectCourse", params)
-        .then((res) => {
-          loading.close();
-          this.isLoading = false;
-          this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
-          this.course = res.data[0];
-          console.log(res.data);
-        })
-        .catch((err) => {
-          console.error(err);
-        });
-    },
-    search() {
-      this.page = 1;
-      this.getCourse();
-    },
-  },
-  created() {
-    this.page = 1;
-    this.getCourse();
-  },
-};
+	import "../../common/aws-sdk-2.235.1.min";
+	import EditorBar from "../../components/tools/wangEnduit";
+	export default {
+		components: { EditorBar },
+		data() {
+			return {
+				itemCount: 1,
+				courseTitle: "",
+				courseText: "",
+				courseTime: "",
+				isLoading: false,
+				fileList: [],
+				fileList1: [],
+				homeworkList: [{ name: "" }],
+				formLabelWidth: "100px",
+				dialogVisible: false,
+				dialogVisible1: false,
+				dialogImageUrl: "",
+				group: "",
+				userid: this.$route.query.userid,
+				oid: this.$route.query.oid,
+				Juri: "",
+				groupList: [],
+				JuriList: [],
+				page: 1,
+				total: 0,
+				tableData: [],
+				now: "",
+				courseDetail: {},
+				addCourse: {},
+				groupA: "0",
+				classX: "",
+				course: [],
+				mr: require("../../assets/icon/kc1.png"),
+			};
+		},
+		methods: {
+			change(val) {
+				console.log(val);
+			},
+			addHomeworkBox() {
+				this.homeworkList.push({ name: "" });
+				this.itemCount++;
+			},
+			reduceHomeworkBox() {
+				var a = this.homeworkList;
+				a.splice(a.length - 1);
+				this.itemCount--;
+			},
+			goTo(path) {
+				this.$router.push(path);
+			},
+			tableRowClassName({ row, rowIndex }) {
+				if ((rowIndex + 1) % 2 === 0) {
+					return "even_row";
+				} else {
+					return "";
+				}
+			},
+			jump(cid) {
+				window.open("//pbl.cocorobo.cn/student/#/courseDetail?courseId=" + cid);
+			},
+			handle_remove(file, fileList) {
+				var _tmp = this.fileList;
+				for (var i = 0, len = _tmp.length; i < len; i++) {
+					if (_tmp[i].uid == file.uid) {
+						_tmp.splice(i, 1);
+						break;
+					}
+					this.fileList = _tmp;
+				}
+			},
+			handle_remove1(file, fileList) {
+				var _tmp = this.fileList1;
+				for (var i = 0, len = _tmp.length; i < len; i++) {
+					if (_tmp[i].uid == file.uid) {
+						_tmp.splice(i, 1);
+						break;
+					}
+					this.fileList1 = _tmp;
+				}
+			},
+			handleCurrentChange(val) {
+				// console.log(`当前页: ${val}`);
+				this.page = val;
+			},
+			init() {},
+			handleClose(done) {
+				done();
+			},
+			handleRemove(file, fileList) {
+				console.log(file, fileList);
+			},
+			handlePictureCardPreview(file) {
+				this.dialogImageUrl = file.url;
+				this.dialogVisible1 = true;
+			},
+			onExceed() {
+				this.$message.error("课程海报仅支持上传一张,请删除后再进行上传");
+			},
+			//uuid生成
+			guid() {
+				return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
+					/[xy]/g,
+					function (c) {
+						var r = (Math.random() * 16) | 0,
+							v = c == "x" ? r : (r & 0x3) | 0x8;
+						return v.toString(16);
+					}
+				);
+			},
+			time() {
+				if (!this.now) {
+					this.now = new Date().getTime();
+					return true;
+				} else {
+					let time = new Date().getTime();
+					if (time - this.now > 3000) {
+						this.now = time;
+						return true;
+					} else {
+						return false;
+					}
+				}
+			},
+			getCourse() {
+				const loading = this.openLoading(
+					document.querySelector(".student_table")
+				);
+				this.isLoading = true;
+				let params = {
+					type: this.groupA,
+					uid: this.userid,
+					oid: this.oid,
+					page: this.page,
+				};
+				this.ajax
+					.get(this.$store.state.api + "selectCourse", params)
+					.then((res) => {
+						loading.close();
+						this.isLoading = false;
+						this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
+						this.course = res.data[0];
+						console.log(res.data);
+					})
+					.catch((err) => {
+						console.error(err);
+					});
+			},
+			search() {
+				this.page = 1;
+				this.getCourse();
+			},
+		},
+		created() {
+			this.page = 1;
+			this.getCourse();
+		},
+	};
 </script>
 
 <style scoped>
-.dialog_diy >>> .el-dialog__header {
-  background: #3d67bc !important;
-  padding: 15px 20px;
-}
-.dialog_diy >>> .el-dialog__title {
-  color: #fff;
-}
-.dialog_diy >>> .el-dialog__headerbtn {
-  top: 19px;
-}
-.dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
-  color: #fff;
-}
-.dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
-  color: #fff;
-}
-.student_head >>> .el-button--primary {
-  background-color: #2268bc;
-}
+	.dialog_diy >>> .el-dialog__header {
+		background: #3d67bc !important;
+		padding: 15px 20px;
+	}
+	.dialog_diy >>> .el-dialog__title {
+		color: #fff;
+	}
+	.dialog_diy >>> .el-dialog__headerbtn {
+		top: 19px;
+	}
+	.dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
+		color: #fff;
+	}
+	.dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
+		color: #fff;
+	}
+	.student_head >>> .el-button--primary {
+		background-color: #2268bc;
+	}
 
-.xls_button {
-  font-size: 14px;
-  cursor: pointer;
-  text-decoration: underline;
-  color: rgb(34, 104, 188);
-}
-.student_head {
-  display: flex;
-  justify-content: space-between;
-}
-.student_search {
-  display: flex;
-  align-items: center;
-  width: 300px;
-}
-.student_search span {
-  margin: 0 10px 0 0;
-}
-.student_button {
-  display: flex;
-  overflow: hidden;
-  height: 40px;
-}
-.upload-demo {
-  display: flex;
-  flex-direction: column;
-  align-items: end;
-  /* position: relative; */
-  width: 100px;
-  overflow: hidden;
-}
-.student_table {
-  margin: 10px 0;
-  min-height: 530px;
-  height: 93%;
-  overflow: auto;
-}
+	.xls_button {
+		font-size: 14px;
+		cursor: pointer;
+		text-decoration: underline;
+		color: rgb(34, 104, 188);
+	}
+	.student_head {
+		display: flex;
+		justify-content: space-between;
+	}
+	.student_search {
+		display: flex;
+		align-items: center;
+		width: 300px;
+	}
+	.student_search span {
+		margin: 0 10px 0 0;
+	}
+	.student_button {
+		display: flex;
+		overflow: hidden;
+		height: 40px;
+	}
+	.upload-demo {
+		display: flex;
+		flex-direction: column;
+		align-items: end;
+		/* position: relative; */
+		width: 100px;
+		overflow: hidden;
+	}
+	.student_table {
+		margin: 10px 0;
+		min-height: 530px;
+		height: 93%;
+		overflow: auto;
+	}
 
-.student_empty {
-  display: flex;
-  justify-content: center;
-  align-items: center;
-}
+	.student_empty {
+		display: flex;
+		justify-content: center;
+		align-items: center;
+	}
 
-.el-table >>> .even_row {
-  background-color: #f1f1f1;
-}
+	.el-table >>> .even_row {
+		background-color: #f1f1f1;
+	}
 
-.time {
-  font-size: 13px;
-  color: #999;
-}
+	.time {
+		font-size: 13px;
+		color: #999;
+	}
 
-.course_button {
-  padding: 10px 20px;
-}
-.course_button_box {
-  display: flex;
-  margin-top: 5px;
-  justify-content: space-between;
-}
-.course_rate {
-  margin-top: 5px;
-}
-.course_view {
-  display: flex;
-  align-items: center;
-  margin: 5px 0 0 0;
-}
-.course_view i {
-  background-image: url("../../assets/liulan.png");
-  width: 25px;
-  height: 25px;
-  background-size: 100% 100%;
-  /* margin-top: 1px; */
-  line-height: 25px;
-  vertical-align: text-top;
-  background-repeat: no-repeat;
-}
-.image {
-  width: 100%;
-  height: 150px;
-  display: block;
-}
-.course_box {
-  display: flex;
-  flex-wrap: wrap;
-  height: 100%;
-}
-.student_page {
-  width: 95%;
-  margin: 0 auto;
-}
-.course_create_box {
-  font-size: 18px;
-}
-.course_name {
-  margin-top: 10px;
-}
-.course_name span {
-  margin-bottom: 10px;
-  display: block;
-}
-.homework_box {
-  display: flex;
-  align-items: center;
-  flex-wrap: wrap;
-}
-.course_homework {
-  width: 130px;
-  display: flex;
-  justify-content: center;
-  flex-direction: column;
-  align-items: center;
-  margin: 0 10px 10px 0;
-}
-.course_type {
-  margin-top: 10px;
-  display: flex;
-}
-.course_type1 span {
-  margin-bottom: 10px;
-  display: block;
-}
-.course_type2 {
-  margin-left: 20px;
-}
-.course_type2 span {
-  margin-bottom: 10px;
-  display: block;
-}
-.course_empty {
-  color: rgb(110, 110, 110);
-  width: 100%;
-  height: 100%;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-}
-.el_cards >>> .el-card__body {
-  height: 100%;
-}
-.courseBtnBox {
-  display: flex;
-  flex-direction: column;
-  justify-content: space-between;
-  height: calc(100% - 170px);
-  padding: 10px;
-}
+	.course_button {
+		padding: 10px 20px;
+	}
+	.course_button_box {
+		display: flex;
+		margin-top: 5px;
+		justify-content: space-between;
+	}
+	.course_rate {
+		margin-top: 5px;
+	}
+	.course_view {
+		display: flex;
+		align-items: center;
+		margin: 5px 0 0 0;
+	}
+	.course_view i {
+		background-image: url("../../assets/liulan.png");
+		width: 25px;
+		height: 25px;
+		background-size: 100% 100%;
+		/* margin-top: 1px; */
+		line-height: 25px;
+		vertical-align: text-top;
+		background-repeat: no-repeat;
+	}
+	.image {
+		width: 100%;
+		height: 150px;
+		display: block;
+	}
+	.course_box {
+		display: flex;
+		flex-wrap: wrap;
+		height: 100%;
+	}
+	.student_page {
+		width: 95%;
+		margin: 0 auto;
+	}
+	.course_create_box {
+		font-size: 18px;
+	}
+	.course_name {
+		margin-top: 10px;
+	}
+	.course_name span {
+		margin-bottom: 10px;
+		display: block;
+	}
+	.homework_box {
+		display: flex;
+		align-items: center;
+		flex-wrap: wrap;
+	}
+	.course_homework {
+		width: 130px;
+		display: flex;
+		justify-content: center;
+		flex-direction: column;
+		align-items: center;
+		margin: 0 10px 10px 0;
+	}
+	.course_type {
+		margin-top: 10px;
+		display: flex;
+	}
+	.course_type1 span {
+		margin-bottom: 10px;
+		display: block;
+	}
+	.course_type2 {
+		margin-left: 20px;
+	}
+	.course_type2 span {
+		margin-bottom: 10px;
+		display: block;
+	}
+	.course_empty {
+		color: rgb(110, 110, 110);
+		width: 100%;
+		height: 100%;
+		display: flex;
+		align-items: center;
+		justify-content: center;
+	}
+	.el_cards >>> .el-card__body {
+		height: 100%;
+	}
+	.courseBtnBox {
+		display: flex;
+		flex-direction: column;
+		justify-content: space-between;
+		height: calc(100% - 170px);
+		padding: 10px;
+	}
 
-.wordUpload {
-  display: flex;
-}
+	.wordUpload {
+		display: flex;
+	}
 
-.wordUpload > .buttonUp {
-  margin-right: 5px;
-}
+	.wordUpload > .buttonUp {
+		margin-right: 5px;
+	}
 
-.out_box {
-  display: flex;
-  flex-direction: column;
-  flex-wrap: nowrap;
-  width: 250px;
-  background: #fff;
-  margin-left: 25px;
-  border: 1px solid #ccc;
-  height: fit-content;
-  box-sizing: border-box;
-  border-radius: 0px 0px 5px 5px;
-  overflow: hidden;
-  margin-bottom: 10px;
-}
+	.out_box {
+		display: flex;
+		flex-direction: column;
+		flex-wrap: nowrap;
+		width: 250px;
+		background: #fff;
+		margin-left: 25px;
+		border: 1px solid #ccc;
+		height: fit-content;
+		box-sizing: border-box;
+		border-radius: 0px 0px 5px 5px;
+		overflow: hidden;
+		margin-bottom: 10px;
+	}
 
-.bottom_box {
-  display: flex;
-  padding: 10px 0 10px 10px;
-  flex-direction: column;
-  box-sizing: border-box;
-}
-.bottom_box > div:nth-child(1) {
-  width: 230px;
-  overflow: hidden;
-  text-overflow: ellipsis;
-  white-space: nowrap;
-}
+	.bottom_box {
+		display: flex;
+		padding: 10px 0 10px 10px;
+		flex-direction: column;
+		box-sizing: border-box;
+	}
+	.bottom_box > div:nth-child(1) {
+		width: 230px;
+		overflow: hidden;
+		text-overflow: ellipsis;
+		white-space: nowrap;
+	}
 
-.tup {
-  width: 100%;
-  height: 141.06px;
-  margin: 0 auto;
-}
+	.tup {
+		width: 100%;
+		height: 141.06px;
+		margin: 0 auto;
+	}
 
-.tup > img {
-  width: 100%;
-  height: 100%;
-}
+	.tup > img {
+		width: 100%;
+		height: 100%;
+	}
 
-.kc_time {
-  margin-top: 8px;
-  font-size: 14px;
-  color: #999;
-}
-.kc_t {
-  margin-top: 5px;
-}
+	.kc_time {
+		margin-top: 8px;
+		font-size: 14px;
+		color: #999;
+	}
+	.kc_t {
+		margin-top: 5px;
+	}
 
-.three_bottom {
-  display: flex;
-  flex-direction: row;
-  justify-content: space-around;
-  border-bottom: 1px solid #ccc;
-  height: 40px;
-  align-items: center;
-  background: #f5f4f4;
-  font-size: 14px;
-}
-.three_bottom > div {
-  cursor: pointer;
-}
+	.three_bottom {
+		display: flex;
+		flex-direction: row;
+		justify-content: space-around;
+		border-bottom: 1px solid #ccc;
+		height: 40px;
+		align-items: center;
+		background: #f5f4f4;
+		font-size: 14px;
+	}
+	.three_bottom > div {
+		cursor: pointer;
+	}
 </style>

+ 4 - 3
src/components/pages/data.vue

@@ -102,6 +102,7 @@
 				},
 				userinfo:"",
 				schoolJuri: [],
+				userid: this.$route.query.userid,
 				rules: {
 					pass: [{ validator: validatePass, trigger: "blur" }],
 					name: [{ required: true, message: "请输入你的名字", trigger: "blur" }],
@@ -143,7 +144,7 @@
 				this.$refs[formName];
 				let params = [
 					{
-						uid: this.$store.state.userInfo.userid,
+						uid: this.userid,
 						sname: this.ruleForm.name,
 						ph: this.ruleForm.phone,
 						sex: this.ruleForm.sex == "男" ? "0" : "1",
@@ -166,7 +167,7 @@
 					});
 			},
 			getUser() {
-				let params = { uid: this.$store.state.userInfo.userid };
+				let params = { uid: this.userid };
 				this.ajax
 					.get(this.$store.state.api + "getUser", params)
 					.then((res) => {
@@ -181,7 +182,7 @@
 					});
 			},
 			getDetail() {
-				let params = { uid: this.$store.state.userInfo.userid };
+				let params = { uid: this.userid };
 				this.ajax
 					.get(this.$store.state.api + "getUser", params)
 					.then((res) => {

+ 2 - 1
src/components/pages/library.vue

@@ -156,6 +156,7 @@
 				page: 1,
 				total: 0,
 				dialogImageUrl: "",
+				userid: this.$route.query.userid,
 				pictureDialog: false,
 				vedioDialog: false,
 				playerOptions: {
@@ -336,7 +337,7 @@
 				let params = {
 					cInfo: this.cImgInfo[0],
 					t: this.choose,
-					cBy: this.$store.state.userInfo.userid,
+					cBy: this.userid,
 				};
 				this.ajax
 					.get(this.$store.state.api + "addMtl", params)

+ 2 - 1
src/components/pages/notice.vue

@@ -111,6 +111,7 @@
 				title: "",
 				tableData: [],
 				res: [],
+				userid: this.$route.query.userid,
 			};
 		},
 		mounted() {
@@ -171,7 +172,7 @@
 
 			getNews() {
 				this.loading = true;
-				let params = { uid: this.$store.state.userInfo.userid, page: this.page };
+				let params = { uid: this.userid, page: this.page };
 				this.ajax
 					.get(this.$store.state.api + "getNewsTeacher", params)
 					.then((res) => {

+ 9 - 7
src/components/pages/student.vue

@@ -1,7 +1,7 @@
 <template>
 	<div class="pb_content" style="min-width: 960px">
 		<div class="pb_head">
-			<span>学生列表</span>
+			<span>我的学生列表</span>
 			<span>Student List</span>
 		</div>
 		<div class="pb_content_body">
@@ -189,6 +189,8 @@
 				page: 1,
 				total: 0,
 				sPhoneUser: "",
+				userid: this.$route.query.userid,
+				oid: this.$route.query.oid,
 			};
 		},
 		mounted() {
@@ -300,8 +302,8 @@
 					username: this.sName,
 					userpassword: 123456,
 					type: 2,
-					oid: this.$store.state.userInfo.organizeid,
-					tid: this.$store.state.userInfo.userid,
+					oid: this.oid,
+					tid: this.userid,
 					cid: this.sByClass,
 				};
 				this.ajax
@@ -334,7 +336,7 @@
 				let params = {
 					// username: this.$store.state.userInfo.userid,
 					cu: "",
-					oid: this.$store.state.userInfo.organizeid,
+					oid: this.oid,
 					cn: "",
 					page: this.page,
 				};
@@ -368,7 +370,7 @@
 			getStudent() {
 				this.isLoading = true;
 				let params = {
-					uid: this.$store.state.userInfo.userid,
+					uid: this.userid,
 					cu: "",
 					cn: this.sPhoneUser,
 					page: this.page,
@@ -599,8 +601,8 @@
 									userpassword: 123456,
 									type: 2,
 									// oid: item.schoolid,
-									oid: _this.$store.state.userInfo.organizeid,
-									tid: _this.$store.state.userInfo.userid,
+									oid: _this.oid,
+									tid: _this.userid,
 									cid: item.classid,
 								};
 

+ 5 - 3
src/components/pages/works.vue

@@ -55,7 +55,7 @@
               <el-button
                 type="primary"
                 size="small"
-                @click="goTo('/worksDetail?cid=' + scope.row.courseId)"
+                @click="goTo('/worksDetail?cid=' + scope.row.courseId + '&userid=' + userid + '&oid=' + oid)"
                 >查看学生</el-button
               >
             </template>
@@ -95,6 +95,8 @@ export default {
       total: 0,
       groupA: "0",
       cn: "",
+      userid: this.$route.query.userid,
+      oid: this.$route.query.oid,
     };
   },
   mounted() {
@@ -162,8 +164,8 @@ export default {
       this.isLoading = true;
       let params = {
         type: this.groupA,
-        uid: this.$store.state.userInfo.userid,
-        oid: this.$store.state.userInfo.organizeid,
+        uid: this.userid,
+        oid: this.oid,
         cn: this.cn,
         page: this.page,
       };

+ 5 - 3
src/components/pages/worksDetail.vue

@@ -8,7 +8,7 @@
 			<div class="student_head">
 				<div style="padding: 10px 0px 20px 0;">
 					<el-breadcrumb separator-class="el-icon-arrow-right">
-						<el-breadcrumb-item :to="{ path: '/works' }"
+						<el-breadcrumb-item :to="{ path: '/works?userid=' + userid + '&oid=' + oid}"
 							>评价管理</el-breadcrumb-item
 						>
 						<el-breadcrumb-item>作业管理</el-breadcrumb-item>
@@ -371,6 +371,8 @@
 				tableHeight: "500px",
 				isLoading: false,
 				id: this.$route.query.cid,
+				userid: this.$route.query.userid,
+				oid: this.$route.query.oid,
 				formLabelWidth: "100px",
 				dialogImageUrl: "",
 				pictureDialog: false,
@@ -600,7 +602,7 @@
 			getClass() {
 				this.isLoading = true;
 				let params = {
-					oid: this.$store.state.userInfo.organizeid,
+					oid: this.oid,
 				};
 				this.ajax
 					.get(this.$store.state.api + "selectClassBySchool", params)
@@ -678,7 +680,7 @@
 			updateWorks() {
 				let params = {
 					rate: this.rateList,
-					tuid: this.$store.state.userInfo.userid,
+					tuid: this.userid,
 					id: this.scopeId,
 				};
 				this.ajax

+ 11 - 11
src/router/index.js

@@ -24,7 +24,7 @@ export default new Router({
       name: 'class',
       component: classA,
       meta: {
-        requireAuth: true
+        requireAuth: ''
       }
     },
     // {
@@ -35,21 +35,21 @@ export default new Router({
       path: '/course',
       component: course,
       meta: {
-        requireAuth: true // 是否需要判断是否登录,这里是需要判断
+        requireAuth: '' // 是否需要判断是否登录,这里是需要判断
       }
     },
     {
       path: '/course/courseDetail',
       component: courseDetail,
       meta: {
-        requireAuth: true // 是否需要判断是否登录,这里是需要判断
+        requireAuth: '' // 是否需要判断是否登录,这里是需要判断
       }
     },
     {
       path: '/course/addCourse',
       component: addCourse,
       meta: {
-        requireAuth: true // 是否需要判断是否登录,这里是需要判断
+        requireAuth: '' // 是否需要判断是否登录,这里是需要判断
       }
     },
     {
@@ -57,14 +57,14 @@ export default new Router({
       name: 'data',
       component: data,
       meta: {
-        requireAuth: true // 是否需要判断是否登录,这里是需要判断
+        requireAuth: '' // 是否需要判断是否登录,这里是需要判断
       }
     }, {
       path: '/notice',
       name: 'notice',
       component: notice,
       meta: {
-        requireAuth: true // 是否需要判断是否登录,这里是需要判断
+        requireAuth: '' // 是否需要判断是否登录,这里是需要判断
       }
     },
     {
@@ -72,7 +72,7 @@ export default new Router({
       name: 'student',
       component: student,
       meta: {
-        requireAuth: true // 是否需要判断是否登录,这里是需要判断
+        requireAuth: '' // 是否需要判断是否登录,这里是需要判断
       }
     },
     {
@@ -80,7 +80,7 @@ export default new Router({
       name: 'ask',
       component: ask,
       meta: {
-        requireAuth: true // 是否需要判断是否登录,这里是需要判断
+        requireAuth: '' // 是否需要判断是否登录,这里是需要判断
       }
     },
     {
@@ -95,7 +95,7 @@ export default new Router({
       name: 'works',
       component: works,
       meta: {
-        requireAuth: true // 是否需要判断是否登录,这里是需要判断
+        requireAuth: '' // 是否需要判断是否登录,这里是需要判断
       }
     },
     {
@@ -103,7 +103,7 @@ export default new Router({
       name: 'worksDetail',
       component: worksDetail,
       meta: {
-        requireAuth: true // 是否需要判断是否登录,这里是需要判断
+        requireAuth: '' // 是否需要判断是否登录,这里是需要判断
       }
     },
     {
@@ -111,7 +111,7 @@ export default new Router({
       name: 'library',
       component: library,
       meta: {
-        requireAuth: true // 是否需要判断是否登录,这里是需要判断
+        requireAuth: '' // 是否需要判断是否登录,这里是需要判断
       }
     },
     {

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels