|
|
@@ -54,7 +54,7 @@
|
|
|
placeholder="请选择声部"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="item in selects.subjects"
|
|
|
+ v-for="item in subjectList"
|
|
|
:value="item.id"
|
|
|
:label="item.name"
|
|
|
:key="item.id"
|
|
|
@@ -165,7 +165,7 @@
|
|
|
>预览</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
- v-permission="'musicSheetApplicationExtend/status'"
|
|
|
+ v-permission="'sysMusicScore/state'"
|
|
|
type="text"
|
|
|
@click="changeStatus(scope.row)"
|
|
|
>{{ scope.row.showFlag ? "停用" : "启用" }}</el-button
|
|
|
@@ -278,6 +278,7 @@ 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 {
|
|
|
@@ -323,6 +324,7 @@ export default {
|
|
|
detail: null,
|
|
|
visible: false,
|
|
|
muiscVisible: false,
|
|
|
+ subjectList: [],
|
|
|
tree: [],
|
|
|
treeProps: {
|
|
|
value: "id",
|
|
|
@@ -354,13 +356,27 @@ export default {
|
|
|
this.tree
|
|
|
);
|
|
|
}
|
|
|
- this.$store.dispatch("setSubjects");
|
|
|
+ // this.$store.dispatch("setSubjects");
|
|
|
+ await this.getSubjectList();
|
|
|
+
|
|
|
this.$store.dispatch("setBranchs");
|
|
|
await this.FetchList();
|
|
|
|
|
|
// 点击Cascader label选中
|
|
|
},
|
|
|
methods: {
|
|
|
+ async getSubjectList() {
|
|
|
+ try {
|
|
|
+ const { data } = await getSubject({
|
|
|
+ rows: 9999,
|
|
|
+ cbsFlag: true,
|
|
|
+ tenantId: "1"
|
|
|
+ });
|
|
|
+ this.subjectList = data || [];
|
|
|
+ } catch {
|
|
|
+ //
|
|
|
+ }
|
|
|
+ },
|
|
|
formatParentId(id, list, ids = []) {
|
|
|
for (const item of list) {
|
|
|
if (item.sysMusicScoreCategoriesList) {
|