فهرست منبع

修复排版提交生成图片样式变形的问题

zhonghuizhen 1 سال پیش
والد
کامیت
ee9b374c15
2فایلهای تغییر یافته به همراه6 افزوده شده و 3 حذف شده
  1. 6 1
      src/views/business/​scheduleManage/edit.vue
  2. 0 2
      src/views/business/​scheduleManage/list.vue

+ 6 - 1
src/views/business/​scheduleManage/edit.vue

@@ -1077,6 +1077,11 @@ export default {
                 })
             }
             return new Promise((resolve, reject) => {
+                // 修改变形样式
+                const abscissaElement = document.querySelector('.abscissa')
+                if (abscissaElement) {
+                    abscissaElement.style.margin = '0 20px 0 90px'
+                }
                 html2canvas(element).then(canvas => {
                     canvasToBlob(canvas).then(blob => {
                         uploadImage(blob).then(fileId => {
@@ -1335,7 +1340,7 @@ export default {
             width: fit-content;
             overflow-x: auto;
             font-size: 14px;
-            position: relative;
+            //position: relative;
             .abscissa {
                 // width: 100%;
                 margin: 0 20px 0 110px;

+ 0 - 2
src/views/business/​scheduleManage/list.vue

@@ -106,7 +106,6 @@ export default {
                     actions: [
                         { key: 'adjust', label: '申请调班', type: 'primary', icon: 'ibps-icon-exchange', hidden: false },
                         { key: 'edit', label: '编辑', type: 'primary', icon: 'ibps-icon-edit', hidden: (row) => {
-                            debugger
                             return !this.isRoleFilter() && this.$store.getters.userId !== row.createBy
                         } },
                         { key: 'preview', label: '查看', type: 'primary', icon: 'ibps-icon-eye', hidden: false }
@@ -164,7 +163,6 @@ export default {
          * 判断当前用户是否为超级管理员和高权限角色和专业组组长
          */
         isRoleFilter () {
-            debugger
             const highRoles = this.$store.getters.userInfo.highRoles || [] // 高权限角色
             const userRole = this.$store.getters.userInfo.role || [] // 用户权限角色
             let isHighRole = false