Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
T
topology
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
姜立玮
topology
Commits
56fa3912
提交
56fa3912
authored
1月 05, 2021
作者:
RuoYi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复IE11浏览器报错问题
上级
2116ee18
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
19 行增加
和
8 行删除
+19
-8
package.json
ruoyi-ui/package.json
+2
-2
index.vue
ruoyi-ui/src/components/HeaderSearch/index.vue
+1
-1
main.js
ruoyi-ui/src/main.js
+0
-4
index.vue
ruoyi-ui/src/views/tool/gen/index.vue
+16
-1
没有找到文件。
ruoyi-ui/package.json
浏览文件 @
56fa3912
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
"element-ui"
:
"2.14.1"
,
"element-ui"
:
"2.14.1"
,
"file-saver"
:
"2.0.4"
,
"file-saver"
:
"2.0.4"
,
"fuse.js"
:
"6.4.3"
,
"fuse.js"
:
"6.4.3"
,
"highlight.js"
:
"
10.4.1
"
,
"highlight.js"
:
"
9.18.5
"
,
"js-beautify"
:
"1.13.0"
,
"js-beautify"
:
"1.13.0"
,
"js-cookie"
:
"2.2.1"
,
"js-cookie"
:
"2.2.1"
,
"jsencrypt"
:
"3.0.0-rc.1"
,
"jsencrypt"
:
"3.0.0-rc.1"
,
...
@@ -69,8 +69,8 @@
...
@@ -69,8 +69,8 @@
"eslint"
:
"7.15.0"
,
"eslint"
:
"7.15.0"
,
"eslint-plugin-vue"
:
"7.2.0"
,
"eslint-plugin-vue"
:
"7.2.0"
,
"lint-staged"
:
"10.5.3"
,
"lint-staged"
:
"10.5.3"
,
"sass"
:
"1.30.0"
,
"runjs"
:
"4.4.2"
,
"runjs"
:
"4.4.2"
,
"sass"
:
"1.32.0"
,
"sass-loader"
:
"10.1.0"
,
"sass-loader"
:
"10.1.0"
,
"script-ext-html-webpack-plugin"
:
"2.1.5"
,
"script-ext-html-webpack-plugin"
:
"2.1.5"
,
"svg-sprite-loader"
:
"5.1.1"
,
"svg-sprite-loader"
:
"5.1.1"
,
...
...
ruoyi-ui/src/components/HeaderSearch/index.vue
浏览文件 @
56fa3912
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<
script
>
<
script
>
// fuse is a lightweight fuzzy-search module
// fuse is a lightweight fuzzy-search module
// make search results more in line with expectations
// make search results more in line with expectations
import
Fuse
from
'fuse.js'
import
Fuse
from
'fuse.js
/dist/fuse.min.js
'
import
path
from
'path'
import
path
from
'path'
export
default
{
export
default
{
...
...
ruoyi-ui/src/main.js
浏览文件 @
56fa3912
...
@@ -20,9 +20,6 @@ import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels,
...
@@ -20,9 +20,6 @@ import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels,
import
Pagination
from
"@/components/Pagination"
;
import
Pagination
from
"@/components/Pagination"
;
// 自定义表格工具扩展
// 自定义表格工具扩展
import
RightToolbar
from
"@/components/RightToolbar"
import
RightToolbar
from
"@/components/RightToolbar"
// 代码高亮插件
import
hljs
from
'highlight.js'
import
'highlight.js/styles/github-gist.css'
// 全局方法挂载
// 全局方法挂载
Vue
.
prototype
.
getDicts
=
getDicts
Vue
.
prototype
.
getDicts
=
getDicts
...
@@ -52,7 +49,6 @@ Vue.component('Pagination', Pagination)
...
@@ -52,7 +49,6 @@ Vue.component('Pagination', Pagination)
Vue
.
component
(
'RightToolbar'
,
RightToolbar
)
Vue
.
component
(
'RightToolbar'
,
RightToolbar
)
Vue
.
use
(
permission
)
Vue
.
use
(
permission
)
Vue
.
use
(
hljs
.
vuePlugin
);
/**
/**
* If you don't want to use mock-server
* If you don't want to use mock-server
...
...
ruoyi-ui/src/views/tool/gen/index.vue
浏览文件 @
56fa3912
...
@@ -169,7 +169,7 @@
...
@@ -169,7 +169,7 @@
:name=
"key.substring(key.lastIndexOf('/')+1,key.indexOf('.vm'))"
:name=
"key.substring(key.lastIndexOf('/')+1,key.indexOf('.vm'))"
:key=
"key"
:key=
"key"
>
>
<
highlightjs
autodetect
:code=
"value"
/
>
<
pre><code
class=
"hljs"
v-html=
"highlightedCode(value, key)"
></code></pre
>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
</el-dialog>
</el-dialog>
...
@@ -181,6 +181,14 @@
...
@@ -181,6 +181,14 @@
import
{
listTable
,
previewTable
,
delTable
,
genCode
,
synchDb
}
from
"@/api/tool/gen"
;
import
{
listTable
,
previewTable
,
delTable
,
genCode
,
synchDb
}
from
"@/api/tool/gen"
;
import
importTable
from
"./importTable"
;
import
importTable
from
"./importTable"
;
import
{
downLoadZip
}
from
"@/utils/zipdownload"
;
import
{
downLoadZip
}
from
"@/utils/zipdownload"
;
import
hljs
from
"highlight.js/lib/highlight"
;
import
"highlight.js/styles/github-gist.css"
;
hljs
.
registerLanguage
(
"java"
,
require
(
"highlight.js/lib/languages/java"
));
hljs
.
registerLanguage
(
"xml"
,
require
(
"highlight.js/lib/languages/xml"
));
hljs
.
registerLanguage
(
"html"
,
require
(
"highlight.js/lib/languages/xml"
));
hljs
.
registerLanguage
(
"vue"
,
require
(
"highlight.js/lib/languages/xml"
));
hljs
.
registerLanguage
(
"javascript"
,
require
(
"highlight.js/lib/languages/javascript"
));
hljs
.
registerLanguage
(
"sql"
,
require
(
"highlight.js/lib/languages/sql"
));
export
default
{
export
default
{
name
:
"Gen"
,
name
:
"Gen"
,
...
@@ -294,6 +302,13 @@ export default {
...
@@ -294,6 +302,13 @@ export default {
this
.
preview
.
open
=
true
;
this
.
preview
.
open
=
true
;
});
});
},
},
/** 高亮显示 */
highlightedCode
(
code
,
key
)
{
const
vmName
=
key
.
substring
(
key
.
lastIndexOf
(
"/"
)
+
1
,
key
.
indexOf
(
".vm"
));
var
language
=
vmName
.
substring
(
vmName
.
indexOf
(
"."
)
+
1
,
vmName
.
length
);
const
result
=
hljs
.
highlight
(
language
,
code
||
""
,
true
);
return
result
.
value
||
' '
;
},
// 多选框选中数据
// 多选框选中数据
handleSelectionChange
(
selection
)
{
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
tableId
);
this
.
ids
=
selection
.
map
(
item
=>
item
.
tableId
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论