对个各个内容列表页的最小宽度cellMinWidth统一设置处理
This commit is contained in:
parent
3a00e8962c
commit
fb3f9a6961
@ -36,7 +36,7 @@
|
|||||||
title: '文章列表',
|
title: '文章列表',
|
||||||
defaultToolbar: false,
|
defaultToolbar: false,
|
||||||
url: "/article/index/index", //数据接口
|
url: "/article/index/index", //数据接口
|
||||||
cellMinWidth: 300,
|
cellMinWidth: 80,
|
||||||
page: true, //开启分页
|
page: true, //开启分页
|
||||||
limit: 20,
|
limit: 20,
|
||||||
cols: [
|
cols: [
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
toolbar: '#toolbarDemo',
|
toolbar: '#toolbarDemo',
|
||||||
defaultToolbar: false,
|
defaultToolbar: false,
|
||||||
url: "/article/index/list", //数据接口
|
url: "/article/index/list", //数据接口
|
||||||
cellMinWidth: 300,
|
cellMinWidth: 80,
|
||||||
page: true, //开启分页
|
page: true, //开启分页
|
||||||
limit: 20,
|
limit: 20,
|
||||||
cols: [
|
cols: [
|
||||||
|
@ -1195,17 +1195,50 @@ function time_format($time = NULL, $format = 'Y-m-d H:i:s')
|
|||||||
return $time != '' ? str_replace('x', $sec, date($format, intval($usec))) : '';
|
return $time != '' ? str_replace('x', $sec, date($format, intval($usec))) : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 将秒数转换为时间 (小时、分、秒)
|
||||||
|
* @param
|
||||||
|
*/
|
||||||
|
function getTimeBySec($time,$second=true)
|
||||||
|
{
|
||||||
|
if (is_numeric($time)) {
|
||||||
|
$value = array(
|
||||||
|
"hours" => 0,
|
||||||
|
"minutes" => 0, "seconds" => 0,
|
||||||
|
);
|
||||||
|
$t='';
|
||||||
|
if ($time >= 3600) {
|
||||||
|
$value["hours"] = floor($time / 3600);
|
||||||
|
$time = ($time % 3600);
|
||||||
|
$t .= $value["hours"] . "小时";
|
||||||
|
}
|
||||||
|
if ($time >= 60) {
|
||||||
|
$value["minutes"] = floor($time / 60);
|
||||||
|
$time = ($time % 60);
|
||||||
|
$t .= $value["minutes"] . "分钟";
|
||||||
|
}
|
||||||
|
if ($time > 0 && $time < 60 && $second==true) {
|
||||||
|
$value["seconds"] = floor($time);
|
||||||
|
$t .= $value["seconds"] . "秒";
|
||||||
|
}
|
||||||
|
return $t;
|
||||||
|
} else {
|
||||||
|
return (bool)FALSE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 将秒数转换为时间 (年、天、小时、分、秒)
|
* 将秒数转换为时间 (年、天、小时、分、秒)
|
||||||
* @param
|
* @param
|
||||||
*/
|
*/
|
||||||
function getTimeBySec($time)
|
function getDateBySec($time,$second=false)
|
||||||
{
|
{
|
||||||
if (is_numeric($time)) {
|
if (is_numeric($time)) {
|
||||||
$value = array(
|
$value = array(
|
||||||
"years" => 0, "days" => 0, "hours" => 0,
|
"years" => 0, "days" => 0, "hours" => 0,
|
||||||
"minutes" => 0, "seconds" => 0,
|
"minutes" => 0, "seconds" => 0,
|
||||||
);
|
);
|
||||||
|
$t='';
|
||||||
if ($time >= 31556926) {
|
if ($time >= 31556926) {
|
||||||
$value["years"] = floor($time / 31556926);
|
$value["years"] = floor($time / 31556926);
|
||||||
$time = ($time % 31556926);
|
$time = ($time % 31556926);
|
||||||
@ -1226,7 +1259,7 @@ function getTimeBySec($time)
|
|||||||
$time = ($time % 60);
|
$time = ($time % 60);
|
||||||
$t .= $value["minutes"] . "分钟";
|
$t .= $value["minutes"] . "分钟";
|
||||||
}
|
}
|
||||||
if ($time < 60) {
|
if ($time < 60 && $second==true) {
|
||||||
$value["seconds"] = floor($time);
|
$value["seconds"] = floor($time);
|
||||||
$t .= $value["seconds"] . "秒";
|
$t .= $value["seconds"] . "秒";
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
elem: '#test',
|
elem: '#test',
|
||||||
title: '合同归档列表',
|
title: '合同归档列表',
|
||||||
url: "/contract/index/archive", //数据接口
|
url: "/contract/index/archive", //数据接口
|
||||||
cellMinWidth: 200,
|
cellMinWidth: 80,
|
||||||
page: true, //开启分页
|
page: true, //开启分页
|
||||||
limit: 20,
|
limit: 20,
|
||||||
cols: [
|
cols: [
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
toolbar: '#toolbarDemo',
|
toolbar: '#toolbarDemo',
|
||||||
defaultToolbar:['filter', {title:'导出EXCEL',layEvent: 'LAYTABLE_EXCEL',icon: 'layui-icon-export'}],
|
defaultToolbar:['filter', {title:'导出EXCEL',layEvent: 'LAYTABLE_EXCEL',icon: 'layui-icon-export'}],
|
||||||
url: "/contract/index/index", //数据接口
|
url: "/contract/index/index", //数据接口
|
||||||
cellMinWidth: 200,
|
cellMinWidth: 80,
|
||||||
page: true, //开启分页
|
page: true, //开启分页
|
||||||
limit: 20,
|
limit: 20,
|
||||||
cols: [
|
cols: [
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
,toolbar: '#toolbarDemo'
|
,toolbar: '#toolbarDemo'
|
||||||
,title:'销售机会列表'
|
,title:'销售机会列表'
|
||||||
,url: "/customer/chance/index"
|
,url: "/customer/chance/index"
|
||||||
,cellMinWidth: 200
|
,cellMinWidth: 80
|
||||||
,page: true //开启分页
|
,page: true //开启分页
|
||||||
,limit: 20
|
,limit: 20
|
||||||
,cols: [[
|
,cols: [[
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
,defaultToolbar:['filter', {title:'导出EXCEL',layEvent: 'LAYTABLE_EXCEL',icon: 'layui-icon-export'}]
|
,defaultToolbar:['filter', {title:'导出EXCEL',layEvent: 'LAYTABLE_EXCEL',icon: 'layui-icon-export'}]
|
||||||
,title:'联系人列表'
|
,title:'联系人列表'
|
||||||
,url: "/customer/contact/index"
|
,url: "/customer/contact/index"
|
||||||
,cellMinWidth: 200
|
,cellMinWidth: 80
|
||||||
,page: true //开启分页
|
,page: true //开启分页
|
||||||
,limit: 20
|
,limit: 20
|
||||||
,cols: [[
|
,cols: [[
|
||||||
|
@ -109,7 +109,7 @@
|
|||||||
toolbar: '#toolbarDemo',
|
toolbar: '#toolbarDemo',
|
||||||
defaultToolbar:['filter', {title:'导出EXCEL',layEvent: 'LAYTABLE_EXCEL',icon: 'layui-icon-export'}],
|
defaultToolbar:['filter', {title:'导出EXCEL',layEvent: 'LAYTABLE_EXCEL',icon: 'layui-icon-export'}],
|
||||||
url: "/customer/index/index", //数据接口
|
url: "/customer/index/index", //数据接口
|
||||||
cellMinWidth: 200,
|
cellMinWidth: 80,
|
||||||
page: true, //开启分页
|
page: true, //开启分页
|
||||||
limit: 20,
|
limit: 20,
|
||||||
cols: [
|
cols: [
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
toolbar: '#toolbarDemo',
|
toolbar: '#toolbarDemo',
|
||||||
defaultToolbar: false,
|
defaultToolbar: false,
|
||||||
url: "/customer/index/rush", //数据接口
|
url: "/customer/index/rush", //数据接口
|
||||||
cellMinWidth: 200,
|
cellMinWidth: 80,
|
||||||
page: false, //开启分页
|
page: false, //开启分页
|
||||||
limit: 10,
|
limit: 10,
|
||||||
cols: [
|
cols: [
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
defaultToolbar: false,
|
defaultToolbar: false,
|
||||||
toolbar: '#toolbarDemo',
|
toolbar: '#toolbarDemo',
|
||||||
url: "/customer/index/sea", //数据接口
|
url: "/customer/index/sea", //数据接口
|
||||||
cellMinWidth: 200,
|
cellMinWidth: 80,
|
||||||
page: true, //开启分页
|
page: true, //开启分页
|
||||||
limit: 20,
|
limit: 20,
|
||||||
cols: [
|
cols: [
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
toolbar: '#toolbarDemo',
|
toolbar: '#toolbarDemo',
|
||||||
defaultToolbar: false,
|
defaultToolbar: false,
|
||||||
url: "/customer/index/trash", //数据接口
|
url: "/customer/index/trash", //数据接口
|
||||||
cellMinWidth: 200,
|
cellMinWidth: 80,
|
||||||
page: true, //开启分页
|
page: true, //开启分页
|
||||||
limit: 20,
|
limit: 20,
|
||||||
cols: [
|
cols: [
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
toolbar: '#toolbarDemo',
|
toolbar: '#toolbarDemo',
|
||||||
defaultToolbar:['filter', {title:'导出EXCEL',layEvent: 'LAYTABLE_EXCEL',icon: 'layui-icon-export'}],
|
defaultToolbar:['filter', {title:'导出EXCEL',layEvent: 'LAYTABLE_EXCEL',icon: 'layui-icon-export'}],
|
||||||
url: "/finance/expense/checkedlist", //数据接口
|
url: "/finance/expense/checkedlist", //数据接口
|
||||||
cellMinWidth: 200,
|
cellMinWidth: 80,
|
||||||
page: true, //开启分页
|
page: true, //开启分页
|
||||||
limit: 20,
|
limit: 20,
|
||||||
cols: [
|
cols: [
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
,url: "/oa/approve/copy"
|
,url: "/oa/approve/copy"
|
||||||
,page: true //开启分页
|
,page: true //开启分页
|
||||||
,limit: 20
|
,limit: 20
|
||||||
,cellMinWidth: 200
|
,cellMinWidth: 80
|
||||||
,cols: [[
|
,cols: [[
|
||||||
{field:'id',width:80, title: 'ID号', align:'center'}
|
{field:'id',width:80, title: 'ID号', align:'center'}
|
||||||
,{field:'name',title: '申请人',width:90,align:'center'}
|
,{field:'name',title: '申请人',width:90,align:'center'}
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
,url: "/oa/approve/list"
|
,url: "/oa/approve/list"
|
||||||
,page: true //开启分页
|
,page: true //开启分页
|
||||||
,limit: 20
|
,limit: 20
|
||||||
,cellMinWidth: 200
|
,cellMinWidth: 80
|
||||||
,cols: [[
|
,cols: [[
|
||||||
{field:'id',width:80, title: 'ID号', align:'center'}
|
{field:'id',width:80, title: 'ID号', align:'center'}
|
||||||
,{field:'name',title: '申请人',width:90,align:'center'}
|
,{field:'name',title: '申请人',width:90,align:'center'}
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
title: '文档列表',
|
title: '文档列表',
|
||||||
toolbar: '#toolbarDemo',
|
toolbar: '#toolbarDemo',
|
||||||
defaultToolbar: false,
|
defaultToolbar: false,
|
||||||
cellMinWidth: 200,
|
cellMinWidth: 80,
|
||||||
url: "/project/document/index",
|
url: "/project/document/index",
|
||||||
page: true, //开启分页
|
page: true, //开启分页
|
||||||
limit: 20,
|
limit: 20,
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
toolbar: '#toolbarDemo',
|
toolbar: '#toolbarDemo',
|
||||||
defaultToolbar:['filter', {title:'导出EXCEL',layEvent: 'LAYTABLE_EXCEL',icon: 'layui-icon-export'}],
|
defaultToolbar:['filter', {title:'导出EXCEL',layEvent: 'LAYTABLE_EXCEL',icon: 'layui-icon-export'}],
|
||||||
title: '项目列表',
|
title: '项目列表',
|
||||||
cellMinWidth: 200,
|
cellMinWidth: 80,
|
||||||
page: true, //开启分页
|
page: true, //开启分页
|
||||||
limit: 20,
|
limit: 20,
|
||||||
height: 'full-24',
|
height: 'full-24',
|
||||||
|
@ -17,7 +17,7 @@ function project_user(){
|
|||||||
layui.userTable = table.render({
|
layui.userTable = table.render({
|
||||||
elem: '#user',
|
elem: '#user',
|
||||||
title: '项目成员列表',
|
title: '项目成员列表',
|
||||||
cellMinWidth: 120,
|
cellMinWidth: 80,
|
||||||
toolbar: '#toolbaruser',
|
toolbar: '#toolbaruser',
|
||||||
url: "/project/api/project_user", //数据接口
|
url: "/project/api/project_user", //数据接口
|
||||||
where: { 'tid': project_id },
|
where: { 'tid': project_id },
|
||||||
|
@ -81,7 +81,7 @@
|
|||||||
title: '任务列表',
|
title: '任务列表',
|
||||||
toolbar: '#toolbarDemo',
|
toolbar: '#toolbarDemo',
|
||||||
defaultToolbar:['filter', {title:'导出EXCEL',layEvent: 'LAYTABLE_EXCEL',icon: 'layui-icon-export'}],
|
defaultToolbar:['filter', {title:'导出EXCEL',layEvent: 'LAYTABLE_EXCEL',icon: 'layui-icon-export'}],
|
||||||
cellMinWidth: 200,
|
cellMinWidth: 80,
|
||||||
url: "/project/task/index", //数据接口
|
url: "/project/task/index", //数据接口
|
||||||
page: true, //开启分页
|
page: true, //开启分页
|
||||||
limit: 20,
|
limit: 20,
|
||||||
|
@ -84,7 +84,7 @@
|
|||||||
,url: "/project/task/task_time"
|
,url: "/project/task/task_time"
|
||||||
,page: true //开启分页
|
,page: true //开启分页
|
||||||
,limit: 20
|
,limit: 20
|
||||||
,cellMinWidth: 200
|
,cellMinWidth: 80
|
||||||
,height: 'full-88'
|
,height: 'full-88'
|
||||||
,cols: [[ //表头
|
,cols: [[ //表头
|
||||||
{field: 'id', title: '序号',fixed: 'left', width:80, align:'center'}
|
{field: 'id', title: '序号',fixed: 'left', width:80, align:'center'}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user