mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-09 03:22:51 +08:00
完善table组件细节;开始接入城市选择器;
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
@import url("../../plugs/layui-v2.7.2/css/layui.css");
|
||||
@import url("../../plugs/font-awesome-4.7.0/css/font-awesome.min.css");
|
||||
@import url("../css/iconfont.css");
|
||||
@import url('../../plugs/jq-module/city-picker/css/city-picker.css');
|
||||
|
||||
html,
|
||||
body {
|
||||
@@ -620,6 +621,32 @@ table样式
|
||||
display: flex;
|
||||
width : 274px;
|
||||
}
|
||||
|
||||
.form-item-number-limit .layui-input-inline {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
/* 重写地区选择器的样式 */
|
||||
|
||||
.city-picker-span {
|
||||
height : 38px;
|
||||
border-width : 1px;
|
||||
border-style : solid;
|
||||
background-color: #fff;
|
||||
color : rgba(0, 0, 0, .85);
|
||||
border-radius : 2px;
|
||||
border-color : #eee;
|
||||
}
|
||||
|
||||
.city-picker-span:hover {
|
||||
border-color: #eee !important;
|
||||
}
|
||||
|
||||
.city-picker-span>.placeholder {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.city-picker-span.focus,
|
||||
.city-picker-span.open {
|
||||
border-color: #d2d2d2 !important;
|
||||
}
|
||||
34
public/static/admin/js/test/goods.js
Normal file
34
public/static/admin/js/test/goods.js
Normal file
@@ -0,0 +1,34 @@
|
||||
define(["jquery", "easy-admin"], function ($, ea) {
|
||||
|
||||
var init = {
|
||||
table_elem: '#currentTable',
|
||||
table_render_id: 'currentTableRenderId',
|
||||
index_url: 'test.goods/index',
|
||||
add_url: 'test.goods/add',
|
||||
edit_url: 'test.goods/edit',
|
||||
delete_url: 'test.goods/delete',
|
||||
export_url: 'test.goods/export',
|
||||
modify_url: 'test.goods/modify',
|
||||
};
|
||||
|
||||
var Controller = {
|
||||
|
||||
index: function () {
|
||||
ea.table.render({
|
||||
init: init,
|
||||
cols: [[
|
||||
{type: 'checkbox'},
|
||||
{field: 'id', title: 'id'},
|
||||
{field: 'cate_id', title: '分类ID'},
|
||||
{field: 'title', title: '商品名称'},
|
||||
{field: 'logo', title: '商品logo', templet: ea.table.image},
|
||||
{field: 'total_stock', title: '总库存'},
|
||||
{field: 'sort', title: '排序', edit: 'text'},
|
||||
{field: 'status', search: 'select', selectList: ea.getDataBrage('select_list_status'), title: '状态', templet: ea.table.switch},
|
||||
{field: 'cert_file', title: '合格证', templet: ea.table.url},
|
||||
{field: 'remark', title: '备注说明', templet: ea.table.text},
|
||||
{field: 'create_time', title: 'create_time'},
|
||||
{field: 'publish_time', title: '发布日期'},
|
||||
{field: 'sale_time', title: '售卖日期'},
|
||||
{field: 'intro', title: '简介'},
|
||||
{field: 'time_status', search: 'select', selectList: ea.getDataBrage('select_list_time_status'), title: '秒杀状态'},
|
||||
Reference in New Issue
Block a user