dbdata.js 3.57 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-select class="width100" value={scope.row[scope.column.property]}
              onChange={(val) => { scope.row[scope.column.property] = val }}>
              {
                store.getters.dicData['A21'].map(option => {
                  return (
                    <el-option label={option.DNAME} value={option.DCODE}></el-option>
                  )
                })
              }
            </el-select>
          )
        }
      },
      {
        prop: 'qllx',
        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['A8'].map(option => {
                  return (
                    <el-option label={option.DNAME} value={option.DCODE}></el-option>
                  )
                })
              }
            </el-select>
          )
        }
      },
      {
        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
}