Blame view

src/views/sthj/components/data/dbdata.js 3 KB
任超 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
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>
        },
      },
      {
任超 committed
35
        prop: 'YWH',
任超 committed
36 37 38 39 40 41 42 43
        label: '业务号',
        render: (h, scope) => {
          return (
            <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
          )
        }
      },
      {
任超 committed
44
        prop: 'DJLX',
任超 committed
45 46 47
        label: '登记类型',
        render: (h, scope) => {
          return (
任超 committed
48
            <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
任超 committed
49 50 51 52
          )
        }
      },
      {
任超 committed
53
        prop: 'QLLX',
任超 committed
54 55 56
        label: '权利类型',
        render: (h, scope) => {
          return (
任超 committed
57
            <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
任超 committed
58 59 60 61
          )
        }
      },
      {
任超 committed
62
        prop: 'BDCDYH',
任超 committed
63 64 65 66 67 68 69 70
        label: '不动产单元号',
        render: (h, scope) => {
          return (
            <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
          )
        }
      },
      {
任超 committed
71
        prop: 'ZSZMH',
任超 committed
72 73 74 75 76 77 78 79
        label: '证书证明号',
        render: (h, scope) => {
          return (
            <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
          )
        }
      },
      {
任超 committed
80
        prop: 'SFSB',
任超 committed
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
        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>
          )
        }
      },
      {
任超 committed
98
        prop: 'BWID',
任超 committed
99 100 101 102 103 104
        label: '报文ID',
        render: (h, scope) => {
          return (
            <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
          )
        }
任超 committed
105
      }
任超 committed
106 107 108 109 110 111 112 113 114 115
    ]
  }
}
let dbdata = new data()
export {
  dbdata,
  sendThis1
}


任超 committed
116