lsc 2 years ago
parent
commit
706da2e24a
1 changed files with 11 additions and 7 deletions
  1. 11 7
      src/components/pages/components/worksDetail2.vue

+ 11 - 7
src/components/pages/components/worksDetail2.vue

@@ -194,8 +194,8 @@
           :visible.sync="dialogVisible3"
           :append-to-body="true"
           :before-close="handleClose"
-          width="800px"
-          class="dialog_diy2"
+          width="100%"
+          class="dialog_diy2 max_diy"
         >
           <div class="zyBoxC">
             <div class="courseTitle" v-if="sInfo.course">
@@ -328,7 +328,7 @@
                     <el-rate></el-rate>
                   </div>-->
                 </div>
-                <div class="data_body">
+                <div class="data_body" v-if="dialogVisible3">
                   <div class="title">
                     <span style="font-size: 18px">雷达图</span>
                   </div>
@@ -889,13 +889,13 @@ export default {
               _option.series[0].data[0].value.push(_ooption[i].value);
             }
             console.log(_option);
-            if (this.chartObj) {
+            // if (this.chartObj) {
               // _option.series[0].data = _ooption;
-              this.chartObj.setOption(_option);
-            } else {
+              // this.chartObj.setOption(_option);
+            // } else {
               // _option.series[0].data = _ooption;
               this.setChart(_option);
-            }
+            // }
             // this.setChart(this.option);
           }, 0);
         })
@@ -1908,6 +1908,10 @@ export default {
   background: #fafafa;
 }
 
+.max_diy >>> .el-dialog{
+  max-width: 1200px;
+}
+
 .dialog_diy2 >>> .el-dialog__header {
   padding: 9px 20px 10px;
   background: #32455b !important;