Browse Source

[修改]放开四级预案模板在线编制功能

tangshan
chenjingyu 4 years ago
parent
commit
48fd631698
  1. 6
      src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html
  2. 2
      src/app/plan-management/create-plan-online-five/create-plan-online-five.component.scss
  3. 2
      src/app/plan-management/entry-plan-look/entry-plan-look.component.ts
  4. 4
      src/app/ui/plan-template/addKeyname.html
  5. 7
      src/app/ui/plan-template/plan-template.component.ts
  6. 4
      src/app/ui/plan-template/upPlan.html

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

@ -678,7 +678,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow-y: auto;"> overflow-y: auto;">
<div *ngFor="let itemunit of planTemplateData[1].building;let uniti=index" style="border-bottom: 3px solid #999;"> <div *ngFor="let itemunit of planTemplateData[1].building;let uniti=index"> <!-- style="border-bottom: 3px solid #999;" -->
<div *ngIf="itemunit.completed"> <div *ngIf="itemunit.completed">
<div class="unithead" style=" height: 40px; <div class="unithead" style=" height: 40px;
width: 100%; width: 100%;
@ -1019,14 +1019,14 @@
<input type="text" placeholder="请输入内容" style="width: 60%;background-color: #FFFFFF;" [(ngModel)]="parts.body[4].value" *ngIf="pattern == 'edit'"> <input type="text" placeholder="请输入内容" style="width: 60%;background-color: #FFFFFF;" [(ngModel)]="parts.body[4].value" *ngIf="pattern == 'edit'">
<table *ngIf="pattern == 'look'" style="width: 100%;border-collapse: collapse;"> <table *ngIf="pattern == 'look'" style="width: 100%;border-collapse: collapse;">
<tr> <tr>
<th style="border: 1px solid #999; <th style="
height: 40px;width: 185px; height: 40px;width: 185px;
font-size: 16px; font-size: 16px;
text-align: center;"> text-align: center;">
{{parts.body[4].name}} {{parts.body[4].name}}
<!-- <textarea style="height: 100%;width: 100%;" [(ngModel)]="parts.body[4].name" disabled></textarea> --> <!-- <textarea style="height: 100%;width: 100%;" [(ngModel)]="parts.body[4].name" disabled></textarea> -->
</th> </th>
<td style="border: 1px solid #999; <td style="
height: 40px;width: 185px; height: 40px;width: 185px;
font-size: 16px; font-size: 16px;
text-align: center;"> text-align: center;">

2
src/app/plan-management/create-plan-online-five/create-plan-online-five.component.scss

@ -916,7 +916,7 @@
width: 100%; width: 100%;
height: 40px; height: 40px;
display: flex; display: flex;
border-bottom: 1px solid #FFFFFF; //border-bottom: 1px solid #FFFFFF;
.duohangHalf{ .duohangHalf{
height: 40px; height: 40px;
width: 50%; width: 50%;

2
src/app/plan-management/entry-plan-look/entry-plan-look.component.ts

@ -862,7 +862,7 @@ export class AddPlanone {
this.onlineedit = false this.onlineedit = false
this.website = false this.website = false
} }
if (formdata.value.firstCtrltwo == '16' && formdata.value.firstCtrlthree != '4') { if (formdata.value.firstCtrltwo == '16' ) {//&& formdata.value.firstCtrlthree != '4'
this.localup = true this.localup = true
this.inputword = true this.inputword = true
this.onlineedit = false this.onlineedit = false

4
src/app/ui/plan-template/addKeyname.html

@ -4,7 +4,7 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2021-05-20 16:11:57 * @Date: 2021-05-20 16:11:57
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2021-06-15 09:56:11 * @LastEditTime: 2021-09-02 13:58:13
--> -->
<div class="box"> <div class="box">
<div class="top"> <div class="top">
@ -23,7 +23,7 @@
<mat-form-field> <mat-form-field>
<mat-select placeholder='请选择预案级别' name="level" [(ngModel)]="level" required> <mat-select placeholder='请选择预案级别' name="level" [(ngModel)]="level" required>
<mat-option value=3>Ⅲ级</mat-option> <mat-option value=3>Ⅲ级</mat-option>
<!-- <mat-option value=4>Ⅳ级</mat-option> --> <mat-option value=4>Ⅳ级</mat-option>
<mat-option value=5>Ⅴ级</mat-option> <mat-option value=5>Ⅴ级</mat-option>
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>

7
src/app/ui/plan-template/plan-template.component.ts

@ -4,7 +4,7 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2021-05-31 10:40:01 * @Date: 2021-05-31 10:40:01
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2021-08-07 15:21:06 * @LastEditTime: 2021-09-02 14:06:11
*/ */
import { Component, Inject, OnInit,ViewEncapsulation } from '@angular/core'; import { Component, Inject, OnInit,ViewEncapsulation } from '@angular/core';
@ -177,8 +177,9 @@ export class PlanTemplateComponent implements OnInit {
data:null data:null
} }
let aaa = await new Promise((resolve, reject)=>{ let aaa = await new Promise((resolve, reject)=>{
delete this.newleftTabledata[this.leftclicki].data[0].attribute[1].attinf console.log(this.newleftTabledata)
delete this.newleftTabledata[this.leftclicki].data[0].attribute[3].attinf //delete this.newleftTabledata[this.leftclicki].data
//delete this.newleftTabledata[this.leftclicki].data[0].attribute[3].attinf
this.http.post("/api/PlanTemplate",savaData).subscribe((data:any)=>{ this.http.post("/api/PlanTemplate",savaData).subscribe((data:any)=>{
this.newleftTabledata[this.newleftTabledata.length-1].id='' this.newleftTabledata[this.newleftTabledata.length-1].id=''
this.newleftTabledata[this.newleftTabledata.length-1].id=data.id this.newleftTabledata[this.newleftTabledata.length-1].id=data.id

4
src/app/ui/plan-template/upPlan.html

@ -4,7 +4,7 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2021-05-21 10:43:28 * @Date: 2021-05-21 10:43:28
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2021-08-07 15:04:56 * @LastEditTime: 2021-09-02 13:58:57
--> -->
<!-- <!--
* @Descripttion: * @Descripttion:
@ -32,7 +32,7 @@
<mat-form-field> <mat-form-field>
<mat-select placeholder='请选择预案级别' name="unittype" [(ngModel)]="level" required> <mat-select placeholder='请选择预案级别' name="unittype" [(ngModel)]="level" required>
<mat-option value="3">Ⅲ级</mat-option> <mat-option value="3">Ⅲ级</mat-option>
<!-- <mat-option value="4">Ⅳ级</mat-option> --> <mat-option value="4">Ⅳ级</mat-option>
<mat-option value="5">Ⅴ级</mat-option> <mat-option value="5">Ⅴ级</mat-option>
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>

Loading…
Cancel
Save