data.js 2.17 KB
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',
        width: '50',
        render: (h, scope) => {
          return (
            <div>
              {(vm.pageData.currentPage - 1) * vm.pageData.pageSize + scope.$index + 1}
            </div>
          )
        }
      },
      {
        prop: "ywh",
        label: "业务号",
      },
      {
        prop: "sqbh",
        label: "申请编号",
      },
      {
        prop: "qlr",
        label: "权利人",
      },
      {
        prop: "ywr",
        label: "义务人",
      },
      {
        prop: "bdcdyh",
        label: "不动产单元号",
        width: 150
      },
      {
        prop: "sqsj",
        label: "申请时间",
        width: 140
      },
      {
        label: "登记类型",
        render: (h, scope) => {
          return <span>{this.dicStatus(scope.row.djlx, "A21")}</span>
        }
      },
      {
        label: "权利类型",
        render: (h, scope) => {
          return <span>{this.dicStatus(scope.row.qllx, "A8")}</span>
        }
      },
      {
        label: "办理状态",
        render: (h, scope) => {
          return <span>{this.dicStatus(scope.row.blzt, "dyblzt")}</span>
        }
      },
      {
        prop: "shyj",
        label: "审核意见"
      },
      {
        label: "操作",
        width: 250,
        fixed: 'right',
        render: (h, scope) => {
          return <div>
            <el-button type="text" icon='el-icon-view' onClick={() => { vm.handleViewClick(scope.row) }}>详情</el-button>
            <el-button type="text" icon="el-icon-delete" onClick={() => { vm.handleDel(scope.row) }}>删除</el-button>
            <el-button type="text" icon='el-icon-refresh-left' onClick={() => { vm.handleBack(scope.row) }}>回退</el-button>
            <el-button type="text" icon='el-icon-document-copy' onClick={() => { vm.handleSync(scope.row) }}>数据同步</el-button>
          </div>
        }
      }
    ]
  }

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