增加注释
Showing
19 changed files
with
455 additions
and
8 deletions
... | @@ -168,6 +168,10 @@ | ... | @@ -168,6 +168,10 @@ |
168 | }, | 168 | }, |
169 | methods: { | 169 | methods: { |
170 | // 列表渲染接口 | 170 | // 列表渲染接口 |
171 | /** | ||
172 | * @description: 列表渲染接口 | ||
173 | * @author: renchao | ||
174 | */ | ||
171 | queryClick () { | 175 | queryClick () { |
172 | this.$startLoading(); | 176 | this.$startLoading(); |
173 | this.searchForm.ywh = this.queryForm.ywh; | 177 | this.searchForm.ywh = this.queryForm.ywh; |
... | @@ -191,11 +195,21 @@ | ... | @@ -191,11 +195,21 @@ |
191 | } | 195 | } |
192 | }); | 196 | }); |
193 | }, | 197 | }, |
198 | /** | ||
199 | * @description: handleSort | ||
200 | * @param {*} val | ||
201 | * @author: renchao | ||
202 | */ | ||
194 | handleSort (val) { | 203 | handleSort (val) { |
195 | this.queryForm.sortField = val.prop; | 204 | this.queryForm.sortField = val.prop; |
196 | this.queryForm.sortOrder = val.order == "ascending" ? "asc" : "desc"; | 205 | this.queryForm.sortOrder = val.order == "ascending" ? "asc" : "desc"; |
197 | this.queryClick(); | 206 | this.queryClick(); |
198 | }, | 207 | }, |
208 | /** | ||
209 | * @description: ywhClick | ||
210 | * @param {*} item | ||
211 | * @author: renchao | ||
212 | */ | ||
199 | ywhClick (item) { | 213 | ywhClick (item) { |
200 | //有任务权限 | 214 | //有任务权限 |
201 | if (item.sjlx == "3") { | 215 | if (item.sjlx == "3") { | ... | ... |
... | @@ -104,6 +104,10 @@ | ... | @@ -104,6 +104,10 @@ |
104 | sendThis(this); | 104 | sendThis(this); |
105 | }, | 105 | }, |
106 | methods: { | 106 | methods: { |
107 | /** | ||
108 | * @description: queryClick | ||
109 | * @author: renchao | ||
110 | */ | ||
107 | queryClick () { | 111 | queryClick () { |
108 | this.$startLoading(); | 112 | this.$startLoading(); |
109 | selectCfdj({ ...this.queryForm, ...this.pageData }).then((res) => { | 113 | selectCfdj({ ...this.queryForm, ...this.pageData }).then((res) => { |
... | @@ -115,6 +119,10 @@ | ... | @@ -115,6 +119,10 @@ |
115 | } | 119 | } |
116 | }); | 120 | }); |
117 | }, | 121 | }, |
122 | /** | ||
123 | * @description: submitForm | ||
124 | * @author: renchao | ||
125 | */ | ||
118 | submitForm () { | 126 | submitForm () { |
119 | if (this.bdcdysz.length == 0) { | 127 | if (this.bdcdysz.length == 0) { |
120 | this.$message.error("请至少选择一条数据"); | 128 | this.$message.error("请至少选择一条数据"); |
... | @@ -165,9 +173,20 @@ | ... | @@ -165,9 +173,20 @@ |
165 | }); | 173 | }); |
166 | } | 174 | } |
167 | }, | 175 | }, |
176 | /** | ||
177 | * @description: handleSelectionChange | ||
178 | * @param {*} val | ||
179 | * @author: renchao | ||
180 | */ | ||
168 | handleSelectionChange (val) { | 181 | handleSelectionChange (val) { |
169 | this.bdcdysz = val; | 182 | this.bdcdysz = val; |
170 | }, | 183 | }, |
184 | /** | ||
185 | * @description: select | ||
186 | * @param {*} selection | ||
187 | * @param {*} row | ||
188 | * @author: renchao | ||
189 | */ | ||
171 | select (selection, row) { | 190 | select (selection, row) { |
172 | if (this.sqywInfo.sqywdylx == "1") { | 191 | if (this.sqywInfo.sqywdylx == "1") { |
173 | // 清除 所有勾选项 | 192 | // 清除 所有勾选项 |
... | @@ -178,6 +197,11 @@ | ... | @@ -178,6 +197,11 @@ |
178 | this.$refs.table.toggleRowSelection(row, true); | 197 | this.$refs.table.toggleRowSelection(row, true); |
179 | } | 198 | } |
180 | }, | 199 | }, |
200 | /** | ||
201 | * @description: handleRowClick | ||
202 | * @param {*} row | ||
203 | * @author: renchao | ||
204 | */ | ||
181 | handleRowClick (row) { | 205 | handleRowClick (row) { |
182 | // 如果状态是1,那就是单选 | 206 | // 如果状态是1,那就是单选 |
183 | if (this.sqywInfo.sqywdylx == "1") { | 207 | if (this.sqywInfo.sqywdylx == "1") { | ... | ... |
... | @@ -90,6 +90,10 @@ | ... | @@ -90,6 +90,10 @@ |
90 | sendThis(this); | 90 | sendThis(this); |
91 | }, | 91 | }, |
92 | methods: { | 92 | methods: { |
93 | /** | ||
94 | * @description: queryClick | ||
95 | * @author: renchao | ||
96 | */ | ||
93 | queryClick () { | 97 | queryClick () { |
94 | this.$startLoading(); | 98 | this.$startLoading(); |
95 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | 99 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
... | @@ -102,6 +106,10 @@ | ... | @@ -102,6 +106,10 @@ |
102 | } | 106 | } |
103 | }); | 107 | }); |
104 | }, | 108 | }, |
109 | /** | ||
110 | * @description: submitFormClick | ||
111 | * @author: renchao | ||
112 | */ | ||
105 | submitFormClick () { | 113 | submitFormClick () { |
106 | if (this.bdcdysz.length == 0) { | 114 | if (this.bdcdysz.length == 0) { |
107 | this.$message.error("请至少选择一条数据"); | 115 | this.$message.error("请至少选择一条数据"); |
... | @@ -130,9 +138,20 @@ | ... | @@ -130,9 +138,20 @@ |
130 | } | 138 | } |
131 | }) | 139 | }) |
132 | }, | 140 | }, |
141 | /** | ||
142 | * @description: handleSelectionChange | ||
143 | * @param {*} val | ||
144 | * @author: renchao | ||
145 | */ | ||
133 | handleSelectionChange (val) { | 146 | handleSelectionChange (val) { |
134 | this.bdcdysz = val; | 147 | this.bdcdysz = val; |
135 | }, | 148 | }, |
149 | /** | ||
150 | * @description: select | ||
151 | * @param {*} selection | ||
152 | * @param {*} row | ||
153 | * @author: renchao | ||
154 | */ | ||
136 | select (selection, row) { | 155 | select (selection, row) { |
137 | if (this.sqywInfo.sqywdylx == "1") { | 156 | if (this.sqywInfo.sqywdylx == "1") { |
138 | // 清除 所有勾选项 | 157 | // 清除 所有勾选项 |
... | @@ -143,6 +162,11 @@ | ... | @@ -143,6 +162,11 @@ |
143 | this.$refs.table.toggleRowSelection(row, true); | 162 | this.$refs.table.toggleRowSelection(row, true); |
144 | } | 163 | } |
145 | }, | 164 | }, |
165 | /** | ||
166 | * @description: handleRowClick | ||
167 | * @param {*} row | ||
168 | * @author: renchao | ||
169 | */ | ||
146 | handleRowClick (row) { | 170 | handleRowClick (row) { |
147 | // 如果状态是1,那就是单选 | 171 | // 如果状态是1,那就是单选 |
148 | if (this.sqywInfo.sqywdylx == "1") { | 172 | if (this.sqywInfo.sqywdylx == "1") { | ... | ... |
... | @@ -177,6 +177,10 @@ | ... | @@ -177,6 +177,10 @@ |
177 | sendThis(this) | 177 | sendThis(this) |
178 | }, | 178 | }, |
179 | methods: { | 179 | methods: { |
180 | /** | ||
181 | * @description: queryClick | ||
182 | * @author: renchao | ||
183 | */ | ||
180 | queryClick () { | 184 | queryClick () { |
181 | this.$startLoading(); | 185 | this.$startLoading(); |
182 | if (!this.isJump) { | 186 | if (!this.isJump) { |
... | @@ -217,11 +221,19 @@ | ... | @@ -217,11 +221,19 @@ |
217 | }) | 221 | }) |
218 | } | 222 | } |
219 | }, | 223 | }, |
224 | /** | ||
225 | * @description: handleTabClick | ||
226 | * @author: renchao | ||
227 | */ | ||
220 | handleTabClick () { | 228 | handleTabClick () { |
221 | this.bdcdysz = [], | 229 | this.bdcdysz = [], |
222 | this.pageData.currentPage = 1; | 230 | this.pageData.currentPage = 1; |
223 | this.queryClick(); | 231 | this.queryClick(); |
224 | }, | 232 | }, |
233 | /** | ||
234 | * @description: submitForm | ||
235 | * @author: renchao | ||
236 | */ | ||
225 | submitForm () { | 237 | submitForm () { |
226 | if (this.bdcdysz.length == 0) { | 238 | if (this.bdcdysz.length == 0) { |
227 | this.$message.error("请至少选择一条数据"); | 239 | this.$message.error("请至少选择一条数据"); |
... | @@ -270,6 +282,11 @@ | ... | @@ -270,6 +282,11 @@ |
270 | }) | 282 | }) |
271 | } | 283 | } |
272 | }, | 284 | }, |
285 | /** | ||
286 | * @description: handleSelectionChange | ||
287 | * @param {*} val | ||
288 | * @author: renchao | ||
289 | */ | ||
273 | handleSelectionChange (val) { | 290 | handleSelectionChange (val) { |
274 | this.bdcdysz = val | 291 | this.bdcdysz = val |
275 | }, | 292 | }, |
... | @@ -286,6 +303,12 @@ | ... | @@ -286,6 +303,12 @@ |
286 | } | 303 | } |
287 | }) | 304 | }) |
288 | }, | 305 | }, |
306 | /** | ||
307 | * @description: select | ||
308 | * @param {*} selection | ||
309 | * @param {*} row | ||
310 | * @author: renchao | ||
311 | */ | ||
289 | select (selection, row) { | 312 | select (selection, row) { |
290 | if (this.sqywInfo.sqywdylx == "1") { | 313 | if (this.sqywInfo.sqywdylx == "1") { |
291 | // 清除 所有勾选项 | 314 | // 清除 所有勾选项 |
... | @@ -297,6 +320,11 @@ | ... | @@ -297,6 +320,11 @@ |
297 | } | 320 | } |
298 | 321 | ||
299 | }, | 322 | }, |
323 | /** | ||
324 | * @description: handleRowClick | ||
325 | * @param {*} row | ||
326 | * @author: renchao | ||
327 | */ | ||
300 | handleRowClick (row) { | 328 | handleRowClick (row) { |
301 | // 如果状态是1,那就是单选 | 329 | // 如果状态是1,那就是单选 |
302 | if (this.sqywInfo.sqywdylx == "1") { | 330 | if (this.sqywInfo.sqywdylx == "1") { | ... | ... |
... | @@ -7,9 +7,22 @@ import Router from '@/router' | ... | @@ -7,9 +7,22 @@ import Router from '@/router' |
7 | export default { | 7 | export default { |
8 | methods: { | 8 | methods: { |
9 | //点击行选中或取消复选框 | 9 | //点击行选中或取消复选框 |
10 | /** | ||
11 | * @description: 点击行选中或取消复选框 | ||
12 | * @param {*} row | ||
13 | * @param {*} column | ||
14 | * @param {*} event | ||
15 | * @author: renchao | ||
16 | */ | ||
10 | handleRowClick (row, column, event) { | 17 | handleRowClick (row, column, event) { |
11 | this.$refs.table.toggleRowSelection(row) | 18 | this.$refs.table.toggleRowSelection(row) |
12 | }, | 19 | }, |
20 | /** | ||
21 | * @description: jump | ||
22 | * @param {*} data | ||
23 | * @param {*} type | ||
24 | * @author: renchao | ||
25 | */ | ||
13 | jump (data, type) { | 26 | jump (data, type) { |
14 | const { href } = Router.resolve( | 27 | const { href } = Router.resolve( |
15 | "/djbworkFrame?bsmSlsq=" + | 28 | "/djbworkFrame?bsmSlsq=" + |
... | @@ -20,6 +33,10 @@ export default { | ... | @@ -20,6 +33,10 @@ export default { |
20 | window.open(href, "_blank"); | 33 | window.open(href, "_blank"); |
21 | this.$popupCacel() | 34 | this.$popupCacel() |
22 | }, | 35 | }, |
36 | /** | ||
37 | * @description: queryClick | ||
38 | * @author: renchao | ||
39 | */ | ||
23 | queryClick () { | 40 | queryClick () { |
24 | this.pageData.currentPage = 1 | 41 | this.pageData.currentPage = 1 |
25 | // this.fetchData(); | 42 | // this.fetchData(); | ... | ... |
1 | /* | 1 | /* |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-05-05 09:45:31 | 4 | * @LastEditTime: 2023-05-05 09:45:31 |
5 | */ | 5 | */ |
... | @@ -7,9 +7,22 @@ import Router from '@/router' | ... | @@ -7,9 +7,22 @@ import Router from '@/router' |
7 | export default { | 7 | export default { |
8 | methods: { | 8 | methods: { |
9 | //点击行选中或取消复选框 | 9 | //点击行选中或取消复选框 |
10 | /** | ||
11 | * @description: 点击行选中或取消复选框 | ||
12 | * @param {*} row | ||
13 | * @param {*} column | ||
14 | * @param {*} event | ||
15 | * @author: renchao | ||
16 | */ | ||
10 | handleRowClick (row, column, event) { | 17 | handleRowClick (row, column, event) { |
11 | this.$refs.table.toggleRowSelection(row) | 18 | this.$refs.table.toggleRowSelection(row) |
12 | }, | 19 | }, |
20 | /** | ||
21 | * @description: jump | ||
22 | * @param {*} data | ||
23 | * @param {*} type | ||
24 | * @author: renchao | ||
25 | */ | ||
13 | jump (data, type) { | 26 | jump (data, type) { |
14 | const { href } = Router.resolve( | 27 | const { href } = Router.resolve( |
15 | "/workFrame?bsmSlsq=" + | 28 | "/workFrame?bsmSlsq=" + |
... | @@ -20,6 +33,10 @@ export default { | ... | @@ -20,6 +33,10 @@ export default { |
20 | window.open(href, "_blank"); | 33 | window.open(href, "_blank"); |
21 | this.$popupCacel() | 34 | this.$popupCacel() |
22 | }, | 35 | }, |
36 | /** | ||
37 | * @description: queryClick | ||
38 | * @author: renchao | ||
39 | */ | ||
23 | queryClick () { | 40 | queryClick () { |
24 | this.pageData.currentPage = 1 | 41 | this.pageData.currentPage = 1 |
25 | // this.fetchData(); | 42 | // this.fetchData(); | ... | ... |
... | @@ -79,6 +79,10 @@ | ... | @@ -79,6 +79,10 @@ |
79 | sendThis(this); | 79 | sendThis(this); |
80 | }, | 80 | }, |
81 | methods: { | 81 | methods: { |
82 | /** | ||
83 | * @description: queryClick | ||
84 | * @author: renchao | ||
85 | */ | ||
82 | queryClick () { | 86 | queryClick () { |
83 | this.$startLoading(); | 87 | this.$startLoading(); |
84 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | 88 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
... | @@ -91,6 +95,10 @@ | ... | @@ -91,6 +95,10 @@ |
91 | } | 95 | } |
92 | }); | 96 | }); |
93 | }, | 97 | }, |
98 | /** | ||
99 | * @description: submitForm | ||
100 | * @author: renchao | ||
101 | */ | ||
94 | submitForm () { | 102 | submitForm () { |
95 | if (this.bdcdysz.length == 0) { | 103 | if (this.bdcdysz.length == 0) { |
96 | this.$message.error("请至少选择一条数据"); | 104 | this.$message.error("请至少选择一条数据"); |
... | @@ -119,9 +127,20 @@ | ... | @@ -119,9 +127,20 @@ |
119 | } | 127 | } |
120 | }) | 128 | }) |
121 | }, | 129 | }, |
130 | /** | ||
131 | * @description: handleSelectionChange | ||
132 | * @param {*} val | ||
133 | * @author: renchao | ||
134 | */ | ||
122 | handleSelectionChange (val) { | 135 | handleSelectionChange (val) { |
123 | this.bdcdysz = val; | 136 | this.bdcdysz = val; |
124 | }, | 137 | }, |
138 | /** | ||
139 | * @description: select | ||
140 | * @param {*} selection | ||
141 | * @param {*} row | ||
142 | * @author: renchao | ||
143 | */ | ||
125 | select (selection, row) { | 144 | select (selection, row) { |
126 | if (this.sqywInfo.sqywdylx == "1") { | 145 | if (this.sqywInfo.sqywdylx == "1") { |
127 | // 清除 所有勾选项 | 146 | // 清除 所有勾选项 |
... | @@ -132,6 +151,11 @@ | ... | @@ -132,6 +151,11 @@ |
132 | this.$refs.table.toggleRowSelection(row, true); | 151 | this.$refs.table.toggleRowSelection(row, true); |
133 | } | 152 | } |
134 | }, | 153 | }, |
154 | /** | ||
155 | * @description: handleRowClick | ||
156 | * @param {*} row | ||
157 | * @author: renchao | ||
158 | */ | ||
135 | handleRowClick (row) { | 159 | handleRowClick (row) { |
136 | // 如果状态是1,那就是单选 | 160 | // 如果状态是1,那就是单选 |
137 | if (this.sqywInfo.sqywdylx == "1") { | 161 | if (this.sqywInfo.sqywdylx == "1") { | ... | ... |
... | @@ -76,6 +76,10 @@ | ... | @@ -76,6 +76,10 @@ |
76 | sendThis(this); | 76 | sendThis(this); |
77 | }, | 77 | }, |
78 | methods: { | 78 | methods: { |
79 | /** | ||
80 | * @description: queryClick | ||
81 | * @author: renchao | ||
82 | */ | ||
79 | queryClick () { | 83 | queryClick () { |
80 | this.$startLoading(); | 84 | this.$startLoading(); |
81 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | 85 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
... | @@ -88,6 +92,10 @@ | ... | @@ -88,6 +92,10 @@ |
88 | } | 92 | } |
89 | }) | 93 | }) |
90 | }, | 94 | }, |
95 | /** | ||
96 | * @description: submitForm | ||
97 | * @author: renchao | ||
98 | */ | ||
91 | submitForm () { | 99 | submitForm () { |
92 | if (this.bdcdysz.length == 0) { | 100 | if (this.bdcdysz.length == 0) { |
93 | this.$message.error("请至少选择一条数据"); | 101 | this.$message.error("请至少选择一条数据"); |
... | @@ -116,15 +124,31 @@ | ... | @@ -116,15 +124,31 @@ |
116 | } | 124 | } |
117 | }) | 125 | }) |
118 | }, | 126 | }, |
127 | /** | ||
128 | * @description: handleSelectionChange | ||
129 | * @param {*} val | ||
130 | * @author: renchao | ||
131 | */ | ||
119 | handleSelectionChange (val) { | 132 | handleSelectionChange (val) { |
120 | this.bdcdysz = val; | 133 | this.bdcdysz = val; |
121 | }, | 134 | }, |
135 | /** | ||
136 | * @description: openBook | ||
137 | * @param {*} row | ||
138 | * @author: renchao | ||
139 | */ | ||
122 | openBook (row) { | 140 | openBook (row) { |
123 | var param = { bdcdyid: row.bdcdyid, qllx: row.qllx, bdcdyh: row.bdcdyh, bsmQlxx: row.bsmQlxx }; | 141 | var param = { bdcdyid: row.bdcdyid, qllx: row.qllx, bdcdyh: row.bdcdyh, bsmQlxx: row.bsmQlxx }; |
124 | this.$popup('登记簿详情', 'registerBook/djbFrame', { | 142 | this.$popup('登记簿详情', 'registerBook/djbFrame', { |
125 | formData: param | 143 | formData: param |
126 | }) | 144 | }) |
127 | }, | 145 | }, |
146 | /** | ||
147 | * @description: select | ||
148 | * @param {*} selection | ||
149 | * @param {*} row | ||
150 | * @author: renchao | ||
151 | */ | ||
128 | select (selection, row) { | 152 | select (selection, row) { |
129 | if (this.sqywInfo.sqywdylx == "1") { | 153 | if (this.sqywInfo.sqywdylx == "1") { |
130 | // 清除 所有勾选项 | 154 | // 清除 所有勾选项 |
... | @@ -135,6 +159,11 @@ | ... | @@ -135,6 +159,11 @@ |
135 | this.$refs.table.toggleRowSelection(row, true); | 159 | this.$refs.table.toggleRowSelection(row, true); |
136 | } | 160 | } |
137 | }, | 161 | }, |
162 | /** | ||
163 | * @description: handleRowClick | ||
164 | * @param {*} row | ||
165 | * @author: renchao | ||
166 | */ | ||
138 | handleRowClick (row) { | 167 | handleRowClick (row) { |
139 | // 如果状态是1,那就是单选 | 168 | // 如果状态是1,那就是单选 |
140 | if (this.sqywInfo.sqywdylx == "1") { | 169 | if (this.sqywInfo.sqywdylx == "1") { | ... | ... |
... | @@ -104,6 +104,10 @@ | ... | @@ -104,6 +104,10 @@ |
104 | }, | 104 | }, |
105 | methods: { | 105 | methods: { |
106 | //默认加载表格信息 | 106 | //默认加载表格信息 |
107 | /** | ||
108 | * @description: 默认加载表格信息 | ||
109 | * @author: renchao | ||
110 | */ | ||
107 | queryClick () { | 111 | queryClick () { |
108 | this.$startLoading(); | 112 | this.$startLoading(); |
109 | this.queryForm.bsmSqyw = this.bsmSqyw; | 113 | this.queryForm.bsmSqyw = this.bsmSqyw; |
... | @@ -116,6 +120,10 @@ | ... | @@ -116,6 +120,10 @@ |
116 | } | 120 | } |
117 | }); | 121 | }); |
118 | }, | 122 | }, |
123 | /** | ||
124 | * @description: submitForm | ||
125 | * @author: renchao | ||
126 | */ | ||
119 | submitForm () { | 127 | submitForm () { |
120 | if (this.bdcdysz.length == 0) { | 128 | if (this.bdcdysz.length == 0) { |
121 | this.$alert("请至少选择一条数据"); | 129 | this.$alert("请至少选择一条数据"); |
... | @@ -144,9 +152,20 @@ | ... | @@ -144,9 +152,20 @@ |
144 | } | 152 | } |
145 | }) | 153 | }) |
146 | }, | 154 | }, |
155 | /** | ||
156 | * @description: handleSelectionChange | ||
157 | * @param {*} val | ||
158 | * @author: renchao | ||
159 | */ | ||
147 | handleSelectionChange (val) { | 160 | handleSelectionChange (val) { |
148 | this.bdcdysz = val; | 161 | this.bdcdysz = val; |
149 | }, | 162 | }, |
163 | /** | ||
164 | * @description: select | ||
165 | * @param {*} selection | ||
166 | * @param {*} row | ||
167 | * @author: renchao | ||
168 | */ | ||
150 | select (selection, row) { | 169 | select (selection, row) { |
151 | if (this.sqywInfo.sqywdylx == "1") { | 170 | if (this.sqywInfo.sqywdylx == "1") { |
152 | // 清除 所有勾选项 | 171 | // 清除 所有勾选项 |
... | @@ -157,6 +176,11 @@ | ... | @@ -157,6 +176,11 @@ |
157 | this.$refs.table.toggleRowSelection(row, true); | 176 | this.$refs.table.toggleRowSelection(row, true); |
158 | } | 177 | } |
159 | }, | 178 | }, |
179 | /** | ||
180 | * @description: handleRowClick | ||
181 | * @param {*} row | ||
182 | * @author: renchao | ||
183 | */ | ||
160 | handleRowClick (row) { | 184 | handleRowClick (row) { |
161 | // 如果状态是1,那就是单选 | 185 | // 如果状态是1,那就是单选 |
162 | if (this.sqywInfo.sqywdylx == "1") { | 186 | if (this.sqywInfo.sqywdylx == "1") { | ... | ... |
... | @@ -104,6 +104,10 @@ | ... | @@ -104,6 +104,10 @@ |
104 | }, | 104 | }, |
105 | methods: { | 105 | methods: { |
106 | // 初始化数据 | 106 | // 初始化数据 |
107 | /** | ||
108 | * @description: 初始化数据 | ||
109 | * @author: renchao | ||
110 | */ | ||
107 | queryClick () { | 111 | queryClick () { |
108 | this.$startLoading() | 112 | this.$startLoading() |
109 | selectRepairQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { | 113 | selectRepairQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { |
... | @@ -125,6 +129,11 @@ | ... | @@ -125,6 +129,11 @@ |
125 | // bsm: '' | 129 | // bsm: '' |
126 | // }, '85%') | 130 | // }, '85%') |
127 | // }, | 131 | // }, |
132 | /** | ||
133 | * @description: ywhClick | ||
134 | * @param {*} item) | ||
135 | * @author: renchao | ||
136 | */ | ||
128 | ywhClick (item) { | 137 | ywhClick (item) { |
129 | const { href } = this.$router.resolve( | 138 | const { href } = this.$router.resolve( |
130 | "/djbworkFrame?bdcdyid=" + | 139 | "/djbworkFrame?bdcdyid=" + |
... | @@ -141,6 +150,10 @@ | ... | @@ -141,6 +150,10 @@ |
141 | window.open(href, `urlname${item.bdcdyid}`); | 150 | window.open(href, `urlname${item.bdcdyid}`); |
142 | 151 | ||
143 | }, | 152 | }, |
153 | /** | ||
154 | * @description: submitForm | ||
155 | * @author: renchao | ||
156 | */ | ||
144 | submitForm () { | 157 | submitForm () { |
145 | if (this.bdcdysz.length == 0) { | 158 | if (this.bdcdysz.length == 0) { |
146 | this.$message.error("请至少选择一条数据"); | 159 | this.$message.error("请至少选择一条数据"); |
... | @@ -171,10 +184,20 @@ | ... | @@ -171,10 +184,20 @@ |
171 | } | 184 | } |
172 | }) | 185 | }) |
173 | }, | 186 | }, |
187 | /** | ||
188 | * @description: handleSelectionChange | ||
189 | * @param {*} val | ||
190 | * @author: renchao | ||
191 | */ | ||
174 | handleSelectionChange (val) { | 192 | handleSelectionChange (val) { |
175 | console.log("val", val); | 193 | console.log("val", val); |
176 | this.bdcdysz = val; | 194 | this.bdcdysz = val; |
177 | }, | 195 | }, |
196 | /** | ||
197 | * @description: handleRowClick | ||
198 | * @param {*} row | ||
199 | * @author: renchao | ||
200 | */ | ||
178 | handleRowClick (row) { | 201 | handleRowClick (row) { |
179 | // 如果状态是1,那就是单选 | 202 | // 如果状态是1,那就是单选 |
180 | if (this.sqywInfo.sqywdylx == "1") { | 203 | if (this.sqywInfo.sqywdylx == "1") { | ... | ... |
... | @@ -81,6 +81,10 @@ | ... | @@ -81,6 +81,10 @@ |
81 | sendThis(this); | 81 | sendThis(this); |
82 | }, | 82 | }, |
83 | methods: { | 83 | methods: { |
84 | /** | ||
85 | * @description: queryClick | ||
86 | * @author: renchao | ||
87 | */ | ||
84 | queryClick () { | 88 | queryClick () { |
85 | this.$startLoading(); | 89 | this.$startLoading(); |
86 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | 90 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
... | @@ -93,6 +97,10 @@ | ... | @@ -93,6 +97,10 @@ |
93 | } | 97 | } |
94 | }); | 98 | }); |
95 | }, | 99 | }, |
100 | /** | ||
101 | * @description: submitForm | ||
102 | * @author: renchao | ||
103 | */ | ||
96 | submitForm () { | 104 | submitForm () { |
97 | if (this.bdcdysz.length == 0) { | 105 | if (this.bdcdysz.length == 0) { |
98 | this.$message.error("请至少选择一条数据"); | 106 | this.$message.error("请至少选择一条数据"); |
... | @@ -121,9 +129,20 @@ | ... | @@ -121,9 +129,20 @@ |
121 | } | 129 | } |
122 | }) | 130 | }) |
123 | }, | 131 | }, |
132 | /** | ||
133 | * @description: handleSelectionChange | ||
134 | * @param {*} val | ||
135 | * @author: renchao | ||
136 | */ | ||
124 | handleSelectionChange (val) { | 137 | handleSelectionChange (val) { |
125 | this.bdcdysz = val; | 138 | this.bdcdysz = val; |
126 | }, | 139 | }, |
140 | /** | ||
141 | * @description: select | ||
142 | * @param {*} selection | ||
143 | * @param {*} row | ||
144 | * @author: renchao | ||
145 | */ | ||
127 | select (selection, row) { | 146 | select (selection, row) { |
128 | if (this.sqywInfo.sqywdylx == "1") { | 147 | if (this.sqywInfo.sqywdylx == "1") { |
129 | // 清除 所有勾选项 | 148 | // 清除 所有勾选项 |
... | @@ -134,6 +153,11 @@ | ... | @@ -134,6 +153,11 @@ |
134 | this.$refs.table.toggleRowSelection(row, true); | 153 | this.$refs.table.toggleRowSelection(row, true); |
135 | } | 154 | } |
136 | }, | 155 | }, |
156 | /** | ||
157 | * @description: handleRowClick | ||
158 | * @param {*} row | ||
159 | * @author: renchao | ||
160 | */ | ||
137 | handleRowClick (row) { | 161 | handleRowClick (row) { |
138 | // 如果状态是1,那就是单选 | 162 | // 如果状态是1,那就是单选 |
139 | if (this.sqywInfo.sqywdylx == "1") { | 163 | if (this.sqywInfo.sqywdylx == "1") { | ... | ... |
... | @@ -80,6 +80,10 @@ | ... | @@ -80,6 +80,10 @@ |
80 | sendThis(this); | 80 | sendThis(this); |
81 | }, | 81 | }, |
82 | methods: { | 82 | methods: { |
83 | /** | ||
84 | * @description: queryClick | ||
85 | * @author: renchao | ||
86 | */ | ||
83 | queryClick () { | 87 | queryClick () { |
84 | this.$startLoading(); | 88 | this.$startLoading(); |
85 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | 89 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
... | @@ -92,6 +96,10 @@ | ... | @@ -92,6 +96,10 @@ |
92 | } | 96 | } |
93 | }); | 97 | }); |
94 | }, | 98 | }, |
99 | /** | ||
100 | * @description: submitForm | ||
101 | * @author: renchao | ||
102 | */ | ||
95 | submitForm () { | 103 | submitForm () { |
96 | if (this.bdcdysz.length == 0) { | 104 | if (this.bdcdysz.length == 0) { |
97 | this.$message.error("请至少选择一条数据"); | 105 | this.$message.error("请至少选择一条数据"); |
... | @@ -120,9 +128,20 @@ | ... | @@ -120,9 +128,20 @@ |
120 | } | 128 | } |
121 | }) | 129 | }) |
122 | }, | 130 | }, |
131 | /** | ||
132 | * @description: handleSelectionChange | ||
133 | * @param {*} val | ||
134 | * @author: renchao | ||
135 | */ | ||
123 | handleSelectionChange (val) { | 136 | handleSelectionChange (val) { |
124 | this.bdcdysz = val; | 137 | this.bdcdysz = val; |
125 | }, | 138 | }, |
139 | /** | ||
140 | * @description: select | ||
141 | * @param {*} selection | ||
142 | * @param {*} row | ||
143 | * @author: renchao | ||
144 | */ | ||
126 | select (selection, row) { | 145 | select (selection, row) { |
127 | if (this.sqywInfo.sqywdylx == "1") { | 146 | if (this.sqywInfo.sqywdylx == "1") { |
128 | // 清除 所有勾选项 | 147 | // 清除 所有勾选项 |
... | @@ -133,6 +152,11 @@ | ... | @@ -133,6 +152,11 @@ |
133 | this.$refs.table.toggleRowSelection(row, true); | 152 | this.$refs.table.toggleRowSelection(row, true); |
134 | } | 153 | } |
135 | }, | 154 | }, |
155 | /** | ||
156 | * @description: handleRowClick | ||
157 | * @param {*} row | ||
158 | * @author: renchao | ||
159 | */ | ||
136 | handleRowClick (row) { | 160 | handleRowClick (row) { |
137 | // 如果状态是1,那就是单选 | 161 | // 如果状态是1,那就是单选 |
138 | if (this.sqywInfo.sqywdylx == "1") { | 162 | if (this.sqywInfo.sqywdylx == "1") { | ... | ... |
... | @@ -89,6 +89,10 @@ | ... | @@ -89,6 +89,10 @@ |
89 | sendThis(this); | 89 | sendThis(this); |
90 | }, | 90 | }, |
91 | methods: { | 91 | methods: { |
92 | /** | ||
93 | * @description: queryClick | ||
94 | * @author: renchao | ||
95 | */ | ||
92 | queryClick () { | 96 | queryClick () { |
93 | this.$startLoading(); | 97 | this.$startLoading(); |
94 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | 98 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
... | @@ -101,6 +105,10 @@ | ... | @@ -101,6 +105,10 @@ |
101 | } | 105 | } |
102 | }); | 106 | }); |
103 | }, | 107 | }, |
108 | /** | ||
109 | * @description: submitForm | ||
110 | * @author: renchao | ||
111 | */ | ||
104 | submitForm () { | 112 | submitForm () { |
105 | if (this.bdcdysz.length == 0) { | 113 | if (this.bdcdysz.length == 0) { |
106 | this.$message.error("请至少选择一条数据"); | 114 | this.$message.error("请至少选择一条数据"); |
... | @@ -129,9 +137,19 @@ | ... | @@ -129,9 +137,19 @@ |
129 | } | 137 | } |
130 | }) | 138 | }) |
131 | }, | 139 | }, |
140 | /** | ||
141 | * @description: handleSelectionChange | ||
142 | * @param {*} val | ||
143 | * @author: renchao | ||
144 | */ | ||
132 | handleSelectionChange (val) { | 145 | handleSelectionChange (val) { |
133 | this.bdcdysz = val; | 146 | this.bdcdysz = val; |
134 | }, | 147 | }, |
148 | /** | ||
149 | * @description: openBook | ||
150 | * @param {*} row | ||
151 | * @author: renchao | ||
152 | */ | ||
135 | openBook (row) { | 153 | openBook (row) { |
136 | var param = { | 154 | var param = { |
137 | bdcdyid: row.bdcdyid, | 155 | bdcdyid: row.bdcdyid, |
... | @@ -143,6 +161,12 @@ | ... | @@ -143,6 +161,12 @@ |
143 | formData: param | 161 | formData: param |
144 | }) | 162 | }) |
145 | }, | 163 | }, |
164 | /** | ||
165 | * @description: select | ||
166 | * @param {*} selection | ||
167 | * @param {*} row | ||
168 | * @author: renchao | ||
169 | */ | ||
146 | select (selection, row) { | 170 | select (selection, row) { |
147 | if (this.sqywInfo.sqywdylx == "1") { | 171 | if (this.sqywInfo.sqywdylx == "1") { |
148 | // 清除 所有勾选项 | 172 | // 清除 所有勾选项 |
... | @@ -153,6 +177,11 @@ | ... | @@ -153,6 +177,11 @@ |
153 | this.$refs.table.toggleRowSelection(row, true); | 177 | this.$refs.table.toggleRowSelection(row, true); |
154 | } | 178 | } |
155 | }, | 179 | }, |
180 | /** | ||
181 | * @description: handleRowClick | ||
182 | * @param {*} row | ||
183 | * @author: renchao | ||
184 | */ | ||
156 | handleRowClick (row) { | 185 | handleRowClick (row) { |
157 | // 如果状态是1,那就是单选 | 186 | // 如果状态是1,那就是单选 |
158 | if (this.sqywInfo.sqywdylx == "1") { | 187 | if (this.sqywInfo.sqywdylx == "1") { | ... | ... |
... | @@ -191,6 +191,10 @@ | ... | @@ -191,6 +191,10 @@ |
191 | }, | 191 | }, |
192 | methods: { | 192 | methods: { |
193 | // 单选事件 | 193 | // 单选事件 |
194 | /** | ||
195 | * @description: 单选事件 | ||
196 | * @author: renchao | ||
197 | */ | ||
194 | close () { | 198 | close () { |
195 | this.tableData.data.forEach(item => { | 199 | this.tableData.data.forEach(item => { |
196 | if (this.radioVal == item.bhqkbsm) { | 200 | if (this.radioVal == item.bhqkbsm) { |
... | @@ -211,6 +215,10 @@ | ... | @@ -211,6 +215,10 @@ |
211 | } | 215 | } |
212 | }) | 216 | }) |
213 | }, | 217 | }, |
218 | /** | ||
219 | * @description: queryClick | ||
220 | * @author: renchao | ||
221 | */ | ||
214 | queryClick () { | 222 | queryClick () { |
215 | this.$startLoading(); | 223 | this.$startLoading(); |
216 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | 224 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
... | @@ -221,13 +229,10 @@ | ... | @@ -221,13 +229,10 @@ |
221 | } | 229 | } |
222 | }); | 230 | }); |
223 | }, | 231 | }, |
224 | handleRowClick (val) { | 232 | /** |
225 | // this.radioVal = val.bhqkbsm | 233 | * @description: submitForm |
226 | // let obj = val | 234 | * @author: renchao |
227 | // obj.bglx = '1'; | 235 | */ |
228 | // this.bdcdysz[0] = obj | ||
229 | // this.close() | ||
230 | }, | ||
231 | submitForm () { | 236 | submitForm () { |
232 | startBusinessFlow({ | 237 | startBusinessFlow({ |
233 | bsmSqyw: this.sqywInfo.parentid, | 238 | bsmSqyw: this.sqywInfo.parentid, |
... | @@ -252,6 +257,11 @@ | ... | @@ -252,6 +257,11 @@ |
252 | } | 257 | } |
253 | }) | 258 | }) |
254 | }, | 259 | }, |
260 | /** | ||
261 | * @description: openBook | ||
262 | * @param {*} row | ||
263 | * @author: renchao | ||
264 | */ | ||
255 | openBook (row) { | 265 | openBook (row) { |
256 | var param = { | 266 | var param = { |
257 | bdcdyid: row.bdcdyid, | 267 | bdcdyid: row.bdcdyid, |
... | @@ -263,6 +273,12 @@ | ... | @@ -263,6 +273,12 @@ |
263 | formData: param | 273 | formData: param |
264 | }) | 274 | }) |
265 | }, | 275 | }, |
276 | /** | ||
277 | * @description: select | ||
278 | * @param {*} selection | ||
279 | * @param {*} row | ||
280 | * @author: renchao | ||
281 | */ | ||
266 | select (selection, row) { | 282 | select (selection, row) { |
267 | if (this.sqywInfo.sqywdylx == "1") { | 283 | if (this.sqywInfo.sqywdylx == "1") { |
268 | // 清除 所有勾选项 | 284 | // 清除 所有勾选项 |
... | @@ -273,6 +289,11 @@ | ... | @@ -273,6 +289,11 @@ |
273 | this.$refs.table.toggleRowSelection(row, true); | 289 | this.$refs.table.toggleRowSelection(row, true); |
274 | } | 290 | } |
275 | }, | 291 | }, |
292 | /** | ||
293 | * @description: handleRowClick | ||
294 | * @param {*} row | ||
295 | * @author: renchao | ||
296 | */ | ||
276 | handleRowClick (row) { | 297 | handleRowClick (row) { |
277 | // 如果状态是1,那就是单选 | 298 | // 如果状态是1,那就是单选 |
278 | if (this.sqywInfo.sqywdylx == "1") { | 299 | if (this.sqywInfo.sqywdylx == "1") { | ... | ... |
... | @@ -85,6 +85,10 @@ | ... | @@ -85,6 +85,10 @@ |
85 | sendThis(this); | 85 | sendThis(this); |
86 | }, | 86 | }, |
87 | methods: { | 87 | methods: { |
88 | /** | ||
89 | * @description: queryClick | ||
90 | * @author: renchao | ||
91 | */ | ||
88 | queryClick () { | 92 | queryClick () { |
89 | this.$startLoading(); | 93 | this.$startLoading(); |
90 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | 94 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
... | @@ -98,6 +102,10 @@ | ... | @@ -98,6 +102,10 @@ |
98 | }); | 102 | }); |
99 | }, | 103 | }, |
100 | 104 | ||
105 | /** | ||
106 | * @description: submitForm | ||
107 | * @author: renchao | ||
108 | */ | ||
101 | submitForm () { | 109 | submitForm () { |
102 | if (this.bdcdysz.length == 0) { | 110 | if (this.bdcdysz.length == 0) { |
103 | this.$alert("请至少选择一条数据"); | 111 | this.$alert("请至少选择一条数据"); |
... | @@ -126,12 +134,23 @@ | ... | @@ -126,12 +134,23 @@ |
126 | } | 134 | } |
127 | }) | 135 | }) |
128 | }, | 136 | }, |
137 | /** | ||
138 | * @description: handleSelectionChange | ||
139 | * @param {*} val | ||
140 | * @author: renchao | ||
141 | */ | ||
129 | handleSelectionChange (val) { | 142 | handleSelectionChange (val) { |
130 | val.forEach((item, index) => { | 143 | val.forEach((item, index) => { |
131 | item.bsm = item.zdbsm; | 144 | item.bsm = item.zdbsm; |
132 | }); | 145 | }); |
133 | this.bdcdysz = val; | 146 | this.bdcdysz = val; |
134 | }, | 147 | }, |
148 | /** | ||
149 | * @description: select | ||
150 | * @param {*} selection | ||
151 | * @param {*} row | ||
152 | * @author: renchao | ||
153 | */ | ||
135 | select (selection, row) { | 154 | select (selection, row) { |
136 | if (this.sqywInfo.sqywdylx == "1") { | 155 | if (this.sqywInfo.sqywdylx == "1") { |
137 | // 清除 所有勾选项 | 156 | // 清除 所有勾选项 |
... | @@ -143,6 +162,11 @@ | ... | @@ -143,6 +162,11 @@ |
143 | } | 162 | } |
144 | }, | 163 | }, |
145 | 164 | ||
165 | /** | ||
166 | * @description: handleRowClick | ||
167 | * @param {*} row | ||
168 | * @author: renchao | ||
169 | */ | ||
146 | handleRowClick (row) { | 170 | handleRowClick (row) { |
147 | // 如果状态是1,那就是单选 | 171 | // 如果状态是1,那就是单选 |
148 | if (this.sqywInfo.sqywdylx == "1") { | 172 | if (this.sqywInfo.sqywdylx == "1") { | ... | ... |
... | @@ -89,6 +89,10 @@ | ... | @@ -89,6 +89,10 @@ |
89 | sendThis(this); | 89 | sendThis(this); |
90 | }, | 90 | }, |
91 | methods: { | 91 | methods: { |
92 | /** | ||
93 | * @description: queryClick | ||
94 | * @author: renchao | ||
95 | */ | ||
92 | queryClick () { | 96 | queryClick () { |
93 | this.$startLoading(); | 97 | this.$startLoading(); |
94 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | 98 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
... | @@ -101,6 +105,10 @@ | ... | @@ -101,6 +105,10 @@ |
101 | } | 105 | } |
102 | }); | 106 | }); |
103 | }, | 107 | }, |
108 | /** | ||
109 | * @description: submitForm | ||
110 | * @author: renchao | ||
111 | */ | ||
104 | submitForm () { | 112 | submitForm () { |
105 | if (this.bdcdysz.length == 0) { | 113 | if (this.bdcdysz.length == 0) { |
106 | this.$message.error("请至少选择一条数据"); | 114 | this.$message.error("请至少选择一条数据"); |
... | @@ -129,9 +137,19 @@ | ... | @@ -129,9 +137,19 @@ |
129 | } | 137 | } |
130 | }) | 138 | }) |
131 | }, | 139 | }, |
140 | /** | ||
141 | * @description: handleSelectionChange | ||
142 | * @param {*} val | ||
143 | * @author: renchao | ||
144 | */ | ||
132 | handleSelectionChange (val) { | 145 | handleSelectionChange (val) { |
133 | this.bdcdysz = val; | 146 | this.bdcdysz = val; |
134 | }, | 147 | }, |
148 | /** | ||
149 | * @description: openBook | ||
150 | * @param {*} row | ||
151 | * @author: renchao | ||
152 | */ | ||
135 | openBook (row) { | 153 | openBook (row) { |
136 | var param = { | 154 | var param = { |
137 | bdcdyid: row.bdcdyid, | 155 | bdcdyid: row.bdcdyid, |
... | @@ -143,6 +161,12 @@ | ... | @@ -143,6 +161,12 @@ |
143 | formData: param | 161 | formData: param |
144 | }) | 162 | }) |
145 | }, | 163 | }, |
164 | /** | ||
165 | * @description: select | ||
166 | * @param {*} selection | ||
167 | * @param {*} row | ||
168 | * @author: renchao | ||
169 | */ | ||
146 | select (selection, row) { | 170 | select (selection, row) { |
147 | if (this.sqywInfo.sqywdylx == "1") { | 171 | if (this.sqywInfo.sqywdylx == "1") { |
148 | // 清除 所有勾选项 | 172 | // 清除 所有勾选项 |
... | @@ -153,6 +177,11 @@ | ... | @@ -153,6 +177,11 @@ |
153 | this.$refs.table.toggleRowSelection(row, true); | 177 | this.$refs.table.toggleRowSelection(row, true); |
154 | } | 178 | } |
155 | }, | 179 | }, |
180 | /** | ||
181 | * @description: handleRowClick | ||
182 | * @param {*} row | ||
183 | * @author: renchao | ||
184 | */ | ||
156 | handleRowClick (row) { | 185 | handleRowClick (row) { |
157 | // 如果状态是1,那就是单选 | 186 | // 如果状态是1,那就是单选 |
158 | if (this.sqywInfo.sqywdylx == "1") { | 187 | if (this.sqywInfo.sqywdylx == "1") { | ... | ... |
... | @@ -81,6 +81,10 @@ | ... | @@ -81,6 +81,10 @@ |
81 | sendThis(this); | 81 | sendThis(this); |
82 | }, | 82 | }, |
83 | methods: { | 83 | methods: { |
84 | /** | ||
85 | * @description: queryClick | ||
86 | * @author: renchao | ||
87 | */ | ||
84 | queryClick () { | 88 | queryClick () { |
85 | this.$startLoading(); | 89 | this.$startLoading(); |
86 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | 90 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
... | @@ -93,6 +97,10 @@ | ... | @@ -93,6 +97,10 @@ |
93 | } | 97 | } |
94 | }); | 98 | }); |
95 | }, | 99 | }, |
100 | /** | ||
101 | * @description: submitForm | ||
102 | * @author: renchao | ||
103 | */ | ||
96 | submitForm () { | 104 | submitForm () { |
97 | if (this.bdcdysz.length == 0) { | 105 | if (this.bdcdysz.length == 0) { |
98 | this.$message.error("请至少选择一条数据"); | 106 | this.$message.error("请至少选择一条数据"); |
... | @@ -121,9 +129,20 @@ | ... | @@ -121,9 +129,20 @@ |
121 | } | 129 | } |
122 | }) | 130 | }) |
123 | }, | 131 | }, |
132 | /** | ||
133 | * @description: handleSelectionChange | ||
134 | * @param {*} val | ||
135 | * @author: renchao | ||
136 | */ | ||
124 | handleSelectionChange (val) { | 137 | handleSelectionChange (val) { |
125 | this.bdcdysz = val; | 138 | this.bdcdysz = val; |
126 | }, | 139 | }, |
140 | /** | ||
141 | * @description: select | ||
142 | * @param {*} selection | ||
143 | * @param {*} row | ||
144 | * @author: renchao | ||
145 | */ | ||
127 | select (selection, row) { | 146 | select (selection, row) { |
128 | if (this.sqywInfo.sqywdylx == "1") { | 147 | if (this.sqywInfo.sqywdylx == "1") { |
129 | // 清除 所有勾选项 | 148 | // 清除 所有勾选项 |
... | @@ -134,6 +153,11 @@ | ... | @@ -134,6 +153,11 @@ |
134 | this.$refs.table.toggleRowSelection(row, true); | 153 | this.$refs.table.toggleRowSelection(row, true); |
135 | } | 154 | } |
136 | }, | 155 | }, |
156 | /** | ||
157 | * @description: handleRowClick | ||
158 | * @param {*} row | ||
159 | * @author: renchao | ||
160 | */ | ||
137 | handleRowClick (row) { | 161 | handleRowClick (row) { |
138 | // 如果状态是1,那就是单选 | 162 | // 如果状态是1,那就是单选 |
139 | if (this.sqywInfo.sqywdylx == "1") { | 163 | if (this.sqywInfo.sqywdylx == "1") { | ... | ... |
... | @@ -81,6 +81,10 @@ | ... | @@ -81,6 +81,10 @@ |
81 | sendThis(this); | 81 | sendThis(this); |
82 | }, | 82 | }, |
83 | methods: { | 83 | methods: { |
84 | /** | ||
85 | * @description: queryClick | ||
86 | * @author: renchao | ||
87 | */ | ||
84 | queryClick () { | 88 | queryClick () { |
85 | this.$startLoading(); | 89 | this.$startLoading(); |
86 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | 90 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
... | @@ -93,6 +97,10 @@ | ... | @@ -93,6 +97,10 @@ |
93 | } | 97 | } |
94 | }); | 98 | }); |
95 | }, | 99 | }, |
100 | /** | ||
101 | * @description: submitForm | ||
102 | * @author: renchao | ||
103 | */ | ||
96 | submitForm () { | 104 | submitForm () { |
97 | if (this.bdcdysz.length == 0) { | 105 | if (this.bdcdysz.length == 0) { |
98 | this.$message.error("请至少选择一条数据"); | 106 | this.$message.error("请至少选择一条数据"); |
... | @@ -121,9 +129,20 @@ | ... | @@ -121,9 +129,20 @@ |
121 | } | 129 | } |
122 | }) | 130 | }) |
123 | }, | 131 | }, |
132 | /** | ||
133 | * @description: handleSelectionChange | ||
134 | * @param {*} val | ||
135 | * @author: renchao | ||
136 | */ | ||
124 | handleSelectionChange (val) { | 137 | handleSelectionChange (val) { |
125 | this.bdcdysz = val; | 138 | this.bdcdysz = val; |
126 | }, | 139 | }, |
140 | /** | ||
141 | * @description: select | ||
142 | * @param {*} selection | ||
143 | * @param {*} row | ||
144 | * @author: renchao | ||
145 | */ | ||
127 | select (selection, row) { | 146 | select (selection, row) { |
128 | if (this.sqywInfo.sqywdylx == "1") { | 147 | if (this.sqywInfo.sqywdylx == "1") { |
129 | // 清除 所有勾选项 | 148 | // 清除 所有勾选项 |
... | @@ -134,6 +153,11 @@ | ... | @@ -134,6 +153,11 @@ |
134 | this.$refs.table.toggleRowSelection(row, true); | 153 | this.$refs.table.toggleRowSelection(row, true); |
135 | } | 154 | } |
136 | }, | 155 | }, |
156 | /** | ||
157 | * @description: handleRowClick | ||
158 | * @param {*} row | ||
159 | * @author: renchao | ||
160 | */ | ||
137 | handleRowClick (row) { | 161 | handleRowClick (row) { |
138 | // 如果状态是1,那就是单选 | 162 | // 如果状态是1,那就是单选 |
139 | if (this.sqywInfo.sqywdylx == "1") { | 163 | if (this.sqywInfo.sqywdylx == "1") { | ... | ... |
... | @@ -82,6 +82,10 @@ | ... | @@ -82,6 +82,10 @@ |
82 | sendThis(this); | 82 | sendThis(this); |
83 | }, | 83 | }, |
84 | methods: { | 84 | methods: { |
85 | /** | ||
86 | * @description: queryClick | ||
87 | * @author: renchao | ||
88 | */ | ||
85 | queryClick () { | 89 | queryClick () { |
86 | this.$startLoading(); | 90 | this.$startLoading(); |
87 | this.queryForm.zrzbsm = this.sqywInfo.zrzbsm; | 91 | this.queryForm.zrzbsm = this.sqywInfo.zrzbsm; |
... | @@ -94,6 +98,10 @@ | ... | @@ -94,6 +98,10 @@ |
94 | } | 98 | } |
95 | }); | 99 | }); |
96 | }, | 100 | }, |
101 | /** | ||
102 | * @description: submitForm | ||
103 | * @author: renchao | ||
104 | */ | ||
97 | submitForm () { | 105 | submitForm () { |
98 | if (this.bdcdysz.length == 0) { | 106 | if (this.bdcdysz.length == 0) { |
99 | this.$message.error("请至少选择一条数据"); | 107 | this.$message.error("请至少选择一条数据"); |
... | @@ -122,9 +130,20 @@ | ... | @@ -122,9 +130,20 @@ |
122 | } | 130 | } |
123 | }) | 131 | }) |
124 | }, | 132 | }, |
133 | /** | ||
134 | * @description: handleSelectionChange | ||
135 | * @param {*} val | ||
136 | * @author: renchao | ||
137 | */ | ||
125 | handleSelectionChange (val) { | 138 | handleSelectionChange (val) { |
126 | this.bdcdysz = val; | 139 | this.bdcdysz = val; |
127 | }, | 140 | }, |
141 | /** | ||
142 | * @description: select | ||
143 | * @param {*} selection | ||
144 | * @param {*} row | ||
145 | * @author: renchao | ||
146 | */ | ||
128 | select (selection, row) { | 147 | select (selection, row) { |
129 | if (this.sqywInfo.sqywdylx == "1") { | 148 | if (this.sqywInfo.sqywdylx == "1") { |
130 | // 清除 所有勾选项 | 149 | // 清除 所有勾选项 |
... | @@ -135,6 +154,11 @@ | ... | @@ -135,6 +154,11 @@ |
135 | this.$refs.table.toggleRowSelection(row, true); | 154 | this.$refs.table.toggleRowSelection(row, true); |
136 | } | 155 | } |
137 | }, | 156 | }, |
157 | /** | ||
158 | * @description: handleRowClick | ||
159 | * @param {*} row | ||
160 | * @author: renchao | ||
161 | */ | ||
138 | handleRowClick (row) { | 162 | handleRowClick (row) { |
139 | // 如果状态是1,那就是单选 | 163 | // 如果状态是1,那就是单选 |
140 | if (this.sqywInfo.sqywdylx == "1") { | 164 | if (this.sqywInfo.sqywdylx == "1") { | ... | ... |
-
Please register or sign in to post a comment