mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-08 19:12:48 +08:00
新增defaultValue特性;
This commit is contained in:
@@ -12,9 +12,9 @@ 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 authList = ea.getDataBrage('auth_list', []);
|
||||
var count = ea.getDataBrage('count', 0);
|
||||
var tips = ea.getDataBrage('tips', '');
|
||||
|
||||
console.log(authList);
|
||||
console.log(count);
|
||||
@@ -27,20 +27,20 @@ define(["jquery", "easy-admin"], function ($, ea) {
|
||||
ea.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: 'phone', minWidth: 80, title: '手机'},
|
||||
{field: 'login_num', minWidth: 80, title: '登录次数'},
|
||||
{field: 'remark', minWidth: 80, title: '备注信息'},
|
||||
{field: 'status', title: '状态', width: 85, search: 'select', selectList: {0: '禁用', 1: '启用'}, templet: ea.table.switch},
|
||||
{field: 'create_time', minWidth: 80, title: '创建时间', search: 'range'},
|
||||
{ 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: '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: 'create_time', minWidth: 80, title: '创建时间', search: 'range' },
|
||||
{
|
||||
width: 250,
|
||||
title: '操作',
|
||||
fixed:'right',
|
||||
fixed: 'right',
|
||||
templet: ea.table.tool,
|
||||
operat: [
|
||||
'edit',
|
||||
|
||||
Reference in New Issue
Block a user