Blame view

src/views/zhcx/djbcx/djbcxdata.js 3.15 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 68
      },
      {
        prop: "ywh",
        label: "业务号",
69
        width: '110',
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 88
      },
      {
        prop: "bdcqzh",
        label: "不动产权证号",
89
        minWidth: '150'
90 91
      },
      {
吴蕾 committed
92
        prop: "qlrmc",
93
        label: "权利人",
94
        minWidth: '150',
95 96
      },
      {
吴蕾 committed
97
        prop: "ywrmc",
98
        label: "义务人",
99
        minWidth: '150',
100 101
      },
      {
102
        prop: "qlmjmc",
103
        label: "面积",
104 105 106 107 108 109
        width: '130'
      },
      {
        prop: "qlxzmc",
        label: "权利性质",
        minWidth: '130'
110 111
      },
      {
112
        prop: "qlytmc",
113 114
        label: "用途",
        minWidth: '130'
115 116
      },
      {
117 118 119 120 121
        prop: "qdjgmc",
        label: "取得价格",
        minWidth: '80'
      },
      {
122 123
        prop: "zl",
        label: "坐落",
124
        minWidth: '150'
125
      },
126
      {
127
        label: '操作',
xiaomiao committed
128
        width: '160',
129
        fixed: 'right',
130
        render: (h, scope) => {
任超 committed
131 132
          return (
            <div>
田浩浩 committed
133
              <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openDialog(scope.row) }}>登记薄</el-button>
任超 committed
134
              <el-button type="text" icon="el-icon-film" onClick={() => { vm.handleLpbClick(scope.row) }}>楼盘表</el-button>
任超 committed
135 136
            </div>
          )
137 138 139 140 141 142 143 144 145 146 147
        }
      }
    ]
  }

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