Blame view

src/views/zhcx/djbcx/djbcxdata.js 2.45 KB
1 2 3 4 5 6 7 8 9 10
import filter from '@/utils/filter.js'
let vm = null

const sendThis = (_this) => {
  vm = _this
}
class data extends filter {
  constructor() {
    super()
  }
任超 committed
11
  columns () {
12 13 14 15
    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>
          )
        }
24 25
      },
      {
任超 committed
26
        label: "权属状态",
27
        width: '80',
任超 committed
28
        render: (h, scope) => {
吴蕾 committed
29 30
          let obj = {
            "1": {
31 32
              text: '现势',
              color: '#4BD863'
吴蕾 committed
33 34
            },
            "2": {
35 36
              text: '历史',
              color: '#AAAAAA'
吴蕾 committed
37
            },
38
            "0": {
吴蕾 committed
39 40 41 42
              text: '临时',
              color: '#FE9400'
            }
          }
任超 committed
43 44
          let textName = obj[scope.row.qszt]?.text || ''
          let colorName = obj[scope.row.qszt]?.color || ''
任超 committed
45 46
          return (
            <div>
47
              <span style={`color:${colorName}`}>&nbsp;</span>
任超 committed
48
              <span >{textName}</span>
任超 committed
49 50 51
            </div>
          )
        }
52 53 54 55
      },
      {
        prop: "ywh",
        label: "业务号",
56
        width: '110',
57 58
      },
      {
59 60 61 62 63 64 65 66 67
        prop: "qllxmc",
        label: "权利类型",
      },   
      {
        prop: "djlxmc",
        label: "登记类型",        
        width: '90',
      },  
      {
任超 committed
68 69 70 71 72 73
        prop: "bdcdyh",
        label: "不动产单元号",
      },
      {
        prop: "bdcqzh",
        label: "不动产权证号",
74 75
      },
      {
吴蕾 committed
76
        prop: "qlrmc",
77 78 79
        label: "权利人",
      },
      {
吴蕾 committed
80
        prop: "ywrmc",
81 82 83
        label: "义务人",
      },
      {
84 85 86
        prop: "mj",
        label: "面积",
        width: '80'
87 88
      },
      {
89 90
        prop: "ytmc",
        label: "用途"
91 92
      },
      {
93 94 95 96
        prop: "zl",
        label: "坐落",
      },     
      {
97
        label: '操作',
任超 committed
98
        width: '150',
99 100 101
        align: 'center',
        fixed: 'right',
        render: (h, scope) => {
任超 committed
102 103
          return (
            <div>
田浩浩 committed
104
              <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openDialog(scope.row) }}>登记薄</el-button>
任超 committed
105
              <el-button type="text" icon="el-icon-film" onClick={() => { vm.handleLpbClick(scope.row) }}>楼盘表</el-button>
任超 committed
106 107
            </div>
          )
108 109 110 111 112 113 114 115 116 117 118
        }
      }
    ]
  }

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