Blame view

src/views/zhcx/djbcx/djbcxdata.js 3.3 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 53 54 55
              text: '临时',
              color: '#FE9400'
            }
          }
任超 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 68
      },
      {
        prop: "ywh",
        label: "业务号",
69
        width: '110',
xiaomiao committed
70 71 72
        // render: (h, scope) => {
        //   return <el-button type="text" onClick={() => { vm.ywhClick(scope.row) }}>{scope.row.ywh}</el-button>
        // }
73 74
      },
      {
75 76
        prop: "qllxmc",
        label: "权利类型",
tianhaohao@pashanhoo.com committed
77
        width: '140',
78
      },
79 80
      {
        prop: "djlxmc",
81
        label: "登记类型",
82
        width: '90',
83
      },
84
      {
任超 committed
85 86
        prop: "bdcdyh",
        label: "不动产单元号",
87
        minWidth: '150'
任超 committed
88 89 90 91
      },
      {
        prop: "bdcqzh",
        label: "不动产权证号",
92
        minWidth: '150'
93 94
      },
      {
吴蕾 committed
95
        prop: "qlrmc",
96
        label: "权利人",
97
        minWidth: '150',
98 99
      },
      {
吴蕾 committed
100
        prop: "ywrmc",
101
        label: "义务人",
102
        minWidth: '150',
103 104
      },
      {
105
        prop: "mjmc",
106
        label: "面积",
107 108 109 110 111 112
        width: '130'
      },
      {
        prop: "qlxzmc",
        label: "权利性质",
        minWidth: '130'
113 114
      },
      {
115
        prop: "ytmc",
116 117
        label: "用途",
        minWidth: '130'
118 119
      },
      {
120 121 122 123 124
        prop: "qdjgmc",
        label: "取得价格",
        minWidth: '80'
      },
      {
125 126
        prop: "zl",
        label: "坐落",
127
        minWidth: '150'
128
      },
129
      {
130
        label: '操作',
131
        width: '130',
132
        fixed: "right",
133
        render: (h, scope) => {
任超 committed
134 135
          return (
            <div>
田浩浩 committed
136
              <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openDialog(scope.row) }}>登记薄</el-button>
任超 committed
137
              <el-button type="text" icon="el-icon-film" onClick={() => { vm.handleLpbClick(scope.row) }}>楼盘表</el-button>
任超 committed
138 139
            </div>
          )
140 141 142 143 144 145 146 147 148 149 150
        }
      }
    ]
  }

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