优化表结构
This commit is contained in:
@@ -42,7 +42,7 @@ function initSelectInfo(lei) {
|
||||
}
|
||||
//按钮权限列表
|
||||
else if (lei == 3) {
|
||||
var btnStr = userBusinessList[0].btnstr;
|
||||
var btnStr = userBusinessList[0].btnStr;
|
||||
if (btnStr != null) {
|
||||
var btnObj = JSON.parse(btnStr);
|
||||
for (var j = 0; j < btnObj.length; j++) {
|
||||
@@ -71,10 +71,10 @@ if (btnStrList.length > 0) {
|
||||
}
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: "/functions/findMenu",
|
||||
url: "/function/findMenu",
|
||||
data: ({
|
||||
pNumber: 0,
|
||||
hasFunctions: functions
|
||||
hasFunction: functions
|
||||
}),
|
||||
dataType: "json",
|
||||
async: false,
|
||||
|
||||
@@ -312,8 +312,8 @@
|
||||
options += "<option value='many' class='many' data-manyAmount=''>多账户</option>";
|
||||
for(var i = 0 ;i < accountList.length;i++) {
|
||||
var account = accountList[i];
|
||||
options += '<option value="' + account.id + '" data-currentAmount="' + account.currentamount + '">' + account.name + '</option>';
|
||||
if(account.isdefault) {
|
||||
options += '<option value="' + account.id + '" data-currentAmount="' + account.currentAmount + '">' + account.name + '</option>';
|
||||
if(account.isDefault) {
|
||||
defaultAccountId = account.id; //给账户赋值默认id
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user