增加数据源列表参数
parent
b63c456f1e
commit
4c468c3aa4
|
@ -97,9 +97,9 @@
|
||||||
|
|
||||||
|
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button @click="dialogFormVisible = false">测试</el-button>
|
<el-button @click="textP()">测试</el-button>
|
||||||
<el-button @click="dialogFormVisible = false">取 消</el-button>
|
<el-button @click="dialogFormVisible = false">取 消</el-button>
|
||||||
<el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
|
<el-button type="primary" @click="addSource()">确 定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
@ -234,16 +234,33 @@ export default {
|
||||||
watch: {},
|
watch: {},
|
||||||
//方法集合",
|
//方法集合",
|
||||||
methods: {
|
methods: {
|
||||||
|
textP(){
|
||||||
|
connectionTest(this.sourceAddReq).then(res=>{
|
||||||
|
if (res.code===200){
|
||||||
|
alert("测试连接成功")
|
||||||
|
}else{
|
||||||
|
alert("连接失败")
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
addSource(){
|
||||||
|
insertAdd(this.sourceAddReq).then(res=>{
|
||||||
|
|
||||||
|
})
|
||||||
|
},
|
||||||
//测试连接
|
//测试连接
|
||||||
text(row){
|
text(row){
|
||||||
connectionTest(row).then(res=>{
|
connectionTest(row).then(res=>{
|
||||||
if (res.code===200){
|
if (res.code===200){
|
||||||
alert("测试连接成功");
|
alert("测试连接成功");
|
||||||
|
}else {
|
||||||
|
alert("测试连接失败");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
insertAdd(){
|
insertAdd(){
|
||||||
this.dialogFormVisible=true
|
this.dialogFormVisible=true
|
||||||
|
|
||||||
},
|
},
|
||||||
findSelectSourceList(){
|
findSelectSourceList(){
|
||||||
selectSourceList(this.SourceReq).then(res=>{
|
selectSourceList(this.SourceReq).then(res=>{
|
||||||
|
|
Loading…
Reference in New Issue