Blame view

src/views/sqcx/jtfc/jtfcdata.js 1.76 KB
jiaozeping@pashanhoo.com committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import filter from '@/utils/filter.js'
let vm = null

const sendThis = (_this) => {
  vm = _this
}
class data extends filter {
  constructor() {
    super()
  }
  columns () {
    return [
      {
        label: '序号',
        type: 'index',
任超 committed
16 17 18 19 20 21 22 23
        width: '50',
        render: (h, scope) => {
          return (
            <div>
              {(vm.pageData.currentPage - 1) * vm.pageData.pageSize + scope.$index + 1}
            </div>
          )
        }
jiaozeping@pashanhoo.com committed
24 25
      },
      {
任超 committed
26
        label: "查询类型",
蔡俊立 committed
27 28 29 30 31 32 33 34
        render: (h, scope) => {
          switch (scope.row.cxlx) {
            case '1':
              return <div>家庭房产</div>
            case '2':
              return <div>登记簿</div>
          }
        }
jiaozeping@pashanhoo.com committed
35 36
      },
      {
任超 committed
37 38
        prop: "cxbh",
        label: "查询编号",
jiaozeping@pashanhoo.com committed
39 40
      },
      {
任超 committed
41 42
        prop: "cxsj",
        label: "查询时间",
jiaozeping@pashanhoo.com committed
43 44
      },
      {
蔡俊立 committed
45
        prop: "cxr",
任超 committed
46
        label: "受理人员",
jiaozeping@pashanhoo.com committed
47 48
      },
      {
蔡俊立 committed
49
        prop: "sqrxm",
任超 committed
50
        label: "申请人",
jiaozeping@pashanhoo.com committed
51 52
      },
      {
任超 committed
53
        label: "与权利人的关系",
蔡俊立 committed
54 55 56 57 58 59 60 61 62 63
        render: (h, scope) => {
          switch (scope.row.ycyrgx) {
            case '1':
              return <div>权利人</div>
            case '2':
              return <div>产权利害关系人</div>
            case '3':
              return <div>委托人</div>
          }
        }
jiaozeping@pashanhoo.com committed
64 65
      },
      {
蔡俊立 committed
66
        prop: "qlrxm",
任超 committed
67
        label: "权利人",
jiaozeping@pashanhoo.com committed
68 69
      },
      {
任超 committed
70 71
        prop: "cxyt",
        label: "查询用途"
任超 committed
72 73 74
      },
      {
        label: "操作",
任超 committed
75
        width: 80,
任超 committed
76 77 78
        render: (h, scope) => {
          return <el-button type="text" icon='el-icon-view' onClick={() => { vm.handleViewClick(scope) }}>查看</el-button>
        }
jiaozeping@pashanhoo.com committed
79 80 81 82 83 84 85 86 87 88
      }
    ]
  }

}
let datas = new data()
export {
  datas,
  sendThis
}