style:林地使用权 || 首次登记
Showing
2 changed files
with
51 additions
and
43 deletions
1 | <!-- | 1 | <!-- |
2 | * @Description: 受理信息 | 2 | * @Description: 受理信息 |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-11-15 15:47:02 | 4 | * @LastEditTime: 2024-01-18 16:19:51 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="slxx"> | 7 | <div class="slxx"> |
... | @@ -132,8 +132,8 @@ | ... | @@ -132,8 +132,8 @@ |
132 | <el-col :span="5"> | 132 | <el-col :span="5"> |
133 | <el-form-item label="发证方式:" :disabled="!viewEdit"> | 133 | <el-form-item label="发证方式:" :disabled="!viewEdit"> |
134 | <el-radio-group v-model="ruleForm.slsq.fzfs"> | 134 | <el-radio-group v-model="ruleForm.slsq.fzfs"> |
135 | <el-radio label="1">小证</el-radio> | ||
136 | <el-radio label="2">大证</el-radio> | 135 | <el-radio label="2">大证</el-radio> |
136 | <el-radio label="1">小证</el-radio> | ||
137 | </el-radio-group> | 137 | </el-radio-group> |
138 | </el-form-item> | 138 | </el-form-item> |
139 | </el-col> | 139 | </el-col> | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-11-16 14:12:35 | 4 | * @LastEditTime: 2024-01-19 13:35:33 |
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> |
12 | <el-col :span="6"> | 12 | <el-col :span="6"> |
13 | <el-form-item label="宗地代码"> | 13 | <el-form-item label="宗地代码"> |
14 | <el-input placeholder="请输入宗地代码" maxlength="19" v-model="queryForm.zddm" clearable class="width100"> | 14 | <el-input placeholder="请输入宗地代码" maxlength="19" v-model="queryForm.zddm" clearable class="width100"> |
... | @@ -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 | /** |
... | @@ -157,49 +192,22 @@ | ... | @@ -157,49 +192,22 @@ |
157 | } | 192 | } |
158 | }, | 193 | }, |
159 | /** | 194 | /** |
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 | 195 | * @description: handleRowClick |
178 | * @param {*} row | 196 | * @param {*} row |
179 | * @author: renchao | 197 | * @author: renchao |
180 | */ | 198 | */ |
199 | handleChange () { | ||
200 | let arr = this.tableData.data.filter(item => item.bdcdyid == this.radioVal) | ||
201 | this.bdcdysz = arr | ||
202 | }, | ||
181 | handleRowClick (row) { | 203 | handleRowClick (row) { |
182 | // 如果状态是1,那就是单选 | 204 | // 如果状态是1,那就是单选 |
205 | let refs = 'table'; | ||
183 | if (this.sqywInfo.sqywdylx == "1") { | 206 | if (this.sqywInfo.sqywdylx == "1") { |
184 | const bdcdysz = this.bdcdysz | 207 | this.bdcdysz = [row] |
185 | this.$refs.table.clearSelection() | 208 | 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 { | 209 | } else { |
202 | this.$refs.table.toggleRowSelection(row); | 210 | this.$refs[refs].toggleRowSelection(row) |
203 | } | 211 | } |
204 | }, | 212 | }, |
205 | /** | 213 | /** | ... | ... |
-
Please register or sign in to post a comment