切换导航条
此项目
正在载入...
登录
何书鹏
/
salarycalculator
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
Karson
6 years ago
提交
a3a742cebe5d162a81a9a64a901c24662731e21b
2 个父辈
b23d7f9b
d775f062
master
Merge branch 'master' of
https://gitee.com/karson/fastadmin
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
3 行增加
和
5 行删除
application/admin/command/Crud.php
public/assets/js/fast.js
application/admin/command/Crud.php
查看文件 @
a3a742c
...
...
@@ -807,7 +807,7 @@ class Crud extends Command
}
}
unset($line);
$langList = implode(",\n", array_filter($langList))
. ","
;
$langList = implode(",\n", array_filter($langList));
//表注释
$tableComment = $modelTableInfo['
Comment
'];
...
...
@@ -934,9 +934,7 @@ class Crud extends Command
// 生成JS文件
$this
->
writeToFile
(
'javascript'
,
$data
,
$javascriptFile
);
// 生成语言文件
if
(
$langList
)
{
$this
->
writeToFile
(
'lang'
,
$data
,
$langFile
);
}
$this
->
writeToFile
(
'lang'
,
$data
,
$langFile
);
}
catch
(
ErrorException
$e
)
{
throw
new
Exception
(
"Code: "
.
$e
->
getCode
()
.
"
\n
Line: "
.
$e
->
getLine
()
.
"
\n
Message: "
.
$e
->
getMessage
()
.
"
\n
File: "
.
$e
->
getFile
());
}
...
...
public/assets/js/fast.js
查看文件 @
a3a742c
...
...
@@ -117,7 +117,7 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine
title
=
options
&&
options
.
title
?
options
.
title
:
(
title
?
title
:
""
);
url
=
Fast
.
api
.
fixurl
(
url
);
url
=
url
+
(
url
.
indexOf
(
"?"
)
>
-
1
?
"&"
:
"?"
)
+
"dialog=1"
;
var
area
=
[
$
(
window
).
width
()
>
800
?
'800px'
:
'95%'
,
$
(
window
).
height
()
>
600
?
'600px'
:
'95%'
];
var
area
=
Fast
.
config
.
openArea
!=
undefined
?
Fast
.
config
.
openArea
:
[
$
(
window
).
width
()
>
800
?
'800px'
:
'95%'
,
$
(
window
).
height
()
>
600
?
'600px'
:
'95%'
];
options
=
$
.
extend
({
type
:
2
,
title
:
title
,
...
...
请
注册
或
登录
后发表评论