Browse Source

DEC-16456 fix: S3插件-配置项保存后,集群配置页面还可以直接编辑,没有灰化

master
Frank.Qiu 3 years ago
parent
commit
80cb5c9438
  1. 15
      src/main/resources/com/fanruan/fs/s3/repository/web/js/bundle.js

15
src/main/resources/com/fanruan/fs/s3/repository/web/js/bundle.js

@ -39,6 +39,9 @@ BI.config("dec.constant.intelligence.cluster.file.server", function (items) {
watermark: BI.i18nText("Plugin-S3_Input"),
text: BI.i18nText("Plugin-S3_End_Point"),
value: this.model.endPoint,
el: {
disabled: !o.editable,
},
ref: function (_ref) {
self.endPointRow = _ref;
},
@ -55,6 +58,9 @@ BI.config("dec.constant.intelligence.cluster.file.server", function (items) {
watermark: BI.i18nText("Plugin-S3_Input"),
text: BI.i18nText("Plugin-S3_Region"),
value: this.model.region,
el: {
disabled: !o.editable,
},
ref: function (_ref) {
self.regionRow = _ref;
},
@ -71,6 +77,9 @@ BI.config("dec.constant.intelligence.cluster.file.server", function (items) {
watermark: BI.i18nText("Plugin-S3_Input"),
text: BI.i18nText("Plugin-S3_Access_Key_Id"),
value: this.model.accessKeyId,
el: {
disabled: !o.editable,
},
ref: function (_ref) {
self.portRow = _ref;
},
@ -88,6 +97,9 @@ BI.config("dec.constant.intelligence.cluster.file.server", function (items) {
watermark: BI.i18nText("Plugin-S3_Access_Key_Secret"),
text: BI.i18nText("Plugin-S3_Access_Key_Secret"),
value: "******",
el: {
disabled: !o.editable,
},
listeners: [{
eventName: BI.Editor.EVENT_CHANGE,
action: function () {
@ -102,6 +114,9 @@ BI.config("dec.constant.intelligence.cluster.file.server", function (items) {
watermark: BI.i18nText("Plugin-S3_Bucket"),
text: BI.i18nText("Plugin-S3_Bucket"),
value: this.model.bucket,
el: {
disabled: !o.editable,
},
listeners: [{
eventName: BI.Editor.EVENT_CHANGE,
action: function () {

Loading…
Cancel
Save