Browse Source

Pull request #5: DEC-16452 & DEC-16456 bug修改

Merge in PG/plugin-repository-s3 from ~FRANK.QIU/plugin-repository-s3:master to master

* commit '80cb5c94380221ecbb6d385240186c9980f6283c':
  DEC-16456 fix: S3插件-配置项保存后,集群配置页面还可以直接编辑,没有灰化
  DEC-16452 fix: S3插件-下拉框插件名称显示空白
master
Frank.Qiu 3 years ago
parent
commit
3aa510905a
  1. 17
      src/main/resources/com/fanruan/fs/s3/repository/web/js/bundle.js

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

@ -2,7 +2,7 @@ BI.config("dec.constant.intelligence.cluster.file.server", function (items) {
items.push({
value: "S3", // 地址栏显示的hash值
id: "decision-intelligence-cluster-file-s3", // id
text: BI.i18nText(""), // 文字
text: "S3", // 文字
cardType: "dec.intelligence.cluster.file.s3"
});
return items;
@ -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