constructor()

in src/routes/Plugin/Discovery/UpstreamTable.js [95:136]


  constructor(props) {
    super(props);
    this.columns = [
      {
        title: 'protocol',
        dataIndex: 'protocol',
        editable: true,
        // width: '20%',
        align: 'center'
      },
      {
        title: 'url',
        dataIndex: 'url',
        editable: true,
        width: '33%',
        align: 'center'
      },
      {
        title: 'status',
        dataIndex: 'status',
        editable: true,
        // width: '19%',
        align: 'center'
      },
      {
        title: 'weight',
        dataIndex: 'weight',
        editable: true,
        // width: '19%',
        align: 'center'
      },
      {
        title: getIntlContent("SHENYU.DISCOVERY.SELECTOR.UPSTREAM.OPERATION"),
        dataIndex: 'operation',
        align: 'center',
        render: (text, record) =>
          this.props.dataSource.length >= 1 ? (
            <Popconfirm title={getIntlContent("SHENYU.DISCOVERY.SELECTOR.UPSTREAM.DELETE")} onConfirm={() => this.handleDelete(record.key)}>
              <a>{getIntlContent("SHENYU.BUTTON.SYSTEM.DELETE")}</a>
            </Popconfirm>
          ) : null,
      },