Commit c48092a5 by cwq0219

bug修复

1 parent f1bca57a
...@@ -167,7 +167,8 @@ ...@@ -167,7 +167,8 @@
findRoleList() findRoleList()
// 查询角色权限列表 // 查询角色权限列表
function findRoleList() { function findRoleList() {
var params = { method: 'org.ore.api.role.list', id: merchantId } // var params = { method: 'org.ore.api.role.list', id: merchantId }
var params = { method: 'org.ore.api.role.list', id: merchantId, delFlag: 0 }
request(params, function(res) { request(params, function(res) {
if (res.code == '0') { if (res.code == '0') {
var list = res.data var list = res.data
......
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
{ field: 'statusName', title: '状态', align: 'center' }, { field: 'statusName', title: '状态', align: 'center' },
{ field: 'createdAccount', title: '创建者', align: 'center' }, { field: 'createdAccount', title: '创建者', align: 'center' },
{ field: 'merchantName', title: '商户名(商户号)', align: 'center', width: 160 }, { field: 'merchantName', title: '商户名(商户号)', align: 'center', width: 160 },
{ field: 'createdTime', title: '更新时间', align: 'center', width: 120 }, { field: 'updatedTime', title: '更新时间', align: 'center', width: 120 },
{ fixed: 'right', title: '操作', width: 220, align: 'left', toolbar: '#employeeBar' } { fixed: 'right', title: '操作', width: 220, align: 'left', toolbar: '#employeeBar' }
] ]
] ]
......
...@@ -76,6 +76,10 @@ ...@@ -76,6 +76,10 @@
right: 80px; right: 80px;
} }
.fixed-btn {
position: fixed;
bottom: 30px;
}
</style> </style>
</head> </head>
...@@ -110,6 +114,12 @@ ...@@ -110,6 +114,12 @@
<div class="layui-form-mid layui-word-aux" id="accountLevelName"></div> <div class="layui-form-mid layui-word-aux" id="accountLevelName"></div>
</div> </div>
</div> </div>
<!-- <div class="layui-form-item">
<label class="layui-form-label">账户有效期:</label>
<div class="layui-input-block">
<div class="layui-form-mid layui-word-aux"></div>
</div>
</div> -->
<h3 class="content-title">企业信息</h3> <h3 class="content-title">企业信息</h3>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">商户名称:</label> <label class="layui-form-label">商户名称:</label>
...@@ -266,7 +276,7 @@ ...@@ -266,7 +276,7 @@
</div> </div>
</div> </div>
<div class="footer-close"> <div class="footer-close">
<button class="layui-btn" id="closeEl">关闭</button> <button class="layui-btn fixed-btn" id="closeEl">关闭</button>
</div> </div>
</div> </div>
</main> </main>
...@@ -330,7 +340,7 @@ ...@@ -330,7 +340,7 @@
if(basicArr[i] == 'businessScopName' && roleData.businessScopeCustomize) { if(basicArr[i] == 'businessScopName' && roleData.businessScopeCustomize) {
roleData.businessScopName = roleData.businessScopName ? (roleData.businessScopName + ',' + roleData.businessScopeCustomize) : roleData.businessScopeCustomize roleData.businessScopName = roleData.businessScopName ? (roleData.businessScopName + ',' + roleData.businessScopeCustomize) : roleData.businessScopeCustomize
} }
$('#' + [basicArr[i]]).text(roleData[basicArr[i]] ? roleData[basicArr[i]] : '') $('#' + [basicArr[i]]).text(roleData[basicArr[i]] ? roleData[basicArr[i]] : '无')
} }
callback(roleData.accountTypes) callback(roleData.accountTypes)
} }
...@@ -459,11 +469,6 @@ ...@@ -459,11 +469,6 @@
width: 120 width: 120
}, },
{ {
field: 'statusName',
title: '登录密码',
width: 120
},
{
field: 'createdAccount ', field: 'createdAccount ',
title: '创建者', title: '创建者',
width: 100 width: 100
......
...@@ -122,8 +122,8 @@ ...@@ -122,8 +122,8 @@
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">商户类型:</label> <label class="layui-form-label">商户类型:</label>
<div class="layui-input-inline" style="width: 100px; margin: 0;"> <div class="layui-input-inline" style="width: 100px; margin: 0;">
<select name="merchantType"> <select name="merchantType" id="merchantTypeEl">
<option value="1">个体户</option> <option value="1">个人</option>
<option value="2">企业</option> <option value="2">企业</option>
</select> </select>
</div> </div>
...@@ -645,6 +645,11 @@ ...@@ -645,6 +645,11 @@
} }
}) })
// console.log($('#merchantTypeEl'))
// $('#merchantTypeEl').on('change', function() {
// console.log('?????????????')
// })
$('.upload').on('change', function (e) { $('.upload').on('change', function (e) {
// console.log(e) // console.log(e)
var idx = $(this).data('idx') var idx = $(this).data('idx')
......
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
align: 'center', align: 'center',
width: 160 width: 160
}, { }, {
field: 'createdTime', field: 'updatedTime',
title: '更新时间', title: '更新时间',
align: 'center', align: 'center',
width: 120 width: 120
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
{ field: 'roleCode', title: '角色号', align: 'center' }, { field: 'roleCode', title: '角色号', align: 'center' },
{ field: 'merchantName', title: '所属商户名', align: 'center' }, { field: 'merchantName', title: '所属商户名', align: 'center' },
{ field: 'statusName', title: '状态', align: 'center' }, { field: 'statusName', title: '状态', align: 'center' },
{ field: 'createdTime', title: '更新时间', align: 'center' ,width: 120}, { field: 'updatedTime', title: '更新时间', align: 'center' ,width: 120},
{ fixed: 'right', title: '操作', width: 160, align: 'center', toolbar: '#roleBar' } { fixed: 'right', title: '操作', width: 160, align: 'center', toolbar: '#roleBar' }
] ]
] ]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!