<template>
  <div class="ele-body">
    <el-card
      shadow="never"
      header="基本信息"
      body-style="padding: 22px 22px 0 22px;"
    >
      <div class="form-wrap">
        <el-form :model="form" :rules="addFormRules" label-width="120px">
          <el-row>
            <el-col :span="12">
              <el-form-item label="编码" prop="name">
                <el-input
                  type="text"
                  size="small"
                  placeholder="请输入"
                ></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="名称" prop="other">
                <el-input
                  type="text"
                  size="small"
                  placeholder="请输入"
                ></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="24">
              <el-form-item label="描述" prop="order">
                <el-input placeholder="请输入" size="small"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
        </el-form>
      </div>
    </el-card>
    <el-card
      shadow="never"
      header="编码配置"
      body-style="padding: 22px 22px 0 22px;"
    >
      <div class="bmpz-wrap">
        <div class="btn-wrap">
          <el-button type="primary" @click="add" size="small">添加</el-button>
          <el-button type="primary" @click="_delete" size="small"
            >删除</el-button
          >
        </div>
        <div class="table-wrap">
          <el-table :data="tableData" style="width: 100%">
            <el-table-column prop="date" label="排序" width="180">
            </el-table-column>
            <el-table-column prop="name" label="类型" width="180">
            </el-table-column>
            <el-table-column prop="address" label="内容"></el-table-column>
            <el-table-column prop="address" label="长度"></el-table-column>
            <el-table-column prop="address" label="当前流水"></el-table-column>
            <el-table-column prop="address" label="步长"></el-table-column>
            <el-table-column prop="address" label="说明"></el-table-column>
          </el-table>
        </div>
      </div>
    </el-card>
  </div>
</template>
<script>
export default {
  data() {
    return {
      form: {},
      addFormRules: {},
      tableData: [
        {
          sort: 1,
          type: '业务变量',
          content: 'asdad',
          length: '',
          running: '',
          stepSize: ''
        }
      ]
    };
  },
  methods: {
    add() {},
    _delete() {}
  }
};
</script>
<style lang="scss" scoped>
.basic-details-title {
  margin-bottom: 12px;
  margin-top: 20px;
  border-bottom: 1px solid #157a2c;
  padding-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.basic-details-title .border-span {
  height: 18px;
  font-size: 16px;
  border-left: 4px solid #157a2c;
  padding-left: 8px;

  font-weight: 500;
}
.form-wrap {
  max-width: 700px;
}
</style>