Browse Source

[修改]预案在线编制表格固定宽度

tangshan
chenjingyu 3 years ago
parent
commit
1c5af71667
  1. 8
      src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html
  2. 6
      src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts

8
src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html

@ -395,7 +395,7 @@
<th *ngFor="let itemth of element.tableth;let tablethi=index;TrackBy:trackByFn" style="border: 1px solid #999;
height: 40px;
font-size: 16px;
text-align: center;" >
text-align: center;width: 185px;" >
{{element.tableth[tablethi]}}
</th>
</thead>
@ -414,7 +414,7 @@
<td *ngFor="let itemtd of itemtr.tabletd;let tabletdi=index;TrackBy:trackByFn" style="border: 1px solid #999;
height: 40px;
font-size: 16px;
text-align: center;">
text-align: center;width: 185px;">
{{itemtr.tabletd[tabletdi]}}
</td>
</tr>
@ -440,11 +440,11 @@
<th style="border: 1px solid #999;
height: 40px;
font-size: 16px;
text-align: center; white-space:pre-wrap; width: 100px;">{{itemthj.head}}</th>
text-align: center; white-space:pre-wrap; width: 185px;">{{itemthj.head}}</th>
<td style="border: 1px solid #999;
height: 40px;
font-size: 16px;
text-align: center;white-space:pre-wrap;width: 100px;">{{itemthj.body}}</td>
text-align: center;white-space:pre-wrap;width: 185px;">{{itemthj.body}}</td>
</tr>
</table>
</div>

6
src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts

@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2021-06-16 13:56:54
* @LastEditors: sueRimn
* @LastEditTime: 2021-07-29 14:12:18
* @LastEditTime: 2021-07-30 14:56:55
*/
import { HttpClient } from '@angular/common/http';
import { Component, Inject, OnInit, Renderer2, ViewChild, Input } from '@angular/core';
@ -563,7 +563,7 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
}
//生成word
generatingDoc() {
changeImgToDataurl()
/* changeImgToDataurl()
function changeImgToDataurl() {
let charImg = document.getElementsByTagName("img");
console.log(charImg)
@ -591,7 +591,7 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
}
function condataurl(dataURL, charImg) {
charImg.src = dataURL;
}
} */
$(".mainbox").wordExport('word文档');
}

Loading…
Cancel
Save