浏览代码

修改乐团信息

1
mo 4 年之前
父节点
当前提交
1b1345275d

文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.0f8eb2e4.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.16ee3702.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-00b087a6.d8cd5db0.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-0ca85e10.7248bedb.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-30b26ad2.1f872093.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-4f360553.ee271c3f.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-5b1fcc5a.2e7d9992.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-5fc7e030.63323ba4.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-6921577a.f2962557.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-6ce222a8.ba26651c.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-74ba09be.4792d737.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-9bad4bea.8482400c.js


+ 1 - 1
src/components/save-form/README.md

@@ -14,7 +14,7 @@
 
 使用时改动较小,仅须将`el-form`修改为`saveform`即可,组件会在验证通过后自动保存当前表单数据,在reset时自动清空数据
 
-数据保存使用的是`sessionStorage`故关闭标签后数据会自动清空
+数据保存使用的是`localStorage`故关闭标签后数据会自动清空
 
 ###### 翻页保存:
 ``` html

+ 3 - 3
src/helpers/index.js

@@ -15,13 +15,13 @@ export class Searchs {
   }
 
   save() {
-    sessionStorage.setItem(this.saveKey, JSON.stringify(this.searchs))
+    localStorage.setItem(this.saveKey, JSON.stringify(this.searchs))
   }
 
   parse() {
     let json = {...initSearch}
     try {
-      const val = sessionStorage.getItem(this.saveKey)
+      const val = localStorage.getItem(this.saveKey)
       json = JSON.parse(val) || json
     } catch (error) {}
     return json
@@ -55,7 +55,7 @@ export class Searchs {
 
   removeAll() {
     this.searchs = {}
-    sessionStorage.setItem(this.saveKey, JSON.stringify(this.searchs))
+    localStorage.setItem(this.saveKey, JSON.stringify(this.searchs))
     return this.searchs
   }
 

+ 3 - 3
src/layout/components/AppMain.vue

@@ -4,10 +4,10 @@
     <transition name="fade-transform" mode="out-in">
       <div>
         <router-view v-slot="{ Component }">
-          <keep-alive>
+          <!-- <keep-alive>
             <component v-if="!keep" :is="Component" />
-          </keep-alive>
-          <component v-if="keep" :is="Component" />
+          </keep-alive>  v-if="keep"-->
+          <component :is="Component" />
         </router-view>
 
         <!-- <keep-alive exclude="nocatch">

+ 1 - 1
src/views/resetTeaming/components/resetSound.vue

@@ -364,7 +364,7 @@ export default {
       // 获取声部信息
       this.teamid = this.$route.query.id
       this.lookType = this.$route.query.type
-      sessionStorage.setItem('resetCode', '2');
+      localStorage.setItem('resetCode', '2');
       // 获取所有声部
       getSoundTree({ tenantId: 1 }).then(res => {
         if (res.code == 200) {

+ 1 - 1
src/views/resetTeaming/components/studentPayBase.vue

@@ -241,7 +241,7 @@ export default {
     },
     goBack () {
       let query = this.$route.query
-      sessionStorage.setItem('resetCode', 3)
+      localStorage.setItem('resetCode', 3)
       this.$router.push({ path: '/business/resetTeaming', query })
     },
     handleSelectionChange (val) {

+ 3 - 3
src/views/resetTeaming/index.vue

@@ -233,8 +233,8 @@ export default {
     // this.__init()
   },
   beforeDestroy() {
-    // sessionStorage.setItem('setStep', 0)
-    // sessionStorage.setItem('resetCode', 1)
+    // localStorage.setItem('setStep', 0)
+    // localStorage.setItem('resetCode', 1)
   },
   mounted() {
     // let obj = {}
@@ -251,7 +251,7 @@ export default {
   // },
   methods: {
     __init() {
-      // this.activeIndex = sessionStorage.getItem('resetCode') || '1';
+      // this.activeIndex = localStorage.getItem('resetCode') || '1';
       this.teamid = this.$route.query.id;
       this.team_status = this.$route.query.team_status;
       if (this.$route.query.tabrouter != 1 && this.teamid) {

+ 25 - 11
src/views/teamBuild/components/soundSetComponents/soundSetCore.vue

@@ -135,7 +135,13 @@ export default {
       this.teamid = this.$route.query.id;
     }
     window.addEventListener("scroll", this.getScroll);
-    this.init();
+               this.topfor = JSON.parse(
+          localStorage.getItem(`${this.$route.query.id}base`)
+        );
+        this.$nextTick(res=>{
+             this.init();
+        })
+
   },
   deactivated() {
     window.removeEventListener("scroll", this.getScroll);
@@ -173,16 +179,17 @@ export default {
 
   methods: {
     setStore() {
-      sessionStorage.setItem(
+      localStorage.setItem(
         `${this.teamid}sound`,
         JSON.stringify(this.activeSoundList)
       );
     },
     init() {
       // 获取第一页的数据
-      this.topfor = this.$store.getters.topinfo;
-      let type = this.topfor.type;
-      let section = this.topfor.section;
+      // this.topfor = this.$store.getters.topinfo;
+      // let type = this.topfor.type;
+      // let section = this.topfor.section;
+
       this.teamStatus = this.$route.query.type;
       if (
         this.teamStatus == "look" ||
@@ -195,14 +202,14 @@ export default {
         this.basdisabled = false;
       }
       let sotrage = JSON.parse(
-        sessionStorage.getItem(`${this.$route.query.id}sound`)
+        localStorage.getItem(`${this.$route.query.id}sound`)
       );
 
       getSoundTree({ tenantId: 1 }).then((res) => {
         if (res.code == 200) {
           this.soundList = res.data.rows;
-        }
         if (sotrage && sotrage[0]?.id) {
+          // this.$set(data,'activeSoundList',sotrage)
           this.activeSoundList = sotrage;
           let activeSound = [];
 
@@ -212,8 +219,11 @@ export default {
           this.chioseActiveSound = activeSound;
            this.activeSound = activeSound;
            this.changeActiveSound(activeSound.join(","));
+            console.log(this.activeSoundList)
+            console.log('sotrage')
         } else {
-          if (this.teamStatus == "newTeam" && type && section) {
+          if (this.teamStatus == "newTeam") {
+            console.log('新舰团')
               this.getDefaultSubject()
           } else {
             this.teamid = this.$route.query.id;
@@ -222,7 +232,8 @@ export default {
                 (res) => {
                   if (res.code == 200) {
                    // 如果没有一个声部 则请求默认声部
-                    if(res.data?.musicGroupSubjectPlans>0){
+
+                    if(res.data?.musicGroupSubjectPlans?.length>0){
                              let activeSound = [];
                     this.activeSoundList = res.data?.musicGroupSubjectPlans.map(
                       (item) => {
@@ -272,6 +283,7 @@ export default {
                       }
                     });
                     }else{
+                      console.log('没有声部')
                       this.getDefaultSubject()
                     }
 
@@ -283,6 +295,7 @@ export default {
             }
           }
         }
+        }
       });
       getSubject({ tenantId: 1 }).then((res) => {
         if (res.code == 200) {
@@ -292,9 +305,9 @@ export default {
     },
     getDefaultSubject(){
       this.topfor = JSON.parse(
-          sessionStorage.getItem(`${this.$route.query.id}base`)
+          localStorage.getItem(`${this.$route.query.id}base`)
         );
-            let type = this.topfor.type;
+      let type = this.topfor.type;
       let section = this.topfor.section;
        getDefaultSubject({
               chargeTypeId: type,
@@ -366,6 +379,7 @@ export default {
       return obj;
     },
     changeActiveSound(val) {
+      console.log(this.topfor)
       // 写入声部商品和辅件
       getSubjectGoods({
         subjectIds: val,

+ 14 - 7
src/views/teamBuild/components/teamBaseInfo.vue

@@ -461,6 +461,7 @@ export default {
       codeStatus: false,
       qrCodeUrl: null,
       codeTitle: null,
+      teamid:''
     };
   },
   created() {},
@@ -503,7 +504,9 @@ export default {
       this.basdisabled = false;
     }
   },
-  deactivated() {},
+  deactivated() {
+    console.log('laile')
+  },
   beforeDestroy() {
     // this.topFrom.paymentExpireDate = this.paymentExpireDate;
    this.setStore()
@@ -511,13 +514,15 @@ export default {
 
   methods: {
     setStore(){
-       if (this.$route.query.id) {
-      sessionStorage.setItem(
-        `${this.$route.query.id}base`,
+         console.log('存储信息',this.teamid)
+       if (this.teamid) {
+
+      localStorage.setItem(
+        `${this.teamid}base`,
         JSON.stringify(this.topFrom)
       );
     } else {
-      sessionStorage.setItem(`newTeambase`, JSON.stringify(this.topFrom));
+      localStorage.setItem(`newTeambase`, JSON.stringify(this.topFrom));
     }
     },
     //|| this.teamStatus === 'teamAudit'
@@ -583,9 +588,11 @@ export default {
         // 单团修改
         this.teamid = this.$route.query.id;
         let sotrage = JSON.parse(
-          sessionStorage.getItem(`${this.$route.query.id}base`)
+          localStorage.getItem(`${this.$route.query.id}base`)
         );
+
         if (!sotrage?.section) {
+
           getTeamBaseInfo({ musicGroupId: this.teamid }).then((res) => {
             if (res.code == 200) {
               // if (this.$listeners.getBaseInfo) {
@@ -614,7 +621,7 @@ export default {
         }
       } else {
         // 如果是新建团
-        let sotrage = JSON.parse(sessionStorage.getItem(`newTeambase`));
+        let sotrage = JSON.parse(localStorage.getItem(`newTeambase`));
         sotrage ? (this.topFrom = sotrage) : this.topFrom;
         if (this.topFrom?.section) {
           // 获取员工

+ 2 - 2
src/views/teamBuild/teamSeting/components/coursePlan.vue

@@ -378,8 +378,8 @@ export default {
   methods: {
     init () {
       this.teamid = this.$route.query.id;
-      sessionStorage.setItem('resetCode', 3)
-      sessionStorage.setItem('setStep', 2)
+      localStorage.setItem('resetCode', 3)
+      localStorage.setItem('setStep', 2)
       this.type = this.$route.query.type || '';
       // 根据乐团id 查询 此乐团所有的合奏班
       getAllClass({ musicGroupId: this.teamid }).then(res => {

+ 1 - 1
src/views/teamBuild/teamSeting/components/improvementClass.vue

@@ -252,7 +252,7 @@ export default {
     }
   },
   created () {
-    this.organId = sessionStorage.getItem('createTeamOrgnId') || null
+    this.organId = localStorage.getItem('createTeamOrgnId') || null
     // 判断是否带缓存参数
     if (this.$route.query.search) {
       this.Fsearch = this.$route.query.search;

+ 3 - 3
src/views/teamBuild/teamSeting/components/lookCourse.vue

@@ -127,8 +127,8 @@ export default {
     this.init()
   }, methods: {
     init () {
-      sessionStorage.setItem('setStep', 2)
-      sessionStorage.setItem('resetCode', 4)
+      localStorage.setItem('setStep', 2)
+      localStorage.setItem('resetCode', 4)
       this.teamid = this.$route.query.id;
       this.getList()
     },
@@ -154,7 +154,7 @@ export default {
         return;
       }
       // 获取课程类型 3.0跳小班课  2.0跳课酬
-      let type = sessionStorage.getItem('chargeTypeId');
+      let type = localStorage.getItem('chargeTypeId');
       type == 3 ? this.$emit('gotoNav', 3) : this.$emit('gotoNav', 4)
 
     },

+ 2 - 2
src/views/teamBuild/teamSeting/components/setTeacher.vue

@@ -138,8 +138,8 @@ export default {
     }
   },
   mounted () {
-    sessionStorage.setItem('setStep', 1)
-    this.organId = sessionStorage.getItem('createTeamOrgnId') || null
+    localStorage.setItem('setStep', 1)
+    this.organId = localStorage.getItem('createTeamOrgnId') || null
     // 该乐团里所有的声部班与合奏班
     this.getEveryClass();
     // 获取所有的老师列表

+ 5 - 5
src/views/teamBuild/teamSeting/index.vue

@@ -122,8 +122,8 @@ export default {
     this.init()
   },
   beforeDestroy () {
-    sessionStorage.setItem('setStep', 0)
-    sessionStorage.setItem('resetCode', 1)
+    localStorage.setItem('setStep', 0)
+    localStorage.setItem('resetCode', 1)
   },
 
   mounted () {
@@ -140,14 +140,14 @@ export default {
       if (this.$route.query.rules) {
         this.Frules = this.$route.query.rules
       }
-      //sessionStorage.getItem('setStep') ||
+      //localStorage.getItem('setStep') ||
       this.activeIndex = 0;
       getTeamBaseInfo({ musicGroupId: this.id }).then(res => {
         if (res.code == 200) {
           this.chargeTypeId = res.data.musicGroup.chargeTypeId;
           this.name = res.data.musicGroup.name;
-          sessionStorage.setItem('chargeTypeId', this.chargeTypeId);
-          sessionStorage.setItem('createTeamOrgnId', res.data.musicGroup.organId)
+          localStorage.setItem('chargeTypeId', this.chargeTypeId);
+          localStorage.setItem('createTeamOrgnId', res.data.musicGroup.organId)
         }
       })
 

+ 8 - 8
src/views/teamDetail/teamList.vue

@@ -423,7 +423,7 @@ export default {
   },
   methods: {
     init() {
-      sessionStorage.setItem("resetCode", "1");
+      localStorage.setItem("resetCode", "1");
 
       getEmployeeOrgan().then((res) => {
         if (res.code == 200) {
@@ -472,7 +472,7 @@ export default {
     createNewTeam() {
       // this.$store.dispatch("buildIndex", 0);
       // this.$store.dispatch("delVisitedViews", { path: "/business/teamBuild" });
-       sessionStorage.removeItem(`newTeambase`);
+       localStorage.removeItem(`newTeambase`);
     this.$router.push({
             path: "/resetTeaming",
               query: { type: "newTeam"}},
@@ -495,8 +495,8 @@ export default {
     },
     resetTeaming(row) {
       // 修改进行中的乐团
-      sessionStorage.removeItem(`${row.id}base`);
-      sessionStorage.removeItem(`${row.id}sound`);
+      localStorage.removeItem(`${row.id}base`);
+      localStorage.removeItem(`${row.id}sound`);
       this.$nextTick((res) => {
         this.$router.push({
           path: "/resetTeaming",
@@ -616,8 +616,8 @@ export default {
       });
     },
     lookTeamDetail(row) {
-      sessionStorage.removeItem(`${row.id}base`);
-      sessionStorage.removeItem(`${row.id}sound`);
+      localStorage.removeItem(`${row.id}base`);
+      localStorage.removeItem(`${row.id}sound`);
       switch (row.status) {
         case "DRAFT": {
           // 编辑中
@@ -863,8 +863,8 @@ export default {
     },
     //
     lookTeamInfo(row) {
-      sessionStorage.removeItem(`${row.id}base`);
-      sessionStorage.removeItem(`${row.id}sound`);
+      localStorage.removeItem(`${row.id}base`);
+      localStorage.removeItem(`${row.id}sound`);
       this.$router.push({
         path: "/business/teamLookBase",
         query: {

部分文件因为文件数量过多而无法显示