b505b0cb by 田浩浩

修改对应的菜单内容

1 parent 48eefff8
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
6 <el-form :model="queryForm" ref="queryForm" label-width="100px"> 6 <el-form :model="queryForm" ref="queryForm" label-width="100px">
7 <el-row> 7 <el-row>
8 <el-col :span="5"> 8 <el-col :span="5">
9 <el-form-item label="权利类型22222"> 9 <el-form-item label="权利类型">
10 <el-select 10 <el-select
11 v-model="queryForm.qllx" 11 v-model="queryForm.qllx"
12 filterable 12 filterable
......
1 <template>
2 <div class="ywsq" id="ywsq">
3 <div class="ywsq-left">
4 <p v-for="(item, index) in leftList" @click="handleleftTitle(index)" :key="index"
5 :class="{ 'active': n == index }">{{ item }}</p>
6 <el-collapse disabled v-model="activeNames">
7 <el-collapse-item title="业务申请" name="1">
8 <ul class="item-list">
9 <li v-for="(obj, key) in list" :key="key" @click="handleList(list, obj)" :class="obj.check ? 'active' : ''">
10 {{ obj.nodename }}</li>
11 </ul>
12 </el-collapse-item>
13 </el-collapse>
14 </div>
15
16 <!-- right -->
17 <div class="ywsq-right">
18 <div class="right-type el-card box-card is-always-shadow" v-if="n == -1">
19 <div class="right-title">登记类型</div>
20 <ul class="type-content">
21 <li :class="item.cselect ? 'cactive' : ''" @dblclick="handleDjqxItem(item)" @click="handleDjlxSelect(item)"
22 v-for="(item, index) in djlxList" :key="index">
23 <p>
24 {{ item.nodename }}
25 </p>
26 <p v-if="item.sffqlc == 1" :class="item.userCollect == 1 ? 'active' : ''"
27 @click.stop="handleCollection(item)">
28 <i class="el-icon-star-off" :class="item.userCollect == 1 ? 'active' : ''"></i>
29 </p>
30 </li>
31 </ul>
32 </div>
33 <div class="right-situation el-card box-card is-always-shadow">
34 <div class="right-title">{{ obj[n] }}</div>
35 <ul>
36 <li v-for="(item, index) in itemList" :key="index" @dblclick="handleSelectItem(item, itemList)"
37 @click="handleSelectYw(item, itemList)" :class="item.cselect ? 'cactive' : ''">
38 <p v-if="n == 0">
39 {{ item.djywmc }}<br>
40 {{ item.nodename }}
41 </p>
42 <dt v-else>{{ item.nodename }}</dt>
43
44 <p :class="item.userCollect == 1 ? 'active' : ''" @click.stop="handleCollection(item)">
45 <i class="el-icon-star-off" :class="item.userCollect == 1 ? 'active' : ''"></i>
46 </p>
47 </li>
48 </ul>
49 </div>
50 <div class="submit-button">
51 <el-button type="primary" :disabled="btnDisabled" @click="bthSelectClick">选择不动产</el-button>
52 </div>
53 </div>
54 <fqsqDialog v-model="isDialog" :djqxObj="djqxObj" :bsmSqyw="bsmSqyw" :djywbm="djywbm" />
55 </div>
56 </template>
57 <script>
58 import fqsqDialog from "./slectBdc.vue"
59 import { getCollectBiz, getleftMenu, getNextNode, addCollectBiz, deleteCollectBiz } from "@/api/ywbl"
60 export default {
61 data () {
62 return {
63 n: 0,
64 activeNames: ['1'],
65 leftList: [
66 '常办业务', '一并申请', '登记簿补录',
67 ],
68 // 左侧列表
69 list: [],
70 djlxList: [],
71
72 itemList: [],
73 ywList: [],
74 djqxList: [],
75 obj: {
76 '0': '常办业务列表',
77 '-1': '登记情形'
78 },
79 isDialog: false,
80 btnDisabled: true,
81 djywbm: '',
82 djqxObj: {},
83 bsmSqyw: ''
84 }
85 },
86 components: {
87 fqsqDialog
88 },
89 created () {
90 this.getDataList()
91 },
92 methods: {
93 getDataList () {
94 getCollectBiz().then(res => {
95 let { result } = res
96 this.ywList = result
97 this.ywList.forEach(item => {
98 this.$set(item, 'cselect', false)
99 item.userCollect = 1
100 })
101 if (this.n == 0) {
102 this.itemList = this.ywList
103 }
104 })
105 getleftMenu().then(res => {
106 let { result } = res
107 this.list = result
108 })
109 },
110 handleleftTitle (index) {
111 this.n = index
112 let obj = {
113 '0': this.ywList
114 }
115 this.itemList = obj[this.n]
116 this.list.forEach(item => {
117 if (item.check) item.check = false
118 })
119
120 },
121 // 业务-登记情形选择
122 handleSelectYw (item, list) {
123 list.forEach(item => {
124 this.$set(item, 'cselect', false)
125 })
126 item.cselect = true;
127 this.djqxObj = item;
128 if (item.sffqlc == '1') {
129 this.btnDisabled = false
130 this.bsmSqyw = item.bsmSqyw
131 this.djywbm = item.djywbm
132 }
133 },
134 handleList (list, obj) {
135 this.btnDisabled = true
136 list.forEach(item => {
137 if (item.check) item.check = false
138 })
139 this.n = -1
140 this.$set(obj, 'check', true)
141 this.getNextNode(obj.bsmSqyw)
142 this.djqxList = []
143 this.djlxList = []
144 this.itemList = []
145 },
146 // 获取下个节点类型
147 getNextNode (bsmSqyw, type = true) {
148 getNextNode(bsmSqyw).then(res => {
149 if (res.result.djqx) this.djqxList = res.result.djqx
150 if (res.result.djlx) this.djlxList = res.result.djlx
151 if (type) {
152 this.djqxList.forEach(item => {
153 this.$set(item, 'cselect', false)
154 })
155 this.djlxList.forEach(item => {
156 this.$set(item, 'cselect', false)
157 })
158 }
159 this.itemList = this.djqxList
160 })
161 },
162 handleCollection (item) {
163 let that = this
164 if (item.userCollect == '2') {
165 addCollectBiz(item.bsmSqyw).then(res => {
166 if (res.code == 200) {
167 item.userCollect = '1'
168 that.$message({
169 message: '收藏成功!',
170 type: 'success'
171 })
172 that.getDataList()
173 }
174 })
175 } else {
176 this.$confirm('此操作将取消收藏, 是否继续?', '提示', {
177 confirmButtonText: '确定',
178 cancelButtonText: '取消',
179 type: 'warning'
180 }).then(() => {
181 deleteCollectBiz(item.bsmSqyw).then(res => {
182 if (res.code == 200) {
183 item.userCollect = '2'
184 that.$message({
185 message: '取消收藏成功!',
186 type: 'success'
187 })
188 that.getDataList()
189 }
190 })
191 }).catch(() => {
192 this.$message({
193 type: 'info',
194 message: '已取消收藏'
195 })
196 })
197 }
198 },
199 handleSelect (item) {
200 this.busList.forEach(item => {
201 item.cselect = false
202 })
203 item.cselect = !item.cselect
204 },
205 // 登记类型
206 handleDjlxSelect (item) {
207 this.djlxList.forEach(item => {
208 item.cselect = false
209 })
210 this.btnDisabled = true
211 item.cselect = true;
212 this.djqxObj = item;
213 if (item.sffqlc == '1') {
214 this.btnDisabled = false
215 this.bsmSqyw = item.bsmSqyw
216 this.djywbm = item.djywbm;
217 } else {
218 this.getNextNode(item.bsmSqyw, false)
219 }
220 this.djqxList = []
221 },
222 handleDjqxItem (item) {
223 this.djlxList.forEach(item => {
224 item.cselect = false
225 })
226 console.log(item);
227 if (item.sffqlc == 1) {
228 this.djywbm = item.djywbm
229 this.bsmSqyw = item.bsmSqyw
230 item.cselect = true
231 this.isDialog = true
232 this.btnDisabled = true
233 }
234 },
235 handleSelectItem (item, list) {
236 this.handleSelectYw(item, list)
237 this.isDialog = true
238 },
239 // 选择不动产信息
240 bthSelectClick () {
241 this.isDialog = true
242 },
243 loadView (view) {
244 return r => require.ensure([], () => r(require(`./components/${view}/${view}.vue`)))
245 }
246 }
247 }
248 </script>
249 <style scoped lang='scss'>
250 @import "~@/styles/mixin.scss";
251 @import './ywsq.scss';
252
253 /deep/.el-collapse-item__content {
254 padding-bottom: 0;
255 }
256
257 /deep/.el-collapse-item__wrap {
258 border-bottom: none;
259 }
260 </style>
...\ No newline at end of file ...\ No newline at end of file
...@@ -29,6 +29,24 @@ class data extends filter { ...@@ -29,6 +29,24 @@ class data extends filter {
29 { 29 {
30 prop: "status", 30 prop: "status",
31 label: "状态", 31 label: "状态",
32 render: (h, scope) => {
33 return (
34 <div>
35 {/* <a v-on:click="doSomething"></a> */}
36 <a style='color:#3498db;' v-show={scope.row.djblzt == 1} >正在办理</a>
37 <span v-show={scope.row.zjgcdyzt == 1}>,在建工程抵押</span>
38 <span v-show={scope.row.ycfzt == 1}>,已预查封</span>
39 <span v-show={scope.row.ycfzt == 1}>,已预查封</span>
40 <span v-show={scope.row.cfzt == 1}>,已查封</span>
41 <span v-show={scope.row.diyizt == 1}>,已地役</span>
42 <span v-show={scope.row.yyzt == 1}>,异议中</span>
43 <span v-show={scope.row.xzzt == 1}>,已限制</span>
44 <span v-show={scope.row.ygmmzt == 1}>,已预告买卖</span>
45 <span v-show={scope.row.ygdyzt == 1}>,已预告抵押</span>
46 <span v-show={scope.row.dyzt == 1}>,已抵押</span>
47 </div>
48 )
49 }
32 }, 50 },
33 { 51 {
34 prop: "qllxmc", 52 prop: "qllxmc",
...@@ -43,19 +61,31 @@ class data extends filter { ...@@ -43,19 +61,31 @@ class data extends filter {
43 label: "不动产权证号", 61 label: "不动产权证号",
44 }, 62 },
45 { 63 {
64 prop: "gyqk",
65 label: "共有情况",
66 },
67 {
46 prop: "qlrmc", 68 prop: "qlrmc",
47 label: "权利人", 69 label: "权利人",
48 }, 70 },
49 { 71 {
50 prop: "zjhm", 72 prop: "qlrzjhm",
51 label: "证件号", 73 label: "权利人证件号",
74 },
75 {
76 prop: "ywrmc",
77 label: "义务人",
78 },
79 {
80 prop: "ywrzjhm",
81 label: "义务人证件号",
52 }, 82 },
53 { 83 {
54 prop: "mj", 84 prop: "mj",
55 label: "面积", 85 label: "面积",
56 }, 86 },
57 { 87 {
58 prop: "yt", 88 prop: "ytmc",
59 label: "用途", 89 label: "用途",
60 }, 90 },
61 { 91 {
......