mo 4 gadi atpakaļ
vecāks
revīzija
b547f084b8

+ 3 - 3
src/components/remote-search/index.vue

@@ -10,6 +10,7 @@
       :multiple="multiple"
       :placeholder="placeholder"
       :remote-method="remoteMethod"
+      @focus="remoteMethod"
       :loading="loading"
       @change="changeValue"
       :style="{ width: this.selectWidt + 'px!important' }"
@@ -75,7 +76,6 @@ export default {
       throttle(this.getOptions, 800)(query);
     },
     async getOptions(query) {
-      console.log(query)
       if (query&&query.length>0) {
         let flag;
         this.options = this.list.filter((item) => {
@@ -124,9 +124,9 @@ export default {
       immediate: true,
       deep: true,
       handler(val) {
-
+        // && this.isFirst
         if (this.multiple) {
-          if (val?.length > 0 && this.isFirst) {
+          if (val?.length > 0 ) {
            this.getOptions()
           }
         } else {

+ 6 - 9
src/views/teamDetail/teamList.vue

@@ -570,8 +570,8 @@ export default {
     },
     resetTeaming(row) {
       // 修改进行中的乐团
-      let search = JSON.stringify(this.topForm);
-      let rules = JSON.stringify(this.rules);
+         sessionStorage.removeItem(`${row.id}base`);
+      sessionStorage.removeItem(`${row.id}sound`);
       this.$router.push({
         path: "/business/resetTeaming",
         query: { type: "resetTeam", id: row.id },
@@ -683,15 +683,13 @@ export default {
     },
     lookTeamCourse(row) {
       // 查看课表
-      let search = JSON.stringify(this.topForm);
-      let rules = JSON.stringify(this.rules);
       this.$router.push({
         path: "/business/teamDetailCourse",
         query: { id: row.id, name: row.name },
       });
     },
     lookTeamDetail(row) {
-      sessionStorage.removeItem(`${row.id}base`); 
+      sessionStorage.removeItem(`${row.id}base`);
       sessionStorage.removeItem(`${row.id}sound`);
       switch (row.status) {
         case "DRAFT": {
@@ -843,8 +841,7 @@ export default {
       }
     },
     gotodetailList(row) {
-      let search = JSON.stringify(this.topForm);
-      let rules = JSON.stringify(this.rules);
+
       this.$router.push({
         path: "/business/teamDetailedList",
         query: { id: row.id },
@@ -852,8 +849,8 @@ export default {
     },
     //
     lookTeamInfo(row) {
-      let search = JSON.stringify(this.topForm);
-      let rules = JSON.stringify(this.rules);
+         sessionStorage.removeItem(`${row.id}base`);
+      sessionStorage.removeItem(`${row.id}sound`);
       this.$router.push({
         path: "/business/teamLookBase",
         query: { type: "look", id: row.id, name: row.name },