12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <div class="content priority">
- <div class="contentInner">
- <div class="list-template" id="priorityTable">
- <div class="list-template__content">
- <div class="list-template__bottom">
- <div class="list-template__top" nz-row>
- <div nz-col nzLg="24" class="list-template__btns">
- <button nz-button class="btn default" (click)="addPriorityModal()">新增</button>
- </div>
- </div>
- <nz-table class="list-template__nzTable" [nzData]="priorityList" nzSize="middle" [nzShowPagination]="false"
- [nzLoading]="loading1" [nzScroll]="{ y: tablePriorityHeight + 'px' }">
- <thead>
- <tr class="thead">
- <th nzWidth="20%">优先级名称</th>
- <th nzWidth="20%">排序</th>
- <th nzWidth="20%">响应时间(分钟)</th>
- <th nzWidth="20%">解决时间(分钟)</th>
- <th nzWidth="20%">操作</th>
- </tr>
- </thead>
- <tbody>
- <tr *ngFor="let data of priorityList;let i = index">
- <td>{{data.name}}</td>
- <td>{{data.orders}}</td>
- <td>{{data.responseTime}}</td>
- <td>{{data.handleTime}}</td>
- <td>
- <div class="coop">
- <span (click)="showDelModal(data,'您确认要删除吗?','删除','delPriority')">删除</span>
- <span (click)="editPriority(data)">编辑</span>
- </div>
- </td>
- </tr>
- </tbody>
- </nz-table>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- 操作成功/失败提示框 -->
- <app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
- [info]="promptInfo">
- </app-prompt-modal>
- <!-- 删除模态框 -->
- <app-dialog-delete [delModal]="delModal" (hideDelModalEvent)="hideDelModal()" [btnLoading]="btnLoading"
- (confirmDelEvent)="confirmDel()" [content]="tipsMsg1"></app-dialog-delete>
- <!-- 新增/编辑优先级模态框 -->
- <div class="save display_flex justify-content_flex-center align-items_center add" *ngIf="modalPriority">
- <div class="modalBody">
- <div class="title">{{modelName}}优先级<i class="icon_transport transport-guanbi" (click)="hidePriorityModal()"></i></div>
- <div class="content">
- <form nz-form [formGroup]="validatePriorityForm" class="addForm">
- <nz-form-item>
- <nz-form-label [nzSpan]="6" nzRequired nzFor="name">优先级名称</nz-form-label>
- <nz-form-control [nzSpan]="18" nzErrorTip="请输入优先级名称!">
- <nz-input-group>
- <input formControlName="name" nz-input placeholder="请输入优先级名称">
- </nz-input-group>
- </nz-form-control>
- </nz-form-item>
- <nz-form-item>
- <nz-form-label [nzSpan]="6" nzRequired nzFor="orders">排 序 号</nz-form-label>
- <nz-form-control [nzSpan]="18" nzErrorTip="请输入排序号!">
- <nz-input-group>
- <nz-input-number class="w100" formControlName="orders" nzPlaceHolder="请输入排序号" [nzMin]="0" [nzStep]="1" [nzPrecision]="0"></nz-input-number>
- </nz-input-group>
- </nz-form-control>
- </nz-form-item>
- <nz-form-item>
- <nz-form-label [nzSpan]="6" nzRequired nzFor="responseTime">响 应 时 间</nz-form-label>
- <nz-form-control [nzSpan]="18" nzErrorTip="请输入响应时间(分钟)!">
- <nz-input-group>
- <nz-input-number class="w100" formControlName="responseTime" nzPlaceHolder="请输入响应时间(分钟)" [nzMin]="0" [nzStep]="1" [nzPrecision]="0" [nzFormatter]="formatterMinute" [nzParser]="parserMinute"></nz-input-number>
- </nz-input-group>
- </nz-form-control>
- </nz-form-item>
- <nz-form-item>
- <nz-form-label [nzSpan]="6" nzRequired nzFor="handleTime">解 决 时 间</nz-form-label>
- <nz-form-control [nzSpan]="18" nzErrorTip="请输入解决时间(分钟)!">
- <nz-input-group>
- <nz-input-number class="w100" formControlName="handleTime" nzPlaceHolder="请输入解决时间(分钟)" [nzMin]="0" [nzStep]="1" [nzPrecision]="0" [nzFormatter]="formatterMinute" [nzParser]="parserMinute"></nz-input-number>
- </nz-input-group>
- </nz-form-control>
- </nz-form-item>
- </form>
- </div>
- <div class=" display_flex justify-content_flex-center">
- <button nzType="primary" nz-button (click)="submitPriorityForm()" [nzLoading]="btnLoading">确认</button>
- <button class="btn cancel" nz-button nzType="default" (click)="hidePriorityModal()">取消</button>
- </div>
- </div>
- </div>
|