wenbobowen 4 years ago
parent
commit
9753ecd315

+ 95 - 0
src/components/modal/index.vue

@@ -0,0 +1,95 @@
+<template>
+  <!-- <el-dialog :visible.sync="dialogDaliy" width="70vw" class="public_task report-dialog" :title="reportHome ? '测试日报' : `${tipName}测试日报模版`" :close-on-click-modal="false" :destroy-on-close="true" :before-close="handleClose"> -->
+  <div v-if="visible" class="dialogbox">
+    <div class="box">
+      <div class="title">
+        <span v-show="showline" class="line" />
+        <span class="name">{{ title }}</span>
+        <i class="el-icon-close icon" @click="$emit('close')" />
+      </div>
+      <div class="body">
+        <slot />
+      </div>
+      <div class="footer">
+        <slot name="footer" />
+      </div>
+    </div>
+    <div class="bg" />
+  </div>
+</template>
+
+<script>
+export default {
+  props: {
+    visible: { type: Boolean, default: false, required: false },
+    title: { type: String, default: '', required: false },
+    showline: { type: Boolean, default: true, required: false }
+  }
+}
+</script>
+
+<style lang="scss" scoped>
+.dialogbox {
+  .box {
+    position: fixed;
+    top:10vh;
+    left: 15%;
+    width: 70%;
+    height: 80vh;
+    // overflow: auto;
+    background: #fff;
+    z-index: 1000;
+    display: flex;
+    flex-direction: column;
+    .title {
+      padding: 20px 20px 10px;
+      border-bottom: 1px solid #eee;
+      position: relative;
+      .line {
+        display: inline-block;
+        width: 4px;
+        height: 18px;
+        background: #409eff;
+        border-radius: 1px;
+        vertical-align: text-top;
+      }
+      .name {
+        font-size: 16px;
+        color: #303133;
+        padding-left: 6px;
+      }
+      .icon {
+        position: absolute;
+        top: 20px;
+        right: 20px;
+        font-size: 16px;
+        color: #909399;
+      }
+    }
+    .body {
+      padding: 30px 20px;
+      color: #606266;
+      font-size: 14px;
+      word-break: break-all;
+      height: calc(80vh - 118px);
+      overflow: auto;
+    }
+    .footer {
+      padding: 15px 20px;
+      text-align: right;
+      border-top: 1px solid #eee;
+      background: #fff;
+    }
+  }
+  .bg {
+    background: rgba(000, 000, 000, 0.5);
+    position: fixed;
+    top: 0;
+    left: 0;
+    bottom: 0;
+    right: 0;
+    z-index: 100;
+  }
+}
+
+</style>

+ 14 - 9
src/views/projectManage/bugList/file/createdBug.vue

@@ -1,9 +1,10 @@
 <template>
 <template>
   <div class="Parent">
   <div class="Parent">
-    <el-dialog :visible.sync="modalShow" :title="titleName" class="public_task" width="70%" :close-on-click-modal="false" :destroy-on-close="true" :modal-append-to-body="false" @close="modalClose">
+    <!-- <el-dialog :visible.sync="modalShow" :title="titleName" class="public_task" width="70%" :close-on-click-modal="false" :destroy-on-close="true" :modal-append-to-body="false" @close="modalClose"> -->
+    <modal :visible="modalShow" :title="titleName" @close="modalClose">
       <div class="blueStripe" />
       <div class="blueStripe" />
       <el-form ref="formInline" label-position="left" :model="formInline" :rules="rules" label-width="90px">
       <el-form ref="formInline" label-position="left" :model="formInline" :rules="rules" label-width="90px">
-        <div id="soll" style="height: 460px; overflow:scroll; overflow-x: hidden">
+        <div id="soll">
           <div>
           <div>
             <el-row style="margin: 0 4%;">
             <el-row style="margin: 0 4%;">
               <el-col :span="24">
               <el-col :span="24">
@@ -138,7 +139,7 @@
                       id="buglist_file_tinymce"
                       id="buglist_file_tinymce"
                       :value.sync="formInline.bugDescribe"
                       :value.sync="formInline.bugDescribe"
                       :height="200"
                       :height="200"
-                      :full-position-style="{ left:'0', bottom: '30px' }"
+                      :full-position-style="{ top:'20px',left:'15%', right: '15%' }"
                     />
                     />
                   </el-col>
                   </el-col>
                 </el-row>
                 </el-row>
@@ -156,13 +157,15 @@
             </div>
             </div>
           </div>
           </div>
         </div>
         </div>
-        <el-form-item style="text-align: right;margin: 15px 0% 0;">
-          <el-button @click="modalShow = false">取 消</el-button>
-          <el-button :disabled="dis" type="primary" @click="bug_created(formInline)">创 建</el-button>
-        </el-form-item>
+        <!-- <el-form-item style="text-align: right;margin: 15px 0% 0;">
+        </el-form-item> -->
       </el-form>
       </el-form>
       <el-button id="pasteUpload" type="primary" style="display: none" @click.stop="pasteUpload">upload</el-button>
       <el-button id="pasteUpload" type="primary" style="display: none" @click.stop="pasteUpload">upload</el-button>
-    </el-dialog>
+      <div slot="footer">
+        <el-button @click="modalShow = false">取 消</el-button>
+        <el-button :disabled="dis" type="primary" @click="bug_created(formInline)">创 建</el-button>
+      </div>
+    </modal>
     <normal-dialog :show-dialog="showCopyFile" :title="'上传截图'" :width="'40%'" :submit-button="'上传'" :top="'5vh'" @confirm="confirmUpload()" @cancel="showCopyFile=false">
     <normal-dialog :show-dialog="showCopyFile" :title="'上传截图'" :width="'40%'" :submit-button="'上传'" :top="'5vh'" @confirm="confirmUpload()" @cancel="showCopyFile=false">
       <div class="file-dialog">
       <div class="file-dialog">
         <el-form ref="imageForm" label-width="20%" :rules="imageRules" :model="imageName">
         <el-form ref="imageForm" label-width="20%" :rules="imageRules" :model="imageName">
@@ -205,6 +208,7 @@ import '@/views/projectManage/bugList/css/index.css'
 import '@/styles/PublicStyle/index.scss'
 import '@/styles/PublicStyle/index.scss'
 import normalArea from '@/components/input/normalArea' // 富文本
 import normalArea from '@/components/input/normalArea' // 富文本
 import 'tinymce/plugins/table'// 插入表格插件
 import 'tinymce/plugins/table'// 插入表格插件
+import modal from '@/components/modal'
 import axios from 'axios'
 import axios from 'axios'
 
 
 document.body.onpaste = function(event) {
 document.body.onpaste = function(event) {
@@ -226,7 +230,8 @@ export default {
   name: 'Createdbug',
   name: 'Createdbug',
   components: {
   components: {
     normalDialog,
     normalDialog,
-    normalArea
+    normalArea,
+    modal
   },
   },
   filters: {
   filters: {
     limit(e, limit) {
     limit(e, limit) {

+ 1 - 1
src/views/reportManagement/ReleaseReport/newReleaeTemplate.vue

@@ -100,7 +100,7 @@
         id="report-template-1"
         id="report-template-1"
         :value.sync="fromData.content"
         :value.sync="fromData.content"
         :height="500"
         :height="500"
-        :full-position-style="{ top:'20px',left:'14.5%', right: '15.5%' }"
+        :full-position-style="{ top:'20px',left:'15%', right: '15%' }"
       />
       />
     </el-form>
     </el-form>
     <div class="backStyle">缺陷统计</div>
     <div class="backStyle">缺陷统计</div>

+ 1 - 1
src/views/reportManagement/Testing/newTestingTemplate.vue

@@ -127,7 +127,7 @@
       id="report-template-2"
       id="report-template-2"
       :value.sync="fromCreateData.content"
       :value.sync="fromCreateData.content"
       :height="500"
       :height="500"
-      :full-position-style="{ top:'20px',left:'14.5%', right: '15.5%' }"
+      :full-position-style="{ top:'20px',left:'15%', right: '15%' }"
     />
     />
   </div>
   </div>
 </template>
 </template>

+ 78 - 98
src/views/reportManagement/components/DailyReport.vue

@@ -1,85 +1,83 @@
 <template>
 <template>
   <!-- <el-dialog :visible.sync="dialogDaliy" width="70vw" class="public_task report-dialog" :title="reportHome ? '测试日报' : `${tipName}测试日报模版`" :close-on-click-modal="false" :destroy-on-close="true" :before-close="handleClose"> -->
   <!-- <el-dialog :visible.sync="dialogDaliy" width="70vw" class="public_task report-dialog" :title="reportHome ? '测试日报' : `${tipName}测试日报模版`" :close-on-click-modal="false" :destroy-on-close="true" :before-close="handleClose"> -->
-  <div v-if="dialogDaliy" class="dialogbox">
-    1231212312
-    <div class="content">
-      <div v-if="reportHome" class="blueStripe" />
-      <i v-if="!reportHome" class="el-icon-arrow-left report-return didi-hover" @click="reportReturn" />
-
-      <el-steps v-if="reportHome" :active="active" align-center finish-status="success" class="report-steps">
-        <el-step title="选择模版" />
-        <el-step title="填写报告" />
-        <el-step title="发送报告" />
-      </el-steps>
-
-      <div class="report-leftRight">
-        <div v-if="showOne" style="min-height: 34vh;">
-          <el-row type="flex" justify="center">
-            <el-col :span="19" class="creator">模版名称</el-col>
-            <el-col :span="5" class="creator" style="margin-right: 17px;"> 创建人 </el-col>
-          </el-row>
-
-          <div ref="refName" style="max-height: 260px; overflow:scroll; overflow-x: hidden; margin: 20px 0;">
-            <el-row v-for="(item, index) in selectTemplate" :key="index" type="flex" justify="center" style="padding-right: 15px;">
-              <el-col :span="19">
-                <el-radio v-model="fromData.radio" class="creatorList" :label="item.id">{{ item.moduleName }}</el-radio>
-              </el-col>
-              <el-col :span="5" class="creatorList">
-                <div class="Layout_space_between">
-                  <span>{{ item.creatorObject.name }}</span>
-                  <span v-if="item.creator !== 'SYSTEM' && item.creator !== '系统'" class="operation">
-                    <i class="el-icon-edit-outline didi-hover" @click="open_new_template(item)" />
-                    <el-popover :ref="item.id" placement="bottom" width="300" :visible-arrow="false" trigger="click">
-                      <div><div class="blur-column" /> 删除模版</div>
-                      <div class="blueStripe" />
-                      <div class="deletreport">是否要删除模版{{ item.moduleName }}?</div>
-                      <div style="text-align: right; margin: 0">
-                        <el-button size="mini" type="danger" @click="settingDeleteReportModule(item)">确定</el-button>
-                        <el-button size="mini" @click="closeDefaultPopover()">取消</el-button>
-                      </div>
-                      <i slot="reference" class="el-icon-delete reportModel didi-hover" />
-                    </el-popover>
-                  </span>
-                </div>
-              </el-col>
-            </el-row>
-          </div>
-          <el-row type="flex" justify="center">
-            <el-col :span="24">
-              <span class="didi-hover" @click="open_new_template()"><i class="el-icon-circle-plus-outline creatorList didi-hover" /> <span style="margin-left: 8px; color: #333;">新建模版</span></span>
+  <modal :visible="dialogDaliy" :title="reportHome ? '测试日报' : `${tipName}测试日报模版`" :showline="reportHome" @close="handleClose">
+    <!-- <div class="box"> -->
+    <div v-if="reportHome" class="blueStripe" />
+    <i v-if="!reportHome" class="el-icon-arrow-left report-return didi-hover" @click="reportReturn" />
+
+    <el-steps v-if="reportHome" :active="active" align-center finish-status="success" class="report-steps">
+      <el-step title="选择模版" />
+      <el-step title="填写报告" />
+      <el-step title="发送报告" />
+    </el-steps>
+
+    <div class="report-leftRight">
+      <div v-if="showOne" style="min-height: 34vh;">
+        <el-row type="flex" justify="center">
+          <el-col :span="19" class="creator">模版名称</el-col>
+          <el-col :span="5" class="creator" style="margin-right: 17px;"> 创建人 </el-col>
+        </el-row>
+
+        <div ref="refName" style="margin: 20px 0;">
+          <el-row v-for="(item, index) in selectTemplate" :key="index" type="flex" justify="center" style="padding-right: 15px;">
+            <el-col :span="19">
+              <el-radio v-model="fromData.radio" class="creatorList" :label="item.id">{{ item.moduleName }}</el-radio>
+            </el-col>
+            <el-col :span="5" class="creatorList">
+              <div class="Layout_space_between">
+                <span>{{ item.creatorObject.name }}</span>
+                <span v-if="item.creator !== 'SYSTEM' && item.creator !== '系统'" class="operation">
+                  <i class="el-icon-edit-outline didi-hover" @click="open_new_template(item)" />
+                  <el-popover :ref="item.id" placement="bottom" width="300" :visible-arrow="false" trigger="click">
+                    <div><div class="blur-column" /> 删除模版</div>
+                    <div class="blueStripe" />
+                    <div class="deletreport">是否要删除模版{{ item.moduleName }}?</div>
+                    <div style="text-align: right; margin: 0">
+                      <el-button size="mini" type="danger" @click="settingDeleteReportModule(item)">确定</el-button>
+                      <el-button size="mini" @click="closeDefaultPopover()">取消</el-button>
+                    </div>
+                    <i slot="reference" class="el-icon-delete reportModel didi-hover" />
+                  </el-popover>
+                </span>
+              </div>
             </el-col>
             </el-col>
           </el-row>
           </el-row>
         </div>
         </div>
+        <el-row type="flex" justify="center">
+          <el-col :span="24">
+            <span class="didi-hover" @click="open_new_template()"><i class="el-icon-circle-plus-outline creatorList didi-hover" /> <span style="margin-left: 8px; color: #333;">新建模版</span></span>
+          </el-col>
+        </el-row>
+      </div>
 
 
-        <!-- new模版 -->
-        <newReportTemplate v-if="reportTamplate" ref="newReportTemplate" class="daily" :template-id="templateId" @getreportTemplate="getreportTemplate" @reportReturn="reportReturn" />
-        <!-- new模版 -->
+      <!-- new模版 -->
+      <newReportTemplate v-if="reportTamplate" ref="newReportTemplate" class="daily" :template-id="templateId" @getreportTemplate="getreportTemplate" @reportReturn="reportReturn" />
+      <!-- new模版 -->
 
 
-        <!-- 新建日报模版 -->
-        <dailyTemplate v-if="newDailyTemplate" ref="dailyTemplate" class="daily" :model-id="fromData.radio" :task-ids="daily_taskIds" @SaveNextStep="SaveNextStep" />
-        <!-- 新建日报模版 -->
+      <!-- 新建日报模版 -->
+      <dailyTemplate v-if="newDailyTemplate" ref="dailyTemplate" class="daily" :model-id="fromData.radio" :task-ids="daily_taskIds" @SaveNextStep="SaveNextStep" />
+      <!-- 新建日报模版 -->
 
 
-        <!-- 日报预览 -->
-        <dailyPreview v-if="dailyPreview" ref="dailyPreview" class="daily" :daily-id="dailyId" @handleClose="handleClose" />
-        <!-- 日报预览 -->
+      <!-- 日报预览 -->
+      <dailyPreview v-if="dailyPreview" ref="dailyPreview" class="daily" :daily-id="dailyId" @handleClose="handleClose" />
+      <!-- 日报预览 -->
 
 
-      </div>
-      <div slot="footer" class="dialog-footer" align="center">
-        <!-- 新建模版 -->
-        <el-button v-if="reportTamplate" size="small" type="primary" @click="created_out()">保存</el-button>
-        <!-- 第一步 -->
-        <el-button v-if="showOne" size="small" type="primary" @click="NextStep()">下一步</el-button>
-        <!-- 第二步 -->
-        <el-button v-if="newDailyTemplate" size="small" type="primary" @click="reportReturn">上一步</el-button>
-        <el-button v-if="newDailyTemplate" size="small" type="primary" @click="getCreateData">保存, 下一步</el-button>
-        <!-- 第三步 -->
-        <el-button v-if="dailyPreview" size="small" type="primary" @click="sendReportReturn">上一步</el-button>
-        <el-button v-if="dailyPreview" size="small" type="primary" :loading="loading" @click="sendReport">发送</el-button>
-      </div>
     </div>
     </div>
-    <div class="bg"></div>
-  </div>
-  <!-- </el-dialog> -->
+    <div slot="footer" class="dialog-footer" align="center">
+      <!-- 新建模版 -->
+      <el-button v-if="reportTamplate" size="small" type="primary" @click="created_out()">保存</el-button>
+      <!-- 第一步 -->
+      <el-button v-if="showOne" size="small" type="primary" @click="NextStep()">下一步</el-button>
+      <!-- 第二步 -->
+      <el-button v-if="newDailyTemplate" size="small" type="primary" @click="reportReturn">上一步</el-button>
+      <el-button v-if="newDailyTemplate" size="small" type="primary" @click="getCreateData">保存, 下一步</el-button>
+      <!-- 第三步 -->
+      <el-button v-if="dailyPreview" size="small" type="primary" @click="sendReportReturn">上一步</el-button>
+      <el-button v-if="dailyPreview" size="small" type="primary" :loading="loading" @click="sendReport">发送</el-button>
+    </div>
+    <!-- </div> -->
+    <!-- <div class="bg" /> -->
+  </modal>
 </template>
 </template>
 
 
 <script>
 <script>
@@ -89,12 +87,13 @@ import { settingQueryReportModuleList, settingDeleteReportModule, dailyReportGet
 import dailyTemplate from '@/views/reportManagement/daily/dailyTemplate.vue'
 import dailyTemplate from '@/views/reportManagement/daily/dailyTemplate.vue'
 import newReportTemplate from '@/views/reportManagement/daily/newReportTemplate.vue'
 import newReportTemplate from '@/views/reportManagement/daily/newReportTemplate.vue'
 import dailyPreview from '@/views/reportManagement/daily/dailyPreview.vue'
 import dailyPreview from '@/views/reportManagement/daily/dailyPreview.vue'
-
+import modal from '@/components/modal'
 export default {
 export default {
   components: {
   components: {
     dailyTemplate,
     dailyTemplate,
     newReportTemplate,
     newReportTemplate,
-    dailyPreview
+    dailyPreview,
+    modal
   },
   },
   data() {
   data() {
     return {
     return {
@@ -306,25 +305,6 @@ export default {
 </script>
 </script>
 
 
 <style lang="scss" scoped>
 <style lang="scss" scoped>
-.dialogbox {
-  .content {
-    position: fixed;
-    top:10vh;
-    width: 800px;
-    height: 90vh;
-    background: #fff;
-    z-index: 1000;
-  }
-  .bg {
-    background: rgba(000, 000, 000, 0.6);
-    position: fixed;
-    top: 0;
-    left: 0;
-    bottom: 0;
-    right: 0;
-    z-index: 100;
-  }
-}
 
 
 .report-leftRight {
 .report-leftRight {
   margin: 20px 9% 0%;
   margin: 20px 9% 0%;
@@ -410,11 +390,11 @@ export default {
   color:rgba(51,51,51,1);
   color:rgba(51,51,51,1);
   opacity:1;
   opacity:1;
 }
 }
-.daily {
-   max-height: 460px;
-   overflow:scroll;
-   overflow-x: hidden
-}
+// .daily {
+  //  max-height: 460px;
+  //  overflow:scroll;
+  //  overflow-x: hidden
+// }
 
 
 .blur-column {
 .blur-column {
   width:4px;
   width:4px;

+ 12 - 10
src/views/reportManagement/components/ReleaseReport.vue

@@ -1,5 +1,6 @@
 <template>
 <template>
-  <el-dialog :visible.sync="dialogDaliy" width="70vw" class="public_task report-dialog" :title="reportHome ? '准出报告' : `${tipName}准出报告模版`" :close-on-click-modal="false" :destroy-on-close="true" :before-close="handleClose">
+  <!-- <el-dialog :visible.sync="dialogDaliy" width="70vw" class="public_task report-dialog" :title="reportHome ? '准出报告' : `${tipName}准出报告模版`" :close-on-click-modal="false" :destroy-on-close="true" :before-close="handleClose"> -->
+  <modal :visible="dialogDaliy" :title="reportHome ? '准出报告' : `${tipName}准出报告模版`" :showline="reportHome" @close="handleClose">
     <div v-if="reportHome" class="blueStripe" />
     <div v-if="reportHome" class="blueStripe" />
     <i v-if="!reportHome" class="el-icon-arrow-left report-return didi-hover" @click="reportReturn" />
     <i v-if="!reportHome" class="el-icon-arrow-left report-return didi-hover" @click="reportReturn" />
 
 
@@ -16,7 +17,7 @@
           <el-col :span="5" class="creator">创建人</el-col>
           <el-col :span="5" class="creator">创建人</el-col>
         </el-row>
         </el-row>
 
 
-        <div ref="refName" style="max-height: 260px; overflow:scroll; overflow-x: hidden; margin: 15px 0;">
+        <div ref="refName" style="margin: 15px 0;">
           <el-row v-for="(item, index) in selectTemplate" :key="index" type="flex" justify="center" @mouseover.native="item.operation = true" @mouseleave.native="item.operation = false">
           <el-row v-for="(item, index) in selectTemplate" :key="index" type="flex" justify="center" @mouseover.native="item.operation = true" @mouseleave.native="item.operation = false">
             <el-col :span="19">
             <el-col :span="19">
               <el-radio v-model="fromData.radio" class="creatorList" :label="item.id">{{ item.moduleName }}</el-radio>
               <el-radio v-model="fromData.radio" class="creatorList" :label="item.id">{{ item.moduleName }}</el-radio>
@@ -72,7 +73,7 @@
       <el-button v-if="dailyPreview" size="small" type="primary" :loading="loading" @click="sendReport">发送</el-button>
       <el-button v-if="dailyPreview" size="small" type="primary" :loading="loading" @click="sendReport">发送</el-button>
     </div>
     </div>
 
 
-  </el-dialog>
+  </modal>
 </template>
 </template>
 
 
 <script>
 <script>
@@ -81,11 +82,12 @@ import '@/styles/PublicStyle/index.scss'
 import { settingQueryReportModuleList, settingDeleteReportModule, reportreleaseGetReportById } from '@/api/reportTemplate'
 import { settingQueryReportModuleList, settingDeleteReportModule, reportreleaseGetReportById } from '@/api/reportTemplate'
 import newReleaeTemplate from '@/views/reportManagement/ReleaseReport/newReleaeTemplate.vue'
 import newReleaeTemplate from '@/views/reportManagement/ReleaseReport/newReleaeTemplate.vue'
 import releaePreview from '@/views/reportManagement/ReleaseReport/releaePreview.vue'
 import releaePreview from '@/views/reportManagement/ReleaseReport/releaePreview.vue'
-
+import modal from '@/components/modal'
 export default {
 export default {
   components: {
   components: {
     releaePreview,
     releaePreview,
-    newReleaeTemplate
+    newReleaeTemplate,
+    modal
   },
   },
   data() {
   data() {
     return {
     return {
@@ -362,11 +364,11 @@ export default {
   color:rgba(51,51,51,1);
   color:rgba(51,51,51,1);
   opacity:1;
   opacity:1;
 }
 }
-.daily {
-   max-height: 460px;
-   overflow:scroll;
-   overflow-x: hidden
-}
+// .daily {
+//    max-height: 460px;
+//    overflow:scroll;
+//    overflow-x: hidden
+// }
 
 
 .blur-column {
 .blur-column {
   width:4px;
   width:4px;

+ 12 - 10
src/views/reportManagement/components/TestingReport.vue

@@ -1,5 +1,6 @@
 <template>
 <template>
-  <el-dialog :visible.sync="dialogDaliy" width="70vw" class="public_task report-dialog" :title="reportHome ? '提测报告' : `${tipName}提测报告模版`" :close-on-click-modal="false" :destroy-on-close="true" :before-close="handleClose">
+  <!-- <el-dialog :visible.sync="dialogDaliy" width="70vw" class="public_task report-dialog" :title="reportHome ? '提测报告' : `${tipName}提测报告模版`" :close-on-click-modal="false" :destroy-on-close="true" :before-close="handleClose"> -->
+  <modal :visible="dialogDaliy" :title="reportHome ? '提测报告' : `${tipName}提测报告模版`" :showline="reportHome" @close="handleClose">
     <div v-if="reportHome" class="blueStripe" />
     <div v-if="reportHome" class="blueStripe" />
     <i v-if="!reportHome" class="el-icon-arrow-left report-return didi-hover" @click="reportReturn" />
     <i v-if="!reportHome" class="el-icon-arrow-left report-return didi-hover" @click="reportReturn" />
 
 
@@ -16,7 +17,7 @@
           <el-col :span="5" class="creator">创建人</el-col>
           <el-col :span="5" class="creator">创建人</el-col>
         </el-row>
         </el-row>
 
 
-        <div ref="refName" style="max-height: 260px; overflow:scroll; overflow-x: hidden; margin: 15px 0;">
+        <div ref="refName" style="margin: 15px 0;">
           <el-row v-for="(item, index) in selectTemplate" :key="index" type="flex" justify="center" @mouseover.native="item.operation = true" @mouseleave.native="item.operation = false">
           <el-row v-for="(item, index) in selectTemplate" :key="index" type="flex" justify="center" @mouseover.native="item.operation = true" @mouseleave.native="item.operation = false">
             <el-col :span="19">
             <el-col :span="19">
               <el-radio v-model="fromData.radio" class="creatorList" :label="item.id">{{ item.moduleName }}</el-radio>
               <el-radio v-model="fromData.radio" class="creatorList" :label="item.id">{{ item.moduleName }}</el-radio>
@@ -72,7 +73,7 @@
       <el-button v-if="dailyPreview" size="small" type="primary" :loading="loading" @click="sendReport">发送</el-button>
       <el-button v-if="dailyPreview" size="small" type="primary" :loading="loading" @click="sendReport">发送</el-button>
     </div>
     </div>
 
 
-  </el-dialog>
+  </modal>
 </template>
 </template>
 
 
 <script>
 <script>
@@ -81,11 +82,12 @@ import '@/styles/PublicStyle/index.scss'
 import { settingQueryReportModuleList, settingDeleteReportModule, reportdelivertestGetReportById } from '@/api/reportTemplate'
 import { settingQueryReportModuleList, settingDeleteReportModule, reportdelivertestGetReportById } from '@/api/reportTemplate'
 import newTestingTemplate from '@/views/reportManagement/Testing/newTestingTemplate.vue'
 import newTestingTemplate from '@/views/reportManagement/Testing/newTestingTemplate.vue'
 import TestingPreview from '@/views/reportManagement/Testing/TestingPreview.vue'
 import TestingPreview from '@/views/reportManagement/Testing/TestingPreview.vue'
-
+import modal from '@/components/modal'
 export default {
 export default {
   components: {
   components: {
     newTestingTemplate,
     newTestingTemplate,
-    TestingPreview
+    TestingPreview,
+    modal
   },
   },
   data() {
   data() {
     return {
     return {
@@ -381,11 +383,11 @@ export default {
   color:rgba(51,51,51,1);
   color:rgba(51,51,51,1);
   opacity:1;
   opacity:1;
 }
 }
-.daily {
-   max-height: 460px;
-   overflow:scroll;
-   overflow-x: hidden
-}
+// .daily {
+//    max-height: 460px;
+//    overflow:scroll;
+//    overflow-x: hidden
+// }
 
 
 .blur-column {
 .blur-column {
   width:4px;
   width:4px;

+ 1 - 1
src/views/reportManagement/daily/dailyTemplate.vue

@@ -31,7 +31,7 @@
           id="report-template-4"
           id="report-template-4"
           :value.sync="fromCreateData.content"
           :value.sync="fromCreateData.content"
           :height="500"
           :height="500"
-          :full-position-style="{ top:'20px',left:'14.5%', right: '15.5%' }"
+          :full-position-style="{ top:'20px',left:'15%', right: '15%' }"
         />
         />
       </el-form-item>
       </el-form-item>
     </el-form>
     </el-form>

+ 1 - 1
src/views/reportManagement/daily/newReportTemplate.vue

@@ -14,7 +14,7 @@
           id="report-template-3"
           id="report-template-3"
           :value.sync="fromCreateData.content"
           :value.sync="fromCreateData.content"
           :height="500"
           :height="500"
-          :full-position-style="{ top:'20px',left:'14.5%', right: '15.5%' }"
+          :full-position-style="{ top:'20px',left:'15%', right: '15%' }"
         />
         />
       </el-form-item>
       </el-form-item>
     </el-form>
     </el-form>