소스 검색

日报邮件测试

qinzhipeng_v 5 년 전
부모
커밋
bc706cb1b4
4개의 변경된 파일14개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 1
      public/index.html
  2. 8 0
      public/jodit.min.js
  3. 2 2
      src/views/Platform/presentation/build/jodit.min.css
  4. 2 1
      src/views/Platform/presentation/testPresenyL.vue

+ 2 - 1
public/index.html

@@ -6,7 +6,8 @@
     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
     <title><%= webpackConfig.name %></title>
-    <script src="../src/views/Platform/presentation/build/jodit.min.js"></script>
+    <!-- <script src="../src/views/Platform/presentation/build/jodit.min.js"></script> -->
+    <script src="./jodit.min.js"></script>
   </head>
   <body>
     <noscript>

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 8 - 0
public/jodit.min.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 2 - 2
src/views/Platform/presentation/build/jodit.min.css


+ 2 - 1
src/views/Platform/presentation/testPresenyL.vue

@@ -159,11 +159,12 @@ export default {
         html2canvas(shareContent, opts).then(function(canvas) {
         // 从 canvas 提取图片数据
           var imgBlob = canvas.toDataURL('image/jpeg', 1.0) // 将图片转为base64, 0-1 表示清晰度
+          console.log(123, imgBlob)
           imgBlob = imgBlob.toString().substring(imgBlob.indexOf(',') + 1)// 截取base64以便上传
 
           var postData = { 'reportId': ele.id, 'imgStr': imgBlob, 'url': window.location.href, 'emailUser': e }
           dailyReportSendmail(postData).then(res => {
-            res.code === 200 ? this.$message.success('发送测试报告成功') : this.$message.error('发送测试报告失败,请联系管理员!')
+            res.code === 200 ? that.$message({ type: 'success', message: '发送测试报告成功' }) : that.$message({ type: 'error', message: '发送测试报告失败,请联系管理员!' })
           })
         })
       }, 500)

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.