Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ETL-admin
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
莫晓莉
ETL-admin
Commits
f90bb78c
Commit
f90bb78c
authored
Mar 15, 2021
by
莫晓莉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mxl20213.15
parent
f7f8aad7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
219 additions
and
0 deletions
+219
-0
src/views/dialogs-components/dialog-remind.vue
+100
-0
src/views/dialogs-components/dialog.js
+52
-0
src/views/dialogs-components/test.vue
+67
-0
src/views/kettle/home.vue
+0
-0
No files found.
src/views/dialogs-components/dialog-remind.vue
0 → 100644
View file @
f90bb78c
<
template
>
<div>
<el-dialog
title=
"系统提示"
:visible
.
sync=
"dialogVisibleOne"
width=
"30%"
:before-close=
"handleCloseOne"
>
<span>
您确定要删除该数据库中所有的资源库列表
</span>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"handleCloseOne()"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"dialogVisibleTwo = true"
>
确 定
</el-button>
</span>
</el-dialog>
<el-dialog
title=
"系统提示"
:visible
.
sync=
"dialogVisibleTwo"
width=
"30%"
:before-close=
"handleCloseTwo"
>
<span>
请输入管理员密码:
</span>
<el-input
style=
"margin-top:15px;"
v-model=
"inputValue"
placeholder=
"请输入管理员密码"
></el-input>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"dialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"confirm()"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</
template
>
<
script
>
export
default
({
data
(){
return
{
dialogVisibleTwo
:
false
,
inputValue
:
''
}
},
// props:['dialogVisibleOne','drop'],
props
:{
dialogVisibleOne
:{
type
:
Boolean
,
default
:
false
},
// drop:Function
drop
:
{
type
:
Function
,
default
:
null
}
},
mounted
(){
// this.test();
},
methods
:{
handleCloseOne
(){
this
.
$emit
(
"update:dialogVisibleOne"
,
false
);
},
handleCloseTwo
(){
this
.
dialogVisibleTwo
=
false
;
},
confirm
(){
// this.drop();
this
.
drop
();
this
.
$emit
(
'getValue'
,
this
.
inputValue
);
}
//资源库信息删除
// drop(){
// var formData = new FormData();
// formData.append('databaseName', params);
// // JSON对象转成formData对象
// var params=this.repositoryInfoModel;
// params.type='KettleDatabaseRepository';//写死
// var extraOptions={database:this.selectName}
// params.extraOptions=extraOptions;
// var formData = new FormData();
// formData.append('reposityInfo', JSON.stringify(params));
// // formData.append('password', true);
// console.log('资源库信息确认提交参数==',params);
// removeLink(formData).then(res=>{
// if (res) {
// this.$message.success('删除成功!');
// this.listNames();//刷新列表
// this.selectName='';
// }else {
// this.$message.error(res.errMsg)
// }
// })
// }
}
})
</
script
>
src/views/dialogs-components/dialog.js
0 → 100644
View file @
f90bb78c
import
{
removeLink
}
from
"@/api/kettle/link"
;
// 删除本地测试连接1
function
deleteLink
(
params
){
var
formData
=
new
FormData
();
formData
.
append
(
'databaseName'
,
params
);
removeLink
(
formData
).
then
(
res
=>
{
if
(
res
)
{
this
.
$message
.
success
(
'删除成功!'
);
this
.
listNames
();
//刷新列表
this
.
selectName
=
''
;
}
else
{
this
.
$message
.
error
(
res
.
errMsg
)
}
})
}
//资源库信息删除
function
dropFunction
(
params
){
var
formData
=
new
FormData
();
console
.
log
(
'进入方法=='
);
// var password=this.$refs.testDialogueRemind.inputValue;
// JSON对象转成formData对象
var
params
=
this
.
repositoryInfoModel
;
console
.
log
(
'进入方法333=='
,
this
.
repositoryInfoModel
);
params
.
type
=
'KettleDatabaseRepository'
;
//写死
var
extraOptions
=
{
database
:
this
.
selectName
}
params
.
extraOptions
=
extraOptions
;
var
formData
=
new
FormData
();
formData
.
append
(
'reposityInfo'
,
JSON
.
stringify
(
params
));
formData
.
append
(
'password'
,
this
.
inputValue
);
console
.
log
(
'资源库信息确认提交参数=='
,
params
);
drop
(
formData
).
then
(
res
=>
{
if
(
res
)
{
this
.
$message
.
success
(
'删除成功!'
);
}
else
{
this
.
$message
.
error
(
res
.
errMsg
)
}
})
}
export
{
deleteLink
,
dropFunction
}
\ No newline at end of file
src/views/dialogs-components/test.vue
0 → 100644
View file @
f90bb78c
<
template
>
<!--数据库连接start -->
<el-dialog
title=
"数据库连接测试"
encodeURIComponent
:visible
.
sync=
"dialogVisible"
width=
"650px"
top=
"15%"
:close-on-click-modal=
"false"
:before-close=
"handleClose"
>
<div
class=
"table-container table-container-repos"
style=
"height:42vh;"
>
{{
linkInfo
}}
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<!--
<el-button
@
click=
"handleClose"
>
取 消
</el-button>
-->
<el-button
type=
"primary"
@
click=
"handleClose"
>
确 定
</el-button>
</span>
</el-dialog>
<!-- 数据库连接测试end -->
</
template
>
<
script
>
import
{
test
}
from
"@/api/kettle/link"
;
export
default
({
data
(){
return
{
linkInfo
:
''
}
},
props
:{
dialogVisible
:{
type
:
Boolean
,
default
:
false
}
},
mounted
(){
// this.test();
},
methods
:{
// 测试连接
test
(
params
){
test
(
params
).
then
(
res
=>
{
if
(
res
)
{
console
.
log
(
'测试:'
);
// this.linkInfo=res.message;
// var test2=decodeURI(res.message);
var
test2
=
decodeURIComponent
(
res
.
message
);
console
.
log
(
'解码====:'
,
test2
);
this
.
linkInfo
=
test2
;
}
else
{
this
.
$message
.
error
(
res
.
errMsg
)
}
})
},
handleClose
(){
this
.
$emit
(
"update:dialogVisible"
,
false
);
}
}
})
</
script
>
src/views/kettle/home.vue
View file @
f90bb78c
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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