林地使用权/森林、林木使用权首次登记
Showing
4 changed files
with
92 additions
and
89 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2024-01-19 16:25:18 | 4 | * @LastEditTime: 2024-01-25 14:45:25 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
| ... | @@ -180,9 +180,6 @@ | ... | @@ -180,9 +180,6 @@ |
| 180 | * @author: renchao | 180 | * @author: renchao |
| 181 | */ | 181 | */ |
| 182 | handleSelectionChange (val) { | 182 | handleSelectionChange (val) { |
| 183 | val.forEach((item, index) => { | ||
| 184 | item.bsm = item.zdbsm; | ||
| 185 | }); | ||
| 186 | if (this.sqywInfo.sqywdylx == "1") { | 183 | if (this.sqywInfo.sqywdylx == "1") { |
| 187 | if (val.length > 1) { | 184 | if (val.length > 1) { |
| 188 | this.bdcdysz = [...val[val.length - 1]]; | 185 | this.bdcdysz = [...val[val.length - 1]]; | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-11-16 14:13:30 | 4 | * @LastEditTime: 2024-01-25 14:45:28 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
| 8 | <!-- 表单部分 森林林木 --> | 8 | <!-- 表单部分 森林林木 --> |
| 9 | <div class="from-clues-header"> | 9 | <div class="from-clues-header"> |
| 10 | <el-form :model="queryForm" ref="queryForm"> | 10 | <el-form :model="queryForm" ref="queryForm" label-width="100px"> |
| 11 | <el-row :gutter="20"> | 11 | <el-row :gutter="20"> |
| 12 | <el-col :span="6"> | 12 | <el-col :span="6"> |
| 13 | <el-form-item label="宗地代码"> | 13 | <el-form-item label="宗地代码"> |
| ... | @@ -27,10 +27,22 @@ | ... | @@ -27,10 +27,22 @@ |
| 27 | </el-input> | 27 | </el-input> |
| 28 | </el-form-item> | 28 | </el-form-item> |
| 29 | </el-col> | 29 | </el-col> |
| 30 | <el-col :span="6" class="btnColRight"> | 30 | <el-col :span="6"> |
| 31 | <el-form-item label="权利人"> | ||
| 32 | <el-input placeholder="请输入权利人" v-model.trim="queryForm.qlr" clearable class="width100"> | ||
| 33 | </el-input> | ||
| 34 | </el-form-item> | ||
| 35 | </el-col> | ||
| 36 | <el-col :span="6"> | ||
| 37 | <el-form-item label="证件号"> | ||
| 38 | <el-input placeholder="请输入证件号" v-model.trim="queryForm.zjh" clearable class="width100"> | ||
| 39 | </el-input> | ||
| 40 | </el-form-item> | ||
| 41 | </el-col> | ||
| 42 | <el-col :span="18" class="btnColRight"> | ||
| 31 | <el-form-item> | 43 | <el-form-item> |
| 32 | <!-- <el-button type="primary" @click="resetForm(true)">重置</el-button> --> | ||
| 33 | <el-button type="primary" @click="handleSearch">查询</el-button> | 44 | <el-button type="primary" @click="handleSearch">查询</el-button> |
| 45 | <el-button type="primary" @click="resetForm(true)">重置</el-button> | ||
| 34 | </el-form-item> | 46 | </el-form-item> |
| 35 | </el-col> | 47 | </el-col> |
| 36 | </el-row> | 48 | </el-row> |
| ... | @@ -39,7 +51,7 @@ | ... | @@ -39,7 +51,7 @@ |
| 39 | <!-- 表格 --> | 51 | <!-- 表格 --> |
| 40 | <div class="from-clues-content loadingtext"> | 52 | <div class="from-clues-content loadingtext"> |
| 41 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 53 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
| 42 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @select="select" | 54 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
| 43 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 55 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
| 44 | :data="tableData.data"> | 56 | :data="tableData.data"> |
| 45 | </lb-table> | 57 | </lb-table> |
| ... | @@ -68,6 +80,7 @@ | ... | @@ -68,6 +80,7 @@ |
| 68 | }, | 80 | }, |
| 69 | data () { | 81 | data () { |
| 70 | return { | 82 | return { |
| 83 | radioVal: '', | ||
| 71 | loading: false, | 84 | loading: false, |
| 72 | queryForm: defaultParameters.defaultParameters(), | 85 | queryForm: defaultParameters.defaultParameters(), |
| 73 | tableData: { | 86 | tableData: { |
| ... | @@ -80,6 +93,28 @@ | ... | @@ -80,6 +93,28 @@ |
| 80 | }, | 93 | }, |
| 81 | mounted () { | 94 | mounted () { |
| 82 | sendThis(this); | 95 | sendThis(this); |
| 96 | if (this.sqywInfo.sqywdylx == "1") { | ||
| 97 | this.tableData.columns = [{ | ||
| 98 | label: '选择', | ||
| 99 | width: '50px', | ||
| 100 | render: (h, scope) => { | ||
| 101 | return ( | ||
| 102 | <div class="orgColumn"> | ||
| 103 | <el-radio onChange={() => { this.handleChange(scope.row) }} v-model={this.radioVal} label={scope.row.bdcdyid}> | ||
| 104 |   | ||
| 105 | </el-radio> | ||
| 106 | </div> | ||
| 107 | ) | ||
| 108 | } | ||
| 109 | }].concat(datas.columns()) | ||
| 110 | } else { | ||
| 111 | this.tableData.columns = | ||
| 112 | [{ | ||
| 113 | type: 'selection', | ||
| 114 | label: '全选', | ||
| 115 | width: '50' | ||
| 116 | }].concat(datas.columns()) | ||
| 117 | } | ||
| 83 | }, | 118 | }, |
| 84 | methods: { | 119 | methods: { |
| 85 | /** | 120 | /** |
| ... | @@ -96,9 +131,8 @@ | ... | @@ -96,9 +131,8 @@ |
| 96 | this.tableData.total = total; | 131 | this.tableData.total = total; |
| 97 | this.tableData.data = records; | 132 | this.tableData.data = records; |
| 98 | } | 133 | } |
| 99 | }); | 134 | }) |
| 100 | }, | 135 | }, |
| 101 | |||
| 102 | /** | 136 | /** |
| 103 | * @description: submitForm | 137 | * @description: submitForm |
| 104 | * @author: renchao | 138 | * @author: renchao |
| ... | @@ -157,49 +191,22 @@ | ... | @@ -157,49 +191,22 @@ |
| 157 | } | 191 | } |
| 158 | }, | 192 | }, |
| 159 | /** | 193 | /** |
| 160 | * @description: select | ||
| 161 | * @param {*} selection | ||
| 162 | * @param {*} row | ||
| 163 | * @author: renchao | ||
| 164 | */ | ||
| 165 | select (selection, row) { | ||
| 166 | if (this.sqywInfo.sqywdylx == "1") { | ||
| 167 | // 清除 所有勾选项 | ||
| 168 | this.$refs.table.clearSelection() | ||
| 169 | // 当表格数据都没有被勾选的时候 就返回 | ||
| 170 | // 主要用于将当前勾选的表格状态清除 | ||
| 171 | if (selection.length == 0) return | ||
| 172 | this.$refs.table.toggleRowSelection(row, true); | ||
| 173 | } | ||
| 174 | }, | ||
| 175 | |||
| 176 | /** | ||
| 177 | * @description: handleRowClick | 194 | * @description: handleRowClick |
| 178 | * @param {*} row | 195 | * @param {*} row |
| 179 | * @author: renchao | 196 | * @author: renchao |
| 180 | */ | 197 | */ |
| 198 | handleChange () { | ||
| 199 | let arr = this.tableData.data.filter(item => item.bdcdyid == this.radioVal) | ||
| 200 | this.bdcdysz = arr | ||
| 201 | }, | ||
| 181 | handleRowClick (row) { | 202 | handleRowClick (row) { |
| 182 | // 如果状态是1,那就是单选 | 203 | // 如果状态是1,那就是单选 |
| 204 | let refs = 'table'; | ||
| 183 | if (this.sqywInfo.sqywdylx == "1") { | 205 | if (this.sqywInfo.sqywdylx == "1") { |
| 184 | const bdcdysz = this.bdcdysz | 206 | this.bdcdysz = [row] |
| 185 | this.$refs.table.clearSelection() | 207 | this.radioVal = row.bdcdyid |
| 186 | if (bdcdysz.length == 1) { | ||
| 187 | bdcdysz.forEach(item => { | ||
| 188 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | ||
| 189 | if (item == row) { | ||
| 190 | this.$refs.table.toggleRowSelection(row, false); | ||
| 191 | } | ||
| 192 | // 不然就让当前的一行勾选 | ||
| 193 | else { | ||
| 194 | this.$refs.table.toggleRowSelection(row, true); | ||
| 195 | } | ||
| 196 | }) | ||
| 197 | } | ||
| 198 | else { | ||
| 199 | this.$refs.table.toggleRowSelection(row, true); | ||
| 200 | } | ||
| 201 | } else { | 208 | } else { |
| 202 | this.$refs.table.toggleRowSelection(row); | 209 | this.$refs[refs].toggleRowSelection(row) |
| 203 | } | 210 | } |
| 204 | }, | 211 | }, |
| 205 | /** | 212 | /** | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2024-01-17 17:26:18 | 4 | * @LastEditTime: 2024-01-25 14:37:38 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <!-- 主体权利信息查询 --> | 7 | <!-- 主体权利信息查询 --> |
| ... | @@ -52,7 +52,7 @@ | ... | @@ -52,7 +52,7 @@ |
| 52 | <!-- 表格 --> | 52 | <!-- 表格 --> |
| 53 | <div class="from-clues-content loadingtext"> | 53 | <div class="from-clues-content loadingtext"> |
| 54 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" | 54 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" |
| 55 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @select="select" | 55 | :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" |
| 56 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" | 56 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" |
| 57 | :data="tableData.data"> | 57 | :data="tableData.data"> |
| 58 | </lb-table> | 58 | </lb-table> |
| ... | @@ -80,6 +80,7 @@ | ... | @@ -80,6 +80,7 @@ |
| 80 | }, | 80 | }, |
| 81 | data () { | 81 | data () { |
| 82 | return { | 82 | return { |
| 83 | radioVal: '', | ||
| 83 | loading: false, | 84 | loading: false, |
| 84 | queryForm: defaultParameters.defaultParameters(), | 85 | queryForm: defaultParameters.defaultParameters(), |
| 85 | tableData: { | 86 | tableData: { |
| ... | @@ -87,11 +88,33 @@ | ... | @@ -87,11 +88,33 @@ |
| 87 | columns: datas.columns(), | 88 | columns: datas.columns(), |
| 88 | data: [], | 89 | data: [], |
| 89 | }, | 90 | }, |
| 90 | bdcdysz: [], | 91 | bdcdysz: [] |
| 91 | }; | 92 | } |
| 92 | }, | 93 | }, |
| 93 | mounted () { | 94 | mounted () { |
| 94 | sendThis(this); | 95 | sendThis(this); |
| 96 | if (this.sqywInfo.sqywdylx == "1") { | ||
| 97 | this.tableData.columns = [{ | ||
| 98 | label: '选择', | ||
| 99 | width: '50px', | ||
| 100 | render: (h, scope) => { | ||
| 101 | return ( | ||
| 102 | <div class="orgColumn"> | ||
| 103 | <el-radio onChange={() => { this.handleChange(scope.row) }} v-model={this.radioVal} label={scope.row.bdcdyid}> | ||
| 104 |   | ||
| 105 | </el-radio> | ||
| 106 | </div> | ||
| 107 | ) | ||
| 108 | } | ||
| 109 | }].concat(datas.columns()) | ||
| 110 | } else { | ||
| 111 | this.tableData.columns = | ||
| 112 | [{ | ||
| 113 | type: 'selection', | ||
| 114 | label: '全选', | ||
| 115 | width: '50' | ||
| 116 | }].concat(datas.columns()) | ||
| 117 | } | ||
| 95 | }, | 118 | }, |
| 96 | methods: { | 119 | methods: { |
| 97 | /** | 120 | /** |
| ... | @@ -164,21 +187,10 @@ | ... | @@ -164,21 +187,10 @@ |
| 164 | this.bdcdysz = val; | 187 | this.bdcdysz = val; |
| 165 | } | 188 | } |
| 166 | }, | 189 | }, |
| 167 | /** | 190 | handleChange () { |
| 168 | * @description: select | 191 | let arr = this.tableData.data.filter(item => item.bdcdyid == this.radioVal) |
| 169 | * @param {*} selection | 192 | arr[0].bsm = arr[0].zdbsm |
| 170 | * @param {*} row | 193 | this.bdcdysz = arr |
| 171 | * @author: renchao | ||
| 172 | */ | ||
| 173 | select (selection, row) { | ||
| 174 | if (this.sqywInfo.sqywdylx == "1") { | ||
| 175 | // 清除 所有勾选项 | ||
| 176 | this.$refs.table.clearSelection() | ||
| 177 | // 当表格数据都没有被勾选的时候 就返回 | ||
| 178 | // 主要用于将当前勾选的表格状态清除 | ||
| 179 | if (selection.length == 0) return | ||
| 180 | this.$refs.table.toggleRowSelection(row, true); | ||
| 181 | } | ||
| 182 | }, | 194 | }, |
| 183 | /** | 195 | /** |
| 184 | * @description: handleRowClick | 196 | * @description: handleRowClick |
| ... | @@ -187,26 +199,13 @@ | ... | @@ -187,26 +199,13 @@ |
| 187 | */ | 199 | */ |
| 188 | handleRowClick (row) { | 200 | handleRowClick (row) { |
| 189 | // 如果状态是1,那就是单选 | 201 | // 如果状态是1,那就是单选 |
| 202 | let refs = 'table'; | ||
| 190 | if (this.sqywInfo.sqywdylx == "1") { | 203 | if (this.sqywInfo.sqywdylx == "1") { |
| 191 | const bdcdysz = this.bdcdysz | 204 | row.bsm = row.zdbsm |
| 192 | this.$refs.table.clearSelection() | 205 | this.bdcdysz = [row] |
| 193 | if (bdcdysz.length == 1) { | 206 | this.radioVal = row.bdcdyid |
| 194 | bdcdysz.forEach(item => { | ||
| 195 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | ||
| 196 | if (item == row) { | ||
| 197 | this.$refs.table.toggleRowSelection(row, false); | ||
| 198 | } | ||
| 199 | // 不然就让当前的一行勾选 | ||
| 200 | else { | ||
| 201 | this.$refs.table.toggleRowSelection(row, true); | ||
| 202 | } | ||
| 203 | }) | ||
| 204 | } | ||
| 205 | else { | ||
| 206 | this.$refs.table.toggleRowSelection(row, true); | ||
| 207 | } | ||
| 208 | } else { | 207 | } else { |
| 209 | this.$refs.table.toggleRowSelection(row); | 208 | this.$refs[refs].toggleRowSelection(row) |
| 210 | } | 209 | } |
| 211 | }, | 210 | }, |
| 212 | /** | 211 | /** | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-10-31 08:56:52 | 4 | * @LastEditTime: 2024-01-25 14:38:58 |
| 5 | */ | 5 | */ |
| 6 | import filter from '@/utils/filter.js' | 6 | import filter from '@/utils/filter.js' |
| 7 | let vm = null | 7 | let vm = null |
| ... | @@ -15,11 +15,11 @@ class data extends filter { | ... | @@ -15,11 +15,11 @@ class data extends filter { |
| 15 | } | 15 | } |
| 16 | columns () { | 16 | columns () { |
| 17 | return [ | 17 | return [ |
| 18 | { | 18 | // { |
| 19 | type: 'selection', | 19 | // type: 'selection', |
| 20 | label: '全选', | 20 | // label: '全选', |
| 21 | selectable: this.selected | 21 | // selectable: this.selected |
| 22 | }, | 22 | // }, |
| 23 | { | 23 | { |
| 24 | label: '序号', | 24 | label: '序号', |
| 25 | type: 'index', | 25 | type: 'index', | ... | ... |
-
Please register or sign in to post a comment