Browse Source

升级到ng13

beijing
刘向辉 2 years ago
parent
commit
694c7b0ae4
  1. 1
      .gitignore
  2. 29
      package.json
  3. 12
      src/app/babylon/tool/myArcRotateCameraPointersInput.ts
  4. 4
      src/app/pages/equipment-info/equipment-info.component.ts
  5. 2
      src/app/pages/login/login.component.ts
  6. 2
      src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts
  7. 4
      src/app/system-management/analysis-of-the-host/analysis-of-the-host.component.ts
  8. 2
      src/app/system-management/file-of-license/file-of-license.component.ts
  9. 4
      src/app/system-management/menu/menu.component.ts
  10. 2
      src/app/system-management/organization/organization.component.ts
  11. 2
      src/app/system-management/role/role.component.ts
  12. 2
      src/app/system-management/update-of-license/update-of-license.component.ts
  13. 4
      src/app/system-management/user/user.component.ts
  14. 4608
      yarn.lock

1
.gitignore vendored

@ -44,3 +44,4 @@ testem.log
# System Files # System Files
.DS_Store .DS_Store
Thumbs.db Thumbs.db
/.angular/cache

29
package.json

@ -11,17 +11,17 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^12.2.16", "@angular/animations": "^13.3.11",
"@angular/cdk": "^9.2.4", "@angular/cdk": "~13.3.9",
"@angular/common": "~12.2.16", "@angular/common": "~13.3.11",
"@angular/compiler": "~12.2.16", "@angular/compiler": "~13.3.11",
"@angular/core": "~12.2.16", "@angular/core": "~13.3.11",
"@angular/fire": "^5.3.0", "@angular/fire": "^5.3.0",
"@angular/forms": "~12.2.16", "@angular/forms": "~13.3.11",
"@angular/material": "9", "@angular/material": "9",
"@angular/platform-browser": "~12.2.16", "@angular/platform-browser": "~13.3.11",
"@angular/platform-browser-dynamic": "~12.2.16", "@angular/platform-browser-dynamic": "~13.3.11",
"@angular/router": "~12.2.16", "@angular/router": "~13.3.11",
"@aspnet/signalr": "^1.1.4", "@aspnet/signalr": "^1.1.4",
"@babylonjs/core": "5.27.0", "@babylonjs/core": "5.27.0",
"@babylonjs/gui": "^5.27.0", "@babylonjs/gui": "^5.27.0",
@ -29,6 +29,7 @@
"@babylonjs/inspector": "^5.27.0", "@babylonjs/inspector": "^5.27.0",
"@babylonjs/loaders": "^5.27.0", "@babylonjs/loaders": "^5.27.0",
"@babylonjs/materials": "^5.27.0", "@babylonjs/materials": "^5.27.0",
"@babylonjs/serializers": "^5.28.0",
"@types/cesium": "^1.59.5", "@types/cesium": "^1.59.5",
"@types/earcut": "^2.1.1", "@types/earcut": "^2.1.1",
"@types/react": "^18.0.21", "@types/react": "^18.0.21",
@ -51,7 +52,7 @@
"js-base64": "^3.7.2", "js-base64": "^3.7.2",
"linqjs": "^1.0.2", "linqjs": "^1.0.2",
"moment": "^2.29.1", "moment": "^2.29.1",
"ng-zorro-antd": "^9.3.0", "ng-zorro-antd": "13",
"ngx-cookie-service": "^3.0.2", "ngx-cookie-service": "^3.0.2",
"ngx-countdown": "^11.0.0", "ngx-countdown": "^11.0.0",
"ngx-echarts": "^4.2.2", "ngx-echarts": "^4.2.2",
@ -64,10 +65,10 @@
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~12.2.18", "@angular-devkit/build-angular": "~13.3.9",
"@angular/cli": "~12.2.18", "@angular/cli": "~13.3.9",
"@angular/compiler-cli": "~12.2.16", "@angular/compiler-cli": "~13.3.11",
"@angular/language-service": "~12.2.16", "@angular/language-service": "~13.3.11",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.6.0",
"@types/jasminewd2": "~2.0.3", "@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",

12
src/app/babylon/tool/myArcRotateCameraPointersInput.ts

@ -146,7 +146,7 @@ export class MyArcRotateCameraPointersInput extends BaseCameraPointersInput {
/** /**
* Called on pointer POINTERMOVE event if only a single touch is active. * Called on pointer POINTERMOVE event if only a single touch is active.
*/ */
protected onTouch(point: Nullable<PointerTouch>, public onTouch(point: Nullable<PointerTouch>,
offsetX: number, offsetX: number,
offsetY: number): void { offsetY: number): void {
if (this.panningSensibility !== 0 && if (this.panningSensibility !== 0 &&
@ -172,7 +172,7 @@ export class MyArcRotateCameraPointersInput extends BaseCameraPointersInput {
/** /**
* Called on pointer POINTERDOUBLETAP event. * Called on pointer POINTERDOUBLETAP event.
*/ */
protected onDoubleTap(type: string) { public onDoubleTap(type: string) {
if (this.camera.useInputToRestoreState) { if (this.camera.useInputToRestoreState) {
this.camera.restoreState(); this.camera.restoreState();
} }
@ -181,7 +181,7 @@ export class MyArcRotateCameraPointersInput extends BaseCameraPointersInput {
/** /**
* Called on pointer POINTERMOVE event if multiple touches are active. * Called on pointer POINTERMOVE event if multiple touches are active.
*/ */
protected onMultiTouch(pointA: Nullable<PointerTouch>, public onMultiTouch(pointA: Nullable<PointerTouch>,
pointB: Nullable<PointerTouch>, pointB: Nullable<PointerTouch>,
previousPinchSquaredDistance: number, previousPinchSquaredDistance: number,
pinchSquaredDistance: number, pinchSquaredDistance: number,
@ -234,7 +234,7 @@ export class MyArcRotateCameraPointersInput extends BaseCameraPointersInput {
* Called each time a new POINTERDOWN event occurs. Ie, for each button * Called each time a new POINTERDOWN event occurs. Ie, for each button
* press. * press.
*/ */
protected onButtonDown(evt: PointerEvent): void { public onButtonDown(evt: PointerEvent): void {
this._isPanClick = evt.button === this.camera._panningMouseButton; this._isPanClick = evt.button === this.camera._panningMouseButton;
} }
@ -242,7 +242,7 @@ export class MyArcRotateCameraPointersInput extends BaseCameraPointersInput {
* Called each time a new POINTERUP event occurs. Ie, for each button * Called each time a new POINTERUP event occurs. Ie, for each button
* release. * release.
*/ */
protected onButtonUp(evt: PointerEvent): void { public onButtonUp(evt: PointerEvent): void {
this._twoFingerActivityCount = 0; this._twoFingerActivityCount = 0;
this._isPinching = false; this._isPinching = false;
} }
@ -250,7 +250,7 @@ export class MyArcRotateCameraPointersInput extends BaseCameraPointersInput {
/** /**
* Called when window becomes inactive. * Called when window becomes inactive.
*/ */
protected onLostFocus(): void { public onLostFocus(): void {
// console.trace("失去焦点") // console.trace("失去焦点")
this._isPanClick = false; this._isPanClick = false;

4
src/app/pages/equipment-info/equipment-info.component.ts

@ -95,7 +95,7 @@ export class EquipmentInfoComponent implements OnInit {
const instance = modal.getContentComponent(); const instance = modal.getContentComponent();
} }
edit(item) { edit(item) {
console.log('xxxxx',item) console.log('xxxxx', item)
const modal = this.modal.create({ const modal = this.modal.create({
nzContent: EditequipmentComponent, nzContent: EditequipmentComponent,
nzViewContainerRef: this.viewContainerRef, nzViewContainerRef: this.viewContainerRef,
@ -143,7 +143,7 @@ export class EquipmentInfoComponent implements OnInit {
this.modal.confirm({ this.modal.confirm({
nzTitle: `确定要删除${item.name}这个器材吗?`, nzTitle: `确定要删除${item.name}这个器材吗?`,
nzOkText: '确定', nzOkText: '确定',
nzOkType: 'danger', nzOkType: 'primary',
nzOnOk: () => { nzOnOk: () => {
this.http.delete('/api/services/app/FireEquipment/Delete', { this.http.delete('/api/services/app/FireEquipment/Delete', {
params: { params: {

2
src/app/pages/login/login.component.ts

@ -8,7 +8,7 @@ import { Base64 } from 'js-base64';
import { NzNotificationService } from 'ng-zorro-antd/notification'; import { NzNotificationService } from 'ng-zorro-antd/notification';
import { NzSafeAny } from 'ng-zorro-antd/core/types'; import { NzSafeAny } from 'ng-zorro-antd/core/types';
import { SelectedMenu } from 'src/app/service/selectedMenu.service'; import { SelectedMenu } from 'src/app/service/selectedMenu.service';
import { THIS_EXPR } from '@angular/compiler/src/output/output_ast'; // import { THIS_EXPR } from '@angular/compiler/src/output/output_ast';
declare var abp: any declare var abp: any
@Component({ @Component({

2
src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts

@ -229,7 +229,7 @@ export class GetOutOfLineDetailsComponent implements OnInit {
this.modal.confirm({ this.modal.confirm({
nzTitle: '判定该预警为误报吗?', nzTitle: '判定该预警为误报吗?',
nzOkText: '确定', nzOkText: '确定',
nzOkType: 'danger', nzOkType: 'primary',
nzOnOk: () => { nzOnOk: () => {
let body = { let body = {
id: this.data.id, id: this.data.id,

4
src/app/system-management/analysis-of-the-host/analysis-of-the-host.component.ts

@ -174,7 +174,7 @@ export class AnalysisOfTheHostComponent implements OnInit {
this.modal.confirm({ this.modal.confirm({
nzTitle: `确定要删除${item.name}这个主机吗?`, nzTitle: `确定要删除${item.name}这个主机吗?`,
nzOkText: '确定', nzOkText: '确定',
nzOkType: 'danger', nzOkType: 'primary',
nzOnOk: () => { nzOnOk: () => {
this.http.delete('/api/services/app/EdgeDevice/Delete', { this.http.delete('/api/services/app/EdgeDevice/Delete', {
params: { params: {
@ -267,7 +267,7 @@ export class AnalysisOfTheHostComponent implements OnInit {
this.modal.confirm({ this.modal.confirm({
nzTitle: `确定要删除${item.name}这个摄像头吗?`, nzTitle: `确定要删除${item.name}这个摄像头吗?`,
nzOkText: '确定', nzOkText: '确定',
nzOkType: 'danger', nzOkType: 'primary',
nzOnOk: () => { nzOnOk: () => {
this.http.delete('/api/services/app/Camera/Delete', { this.http.delete('/api/services/app/Camera/Delete', {
params: { params: {

2
src/app/system-management/file-of-license/file-of-license.component.ts

@ -113,7 +113,7 @@ export class FileOfLicenseComponent implements OnInit {
this.modal.confirm({ this.modal.confirm({
nzTitle: `确定要删除${item.licenseName}这个证照吗?`, nzTitle: `确定要删除${item.licenseName}这个证照吗?`,
nzOkText: '确定', nzOkText: '确定',
nzOkType: 'danger', nzOkType: 'primary',
nzOnOk: () => { nzOnOk: () => {
this.http.delete('/api/services/app/FileLicenseType/Delete', { this.http.delete('/api/services/app/FileLicenseType/Delete', {
params: { params: {

4
src/app/system-management/menu/menu.component.ts

@ -46,7 +46,7 @@ export class MenuComponent implements OnInit {
let params = { let params = {
OrganizationUnitId: OrganizationUnitId, OrganizationUnitId: OrganizationUnitId,
IsContainsChildren: "true", IsContainsChildren: "true",
MaxResultCount:"999" MaxResultCount: "999"
} }
this.http.get('/api/services/app/Menu/GetAll', { this.http.get('/api/services/app/Menu/GetAll', {
params: params params: params
@ -162,7 +162,7 @@ export class MenuComponent implements OnInit {
this.modal.confirm({ this.modal.confirm({
nzTitle: `确定要删除${item.title}这个菜单吗?`, nzTitle: `确定要删除${item.title}这个菜单吗?`,
nzOkText: '确定', nzOkText: '确定',
nzOkType: 'danger', nzOkType: 'primary',
nzOnOk: () => { nzOnOk: () => {
this.http.delete('/api/services/app/Menu/Delete', { this.http.delete('/api/services/app/Menu/Delete', {
params: { params: {

2
src/app/system-management/organization/organization.component.ts

@ -208,7 +208,7 @@ export class OrganizationComponent implements OnInit {
this.modal.confirm({ this.modal.confirm({
nzTitle: `确定要删除${item.title}这个机构吗?`, nzTitle: `确定要删除${item.title}这个机构吗?`,
nzOkText: '确定', nzOkText: '确定',
nzOkType: 'danger', nzOkType: 'primary',
nzOnOk: () => { nzOnOk: () => {
this.http.delete('/api/services/app/Organization/Delete', { this.http.delete('/api/services/app/Organization/Delete', {
params: { params: {

2
src/app/system-management/role/role.component.ts

@ -234,7 +234,7 @@ export class RoleComponent implements OnInit {
this.modal.confirm({ this.modal.confirm({
nzTitle: `确定要删除${item.name}这个角色吗?`, nzTitle: `确定要删除${item.name}这个角色吗?`,
nzOkText: '确定', nzOkText: '确定',
nzOkType: 'danger', nzOkType: 'primary',
nzOnOk: () => { nzOnOk: () => {
this.http.delete('/api/services/app/Role/Delete', { this.http.delete('/api/services/app/Role/Delete', {
params: { params: {

2
src/app/system-management/update-of-license/update-of-license.component.ts

@ -125,7 +125,7 @@ export class UpdateOfLicenseComponent implements OnInit {
this.modal.confirm({ this.modal.confirm({
nzTitle: `确定要删除${item.licenseName}这个证照吗?`, nzTitle: `确定要删除${item.licenseName}这个证照吗?`,
nzOkText: '确定', nzOkText: '确定',
nzOkType: 'danger', nzOkType: 'primary',
nzOnOk: () => { nzOnOk: () => {
this.http.delete('/api/services/app/ValidityLicenseType/Delete', { this.http.delete('/api/services/app/ValidityLicenseType/Delete', {
params: { params: {

4
src/app/system-management/user/user.component.ts

@ -248,7 +248,7 @@ export class UserComponent implements OnInit {
listOfData: this.listOfData, listOfData: this.listOfData,
listOfData2: this.listOfData2, listOfData2: this.listOfData2,
nodes: this.nodes, nodes: this.nodes,
editUrl:this.editUrl editUrl: this.editUrl
} }
}); });
const instance = modal.getContentComponent(); const instance = modal.getContentComponent();
@ -323,7 +323,7 @@ export class UserComponent implements OnInit {
this.modal.confirm({ this.modal.confirm({
nzTitle: `确定要注销${item.userName}这个账户吗?`, nzTitle: `确定要注销${item.userName}这个账户吗?`,
nzOkText: '确定', nzOkText: '确定',
nzOkType: 'danger', nzOkType: 'primary',
nzOnOk: () => { nzOnOk: () => {
this.http.delete(this.deleteUrl, { this.http.delete(this.deleteUrl, {
params: { params: {

4608
yarn.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save