Blame view

src/views/sthj/dbrzcx/data/index.js 5.62 KB
任超 committed
1 2 3 4
let vm = null
const sendThis = (_this) => {
  vm = _this
}
任超 committed
5 6 7
class data {
  columns () {
    return [
任超 committed
8
      {
田浩浩 committed
9 10
        prop: "state",
        label: "状态",
任超 committed
11 12 13 14 15 16 17 18 19 20
        width: '120',
        render: (h, scope) => {
          return (
            <div>
              <span class='adopt' v-show={scope.row.state == 3}>上报失败</span>
              <span class='adopt' v-show={scope.row.state == 2}>上报成功</span>
              <span class='warehousing' v-show={scope.row.state == 1}>接入上报异常</span>
            </div>
          )
        }
田浩浩 committed
21 22 23 24
      },
      {
        prop: "UPLOADTIME",
        label: "汇交日期",
任超 committed
25
        width: '140',
田浩浩 committed
26 27
      },
      {
蔡俊立 committed
28
        prop: "AREANAME",
任超 committed
29
        label: "区域名称",
任超 committed
30 31
      },
      {
田浩浩 committed
32
        prop: "ACCESSDATE",
任超 committed
33
        label: "日期",
任超 committed
34
        width: '140',
任超 committed
35
      },
田浩浩 committed
36
      {
任超 committed
37
        prop: "type",
蔡俊立 committed
38 39 40 41 42 43 44 45 46
        label: "类别",
        render: (h, scope) => {
          return (
            <div class={'difference'}>
              <p>{'登簿量'}</p>
              <p>{'接入量'}</p>
            </div>
          )
        },
任超 committed
47 48 49 50 51
      },
      {
        label: "总量",
        render: (h, scope) => {
          return (
蔡俊立 committed
52 53 54
            <div class={scope.row.totalnum === scope.row.totalnum ? '' : 'difference'}>
              <p>{scope.row.registerTotalnum}</p>
              <p>{scope.row.accessTotalnum}</p>
任超 committed
55 56 57 58 59
            </div>
          )
        },
      },
      {
蔡俊立 committed
60
        label: "业务类型数量",
任超 committed
61
        width: '120',
蔡俊立 committed
62 63
        render: (h, scope) => {
          return (
田浩浩 committed
64 65 66
            <div >
              <p>{scope.row.registerBusinesstypecount}</p>
              <p>{scope.row.accessBusinesstypecount}</p>
蔡俊立 committed
67 68 69
            </div>
          )
        },
任超 committed
70 71
      },
      {
任超 committed
72 73 74
        label: "首次登记",
        render: (h, scope) => {
          return (
蔡俊立 committed
75 76 77
            <div class={scope.row.firstreg === scope.row.firstreg ? '' : 'difference'}>
              <p>{scope.row.registerFirstreg}</p>
              <p>{scope.row.accessFirstreg}</p>
任超 committed
78 79 80 81 82 83 84 85
            </div>
          )
        },
      },
      {
        label: "转移登记",
        render: (h, scope) => {
          return (
蔡俊立 committed
86 87 88
            <div class={scope.row.transferreg === scope.row.transferreg ? '' : 'difference'}>
              <p>{scope.row.registerTransferreg}</p>
              <p>{scope.row.accessTransferreg}</p>
任超 committed
89 90 91 92 93 94 95 96
            </div>
          )
        },
      },
      {
        label: "变更登记",
        render: (h, scope) => {
          return (
蔡俊立 committed
97 98 99
            <div class={scope.row.changereg === scope.row.changereg ? '' : 'difference'}>
              <p>{scope.row.registerChangereg}</p>
              <p>{scope.row.accessChangereg}</p>
任超 committed
100 101 102 103 104 105 106 107
            </div>
          )
        },
      },
      {
        label: "注销登记",
        render: (h, scope) => {
          return (
蔡俊立 committed
108 109 110
            <div class={scope.row.logoutreg === scope.row.logoutreg ? '' : 'difference'}>
              <p>{scope.row.registerLogoutreg}</p>
              <p>{scope.row.accessLogoutreg}</p>
任超 committed
111 112 113 114 115 116 117 118
            </div>
          )
        },
      },
      {
        label: "更正登记",
        render: (h, scope) => {
          return (
蔡俊立 committed
119 120 121
            <div class={scope.row.rivisereg === scope.row.rivisereg ? '' : 'difference'}>
              <p>{scope.row.registerRivisereg}</p>
              <p>{scope.row.accessRivisereg}</p>
任超 committed
122 123 124 125 126 127 128 129 130 131
            </div>
          )
        },
      },

      // 异议登记
      {
        label: "异议登记",
        render: (h, scope) => {
          return (
蔡俊立 committed
132 133 134
            <div class={scope.row.dissentingreg === scope.row.dissentingreg ? '' : 'difference'}>
              <p>{scope.row.registerDissentingreg}</p>
              <p>{scope.row.accessDissentingreg}</p>
任超 committed
135 136 137 138 139 140 141 142 143
            </div>
          )
        },
      },
      // 预告登记
      {
        label: "预告登记",
        render: (h, scope) => {
          return (
蔡俊立 committed
144 145 146
            <div class={scope.row.advancereg === scope.row.advancereg ? '' : 'difference'}>
              <p>{scope.row.registerAdvancereg}</p>
              <p>{scope.row.accessAdvancereg}</p>
任超 committed
147 148 149 150 151 152 153 154 155
            </div>
          )
        },
      },
      // 查封登记
      {
        label: "查封登记",
        render: (h, scope) => {
          return (
蔡俊立 committed
156 157 158
            <div class={scope.row.seizereg === scope.row.seizereg ? '' : 'difference'}>
              <p>{scope.row.registerSeizereg}</p>
              <p>{scope.row.accessSeizereg}</p>
任超 committed
159 160 161 162 163 164 165 166 167
            </div>
          )
        },
      },
      // 地役权登记
      {
        label: "地役权登记",
        render: (h, scope) => {
          return (
蔡俊立 committed
168 169 170
            <div class={scope.row.easementreg === scope.row.easementreg ? '' : 'difference'}>
              <p>{scope.row.registerEasementreg}</p>
              <p>{scope.row.accessEasementreg}</p>
任超 committed
171 172 173 174 175 176 177 178 179
            </div>
          )
        },
      },
      // 抵押权登记
      {
        label: "抵押权登记",
        render: (h, scope) => {
          return (
蔡俊立 committed
180 181 182
            <div class={scope.row.mortgagereg === scope.row.mortgagereg ? '' : 'difference'}>
              <p>{scope.row.registerMortgagereg}</p>
              <p>{scope.row.accessMortgagereg}</p>
任超 committed
183 184 185
            </div>
          )
        },
1  
任超 committed
186 187 188 189 190 191 192 193 194
      },
      {
        label: "操作",
        width: "80",
        fixed: "right",
        render: (h, scope) => {
          return (
            <div>
              <el-button
任超 committed
195 196
                type="text"
                style="color:#67C23A"
1  
任超 committed
197
                onClick={() => {
任超 committed
198
                  vm.handleEdit(scope.row);
1  
任超 committed
199 200
                }}
              >
任超 committed
201 202
                修改
                <i class="el-icon-d-arrow-right"></i>
1  
任超 committed
203 204 205 206
              </el-button>
            </div>
          );
        },
任超 committed
207 208 209 210
      }
    ]
  }
}
任超 committed
211 212 213 214 215 216
let datas = new data()
export {
  datas,
  sendThis
}