Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
DolphinScheduler
提交
3c461fb7
DolphinScheduler
项目概览
apache
/
DolphinScheduler
上一次同步 1 年多
通知
704
Star
9572
Fork
3514
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
DolphinScheduler
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
3c461fb7
编写于
2月 01, 2021
作者:
C
chengshiwen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[Improvement][UI] Support more file types in file detail page
上级
947dcb90
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
11 deletion
+11
-11
dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/_source/common.js
...nf/home/pages/resource/pages/file/pages/_source/common.js
+1
-1
dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/details/index.vue
...nf/home/pages/resource/pages/file/pages/details/index.vue
+5
-5
dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/edit/index.vue
.../conf/home/pages/resource/pages/file/pages/edit/index.vue
+5
-5
未找到文件。
dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/_source/common.js
浏览文件 @
3c461fb7
...
...
@@ -18,6 +18,6 @@
/**
* Create file type
*/
const
filtTypeArr
=
[
'
txt
'
,
'
log
'
,
'
sh
'
,
'
conf
'
,
'
cfg
'
,
'
py
'
,
'
java
'
,
'
sql
'
,
'
xml
'
,
'
hql
'
,
'
properties
'
]
const
filtTypeArr
=
[
'
txt
'
,
'
log
'
,
'
sh
'
,
'
bat
'
,
'
conf
'
,
'
cfg
'
,
'
py
'
,
'
java
'
,
'
sql
'
,
'
xml
'
,
'
hql
'
,
'
properties
'
,
'
json
'
,
'
yml
'
,
'
yaml
'
,
'
ini
'
,
'
js
'
,
'
css
'
,
'
html
'
]
export
{
filtTypeArr
}
dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/details/index.vue
浏览文件 @
3c461fb7
...
...
@@ -28,7 +28,7 @@
</div>
</h2>
<template
v-if=
"is
No
Type"
>
<template
v-if=
"is
View
Type"
>
<div
class=
"code-mirror-model"
v-if=
"!msg"
>
<textarea
id=
"code-details-mirror"
name=
"code-details-mirror"
></textarea>
...
...
@@ -37,7 +37,7 @@
<m-no-data
:msg=
"msg"
v-if=
"msg"
></m-no-data>
</
template
>
<
template
v-if=
"!is
No
Type"
>
<
template
v-if=
"!is
View
Type"
>
<m-no-type></m-no-type>
</
template
>
</div>
...
...
@@ -67,7 +67,7 @@
data
()
{
return
{
name
:
''
,
is
No
Type
:
true
,
is
View
Type
:
true
,
isLoading
:
false
,
filtTypeArr
:
filtTypeArr
,
loadingIndex
:
0
,
...
...
@@ -197,10 +197,10 @@
let
a
=
fileName
.
substring
(
i
,
fileName
.
length
)
this
.
mode
=
handlerSuffix
[
a
]
this
.
size
=
bytesToSize
(
parseInt
(
fileSize
))
this
.
is
No
Type
=
_
.
includes
(
this
.
filtTypeArr
,
_
.
trimStart
(
a
,
'
.
'
))
this
.
is
View
Type
=
_
.
includes
(
this
.
filtTypeArr
,
_
.
trimStart
(
a
,
'
.
'
))
},
mounted
()
{
if
(
this
.
is
No
Type
)
{
if
(
this
.
is
View
Type
)
{
// get data
this
.
_getViewResources
()
}
...
...
dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/edit/index.vue
浏览文件 @
3c461fb7
...
...
@@ -21,7 +21,7 @@
<h2>
<span>
{{
name
}}
</span>
</h2>
<template
v-show=
"is
No
Type"
>
<template
v-show=
"is
View
Type"
>
<template
v-if=
"!msg"
>
<div
class=
"code-mirror-model"
>
<textarea
id=
"code-edit-mirror"
name=
"code-edit-mirror"
></textarea>
...
...
@@ -34,7 +34,7 @@
<m-no-data
:msg=
"msg"
v-if=
"msg"
></m-no-data>
</template>
<
template
v-if=
"!is
No
Type"
>
<
template
v-if=
"!is
View
Type"
>
<m-no-type></m-no-type>
</
template
>
</div>
...
...
@@ -64,7 +64,7 @@
data
()
{
return
{
name
:
''
,
is
No
Type
:
true
,
is
View
Type
:
true
,
isLoading
:
false
,
filtTypeArr
:
filtTypeArr
,
loadingIndex
:
0
,
...
...
@@ -165,10 +165,10 @@
let
a
=
fileName
.
substring
(
i
,
fileName
.
length
)
this
.
mode
=
handlerSuffix
[
a
]
this
.
size
=
bytesToSize
(
parseInt
(
fileSize
))
this
.
is
No
Type
=
_
.
includes
(
this
.
filtTypeArr
,
_
.
trimStart
(
a
,
'
.
'
))
this
.
is
View
Type
=
_
.
includes
(
this
.
filtTypeArr
,
_
.
trimStart
(
a
,
'
.
'
))
},
mounted
()
{
if
(
this
.
is
No
Type
)
{
if
(
this
.
is
View
Type
)
{
// get data
this
.
_getViewResources
()
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录