|
@@ -297,9 +297,14 @@ export default {
|
|
|
if (valid) {
|
|
|
// 参数封装
|
|
|
let params = JSON.parse(JSON.stringify(this.connForm))
|
|
|
- params.ipPassword = encrypt(this.connForm.ipPassword, getPubKey())
|
|
|
params.dataSourceName = this.datasourceForm.datasourceName
|
|
|
params.dataSourceDescribe = this.datasourceForm.desc
|
|
|
+ if (params.isAnonymous == 1) {
|
|
|
+ params.ipPassword = ''
|
|
|
+ params.ipUserName = ''
|
|
|
+ } else {
|
|
|
+ params.ipPassword = encrypt(this.connForm.ipPassword, getPubKey())
|
|
|
+ }
|
|
|
if (this.chooseConnServer) {
|
|
|
params.typeId = this.chooseConnServer.typeId
|
|
|
} else if (this.chooseServerType) {
|