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

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

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

Loading…
Cancel
Save