Commit d801bd8c by 杨子

增加listservice

parent 0ef3f8be
......@@ -43,3 +43,4 @@ yarn-error.log
# System Files
.DS_Store
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';
:host {
::ng-deep {
.container {
......@@ -7,11 +8,13 @@
min-height: 100%;
background: #f0f2f5;
}
.langs {
text-align: right;
width: 100%;
height: 40px;
line-height: 44px;
.anticon {
margin-top: 24px;
margin-right: 24px;
......@@ -20,10 +23,12 @@
cursor: pointer;
}
}
.wrap {
padding: 32px 0;
flex: 1;
}
.ant-form-item {
margin-bottom: 24px;
}
......@@ -35,32 +40,39 @@
background-position: center 110px;
background-size: 100%;
}
.wrap {
padding: 32px 0 24px;
}
}
.top {
text-align: center;
}
.header {
height: 44px;
line-height: 44px;
a {
text-decoration: none;
}
}
.logo {
height: 44px;
margin-right: 16px;
}
.title {
font-size: 33px;
font-size: 2em;
color: @heading-color;
font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
font-weight: 600;
position: relative;
vertical-align: middle;
}
.desc {
font-size: @font-size-base;
color: @text-color-secondary;
......
@import '~@delon/theme/styles/default';
:host {
display: block;
width: 368px;
margin: 0 auto;
::ng-deep {
.ant-tabs .ant-tabs-bar {
border-bottom: 0;
margin-bottom: 24px;
text-align: center;
}
.ant-tabs-tab {
font-size: 16px;
line-height: 24px;
}
.ant-input-affix-wrapper .ant-input:not(:first-child) {
padding-left: 34px;
}
.icon {
font-size: 24px;
color: rgba(0, 0, 0, 0.2);
......@@ -23,17 +28,21 @@
vertical-align: middle;
cursor: pointer;
transition: color 0.3s;
&:hover {
color: @primary-color;
}
}
.other {
text-align: left;
margin-top: 24px;
line-height: 22px;
nz-tooltip {
vertical-align: middle;
}
.register {
float: right;
}
......
......@@ -29,7 +29,7 @@ export class ProBasicListComponent implements OnInit {
getData() {
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.loading = false;
this.cdr.detectChanges();
......
{
"/asset/*": {
"target": "http://192.168.19.202:8081/",
"/asset": {
"target": "http://192.168.19.200:8080",
"secure": false,
"logLevel": "debug",
"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