lex 1 年間 前
コミット
7360f9f1d2

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

@@ -8,7 +8,7 @@
       <el-button
         @click="open('COMMON')"
         type="primary"
-        v-permission="'sysMusicScore/add'"
+        v-permission="'musicSheetApplicationExtend/saveBatch'"
         >添加曲目</el-button
       >
       <saveform
@@ -100,10 +100,15 @@
         :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
         :data="tableList"
       >
-        <el-table-column align="center" prop="id" label="编号" width="120px">
+        <el-table-column
+          align="center"
+          prop="cbsMusicSheetId"
+          label="编号"
+          width="120px"
+        >
           <template slot-scope="scope">
             <div>
-              <copy-text>{{ scope.row.id }}</copy-text>
+              <copy-text>{{ scope.row.cbsMusicSheetId }}</copy-text>
             </div>
           </template>
         </el-table-column>
@@ -159,9 +164,12 @@
             <el-button type="text" @click="looker(scope.row, 1)"
               >预览</el-button
             >
-            <el-button type="text" @click="changeStatus(scope.row)">{{
-              scope.row.showFlag ? "停用" : "启用"
-            }}</el-button>
+            <el-button
+              v-permission="'musicSheetApplicationExtend/status'"
+              type="text"
+              @click="changeStatus(scope.row)"
+              >{{ scope.row.showFlag ? "停用" : "启用" }}</el-button
+            >
             <!-- <el-button
               type="text"
               @click="transcod(scope.row)"
@@ -376,6 +384,8 @@ export default {
         const res = await queryTree();
         this.tree = res.data;
         this.formatTree(this.tree);
+
+        console.log(this.tree);
       } catch (error) {}
     },
     formatTree(data) {
@@ -447,8 +457,6 @@ export default {
         url = location.origin + "/accompany/";
       }
 
-      url = "https://test.gym.lexiaoya.cn/accompany-web/";
-
       this.accompanyUrl =
         url +
         "?Authorization=" +
@@ -457,8 +465,7 @@ export default {
         "#/detail/" +
         row.id +
         "?part-index=" +
-        this.selectPart +
-        "&isMove=1";
+        this.selectPart;
       this.lookVisible = true;
       this.lookNum = num;
       this.lookRow = row;
@@ -489,8 +496,7 @@ export default {
         "#/detail/" +
         this.lookRow.id +
         "?part-index=" +
-        val +
-        "&isMove=1";
+        val;
     },
     async changeStatus(row) {
       try {

+ 1 - 1
src/views/accompaniment/modals/edit-extra.vue

@@ -100,7 +100,7 @@ export default {
       this.form.musicSheetCategoryId = this.detail.categoriesId
         ? this.formatParentId(this.detail.categoriesId, this.tree)
         : [];
-      this.form.paymentType = this.detail.rankIds ? "VIP" : "VIP";
+      this.form.paymentType = this.detail.rankIds ? "VIP" : "FREE";
       this.form.sortNo = this.detail.sortNo;
     }
   },