|
|
|
@ -151,7 +151,6 @@ BI.config("dec.constant.intelligence.cluster.file.server", function (items) {
|
|
|
|
|
} |
|
|
|
|
}, { |
|
|
|
|
type: "bi.text_button", |
|
|
|
|
cls: "bi-high-light", |
|
|
|
|
text: BI.i18nText('Plugin-S3_Other_Config'), |
|
|
|
|
handler: () => { |
|
|
|
|
this.store.setIsOpen(!this.model.isOpen); |
|
|
|
@ -168,6 +167,9 @@ BI.config("dec.constant.intelligence.cluster.file.server", function (items) {
|
|
|
|
|
watermark: BI.i18nText("Plugin-S3_Input"), |
|
|
|
|
text: "PathStyleAccess", |
|
|
|
|
value: this.model.enablePathStyleAccess, |
|
|
|
|
ref: function (_ref) { |
|
|
|
|
self.enablePathStyleAccessRow = _ref; |
|
|
|
|
}, |
|
|
|
|
el: { |
|
|
|
|
disabled: !o.editable, |
|
|
|
|
}, |
|
|
|
@ -201,6 +203,11 @@ BI.config("dec.constant.intelligence.cluster.file.server", function (items) {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
|
var enablePathStyleAccess = false; |
|
|
|
|
if (this.model.enablePathStyleAccess === 'true') { |
|
|
|
|
enablePathStyleAccess = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
endPoint: this.model.endPoint, |
|
|
|
|
region: this.model.region, |
|
|
|
@ -208,7 +215,7 @@ BI.config("dec.constant.intelligence.cluster.file.server", function (items) {
|
|
|
|
|
password: this.passwordRow.getCipher(), |
|
|
|
|
bucket: this.model.bucket, |
|
|
|
|
workRoot: this.filePathRow.getValue(), |
|
|
|
|
enablePathStyleAccess: this.model.enablePathStyleAccess, |
|
|
|
|
enablePathStyleAccess, |
|
|
|
|
signerOverride: this.model.signerOverride, |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
@ -228,6 +235,10 @@ BI.config("dec.constant.intelligence.cluster.file.server", function (items) {
|
|
|
|
|
this.filePathRow.showError(BI.i18nText("Dec-Error_Null")); |
|
|
|
|
valid = false; |
|
|
|
|
} |
|
|
|
|
if (!(this.model.enablePathStyleAccess === 'false' || this.model.enablePathStyleAccess === 'true')) { |
|
|
|
|
this.enablePathStyleAccessRow.showError(BI.i18nText("Plugin-S3_EnablePathStyleAccess_Error_Tip")); |
|
|
|
|
valid = false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return valid; |
|
|
|
|
}, |
|
|
|
@ -251,7 +262,7 @@ BI.config("dec.constant.intelligence.cluster.file.server", function (items) {
|
|
|
|
|
bucket: val.bucket, |
|
|
|
|
workRoot: val.workRoot, |
|
|
|
|
isOpen: false, |
|
|
|
|
enablePathStyleAccess: false, |
|
|
|
|
enablePathStyleAccess: 'false', |
|
|
|
|
signerOverride: "", |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|