selectDjbbl.js 4.05 KB
import filter from '@/utils/filter.js'
let vm = null

const sendThis = (_this) => {
  vm = _this
}
class data extends filter {
  constructor() {
    super()
  }
  columns () {
    return [
      {
        type: 'selection',
        label: '全选',
        selectable: this.selected
      },
      {
        label: '序号',
        type: 'index',
        width: '50',
        render: (h, scope) => {
          return (
            <div>
              {(vm.pageData.currentPage - 1) * vm.pageData.pageSize + scope.$index + 1}
            </div>
          )
        }
      },
      {
        prop: "status",
        label: "状态",
        width: '120',
        render: (h, scope) => {
          return (
            <div>
              <a style='color:#3498db;' v-show={scope.row.djblzt == 1}>{this.yWstatus(scope.row)}</a>
              <span v-show={scope.row.djblzt != 1}>{this.yWstatus(scope.row)}</span>
            </div>
          )
        }
      },
      {
        label: "权属状态",
        width: '80',
        render: (h, scope) => {
          let obj = {
            "1": {
              text: '现势',
              color: '#4BD863'
            },
            "2": {
              text: '历史',
              color: '#AAAAAA'
            },
            "0": {
              text: '临时',
              color: '#ff5100'
            }
          }
          let textName = obj[scope.row.qszt]?.text || ''
          let colorName = obj[scope.row.qszt]?.color || ''
          return (
            <div>
              <span style={`color:${colorName}`}>&nbsp;</span>
              <span >{textName}</span>
            </div>
          )
        }
      },

      {
        prop: "qllxmc",
        label: "权利类型",
      },
      {
        prop: "djlxmc",
        label: "登记类型",
        width: '90',
      },
      {
        label: "不动产单元号",
        width: '150',
        render: (h, scope) => {
          return (
            <el-tooltip effect="dark" content={scope.row.bdcdyh} placement="top" popper-class="tooltip-width ">
              <span class="ellipsis-table"> {scope.row.bdcdyh}</span>
            </el-tooltip>
          )
        }
      },
      {
        label: "不动产权证号",
        width: '150',
        render: (h, scope) => {
          return (
            <el-tooltip effect="dark" content={scope.row.bdcqzh} placement="top" popper-class="tooltip-width ">
              <span class="ellipsis-table"> {scope.row.bdcqzh}</span>
            </el-tooltip>
          )
        }
      },
      {
        label: "权利人",
        minWidth: '100',
        render: (h, scope) => {
          return (
            <el-tooltip effect="dark" content={scope.row.qlrmc} placement="top" popper-class="tooltip-width ">
              <span class="ellipsis-table"> {scope.row.qlrmc}</span>
            </el-tooltip>
          )
        }
      },
      {
        label: "义务人",
        minWidth: '100',
        render: (h, scope) => {
          return (
            <el-tooltip effect="dark" content={scope.row.ywrmc} placement="top" popper-class="tooltip-width ">
              <span class="ellipsis-table"> {scope.row.ywrmc}</span>
            </el-tooltip>
          )
        }
      },
      {
        prop: "qlmjmc",
        label: "面积",
        width: '100'
      },
      {
        prop: "qlytmc",
        label: "用途",
        minWidth: '130'
      },
      {
        label: "坐落",
        minWidth: '150',
        render: (h, scope) => {
          return (
            <el-tooltip effect="dark" content={scope.row.zl} placement="top" popper-class="tooltip-width ">
              <span class="ellipsis-table"> {scope.row.zl}</span>
            </el-tooltip>
          )
        }
      },
      {
        label: '操作',
        width: '100',
        render: (h, scope) => {
          return (
            <div>
              <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openDialog(scope.row) }}>登记薄</el-button>
            </div>
          )
        }
      }
    ]
  }

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