warrior 8 miesięcy temu
rodzic
commit
38085c8928

+ 1 - 28
projects/textbook/src/modules/nav-author/page-home/page-home.component.ts

@@ -13,32 +13,10 @@ import { MatIconModule } from '@angular/material/icon';
 })
 export class PageHomeComponent implements OnInit {
   options: Array<any> = [
-    // {
-    //   name:'教材管理',
-    //   id:'5',
-    //   child:[
-    //     {
-    //       name:'教材列表',
-    //       id:'1-1',
-    //       path:"/nav-author/textbook/list"
-    //     }
-    //   ]
-    // },
     {
       name: '个人空间',
       id: '1',
-      // child: [
-      //   {
-      //     name: '创建教材',
-      //     id: '1-1',
-      //     path: '/nav-author/manage/apply',
-      //   },
-      //   {
-      //     name: '教材列表',
-      //     id: '1-2',
-      //     path: '/nav-author/manage/textbook',
-      //   },
-      // ],
+      path: '/nav-author/manage/space',
     },
     {
       name: '回收站',
@@ -48,11 +26,6 @@ export class PageHomeComponent implements OnInit {
         isDeleted: true,
       },
     },
-    // {
-    //   name: '个人信息',
-    //   id: '3',
-    //   path: '/nav-author/profile',
-    // },
   ];
   active: string = localStorage.getItem('active') || this.options[0].id;
   isCollapsed:boolean = false;

+ 10 - 45
projects/textbook/src/modules/nav-author/textbook-details/textbook-details.component.html

@@ -184,68 +184,33 @@
           <nz-table
             #basicTable
             [nzShowPagination]="false"
-            [nzData]="textBook.authorList"
+            [nzData]="textBook.achievementOptions"
             [nzScroll]="{ x: (templ1.style.width || '1000') + 'px', y: '240px' }"
           >
           <thead>
             <tr>
               <th nzWidth="80px" nzLeft nzAlign="right">序号</th>
-              <th nzWidth="220px" nzLeft>名称</th>
-              <th nzWidth="180px">来源/出版单位</th>
-              <th nzWidth="120px">时间</th>
-              <th nzWidth="80px" nzRight>操作</th>
+              <th nzWidth="160px" nzLeft>名称</th>
+              <th nzWidth="160px">来源/出版单位</th>
+              <th nzWidth="80px">时间</th>
             </tr>
           </thead>
-          <!-- <tbody>
-            @for (data of achievementOptions; track data.name;let index = $index) {
+          <tbody>
+            @for (data of textBook.achievementOptions; track data.name;let index = $index) {
             <tr>
               <td nzLeft nzAlign="right">{{ index + 1 }}</td>
               <td nzLeft>
-                <input
-                  nz-input
-                  placeholder="请输入项目/成果/论文名称"
-                  [ngModelOptions]="{ standalone: true }"
-                  [(ngModel)]="data.name"
-                  nzStatus=""
-                />
+                {{data.name}}
               </td>
               <td>
-                <input
-                  nz-input
-                  placeholder="请输入单位名称"
-                  [ngModelOptions]="{ standalone: true }"
-                  [(ngModel)]="data.unit"
-                  nzStatus=""
-                />
+                {{data.unit}}
               </td>
               <td>
-                <nz-date-picker
-                  nzMode="month"
-                  [ngModelOptions]="{ standalone: true }"
-                  [(ngModel)]="data.date"
-                ></nz-date-picker>
-              </td>
-              <td nzRight>
-                <a (click)="onPush('achievementOptions',index)"
-                  ><span
-                    nz-icon
-                    style="font-size: 20px; margin-right: 10px"
-                    nzType="plus-circle"
-                    nzTheme="outline"
-                  ></span
-                ></a>
-                <a (click)="onDel('achievementOptions',index)"
-                  ><span
-                    nz-icon
-                    style="font-size: 20px"
-                    nzType="delete"
-                    nzTheme="outline"
-                  ></span
-                ></a>
+                {{ data.date | date : "yyyy-MM" }}
               </td>
             </tr>
             }
-          </tbody> -->
+          </tbody>
           </nz-table>
         </div>
       </div>