sbdata.js 1.62 KB
let vm = null
const sendThis = (_this) => {
  vm = _this
}
class data {
  columns () {
    return [
      {
        width: "70",
        renderHeader: (h, scope) => {
          return (
            <div>
              <i
                class="el-icon-plus"
                onClick={() => {
                  vm.handleSBAdd();
                }}
                style="cursor:pointer;color:#409EFF"
              ></i>
            </div>
          );
        },
        render: (h, scope) => {
          return <i
            class="el-icon-minus"
            onClick={() => {
              vm.handleSBMinus(scope.row);
            }}
            style="cursor:pointer;color:#409EFF"
          ></i>
        },
      },
      {
        prop: 'YWH',
        label: '业务号',
        render: (h, scope) => {
          return (
            <el-input disabled value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
          )
        }
      },
      {
        prop: 'BDCDYH',
        label: '不动产单元号',
        render: (h, scope) => {
          return (
            <el-input disabled value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
          )
        }
      },
      {
        prop: 'BWID',
        label: '报文ID',
        render: (h, scope) => {
          return (
            <el-input disabled value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
          )
        }
      }
    ]
  }
}
let sbdata = new data()
export {
  sbdata,
  sendThis
}