Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zendata
提交
ad2241bc
Z
zendata
项目概览
易企天创
/
zendata
大约 1 年 前同步成功
通知
17
Star
2
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zendata
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ad2241bc
编写于
3月 10, 2021
作者:
C
Catouse
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
* fix create/edit form in modal not work sometimes.
上级
371b6d26
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
157 addition
and
82 deletion
+157
-82
ui/src/views/data/buildin/config/Edit.vue
ui/src/views/data/buildin/config/Edit.vue
+30
-15
ui/src/views/data/buildin/excel/Edit.vue
ui/src/views/data/buildin/excel/Edit.vue
+31
-18
ui/src/views/data/buildin/instances/Edit.vue
ui/src/views/data/buildin/instances/Edit.vue
+31
-18
ui/src/views/data/buildin/ranges/Edit.vue
ui/src/views/data/buildin/ranges/Edit.vue
+31
-17
ui/src/views/data/buildin/text/Edit.vue
ui/src/views/data/buildin/text/Edit.vue
+33
-14
ui/src/views/data/mine/Edit.vue
ui/src/views/data/mine/Edit.vue
+1
-0
未找到文件。
ui/src/views/data/buildin/config/Edit.vue
浏览文件 @
ad2241bc
...
...
@@ -103,7 +103,13 @@ import {
export
default
{
name
:
'
ConfigEdit
'
,
props
:
{
afterSave
:
Function
afterSave
:
Function
,
id
:
{
type
:
[
Number
,
String
],
default
:
function
()
{
return
this
.
$route
.
params
.
id
;
}
},
},
data
()
{
return
{
...
...
@@ -130,31 +136,39 @@ export default {
],
},
id
:
0
,
model
:
{
folder
:
'
yaml/
'
},
dirs
:
[],
workDir
:
''
,
};
},
computed
:
{
},
created
()
{
this
.
id
=
parseInt
(
this
.
$route
.
params
.
id
)
console
.
log
(
this
.
id
)
this
.
loadData
()
watch
:
{
id
:
function
(
newId
,
oldId
)
{
if
(
newId
==
oldId
)
{
return
;
}
this
.
loadData
();
}
},
mounted
()
{
this
.
loadData
();
},
methods
:
{
loadData
()
{
getConfig
(
this
.
id
).
then
(
json
=>
{
console
.
log
(
'
getConfig
'
,
json
)
this
.
model
=
json
.
data
this
.
dirs
=
json
.
res
this
.
workDir
=
json
.
workDir
})
let
id
=
this
.
id
;
if
(
id
===
null
)
{
return
;
}
if
(
id
)
{
if
(
typeof
id
===
'
string
'
)
id
=
Number
.
parseInt
(
id
);
getConfig
(
id
).
then
(
json
=>
{
this
.
model
=
json
.
data
this
.
dirs
=
json
.
res
this
.
workDir
=
json
.
workDir
})
}
else
{
this
.
reset
();
}
},
save
()
{
console
.
log
(
'
save
'
)
...
...
@@ -176,6 +190,7 @@ export default {
},
reset
()
{
console
.
log
(
'
reset
'
)
this
.
model
=
{
folder
:
'
yaml/
'
};
this
.
$refs
.
editForm
.
reset
()
},
}
...
...
ui/src/views/data/buildin/excel/Edit.vue
浏览文件 @
ad2241bc
...
...
@@ -51,7 +51,13 @@ import {
export
default
{
name
:
'
TestEdit
'
,
props
:
{
afterSave
:
Function
afterSave
:
Function
,
id
:
{
type
:
[
Number
,
String
],
default
:
function
()
{
return
this
.
$route
.
params
.
id
;
}
},
},
data
()
{
return
{
...
...
@@ -75,33 +81,39 @@ export default {
],
},
id
:
0
,
model
:
{
folder
:
'
data/
'
},
dirs
:
[],
workDir
:
''
,
};
},
computed
:
{
},
created
()
{
this
.
id
=
parseInt
(
this
.
$route
.
params
.
id
)
console
.
log
(
this
.
id
)
this
.
loadData
()
watch
:
{
id
:
function
(
newId
,
oldId
)
{
if
(
newId
==
oldId
)
{
return
;
}
this
.
loadData
();
}
},
mounted
()
{
this
.
loadData
();
},
methods
:
{
loadData
()
{
if
(
!
this
.
id
)
return
getExcel
(
this
.
id
).
then
(
json
=>
{
console
.
log
(
'
getText
'
,
json
)
this
.
model
=
json
.
data
this
.
dirs
=
json
.
res
this
.
workDir
=
json
.
workDir
})
let
id
=
this
.
id
;
if
(
id
===
null
)
{
return
;
}
if
(
id
)
{
if
(
typeof
id
===
'
string
'
)
id
=
Number
.
parseInt
(
id
);
getExcel
(
id
).
then
(
json
=>
{
console
.
log
(
'
getText
'
,
json
)
this
.
model
=
json
.
data
this
.
dirs
=
json
.
res
this
.
workDir
=
json
.
workDir
})
}
else
{
this
.
reset
();
}
},
save
()
{
console
.
log
(
'
save
'
)
...
...
@@ -123,6 +135,7 @@ export default {
},
reset
()
{
console
.
log
(
'
reset
'
)
this
.
model
=
{
folder
:
'
data/
'
};
this
.
$refs
.
editForm
.
reset
()
},
}
...
...
ui/src/views/data/buildin/instances/Edit.vue
浏览文件 @
ad2241bc
...
...
@@ -63,7 +63,13 @@ import {
export
default
{
name
:
'
RangesEdit
'
,
props
:
{
afterSave
:
Function
afterSave
:
Function
,
id
:
{
type
:
[
Number
,
String
],
default
:
function
()
{
return
this
.
$route
.
params
.
id
;
}
},
},
data
()
{
return
{
...
...
@@ -87,33 +93,39 @@ export default {
],
},
id
:
0
,
model
:
{
folder
:
'
yaml/
'
},
dirs
:
[],
workDir
:
''
,
};
},
computed
:
{
},
created
()
{
this
.
id
=
parseInt
(
this
.
$route
.
params
.
id
)
console
.
log
(
this
.
id
)
this
.
loadData
()
watch
:
{
id
:
function
(
newId
,
oldId
)
{
if
(
newId
==
oldId
)
{
return
;
}
this
.
loadData
();
}
},
mounted
()
{
this
.
loadData
();
},
methods
:
{
loadData
()
{
if
(
!
this
.
id
)
return
getInstances
(
this
.
id
).
then
(
json
=>
{
console
.
log
(
'
getInstances
'
,
json
)
this
.
model
=
json
.
data
this
.
dirs
=
json
.
res
this
.
workDir
=
json
.
workDir
})
let
id
=
this
.
id
;
if
(
id
===
null
)
{
return
;
}
if
(
id
)
{
if
(
typeof
id
===
'
string
'
)
id
=
Number
.
parseInt
(
id
);
getInstances
(
id
).
then
(
json
=>
{
console
.
log
(
'
getInstances
'
,
json
)
this
.
model
=
json
.
data
this
.
dirs
=
json
.
res
this
.
workDir
=
json
.
workDir
})
}
else
{
this
.
reset
();
}
},
save
()
{
console
.
log
(
'
save
'
)
...
...
@@ -135,6 +147,7 @@ export default {
},
reset
()
{
console
.
log
(
'
reset
'
)
this
.
model
=
{
folder
:
'
yaml/
'
};
this
.
$refs
.
editForm
.
reset
()
},
}
...
...
ui/src/views/data/buildin/ranges/Edit.vue
浏览文件 @
ad2241bc
...
...
@@ -65,7 +65,13 @@ import {
export
default
{
name
:
'
RangesEdit
'
,
props
:
{
afterSave
:
Function
afterSave
:
Function
,
id
:
{
type
:
[
Number
,
String
],
default
:
function
()
{
return
this
.
$route
.
params
.
id
;
}
},
},
data
()
{
return
{
...
...
@@ -89,33 +95,40 @@ export default {
],
},
id
:
0
,
model
:
{
folder
:
'
yaml/
'
},
dirs
:
[],
workDir
:
''
,
};
},
computed
:
{
},
created
()
{
this
.
id
=
parseInt
(
this
.
$route
.
params
.
id
)
console
.
log
(
this
.
id
)
this
.
loadData
()
watch
:
{
id
:
function
(
newId
,
oldId
)
{
if
(
newId
==
oldId
)
{
return
;
}
this
.
loadData
();
}
},
mounted
()
{
this
.
loadData
();
},
methods
:
{
loadData
()
{
if
(
!
this
.
id
)
return
getRanges
(
this
.
id
).
then
(
json
=>
{
console
.
log
(
'
getRanges
'
,
json
)
this
.
model
=
json
.
data
this
.
dirs
=
json
.
res
this
.
workDir
=
json
.
workDir
})
let
id
=
this
.
id
;
if
(
id
===
null
)
{
return
;
}
if
(
id
)
{
if
(
typeof
id
===
'
string
'
)
id
=
Number
.
parseInt
(
id
);
getRanges
(
id
).
then
(
json
=>
{
console
.
log
(
'
getRanges
'
,
json
)
this
.
model
=
json
.
data
this
.
dirs
=
json
.
res
this
.
workDir
=
json
.
workDir
})
}
else
{
this
.
reset
();
}
},
save
()
{
console
.
log
(
'
save
'
)
...
...
@@ -137,6 +150,7 @@ export default {
},
reset
()
{
console
.
log
(
'
reset
'
)
this
.
model
=
{
folder
:
'
yaml/
'
};
this
.
$refs
.
editForm
.
reset
()
},
}
...
...
ui/src/views/data/buildin/text/Edit.vue
浏览文件 @
ad2241bc
...
...
@@ -47,7 +47,13 @@ import {colsFull, colsHalf, labelColFull, wrapperColFull, labelColHalf, labelCol
export
default
{
name
:
'
TestEdit
'
,
props
:
{
afterSave
:
Function
afterSave
:
Function
,
id
:
{
type
:
[
Number
,
String
],
default
:
function
()
{
return
this
.
$route
.
params
.
id
;
}
},
},
data
()
{
return
{
...
...
@@ -71,28 +77,40 @@ export default {
],
},
id
:
0
,
model
:
{
folder
:
'
yaml/
'
},
dirs
:
[],
workDir
:
''
,
};
},
created
()
{
this
.
id
=
parseInt
(
this
.
$route
.
params
.
id
)
console
.
log
(
this
.
id
)
this
.
loadData
()
watch
:
{
id
:
function
(
newId
,
oldId
)
{
if
(
newId
==
oldId
)
{
return
;
}
this
.
loadData
();
}
},
mounted
()
{
this
.
loadData
();
},
methods
:
{
loadData
()
{
if
(
!
this
.
id
)
return
getText
(
this
.
id
).
then
(
json
=>
{
console
.
log
(
'
getText
'
,
json
)
this
.
model
=
json
.
data
this
.
dirs
=
json
.
res
this
.
workDir
=
json
.
workDir
})
let
id
=
this
.
id
;
if
(
id
===
null
)
{
return
;
}
if
(
id
)
{
if
(
typeof
id
===
'
string
'
)
id
=
Number
.
parseInt
(
id
);
getText
(
id
).
then
(
json
=>
{
console
.
log
(
'
getText
'
,
json
)
this
.
model
=
json
.
data
this
.
dirs
=
json
.
res
this
.
workDir
=
json
.
workDir
})
}
else
{
this
.
reset
();
}
},
save
()
{
console
.
log
(
'
save
'
)
...
...
@@ -114,6 +132,7 @@ export default {
},
reset
()
{
console
.
log
(
'
reset
'
)
this
.
model
=
{
folder
:
'
yaml/
'
};
this
.
$refs
.
editForm
.
reset
()
},
}
...
...
ui/src/views/data/mine/Edit.vue
浏览文件 @
ad2241bc
...
...
@@ -115,6 +115,7 @@ export default {
})
},
reset
()
{
this
.
model
=
{
folder
:
'
users/
'
,
type
:
'
text
'
};
this
.
$refs
.
editForm
.
resetFields
()
},
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录