|
|
@@ -16,14 +16,14 @@ Ext.define('saas.view.sys.account.DataList', {
|
|
|
|
|
|
tbar: [{
|
|
|
width: 150,
|
|
|
- name: 'mn_name',
|
|
|
+ name: 'username',
|
|
|
xtype: 'textfield',
|
|
|
emptyText : '账户名称'
|
|
|
},{
|
|
|
width: 150,
|
|
|
- name: 'mn_leadcode',
|
|
|
+ name: 'mobile',
|
|
|
xtype: 'textfield',
|
|
|
- emptyText : '账户编号'
|
|
|
+ emptyText : '电话'
|
|
|
},{
|
|
|
cls:'x-formpanel-btn-orange',
|
|
|
xtype:'button',
|
|
|
@@ -49,28 +49,44 @@ Ext.define('saas.view.sys.account.DataList', {
|
|
|
|
|
|
columns : [{
|
|
|
text : 'id',
|
|
|
- width : 0,
|
|
|
+ hidden:true,
|
|
|
dataIndex : 'id',
|
|
|
- xtype : 'numbercolumn',
|
|
|
+ xtype : 'numbercolumn',
|
|
|
+ },{
|
|
|
+ text : 'accountId',
|
|
|
+ hidden:true,
|
|
|
+ dataIndex : 'accountId',
|
|
|
+ xtype : 'numbercolumn',
|
|
|
},{
|
|
|
text : '账户名称',
|
|
|
width : 200.0,
|
|
|
- dataIndex : 'mn_name',
|
|
|
+ dataIndex : 'username',
|
|
|
xtype : '',
|
|
|
},
|
|
|
{
|
|
|
- text : '账户编号',
|
|
|
- dataIndex : 'mn_leadcode',
|
|
|
+ text : '真实姓名',
|
|
|
+ dataIndex : 'realname',
|
|
|
width : 120.0,
|
|
|
xtype : '',
|
|
|
},
|
|
|
{
|
|
|
- text : '单据规则',
|
|
|
- dataIndex : 'mn_rule',
|
|
|
+ text : '联系电话',
|
|
|
+ dataIndex : 'mobile',
|
|
|
width : 220.0,
|
|
|
},{
|
|
|
- text : '流水长度',
|
|
|
- dataIndex : 'mn_number',
|
|
|
+ text : '联系邮箱',
|
|
|
+ dataIndex : 'email',
|
|
|
+ width : 120.0,
|
|
|
+ xtype : '',
|
|
|
+ },{
|
|
|
+ text : '关联角色id',
|
|
|
+ hidden:true,
|
|
|
+ dataIndex : 'roleIds',
|
|
|
+ width : 120.0,
|
|
|
+ xtype : '',
|
|
|
+ },{
|
|
|
+ text : '关联角色',
|
|
|
+ dataIndex : 'roleNames',
|
|
|
width : 120.0,
|
|
|
xtype : '',
|
|
|
}],
|
|
|
@@ -185,25 +201,6 @@ Ext.define('saas.view.sys.account.DataList', {
|
|
|
session: true
|
|
|
});
|
|
|
this.dialog.show();
|
|
|
- }else if(classList.indexOf('fa-trash-o')>-1){
|
|
|
- //删除
|
|
|
- var id = record.get('id');
|
|
|
- if(id){
|
|
|
- grid.BaseUtil.request({
|
|
|
- url: grid.deleteUrl+id,
|
|
|
- method: 'POST',
|
|
|
- })
|
|
|
- .then(function(localJson) {
|
|
|
- if(localJson.success){
|
|
|
- //解析参数
|
|
|
- showToast('删除成功');
|
|
|
- view.ownerCt.store.load();
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(function() {
|
|
|
- showToast('删除失败');
|
|
|
- });
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
},
|