Blame view

src/views/ywbl/ywsq/javascript/diyaq.js 2.75 KB
1
/*
2
 * @Description:
3
 * @Autor: renchao
4
 * @LastEditTime: 2023-08-29 13:04:44
5
 */
jiaozeping@pashanhoo.com committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19
import filter from '@/utils/filter.js'
let vm = null

const sendThis = (_this) => {
  vm = _this
}
class data extends filter {
  constructor() {
    super()
  }
  columns () {
    return [
      {
        type: 'selection',
任超 committed
20 21
        label: '全选',
        selectable: this.selected
jiaozeping@pashanhoo.com committed
22 23 24 25
      },
      {
        label: '序号',
        type: 'index',
任超 committed
26 27 28 29 30 31 32 33
        width: '50',
        render: (h, scope) => {
          return (
            <div>
              {(vm.pageData.currentPage - 1) * vm.pageData.pageSize + scope.$index + 1}
            </div>
          )
        }
jiaozeping@pashanhoo.com committed
34 35 36 37
      },
      {
        prop: "status",
        label: "状态",
38
        minWidth: '120',
39 40 41
        render: (h, scope) => {
          return (
            <div>
42 43
              <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>
44 45 46
            </div>
          )
        }
jiaozeping@pashanhoo.com committed
47 48
      },
      {
田浩浩 committed
49
        label: "不动产证明号",
50
        width: '150',
51 52 53 54 55 56 57
        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>
          )
        }
jiaozeping@pashanhoo.com committed
58 59 60 61
      },
      {
        prop: "bdcdyh",
        label: "不动产单元号",
62
        minWidth: '150'
jiaozeping@pashanhoo.com committed
63 64
      },
      {
田浩浩 committed
65 66
        prop: "dyfs",
        label: "抵押方式",
蔡俊立 committed
67 68 69 70 71 72 73 74
        render: (h, scope) => {
          switch (scope.row.dyfs) {
            case '1':
              return <span>一般抵押</span>
            case '2':
              return <span>最高额抵押</span>
          }
        }
田浩浩 committed
75 76
      },
      {
蔡俊立 committed
77
        prop: "qlrmc",
田浩浩 committed
78
        label: "抵押权人",
jiaozeping@pashanhoo.com committed
79 80
      },
      {
81 82
        prop: "qlrzjhm",
        label: "抵押权人证件号",
83
        minWidth: '150'
84 85
      },
      {
蔡俊立 committed
86
        prop: "ywrmc",
田浩浩 committed
87
        label: "抵押人",
jiaozeping@pashanhoo.com committed
88 89
      },
      {
90 91 92 93
        prop: "ywrzjhm",
        label: "抵押人证件号",
      },
      {
田浩浩 committed
94 95
        prop: "dyje",
        label: "抵押金额(万元)",
jiaozeping@pashanhoo.com committed
96 97
      },
      {
田浩浩 committed
98 99 100 101
        prop: "dymj",
        label: "抵押面积",
      },
      {
蔡俊立 committed
102
        prop: "dyqx",
田浩浩 committed
103
        label: "债务履行期限",
jiaozeping@pashanhoo.com committed
104 105 106 107
      },
      {
        prop: "zl",
        label: "坐落",
108
        minWidth: '130'
109 110 111
      },
      {
        label: '操作',
112
        width: '100',
113 114 115 116 117 118 119
        render: (h, scope) => {
          return (
            <div>
              <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openDialog(scope.row) }}>登记薄</el-button>
            </div>
          )
        }
田浩浩 committed
120
      }
jiaozeping@pashanhoo.com committed
121 122 123 124 125 126 127 128
    ]
  }


}
let datas = new data()
export {
  datas,
任超 committed
129
  sendThis
jiaozeping@pashanhoo.com committed
130
}