lex-xin il y a 6 mois
Parent
commit
1b632ba85c
1 fichiers modifiés avec 6 ajouts et 42 suppressions
  1. 6 42
      src/views/accompaniment/index.vue

+ 6 - 42
src/views/accompaniment/index.vue

@@ -301,31 +301,18 @@
 
     <el-dialog
       v-if="lookVisible"
-      width="667px"
+      width="1030px"
       class="lookForm"
       :visible.sync="lookVisible"
       title="预览"
     >
       <template slot="title">
         <span style="color: #fff;">预览</span>
-        <el-select
-          v-model="selectPart"
-          placeholder="请选择分谱"
-          @change="onPartChange"
-        >
-          <el-option
-            v-for="(item, index) in parts"
-            :key="item"
-            :label="item"
-            :value="index"
-          >
-          </el-option>
-        </el-select>
       </template>
       <iframe
         id="iframe"
         v-if="lookVisible"
-        style="width: 667px; height: 386px"
+        style="width: 1030px; height: 630px; border: none;"
         ref="iframe"
         :src="accompanyUrl"
       />
@@ -383,7 +370,6 @@ export default {
       lookNum: 0,
       lookRow: {},
       accompanyUrl: null, // 预览地址
-      accompanyUrl2: null, // 预览地址
       tableList: [],
       searchForm: {
         search: "",
@@ -555,19 +541,13 @@ export default {
         this.parts = [];
         this.selectPart = 0;
       }
-      let url = location.origin + "/accompany-web/";
-      if (/dayaedu.com/.test(location.origin)) {
-        url = location.origin + "/accompany/";
-      }
-
       this.accompanyUrl =
-        url +
+        location.origin + '/gym-music-score/' +
         "?Authorization=" +
         getToken() +
-        "&platform=web" +
-        "#/detail/" +
+        "&systemType=web&id=" +
         row.id +
-        "?part-index=" +
+        "&part-index=" +
         this.selectPart;
       this.lookVisible = true;
       this.lookNum = num;
@@ -582,23 +562,6 @@ export default {
       //   }
       // })
     },
-    onPartChange(val) {
-      let url = location.origin + "/accompany-web/";
-      if (/dayaedu.com/.test(location.origin)) {
-        url = location.origin + "/accompany/";
-      }
-      //         url +
-      this.accompanyUrl =
-        url +
-        "?Authorization=" +
-        getToken() +
-        "&platform=web&t=" +
-        new Date().getTime() +
-        "#/detail/" +
-        this.lookRow.id +
-        "?part-index=" +
-        val;
-    },
     async changeStatus(row) {
       try {
         let status = row.clientShowFlag ? "停用" : "启用";
@@ -705,6 +668,7 @@ export default {
 .lookForm {
   ::v-deep .el-dialog__body {
     padding: 0;
+    font-size: 0
   }
 }
 .iframe_back {