Commit 4d424452 by 牛晓林

merge

parents ba0ba029 d801bd8c
...@@ -43,4 +43,8 @@ yarn-error.log ...@@ -43,4 +43,8 @@ yarn-error.log
# System Files # System Files
.DS_Store .DS_Store
Thumbs.db Thumbs.db
<<<<<<< HEAD
/src/proxy.config.json /src/proxy.config.json
=======
/src/proxy.config.json
>>>>>>> d801bd8c63a68261cf527d8eaba6cc0d6dc71f07
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -42,16 +42,9 @@ ...@@ -42,16 +42,9 @@
"@angular/platform-browser": "~7.2.0", "@angular/platform-browser": "~7.2.0",
"@angular/platform-browser-dynamic": "~7.2.0", "@angular/platform-browser-dynamic": "~7.2.0",
"@angular/router": "~7.2.0", "@angular/router": "~7.2.0",
"core-js": "^2.5.4",
"rxjs": "~6.3.3",
"tslib": "^1.9.0",
"zone.js": "~0.8.26",
"@antv/data-set": "^0.10.2", "@antv/data-set": "^0.10.2",
"@antv/g2": "^3.5.1", "@antv/g2": "^3.5.1",
"@antv/g2-plugin-slider": "^2.1.1", "@antv/g2-plugin-slider": "^2.1.1",
"@ngx-translate/core": "^11.0.1",
"@ngx-translate/http-loader": "^4.0.0",
"ajv": "^6.9.2",
"@delon/abc": "^7.2.0", "@delon/abc": "^7.2.0",
"@delon/acl": "^7.2.0", "@delon/acl": "^7.2.0",
"@delon/auth": "^7.2.0", "@delon/auth": "^7.2.0",
...@@ -61,13 +54,21 @@ ...@@ -61,13 +54,21 @@
"@delon/mock": "^7.2.0", "@delon/mock": "^7.2.0",
"@delon/theme": "^7.2.0", "@delon/theme": "^7.2.0",
"@delon/util": "^7.2.0", "@delon/util": "^7.2.0",
"@ngx-translate/core": "^11.0.1",
"@ngx-translate/http-loader": "^4.0.0",
"@zxing/ngx-scanner": "^1.3.0",
"ajv": "^6.9.2",
"core-js": "^2.5.4",
"file-saver": "^2.0.0", "file-saver": "^2.0.0",
"ng-zorro-antd": "^7.2.0", "ng-zorro-antd": "^7.2.0",
"ngx-countdown": "^3.2.0", "ngx-countdown": "^3.2.0",
"ngx-tinymce": "^7.0.0", "ngx-tinymce": "^7.0.0",
"ngx-ueditor": "^2.1.3", "ngx-ueditor": "^2.1.3",
"qrious": "^4.0.2",
"rxjs": "~6.3.3",
"screenfull": "^4.2.0", "screenfull": "^4.2.0",
"qrious": "^4.0.2" "tslib": "^1.9.0",
"zone.js": "~0.8.26"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~0.13.0", "@angular-devkit/build-angular": "~0.13.0",
......
<!--The content below is only a placeholder and can be replaced.--> <!--The content below is only a placeholder and can be replaced.-->
<router-outlet></router-outlet> <router-outlet></router-outlet>
...@@ -2,7 +2,7 @@ import { NgModule, LOCALE_ID, APP_INITIALIZER } from '@angular/core'; ...@@ -2,7 +2,7 @@ import { NgModule, LOCALE_ID, APP_INITIALIZER } from '@angular/core';
import { HttpClient, HttpClientModule } from '@angular/common/http'; import { HttpClient, HttpClientModule } from '@angular/common/http';
import { BrowserModule } from '@angular/platform-browser'; import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { ZXingScannerModule } from '@zxing/ngx-scanner';
// #region default language // #region default language
// 参考:https://ng-alain.com/docs/i18n // 参考:https://ng-alain.com/docs/i18n
import { default as ngLang } from '@angular/common/locales/zh'; import { default as ngLang } from '@angular/common/locales/zh';
...@@ -96,6 +96,7 @@ import { LayoutModule } from './layout/layout.module'; ...@@ -96,6 +96,7 @@ import { LayoutModule } from './layout/layout.module';
@NgModule({ @NgModule({
declarations: [AppComponent], declarations: [AppComponent],
imports: [ imports: [
ZXingScannerModule,
BrowserModule, BrowserModule,
BrowserAnimationsModule, BrowserAnimationsModule,
HttpClientModule, HttpClientModule,
......
import { Injectable } from '@angular/core';
import { _HttpClient } from '@delon/theme';
@Injectable({
providedIn: 'root',
})
export class ListService {
constructor(private http: _HttpClient) {}
/**
*获取资产台账列表
*
* @param {number} kindAsset 1为类固定 2固定
* @returns
* @memberof ListService
*/
getKindAssetList(kindAsset: number) {
const url = 'asset/a/asset/assets/data?kindAsset=' + kindAsset;
return this.http.get(url);
}
}
@import '~@delon/theme/styles/default'; @import '~@delon/theme/styles/default';
:host { :host {
::ng-deep { ::ng-deep {
.container { .container {
...@@ -7,11 +8,13 @@ ...@@ -7,11 +8,13 @@
min-height: 100%; min-height: 100%;
background: #f0f2f5; background: #f0f2f5;
} }
.langs { .langs {
text-align: right; text-align: right;
width: 100%; width: 100%;
height: 40px; height: 40px;
line-height: 44px; line-height: 44px;
.anticon { .anticon {
margin-top: 24px; margin-top: 24px;
margin-right: 24px; margin-right: 24px;
...@@ -20,10 +23,12 @@ ...@@ -20,10 +23,12 @@
cursor: pointer; cursor: pointer;
} }
} }
.wrap { .wrap {
padding: 32px 0; padding: 32px 0;
flex: 1; flex: 1;
} }
.ant-form-item { .ant-form-item {
margin-bottom: 24px; margin-bottom: 24px;
} }
...@@ -35,32 +40,39 @@ ...@@ -35,32 +40,39 @@
background-position: center 110px; background-position: center 110px;
background-size: 100%; background-size: 100%;
} }
.wrap { .wrap {
padding: 32px 0 24px; padding: 32px 0 24px;
} }
} }
.top { .top {
text-align: center; text-align: center;
} }
.header { .header {
height: 44px; height: 44px;
line-height: 44px; line-height: 44px;
a { a {
text-decoration: none; text-decoration: none;
} }
} }
.logo { .logo {
height: 44px; height: 44px;
margin-right: 16px; margin-right: 16px;
} }
.title { .title {
font-size: 33px; font-size: 2em;
color: @heading-color; color: @heading-color;
font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif; font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
font-weight: 600; font-weight: 600;
position: relative; position: relative;
vertical-align: middle; vertical-align: middle;
} }
.desc { .desc {
font-size: @font-size-base; font-size: @font-size-base;
color: @text-color-secondary; color: @text-color-secondary;
......
@import '~@delon/theme/styles/default'; @import '~@delon/theme/styles/default';
:host { :host {
display: block; display: block;
width: 368px; width: 368px;
margin: 0 auto; margin: 0 auto;
::ng-deep { ::ng-deep {
.ant-tabs .ant-tabs-bar { .ant-tabs .ant-tabs-bar {
border-bottom: 0; border-bottom: 0;
margin-bottom: 24px; margin-bottom: 24px;
text-align: center; text-align: center;
} }
.ant-tabs-tab { .ant-tabs-tab {
font-size: 16px; font-size: 16px;
line-height: 24px; line-height: 24px;
} }
.ant-input-affix-wrapper .ant-input:not(:first-child) { .ant-input-affix-wrapper .ant-input:not(:first-child) {
padding-left: 34px; padding-left: 34px;
} }
.icon { .icon {
font-size: 24px; font-size: 24px;
color: rgba(0, 0, 0, 0.2); color: rgba(0, 0, 0, 0.2);
...@@ -23,17 +28,21 @@ ...@@ -23,17 +28,21 @@
vertical-align: middle; vertical-align: middle;
cursor: pointer; cursor: pointer;
transition: color 0.3s; transition: color 0.3s;
&:hover { &:hover {
color: @primary-color; color: @primary-color;
} }
} }
.other { .other {
text-align: left; text-align: left;
margin-top: 24px; margin-top: 24px;
line-height: 22px; line-height: 22px;
nz-tooltip { nz-tooltip {
vertical-align: middle; vertical-align: middle;
} }
.register { .register {
float: right; float: right;
} }
......
...@@ -116,6 +116,7 @@ export class UserLoginComponent implements OnDestroy { ...@@ -116,6 +116,7 @@ export class UserLoginComponent implements OnDestroy {
this.reuseTabService.clear(); this.reuseTabService.clear();
// 设置用户Token信息 // 设置用户Token信息
res.body.token=res.body.JSESSIONID; res.body.token=res.body.JSESSIONID;
document.cookie=`JSESSIONID=${res.body.token}`;
this.tokenService.set(res.body); this.tokenService.set(res.body);
// 重新获取 StartupService 内容,我们始终认为应用信息一般都会受当前用户授权范围而影响 // 重新获取 StartupService 内容,我们始终认为应用信息一般都会受当前用户授权范围而影响
this.startupSrv.load().then(() => { this.startupSrv.load().then(() => {
......
...@@ -29,7 +29,7 @@ export class ProBasicListComponent implements OnInit { ...@@ -29,7 +29,7 @@ export class ProBasicListComponent implements OnInit {
getData() { getData() {
this.loading = true; this.loading = true;
this.http.get('/api/list', { count: 5 }).subscribe((res: any) => { this.http.get('api/list', { count: 5 }).subscribe((res: any) => {
this.data = res; this.data = res;
this.loading = false; this.loading = false;
this.cdr.detectChanges(); this.cdr.detectChanges();
......
{ {
"/asset/*": { "/asset/*": {
"target": "http://192.168.19.200:8080/", "target": "http://192.168.19.200:8081/",
"secure": false, "secure": false,
"logLevel": "debug", "logLevel": "debug",
"changeOrigin": false "changeOrigin": false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment