title: getIntlContent()

in src/routes/System/PluginHandle/index.js [335:379]


          title: getIntlContent("SHENYU.PLUGIN.PLUGIN.NAME"),
          dataIndex: "pluginId",
          key: "pluginId",
          ellipsis: true,
          sorter: (a, b) => a.pluginId - b.pluginId,
          width: 140,
          render: (text) => {
            const { pluginHandle } = this.props;
            const { pluginHandleList } = pluginHandle;
            const pluginDropDownList = this.state.pluginDict;
            if (pluginHandleList) {
              pluginHandleList.forEach((item) => {
                if (item.extObj) {
                  let obj = {};
                  try {
                    obj = JSON.parse(item.extObj);
                  } catch (e) {
                    // eslint-disable-next-line no-console
                    console.error(e);
                  }
                  if (obj.required) {
                    item.required = obj.required;
                  }
                  if (obj.defaultValue) {
                    item.defaultValue = obj.defaultValue;
                  }
                  if (obj.placeholder) {
                    item.placeholder = obj.placeholder;
                  }
                }
              });
            }
            if (pluginDropDownList) {
              let arr = pluginDropDownList.filter((item) => item.id === text);
              if (arr && arr.length > 0) {
                return (
                  <div style={{ color: "#260033", fontWeight: "bold" }}>
                    {arr[0].name}
                  </div>
                );
              } else {
                return <div>text</div>;
              }
            }
          },