Blame view

src/views/ywbl/ywsq/ywsq.vue 5.15 KB
赵千 committed
1
<template>
任超 committed
2 3
  <div class="ywsq">
    <div class="ywsq-left">
任超 committed
4 5 6 7
      <p v-for="(item, index) in leftList" @click="handleleftTitle(index)" :key="index"
        :class="{ 'active': n == index }">{{ item }}</p>
      <el-collapse disabled v-model="activeNames">
        <el-collapse-item title="业务申请" name="1">
任超 committed
8
          <ul class="item-list">
任超 committed
9 10
            <li v-for="(obj, key) in list" :key="key" @click="handleList(list, obj)" :class="obj.check ? 'active' : ''">
              {{ obj.name }}</li>
任超 committed
11
          </ul>
任超 committed
12 13
        </el-collapse-item>
      </el-collapse>
任超 committed
14 15 16 17
    </div>

    <!-- right -->
    <div class="ywsq-right">
任超 committed
18
      <div class="right-type el-card box-card is-always-shadow" v-if="n == -1">
任超 committed
19 20
        <div class="right-title">登记类型</div>
        <ul class="type-content">
任超 committed
21
          <li :class="item.select ? 'active' : ''" @click="handleTypeSelect(item)" v-for="(item, index) in typeList"
任超 committed
22
            :key="index">{{ item.name }}</li>
任超 committed
23 24 25
        </ul>
      </div>
      <div class="right-situation el-card box-card is-always-shadow">
任超 committed
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
        <div v-if="n >= 0">
          <div class="right-title">业务列表</div>
          <ul>
            <li v-for="(item, index) in busList" :key="index">
              <p>
                {{ item.name }}
              </p>
              <p :class="item.select ? 'active' : ''" @click="handleCollection(item)">
                <i class="el-icon-star-off" :class="item.select ? 'active' : ''"></i>
              </p>
            </li>
          </ul>
        </div>
        <div v-if="n == -1">
          <div class="right-title">登记情形</div>
任超 committed
41 42 43
          <ul class="registration">
            <li v-for="(item, index) in busList" @click="handleSelect(item)" :class="item.cselect ? 'cactive' : ''"
              :key="index">
任超 committed
44 45 46
              <p>
                {{ item.name }}
              </p>
任超 committed
47
              <p :class="item.select ? 'active' : ''" @click.stop="handleCollection(item)">
任超 committed
48 49 50 51 52 53 54
                <i class="el-icon-star-off" :class="item.select ? 'active' : ''"></i>
              </p>
            </li>
          </ul>
        </div>
      </div>
      <div class="submit-button">
1  
liangyifan committed
55
        <el-button type="primary" @click="btnClick()">选择不动产信息</el-button>
任超 committed
56 57
      </div>
    </div>
liangyifan committed
58
    <choiceDialog v-model="isDialog" />
任超 committed
59
  </div>
赵千 committed
60 61
</template>
<script>
任超 committed
62
import choiceDialog from "./components/choiceDialog.vue"
赵千 committed
63 64 65
export default {
  data () {
    return {
任超 committed
66 67
      n: -1,
      activeNames: ['1'],
任超 committed
68
      leftList: [
任超 committed
69 70 71 72 73 74
        '常办业务', '一并申请', '补申请',
      ],
      list: [
        {
          name: '国有建设用地使用权',
        },
任超 committed
75
        {
任超 committed
76
          name: '国有建设用地使用权/房屋所有权',
任超 committed
77 78
        },
        {
任超 committed
79
          name: '宅基地使用权',
任超 committed
80 81
        },
        {
任超 committed
82 83 84 85 86 87 88
          name: '宅基地使用权/房屋所有权',
        },
        {
          name: '集体建设用地使用权',
        },
        {
          name: '集体建设用地使用权/房屋所有权',
任超 committed
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
        }
      ],
      typeList: [
        {
          name: '首次登记',
        },
        {
          name: '转移登记',
        },
        {
          name: '变更登记',
        },
        {
          name: '注销登记'
        }
      ],
      situationList: [
        {
          name: '国有建设用地使用权 || 首次登记+ 以出让方式取得'
        },
        {
          name: '国有建设用地使用权 || 首次登记+ 以出让方式取得'
        },
        {
          name: '国有建设用地使用权 || 首次登记+ 以出让方式取得'
        },
        {
          name: '国有建设用地使用权 || 首次登记+ 以出让方式取得'
        },
        {
          name: '国有建设用地使用权 || 首次登记+ 以出让方式取得'
        }
任超 committed
121 122 123 124
      ],
      busList: [
        {
          name: '国有建设用地使用权 || 首次登记+ 以出让方式取得',
任超 committed
125 126
          select: false,
          cselect: false,
任超 committed
127 128 129
        },
        {
          name: '国有建设用地使用权 || 首次登记+ 以出让方式取得',
任超 committed
130 131
          select: false,
          cselect: false,
任超 committed
132 133 134
        },
        {
          name: '国有建设用地使用权 || 首次登记+ 以出让方式取得',
任超 committed
135 136
          select: false,
          cselect: false,
任超 committed
137
        }
liangyifan committed
138 139
      ],
      isDialog: false,
任超 committed
140 141
    }
  },
liangyifan committed
142 143 144
  components: {
    choiceDialog
  },
任超 committed
145
  methods: {
任超 committed
146 147 148 149 150 151
    handleleftTitle (index) {
      this.n = index
      this.list.forEach(item => {
        if (item.check) item.check = false
      })
    },
任超 committed
152 153
    handleList (list, obj) {
      list.forEach(item => {
任超 committed
154
        if (item.check) item.check = false
任超 committed
155
      })
任超 committed
156
      this.n = -1
任超 committed
157
      this.$set(obj, 'check', true)
任超 committed
158
    },
任超 committed
159 160 161
    handleCollection (item) {
      item.select = !item.select
    },
任超 committed
162 163 164 165 166 167
    handleSelect (item) {
      this.busList.forEach(item => {
        item.cselect = false
      })
      item.cselect = !item.cselect
    },
任超 committed
168 169 170 171 172
    handleTypeSelect (item) {
      this.typeList.forEach(item => {
        if (item.select) item.select = false
      })
      this.$set(item, 'select', true)
liangyifan committed
173 174
    },
    // 选择不动产信息
任超 committed
175
    btnClick () {
liangyifan committed
176 177
      this.isDialog = true
    },
赵千 committed
178 179 180 181
  }
}
</script>
<style scoped lang='scss'>
任超 committed
182
@import "~@/styles/mixin.scss";
任超 committed
183
@import './ywsq.scss';
赵千 committed
184
</style>