|
@@ -373,10 +373,7 @@ import {
|
|
|
import { findTechnician } from "@/api/repairManager";
|
|
|
import dayjs from "dayjs";
|
|
|
import merge from "webpack-merge";
|
|
|
-import {
|
|
|
- queryByOrganId,
|
|
|
- getSchool,
|
|
|
-} from "@/api/systemManage";
|
|
|
+import { queryByOrganId, getSchool } from "@/api/systemManage";
|
|
|
import qrCode from "@/components/QrCode/index";
|
|
|
import { classStatus } from "@/utils/searchArray";
|
|
|
import { vaildStudentUrl, vaildTeacherUrl } from "@/utils/validate";
|
|
@@ -514,8 +511,13 @@ export default {
|
|
|
},
|
|
|
deactivated() {},
|
|
|
beforeDestroy() {
|
|
|
- this.topFrom.paymentExpireDate = this.paymentExpireDate;
|
|
|
- sessionStorage.setItem(`${this.teamid}base`, JSON.stringify(this.topFrom));
|
|
|
+ // this.topFrom.paymentExpireDate = this.paymentExpireDate;
|
|
|
+ if(this.$route.query.id){
|
|
|
+ sessionStorage.setItem(`${this.$route.query.id}base`, JSON.stringify(this.topFrom));
|
|
|
+ }else{
|
|
|
+ sessionStorage.setItem(`newTeambase`, JSON.stringify(this.topFrom));
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
@@ -600,16 +602,25 @@ export default {
|
|
|
});
|
|
|
} else {
|
|
|
this.topFrom = sotrage;
|
|
|
- this.applyExpireDate = sotrage.time;
|
|
|
- this.paymentExpireDate = Storage.paymentExpireDate;
|
|
|
- if (this.topFrom.section) {
|
|
|
+ // this.applyExpireDate = sotrage.time;
|
|
|
+ // this.paymentExpireDate = Storage.paymentExpireDate;
|
|
|
+ if (this.topFrom?.section) {
|
|
|
// 获取员工
|
|
|
this.getBaseList(this.topFrom.section);
|
|
|
}
|
|
|
}
|
|
|
+ } else {
|
|
|
+ // 如果是新建团
|
|
|
+ let sotrage = JSON.parse(sessionStorage.getItem(`newTeambase`));
|
|
|
+ sotrage?this.topFrom = sotrage:this.topFrom;
|
|
|
+ if (this.topFrom?.section) {
|
|
|
+ // 获取员工
|
|
|
+ this.getBaseList(this.topFrom.section);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
this.getStudentStatus();
|
|
|
- this.$emit("getName", this.topFrom.name);
|
|
|
+ this.$emit("getName", this.topFrom?.name);
|
|
|
getEmployeeOrgan().then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.sectionList = res.data;
|
|
@@ -798,8 +809,8 @@ export default {
|
|
|
team_status: "DRAFT",
|
|
|
}),
|
|
|
});
|
|
|
- this.$emit('handleClick',{name:'2'})
|
|
|
- this.$emit('getName', this.topFrom.name)
|
|
|
+ this.$emit("handleClick", { name: "2" });
|
|
|
+ this.$emit("getName", this.topFrom.name);
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
}
|