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