Commit d801bd8c by 杨子

增加listservice

parent 0ef3f8be
...@@ -43,3 +43,4 @@ yarn-error.log ...@@ -43,3 +43,4 @@ yarn-error.log
# System Files # System Files
.DS_Store .DS_Store
Thumbs.db Thumbs.db
/src/proxy.config.json
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;
} }
......
...@@ -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.202:8081/", "target": "http://192.168.19.200:8080",
"secure": false, "secure": false,
"logLevel": "debug", "logLevel": "debug",
"changeOrigin": true "changeOrigin": true
......
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