Blame view

src/views/zhcx/djbcx/djbcxdata.js 3.68 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
      },
      {
tianhaohao@pashanhoo.com committed
26 27
        label: "数据类型",
        width: '80',
xiaomiao committed
28
        render: (h, scope) => {
tianhaohao@pashanhoo.com committed
29
          return (
xiaomiao committed
30
            <div>
tianhaohao@pashanhoo.com committed
31 32 33 34 35 36 37 38
              <span v-show={scope.row.sjlx == 1} >系统数据</span>
              <span v-show={scope.row.sjlx == 2} >存量数据</span>
              <span v-show={scope.row.sjlx == 3} >补录数据</span>
            </div>
          )
        }
      },
      {
任超 committed
39
        label: "权属状态",
40
        width: '80',
任超 committed
41
        render: (h, scope) => {
吴蕾 committed
42 43
          let obj = {
            "1": {
44 45
              text: '现势',
              color: '#4BD863'
吴蕾 committed
46 47
            },
            "2": {
48 49
              text: '历史',
              color: '#AAAAAA'
吴蕾 committed
50
            },
51
            "0": {
吴蕾 committed
52
              text: '临时',
xiaomiao committed
53
              color: '#ff5100'
吴蕾 committed
54 55
            }
          }
任超 committed
56 57
          let textName = obj[scope.row.qszt]?.text || ''
          let colorName = obj[scope.row.qszt]?.color || ''
任超 committed
58 59
          return (
            <div>
60
              <span style={`color:${colorName}`}>&nbsp;</span>
任超 committed
61
              <span >{textName}</span>
任超 committed
62 63 64
            </div>
          )
        }
65 66 67
      },
      {
        label: "业务号",
68
        prop: "ywh",
1  
renchao@pashanhoo.com committed
69
        minWidth: '100',
70 71
      },
      {
72 73
        prop: "qllxmc",
        label: "权利类型",
tianhaohao@pashanhoo.com committed
74
        width: '140',
75
      },
76 77
      {
        prop: "djlxmc",
78
        label: "登记类型",
79
        width: '90',
80
      },
81
      {
任超 committed
82 83
        prop: "bdcdyh",
        label: "不动产单元号",
84
        minWidth: '150',
任超 committed
85 86 87
      },
      {
        label: "不动产权证号",
88 89 90 91 92 93 94 95
        minWidth: '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>
          )
        }
96 97
      },
      {
吴蕾 committed
98
        prop: "qlrmc",
99
        label: "权利人",
100
        minWidth: '150',
101 102
      },
      {
吴蕾 committed
103
        prop: "ywrmc",
104
        label: "义务人",
105
        minWidth: '150',
106 107
      },
      {
108
        prop: "qlmjmc",
109
        label: "面积",
110 111 112 113 114 115
        width: '130'
      },
      {
        prop: "qlxzmc",
        label: "权利性质",
        minWidth: '130'
116 117
      },
      {
118
        prop: "qlytmc",
119 120
        label: "用途",
        minWidth: '130'
121 122
      },
      {
123 124 125 126 127
        prop: "qdjgmc",
        label: "取得价格",
        minWidth: '80'
      },
      {
128
        label: "坐落",
129 130 131 132 133 134 135 136
        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>
          )
        }
137
      },
138
      {
139
        label: '操作',
xiaomiao committed
140
        width: '160',
141
        fixed: 'right',
142
        render: (h, scope) => {
任超 committed
143 144
          return (
            <div>
田浩浩 committed
145
              <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openDialog(scope.row) }}>登记薄</el-button>
146
              <el-button type="text" icon="el-icon-film" onClick={(event) => { event.stopPropagation(); vm.handleLpbClick(scope.row) }}>楼盘表</el-button>
任超 committed
147 148
            </div>
          )
149 150 151 152 153 154 155 156 157 158 159
        }
      }
    ]
  }

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