style:同一权利人分割或者合并国有建设用地模块功能的完善
Showing
3 changed files
with
48 additions
and
63 deletions
1 | <!-- | 1 | <!-- |
2 | * @Description: workFrame左侧菜单列表-普通 | 2 | * @Description: workFrame左侧菜单列表-普通 |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-10-17 09:49:08 | 4 | * @LastEditTime: 2023-10-17 09:54:06 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> | 7 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> |
... | @@ -187,7 +187,6 @@ | ... | @@ -187,7 +187,6 @@ |
187 | if (res.code == 200) { | 187 | if (res.code == 200) { |
188 | that.$message.success("删除成功"); | 188 | that.$message.success("删除成功"); |
189 | that.loadBdcdylist() | 189 | that.loadBdcdylist() |
190 | debugger | ||
191 | if (that.activeIndex != '-1') { | 190 | if (that.activeIndex != '-1') { |
192 | that.activeIndex = '0' | 191 | that.activeIndex = '0' |
193 | sessionStorage.setItem('keyPath', '0'); | 192 | sessionStorage.setItem('keyPath', '0'); | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: workFrame左侧菜单列表-分割 | 2 | * @Description: workFrame左侧菜单列表-分割 |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-10-17 09:30:20 | 4 | * @LastEditTime: 2023-10-17 10:08:16 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> | 7 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> |
8 | <el-menu :default-active="activeIndex" @select="batchUnitClick" class="title-batch" v-if="showBatch"> | 8 | <el-menu :default-active="activeBatchIndex" @select="batchUnitClick" class="title-batch" v-if="showBatch"> |
9 | <el-menu-item index="-1" key="-1" class="menus"> | 9 | <el-menu-item index="-1" key="-1" class="menus"> |
10 | <div>{{ batchButtonName }}</div> | 10 | <div>{{ batchButtonName }}</div> |
11 | </el-menu-item> | 11 | </el-menu-item> |
... | @@ -23,7 +23,7 @@ | ... | @@ -23,7 +23,7 @@ |
23 | <p class="title-detail">{{ item.zl }}</p> | 23 | <p class="title-detail">{{ item.zl }}</p> |
24 | </el-tooltip> | 24 | </el-tooltip> |
25 | </div> | 25 | </div> |
26 | <i class="el-icon-delete" v-if="aroundUnitData.length > 1" @click.stop="handleDel(item)"></i> | 26 | <i class="el-icon-delete" v-if="aroundUnitData.length > 1" @click.stop="handleDel(item,'around')"></i> |
27 | </el-menu-item> | 27 | </el-menu-item> |
28 | </el-menu> | 28 | </el-menu> |
29 | <!-- 变更后单元 --> | 29 | <!-- 变更后单元 --> |
... | @@ -39,7 +39,7 @@ | ... | @@ -39,7 +39,7 @@ |
39 | <p class="title-detail">{{ item.zl }}</p> | 39 | <p class="title-detail">{{ item.zl }}</p> |
40 | </el-tooltip> | 40 | </el-tooltip> |
41 | </div> | 41 | </div> |
42 | <i class="el-icon-delete" v-if="afterUnitData.length > 1" @click.stop="handleDel(item)"></i> | 42 | <i class="el-icon-delete" v-if="afterUnitData.length > 1" @click.stop="handleDel(item, 'after')"></i> |
43 | </el-menu-item> | 43 | </el-menu-item> |
44 | </el-menu> | 44 | </el-menu> |
45 | </div> | 45 | </div> |
... | @@ -65,6 +65,8 @@ | ... | @@ -65,6 +65,8 @@ |
65 | bsmBusiness: this.$route.query.bsmBusiness, | 65 | bsmBusiness: this.$route.query.bsmBusiness, |
66 | bestepid: this.$route.query.bestepid, | 66 | bestepid: this.$route.query.bestepid, |
67 | type: this.$route.query.type, | 67 | type: this.$route.query.type, |
68 | // 批量操作 | ||
69 | activeBatchIndex: '0', | ||
68 | // 变更前单元默认选中 | 70 | // 变更前单元默认选中 |
69 | activeIndex: '0', | 71 | activeIndex: '0', |
70 | // 变更后单元默认选中 | 72 | // 变更后单元默认选中 |
... | @@ -176,11 +178,12 @@ | ... | @@ -176,11 +178,12 @@ |
176 | } | 178 | } |
177 | }, | 179 | }, |
178 | /** | 180 | /** |
179 | * @description: 删除左侧列表 | 181 | * @description: 删除左侧列表-变更前 |
180 | * @param {*} item | 182 | * @param {*} item |
181 | * @author: renchao | 183 | * @author: renchao |
182 | */ | 184 | */ |
183 | handleDel (item) { | 185 | handleDel (item, type) { |
186 | let that = this | ||
184 | this.$confirm("确定要删除吗, 是否继续?", "提示", { | 187 | this.$confirm("确定要删除吗, 是否继续?", "提示", { |
185 | confirmButtonText: "确定", | 188 | confirmButtonText: "确定", |
186 | cancelButtonText: "取消", | 189 | cancelButtonText: "取消", |
... | @@ -192,8 +195,17 @@ | ... | @@ -192,8 +195,17 @@ |
192 | formdata.append("bsmSlsq", this.bsmSlsq); | 195 | formdata.append("bsmSlsq", this.bsmSlsq); |
193 | deleteFlow(formdata).then((res) => { | 196 | deleteFlow(formdata).then((res) => { |
194 | if (res.code == 200) { | 197 | if (res.code == 200) { |
195 | this.$message.success("删除成功"); | 198 | that.$message.success("删除成功"); |
196 | this.$parent.updateDialog(); | 199 | that.loadBdcdylist() |
200 | if (type == 'around') { | ||
201 | that.activeIndex = '0' | ||
202 | sessionStorage.setItem('keyPath', '0'); | ||
203 | } else { | ||
204 | that.activeIndex = '0' | ||
205 | sessionStorage.setItem('keyPath', '0'); | ||
206 | } | ||
207 | |||
208 | that.$parent.updateDialog(); | ||
197 | } else { | 209 | } else { |
198 | this.$message.error(res.message); | 210 | this.$message.error(res.message); |
199 | } | 211 | } |
... | @@ -212,16 +224,19 @@ | ... | @@ -212,16 +224,19 @@ |
212 | */ | 224 | */ |
213 | batchUnitClick () { | 225 | batchUnitClick () { |
214 | window.currentSelect = {} | 226 | window.currentSelect = {} |
215 | this.currentSelectProps.batchOperation = true; | 227 | this.currentSelectProps.batchOperation = true |
216 | // this.activeIndex = "-1"; | 228 | this.activeIndex = "-1" |
217 | this.$parent.stepForm(0); | 229 | this.activeHIndex = "-1" |
230 | this.activeBatchIndex = "0" | ||
231 | this.$parent.stepForm(0) | ||
218 | }, | 232 | }, |
219 | /** | 233 | /** |
220 | * @description: 申请单元点击事件 | 234 | * @description: 申请单元点击事件-变更前 |
221 | * @param {*} index | 235 | * @param {*} index |
222 | * @author: renchao | 236 | * @author: renchao |
223 | */ | 237 | */ |
224 | unitClick (index) { | 238 | unitClick (index) { |
239 | this.activeBatchIndex = "-1" | ||
225 | window.currentSelect = this.aroundUnitData[index] | 240 | window.currentSelect = this.aroundUnitData[index] |
226 | this.activeHIndex = '-1' | 241 | this.activeHIndex = '-1' |
227 | this.currentSelectProps = this.aroundUnitData[index]; | 242 | this.currentSelectProps = this.aroundUnitData[index]; |
... | @@ -239,11 +254,13 @@ | ... | @@ -239,11 +254,13 @@ |
239 | * @author: renchao | 254 | * @author: renchao |
240 | */ | 255 | */ |
241 | handleAfterunitClick (index) { | 256 | handleAfterunitClick (index) { |
257 | this.activeBatchIndex = "-1" | ||
242 | window.currentSelect = this.afterUnitData[index] | 258 | window.currentSelect = this.afterUnitData[index] |
243 | this.activeIndex = '-1' | 259 | this.activeIndex = '-1' |
244 | this.currentSelectProps = this.afterUnitData[index]; | 260 | this.currentSelectProps = this.afterUnitData[index]; |
245 | this.currentSelectProps.batchOperation = false; | 261 | this.currentSelectProps.batchOperation = false; |
246 | this.activeHIndex = index.toString(); | 262 | this.activeHIndex = index.toString(); |
263 | sessionStorage.setItem('keyPath', this.activeHIndex); | ||
247 | //选中表单传递数据 | 264 | //选中表单传递数据 |
248 | this.$emit('getCurrentSelectProps', this.currentSelectProps); | 265 | this.$emit('getCurrentSelectProps', this.currentSelectProps); |
249 | this.$parent.stepForm(index); | 266 | this.$parent.stepForm(index); | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-08-02 09:56:41 | 4 | * @LastEditTime: 2023-10-17 10:42:49 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
... | @@ -59,7 +59,7 @@ | ... | @@ -59,7 +59,7 @@ |
59 | label="选择" | 59 | label="选择" |
60 | width="50"> | 60 | width="50"> |
61 | <template slot-scope="scope"> | 61 | <template slot-scope="scope"> |
62 | <el-radio v-model="radioVal" :label="scope.row.bhqkbsm">{{''}}</el-radio> | 62 | <el-radio v-model="radioVal" @change="handleSelect" @click.native.stop :label="scope.row.bdcdyh">{{''}}</el-radio> |
63 | </template> | 63 | </template> |
64 | </el-table-column> | 64 | </el-table-column> |
65 | <el-table-column | 65 | <el-table-column |
... | @@ -142,7 +142,7 @@ | ... | @@ -142,7 +142,7 @@ |
142 | import store from '@/store/index.js' | 142 | import store from '@/store/index.js' |
143 | import table from "@/utils/mixin/table"; | 143 | import table from "@/utils/mixin/table"; |
144 | import { ywPopupDialog } from "@/utils/popup.js"; | 144 | import { ywPopupDialog } from "@/utils/popup.js"; |
145 | import { datas, datastwo, sendThis } from "../javascript/selectJsydsyqhbfg.js"; | 145 | import { datastwo, sendThis } from "../javascript/selectJsydsyqhbfg.js"; |
146 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 146 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
147 | import { selectJsydQlxxSplitMergeBefore, selectZdjbxxSplitMergeLast } from "@/api/ywsq.js"; | 147 | import { selectJsydQlxxSplitMergeBefore, selectZdjbxxSplitMergeLast } from "@/api/ywsq.js"; |
148 | import { startBusinessFlow } from "@/api/workFlow.js"; | 148 | import { startBusinessFlow } from "@/api/workFlow.js"; |
... | @@ -158,19 +158,6 @@ | ... | @@ -158,19 +158,6 @@ |
158 | queryForm: defaultParameters.defaultParameters(), | 158 | queryForm: defaultParameters.defaultParameters(), |
159 | // 表格数据 | 159 | // 表格数据 |
160 | tableData: { | 160 | tableData: { |
161 | columns: [{ | ||
162 | label: '选择', | ||
163 | width: '50px', | ||
164 | render: (h, scope) => { | ||
165 | return ( | ||
166 | <div class="orgColumn"> | ||
167 | <el-radio v-model={this.radioVal} label={scope.row.bhqkbsm}> | ||
168 |   | ||
169 | </el-radio> | ||
170 | </div> | ||
171 | ) | ||
172 | } | ||
173 | },].concat(datas.columns()), | ||
174 | data: [], | 161 | data: [], |
175 | columns1: datastwo.columns1(), | 162 | columns1: datastwo.columns1(), |
176 | datastwo: [] | 163 | datastwo: [] |
... | @@ -179,31 +166,22 @@ | ... | @@ -179,31 +166,22 @@ |
179 | radioVal: "" | 166 | radioVal: "" |
180 | } | 167 | } |
181 | }, | 168 | }, |
182 | watch: { | ||
183 | radioVal: { | ||
184 | deep: true, | ||
185 | handler (newVal, oldVal) { | ||
186 | this.close() | ||
187 | } | ||
188 | } | ||
189 | }, | ||
190 | mounted () { | 169 | mounted () { |
191 | sendThis(this) | 170 | sendThis(this) |
192 | }, | 171 | }, |
193 | methods: { | 172 | methods: { |
194 | // 单选事件 | ||
195 | /** | 173 | /** |
196 | * @description: 单选事件 | 174 | * @description: 单选事件 |
197 | * @author: renchao | 175 | * @author: renchao |
198 | */ | 176 | */ |
199 | close () { | 177 | handleSelect () { |
200 | this.tableData.data.forEach(item => { | 178 | this.tableData.data.forEach(item => { |
201 | if (this.radioVal == item.bhqkbsm) { | 179 | if (this.radioVal == item.bdcdyh) { |
202 | item.bglx = '1' | 180 | item.bglx = '1' |
203 | this.bdcdysz[0] = item | 181 | this.bdcdysz[0] = item |
182 | this.queryForm.bhqkbsm = item.bhqkbsm | ||
204 | } | 183 | } |
205 | }) | 184 | }) |
206 | this.queryForm.bhqkbsm = this.radioVal | ||
207 | selectZdjbxxSplitMergeLast({ ...this.queryForm }).then((res) => { | 185 | selectZdjbxxSplitMergeLast({ ...this.queryForm }).then((res) => { |
208 | this.$endLoading(); | 186 | this.$endLoading(); |
209 | if (res.code === 200) { | 187 | if (res.code === 200) { |
... | @@ -302,29 +280,20 @@ | ... | @@ -302,29 +280,20 @@ |
302 | * @author: renchao | 280 | * @author: renchao |
303 | */ | 281 | */ |
304 | handleRowClick (row) { | 282 | handleRowClick (row) { |
305 | // 如果状态是1,那就是单选 | 283 | this.queryForm.bhqkbsm = row.bhqkbsm |
306 | if (this.sqywInfo.sqywdylx == "1") { | 284 | this.radioVal = row.bdcdyh |
307 | const bdcdysz = this.bdcdysz | 285 | selectZdjbxxSplitMergeLast({ ...this.queryForm }).then((res) => { |
308 | this.$refs.table.clearSelection() | 286 | this.$endLoading(); |
309 | if (bdcdysz.length == 1) { | 287 | if (res.code === 200) { |
310 | bdcdysz.forEach(item => { | 288 | this.tableData.datastwo = res.result |
311 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | 289 | this.tableData.datastwo.forEach(item => { |
312 | if (item == row) { | 290 | item.bsm = item.zdbsm; |
313 | this.$refs.table.toggleRowSelection(row, false); | 291 | item.bglx = '2' |
314 | } | ||
315 | // 不然就让当前的一行勾选 | ||
316 | else { | ||
317 | this.$refs.table.toggleRowSelection(row, true); | ||
318 | } | ||
319 | }) | 292 | }) |
293 | this.bdcdysz = [row, ...this.tableData.datastwo] | ||
320 | } | 294 | } |
321 | else { | 295 | }) |
322 | this.$refs.table.toggleRowSelection(row, true); | 296 | } |
323 | } | ||
324 | } else { | ||
325 | this.$refs.table.toggleRowSelection(row); | ||
326 | } | ||
327 | }, | ||
328 | } | 297 | } |
329 | } | 298 | } |
330 | </script> | 299 | </script> | ... | ... |
-
Please register or sign in to post a comment