将js代码架构改为app下渲染;

This commit is contained in:
2023-09-18 16:32:46 +08:00
parent 4d9434454e
commit ca729da0a9
86 changed files with 1572 additions and 719 deletions

View File

@@ -12,10 +12,10 @@ define(["jquery", "easy-admin"], function ($, ea) {
password_url: 'system.admin/password',
};
var authList = ea.getDataBrage('auth_list', []);
var count = ea.getDataBrage('count', 0);
var tips = ea.getDataBrage('tips', '');
var tips = ea.getDataBrage('adminCustomFlag');
var authList = ua.getDataBrage('auth_list', []);
var count = ua.getDataBrage('count', 0);
var tips = ua.getDataBrage('tips', '');
var tips = ua.getDataBrage('adminCustomFlag');
console.log(authList);
console.log(count);
@@ -25,24 +25,24 @@ define(["jquery", "easy-admin"], function ($, ea) {
index: function () {
ea.table.render({
ua.table.render({
init: init,
cols: [[
{ type: "checkbox" },
{ field: 'id', width: 80, title: 'ID' },
{ field: 'sort', width: 80, title: '排序', edit: 'text' },
{ field: 'username', minWidth: 80, title: '登录账户' },
{ field: 'head_img', minWidth: 80, title: '头像', search: false, templet: ea.table.image },
{ field: 'head_img', minWidth: 80, title: '头像', search: false, templet: ua.table.image },
{ field: 'phone', minWidth: 80, title: '手机' },
{ field: 'login_num', minWidth: 80, title: '登录次数' },
{ field: 'remark', minWidth: 80, title: '备注信息', defaultValue: '无' },
{ field: 'status', title: '状态', width: 85, search: 'select', selectList: { 0: '禁用', 1: '启用' }, templet: ea.table.switch },
{ field: 'status', title: '状态', width: 85, search: 'select', selectList: { 0: '禁用', 1: '启用' }, templet: ua.table.switch },
{ field: 'create_time', minWidth: 80, title: '创建时间', search: 'range' },
{
width: 250,
title: '操作',
fixed: 'right',
templet: ea.table.tool,
templet: ua.table.tool,
operat: [
'edit',
[{
@@ -59,16 +59,16 @@ define(["jquery", "easy-admin"], function ($, ea) {
]],
});
ea.listen();
ua.listen();
},
add: function () {
ea.listen();
ua.listen();
},
edit: function () {
ea.listen();
ua.listen();
},
password: function () {
ea.listen();
ua.listen();
}
};
return Controller;