Browse Source

Update index.vue

lex 11 tháng trước cách đây
mục cha
commit
521efb79a9
1 tập tin đã thay đổi với 18 bổ sung0 xóa
  1. 18 0
      src/views/accompaniment/index.vue

+ 18 - 0
src/views/accompaniment/index.vue

@@ -278,6 +278,9 @@ import { getToken } from "@/utils/auth";
 import deepClone from "@/helpers/deep-clone/";
 import Tooltip from "@/components/Tooltip/index";
 import { Export } from "@/utils/downLoadFile";
+import {
+  getSubject
+} from "@/api/buildTeam";
 import qs from "qs";
 import cleanDeep from "clean-deep";
 export default {
@@ -355,12 +358,27 @@ export default {
       );
     }
     this.$store.dispatch("setSubjects");
+
+
+
     this.$store.dispatch("setBranchs");
     await this.FetchList();
 
     // 点击Cascader  label选中
+
+    this.getSubjectList()
   },
   methods: {
+    getSubjectList() {
+      try {
+        const {data} = await getSubject({
+            rows: 9999,
+            tenantId: "1"
+          });
+      } catch {
+        //
+      }
+    },
     formatParentId(id, list, ids = []) {
       for (const item of list) {
         if (item.sysMusicScoreCategoriesList) {