Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Springboot Plus
Commits
c22b17a1
Commit
c22b17a1
authored
Mar 01, 2018
by
xiandafu
Browse files
bug fix
parent
cabde2ef
Changes
6
Hide whitespace changes
Inline
Side-by-side
admin-console/pom.xml
View file @
c22b17a1
...
@@ -17,11 +17,6 @@
...
@@ -17,11 +17,6 @@
<artifactId>
jxls
</artifactId>
<artifactId>
jxls
</artifactId>
<version>
2.4.3
</version>
<version>
2.4.3
</version>
</dependency>
</dependency>
<dependency>
<groupId>
org.jxls
</groupId>
<artifactId>
jxls-reader
</artifactId>
<version>
2.0.3
</version>
</dependency>
<dependency>
<dependency>
<groupId>
org.jxls
</groupId>
<groupId>
org.jxls
</groupId>
<artifactId>
jxls-poi
</artifactId>
<artifactId>
jxls-poi
</artifactId>
...
...
admin-console/src/main/java/com/ibeetl/admin/console/web/DictConsoleController.java
View file @
c22b17a1
...
@@ -15,9 +15,9 @@ import org.apache.commons.logging.Log;
...
@@ -15,9 +15,9 @@ import org.apache.commons.logging.Log;
import
org.apache.commons.logging.LogFactory
;
import
org.apache.commons.logging.LogFactory
;
import
org.beetl.sql.core.engine.PageQuery
;
import
org.beetl.sql.core.engine.PageQuery
;
import
org.jxls.common.Context
;
import
org.jxls.common.Context
;
import
org.jxls.reader.ReaderBuilder
;
//
import org.jxls.reader.ReaderBuilder;
import
org.jxls.reader.XLSReadStatus
;
//
import org.jxls.reader.XLSReadStatus;
import
org.jxls.reader.XLSReader
;
//
import org.jxls.reader.XLSReader;
import
org.jxls.util.JxlsHelper
;
import
org.jxls.util.JxlsHelper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
...
@@ -173,14 +173,14 @@ public class DictConsoleController{
...
@@ -173,14 +173,14 @@ public class DictConsoleController{
String
fileName
=
file
.
getOriginalFilename
();
String
fileName
=
file
.
getOriginalFilename
();
InputStream
ins
=
file
.
getInputStream
();
InputStream
ins
=
file
.
getInputStream
();
InputStream
inputXML
=
Thread
.
currentThread
().
getContextClassLoader
().
getResourceAsStream
(
"excelTemplates/admin/dict/dict_mapping.xml"
);
//
InputStream inputXML = Thread.currentThread().getContextClassLoader().getResourceAsStream("excelTemplates/admin/dict/dict_mapping.xml");
XLSReader
mainReader
=
ReaderBuilder
.
buildFromXML
(
inputXML
);
//
XLSReader mainReader = ReaderBuilder.buildFromXML( inputXML );
InputStream
inputXLS
=
ins
;
//
InputStream inputXLS = ins;
//
List
<
CoreDict
>
dict
=
new
ArrayList
<
CoreDict
>();
//
List<CoreDict> dict = new ArrayList<CoreDict>();
Map
beans
=
new
HashMap
();
//
Map beans = new HashMap();
beans
.
put
(
"list"
,
dict
);
//
beans.put("list", dict);
XLSReadStatus
readStatus
=
mainReader
.
read
(
inputXLS
,
beans
);
//
XLSReadStatus readStatus = mainReader.read( inputXLS, beans);
return
JsonResult
.
success
();
return
JsonResult
.
success
();
}
}
...
...
admin-console/src/main/resources/static/js/admin/role/add.js
View file @
c22b17a1
...
@@ -8,8 +8,8 @@ layui.define([ 'form', 'laydate', 'table','roleApi'], function(exports) {
...
@@ -8,8 +8,8 @@ layui.define([ 'form', 'laydate', 'table','roleApi'], function(exports) {
this
.
initSubmit
();
this
.
initSubmit
();
},
},
initSubmit
:
function
(){
initSubmit
:
function
(){
$
(
"
#addButton
"
).
click
(
$
(
"
#addForm
"
),
function
(){
$
(
"
#addButton
"
).
click
(
function
(){
roleApi
.
addRole
(
function
(){
roleApi
.
addRole
(
$
(
"
#addForm
"
),
function
(){
parent
.
window
.
dataReload
();
parent
.
window
.
dataReload
();
Common
.
info
(
"
添加成功
"
);
Common
.
info
(
"
添加成功
"
);
Lib
.
closeFrame
();
Lib
.
closeFrame
();
...
...
admin-console/src/main/resources/templates/admin/role/add.html
View file @
c22b17a1
...
@@ -29,10 +29,8 @@
...
@@ -29,10 +29,8 @@
</div>
</div>
</div>
</div>
<layui:submitButtons
id=
"addButton"
/>
<layui:submitButtons
id=
"add"
/>
</form>
</form>
<!--#} -->
<!--#} -->
<script>
<script>
...
...
admin-core/src/main/resources/static/js/core/codeGen/codeApi.js
View file @
c22b17a1
...
@@ -3,9 +3,9 @@ layui.define([], function(exports) {
...
@@ -3,9 +3,9 @@ layui.define([], function(exports) {
var
api
=
{
var
api
=
{
gen
:
function
(
callback
){
gen
:
function
(
callback
){
Common
.
post
(
"
/core/codeGen/getPath.json
"
,
{},
function
(
path
){
Common
.
post
(
"
/core/codeGen/getPath.json
"
,
{},
function
(
path
){
Common
.
openPrompt
(
"
代码保存路径?
"
,
path
,
function
(){
Common
.
openPrompt
(
"
代码保存路径?
"
,
path
,
function
(
newPath
){
var
url
=
"
/core/codeGen/gen.json
"
var
url
=
"
/core/codeGen/gen.json
"
;
Lib
.
submitForm
(
url
,
$
(
'
#updateForm
'
),{
path
:
p
ath
},
callback
)
Lib
.
submitForm
(
url
,
$
(
'
#updateForm
'
),{
path
:
newP
ath
},
callback
)
})
})
});
});
},
},
...
...
pom.xml
View file @
c22b17a1
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
<dependency>
<dependency>
<groupId>
com.ibeetl
</groupId>
<groupId>
com.ibeetl
</groupId>
<artifactId>
beetl-framework-starter
</artifactId>
<artifactId>
beetl-framework-starter
</artifactId>
<version>
1.1.
38
.RELEASE
</version>
<version>
1.1.
40
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.trigersoft
</groupId>
<groupId>
com.trigersoft
</groupId>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment