dbdata.js 3 KB
import store from '@/store'
let vm = null
const sendThis1 = (_this) => {
  vm = _this
}
class data {
  columns () {
    return [
      {
        width: "70",
        renderHeader: (h, scope) => {
          return (
            <div>
              <i
                class="el-icon-plus"
                onClick={() => {
                  vm.handleDBAdd();
                }}
                style="cursor:pointer;color:#409EFF"
              ></i>
            </div>
          );
        },
        render: (h, scope) => {
          return <i
            class="el-icon-minus"
            onClick={() => {
              vm.handleDBMinus(scope.row);
            }}
            style="cursor:pointer;color:#409EFF"
          ></i>
        },
      },
      {
        prop: 'YWH',
        label: '业务号',
        render: (h, scope) => {
          return (
            <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
          )
        }
      },
      {
        prop: 'DJLX',
        label: '登记类型',
        render: (h, scope) => {
          return (
            <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
          )
        }
      },
      {
        prop: 'QLLX',
        label: '权利类型',
        render: (h, scope) => {
          return (
            <el-input 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 value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
          )
        }
      },
      {
        prop: 'ZSZMH',
        label: '证书证明号',
        render: (h, scope) => {
          return (
            <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
          )
        }
      },
      {
        prop: 'SFSB',
        label: '是否上报',
        render: (h, scope) => {
          return (
            <el-select class="width100" value={scope.row[scope.column.property]}
              onChange={(val) => { scope.row[scope.column.property] = val }}>
              {
                store.getters.dicData['A6'].map(option => {
                  return (
                    <el-option label={option.DNAME} value={option.DCODE}></el-option>
                  )
                })
              }
            </el-select>
          )
        }
      },
      {
        prop: 'BWID',
        label: '报文ID',
        render: (h, scope) => {
          return (
            <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
          )
        }
      }
    ]
  }
}
let dbdata = new data()
export {
  dbdata,
  sendThis1
}