fix bug
This commit is contained in:
@ -1,3 +1,13 @@
|
||||
<!--
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-04-29 17:28:23
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-05-11 11:28:35
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\partner\\level-config\\components\\list\\list.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
<nz-card>
|
||||
<!-- 搜索区 -->
|
||||
<sf
|
||||
@ -16,6 +26,7 @@
|
||||
<st
|
||||
#st
|
||||
[data]="service.$api_getList"
|
||||
[scroll]="{x: '1200px'}"
|
||||
[columns]="columns"
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||
|
||||
@ -69,28 +69,34 @@ export class ParterLevelConfigListComponent implements OnInit {
|
||||
this.columns = [
|
||||
{
|
||||
title: '等级姓名',
|
||||
index: 'gradeName'
|
||||
index: 'gradeName',
|
||||
width: 200
|
||||
},
|
||||
{
|
||||
title: '备注',
|
||||
index: 'remark'
|
||||
index: 'remark',
|
||||
width: 200
|
||||
},
|
||||
{
|
||||
title: '创建时间',
|
||||
index: 'createTime'
|
||||
index: 'createTime',
|
||||
width: 200
|
||||
},
|
||||
|
||||
{
|
||||
title: '启用时间',
|
||||
index: 'enableTime'
|
||||
index: 'enableTime',
|
||||
width: 200
|
||||
},
|
||||
{
|
||||
title: '排序',
|
||||
index: 'sortId'
|
||||
index: 'sortId',
|
||||
width: 200
|
||||
},
|
||||
{
|
||||
title: '状态',
|
||||
index: 'stateLocked',
|
||||
width: 200,
|
||||
format: (item: any) => {
|
||||
return item.stateLocked ? '禁用' : '启用';
|
||||
}
|
||||
@ -98,6 +104,8 @@ export class ParterLevelConfigListComponent implements OnInit {
|
||||
{
|
||||
title: '操作',
|
||||
className: 'text-center',
|
||||
width: 120,
|
||||
fixed: 'right',
|
||||
buttons: [
|
||||
{
|
||||
text: '编辑',
|
||||
@ -162,7 +170,7 @@ export class ParterLevelConfigListComponent implements OnInit {
|
||||
restart(item: any) {
|
||||
this.modalService.confirm({
|
||||
nzTitle: '<i>启用确认</i>',
|
||||
nzContent: `<b>确定启用该账号吗?</br>`,
|
||||
nzContent: `<b>确定启用该等级吗?</br>`,
|
||||
nzOnOk: () =>
|
||||
this.service.request(this.service.$api_updatePartnerGradeConfig, { id: item.id }).subscribe(res => {
|
||||
if (res) {
|
||||
@ -175,7 +183,7 @@ export class ParterLevelConfigListComponent implements OnInit {
|
||||
stop(item: any) {
|
||||
this.modalService.confirm({
|
||||
nzTitle: '<i>禁用确认</i>',
|
||||
nzContent: `<b>确定禁用该账号吗?</br>`,
|
||||
nzContent: `<b>确定禁用该等级吗?</br>`,
|
||||
nzOnOk: () =>
|
||||
this.service.request(this.service.$api_updatePartnerGradeConfig, { id: item.id }).subscribe(res => {
|
||||
if (res) {
|
||||
|
||||
Reference in New Issue
Block a user