增加注释
Showing
11 changed files
with
246 additions
and
0 deletions
... | @@ -291,10 +291,19 @@ | ... | @@ -291,10 +291,19 @@ |
291 | }, | 291 | }, |
292 | methods: { | 292 | methods: { |
293 | // 关闭弹框事件 | 293 | // 关闭弹框事件 |
294 | /** | ||
295 | * @description: 关闭弹框事件 | ||
296 | * @author: renchao | ||
297 | */ | ||
294 | closeDialog () { | 298 | closeDialog () { |
295 | this.dialogVisible = false; | 299 | this.dialogVisible = false; |
296 | }, | 300 | }, |
297 | // 展示弹框 | 301 | // 展示弹框 |
302 | /** | ||
303 | * @description: 展示弹框 | ||
304 | * @param {*} item | ||
305 | * @author: renchao | ||
306 | */ | ||
298 | isShow (item) { | 307 | isShow (item) { |
299 | this.title = '登薄日志(' + item.ACCESSDATE + ')' | 308 | this.title = '登薄日志(' + item.ACCESSDATE + ')' |
300 | this.titleName = 'sjmx' | 309 | this.titleName = 'sjmx' |
... | @@ -304,6 +313,7 @@ | ... | @@ -304,6 +313,7 @@ |
304 | }, | 313 | }, |
305 | /** | 314 | /** |
306 | * @description: 获取列表接口 | 315 | * @description: 获取列表接口 |
316 | * @param {*} data | ||
307 | * @author: renchao | 317 | * @author: renchao |
308 | */ | 318 | */ |
309 | _getDetails (data) { | 319 | _getDetails (data) { |
... | @@ -325,6 +335,10 @@ | ... | @@ -325,6 +335,10 @@ |
325 | }) | 335 | }) |
326 | }, | 336 | }, |
327 | // 当日登薄详单 | 337 | // 当日登薄详单 |
338 | /** | ||
339 | * @description: 当日登薄详单 | ||
340 | * @author: renchao | ||
341 | */ | ||
328 | handleDBAdd () { | 342 | handleDBAdd () { |
329 | this.tableDBData.data.push({ | 343 | this.tableDBData.data.push({ |
330 | YWH: '', | 344 | YWH: '', |
... | @@ -340,6 +354,11 @@ | ... | @@ -340,6 +354,11 @@ |
340 | this.$set(item, 'index', index) | 354 | this.$set(item, 'index', index) |
341 | }) | 355 | }) |
342 | }, | 356 | }, |
357 | /** | ||
358 | * @description: handleDBMinus | ||
359 | * @param {*} row | ||
360 | * @author: renchao | ||
361 | */ | ||
343 | handleDBMinus (row) { | 362 | handleDBMinus (row) { |
344 | this.$confirm('此操作将删除列表, 是否继续?', '提示', { | 363 | this.$confirm('此操作将删除列表, 是否继续?', '提示', { |
345 | confirmButtonText: '确定', | 364 | confirmButtonText: '确定', |
... | @@ -362,6 +381,10 @@ | ... | @@ -362,6 +381,10 @@ |
362 | }) | 381 | }) |
363 | }, | 382 | }, |
364 | // 当日上报详单 | 383 | // 当日上报详单 |
384 | /** | ||
385 | * @description: 当日上报详单 | ||
386 | * @author: renchao | ||
387 | */ | ||
365 | handleSBAdd () { | 388 | handleSBAdd () { |
366 | this.tableSBData.data.push({ | 389 | this.tableSBData.data.push({ |
367 | YWH: '', | 390 | YWH: '', |
... | @@ -373,6 +396,11 @@ | ... | @@ -373,6 +396,11 @@ |
373 | this.$set(item, 'index', index) | 396 | this.$set(item, 'index', index) |
374 | }) | 397 | }) |
375 | }, | 398 | }, |
399 | /** | ||
400 | * @description: handleSBMinus | ||
401 | * @param {*} row | ||
402 | * @author: renchao | ||
403 | */ | ||
376 | handleSBMinus (row) { | 404 | handleSBMinus (row) { |
377 | this.$confirm('此操作将删除列表, 是否继续?', '提示', { | 405 | this.$confirm('此操作将删除列表, 是否继续?', '提示', { |
378 | confirmButtonText: '确定', | 406 | confirmButtonText: '确定', | ... | ... |
... | @@ -131,9 +131,18 @@ | ... | @@ -131,9 +131,18 @@ |
131 | }, | 131 | }, |
132 | methods: { | 132 | methods: { |
133 | //截止日期变化 | 133 | //截止日期变化 |
134 | /** | ||
135 | * @description: 截止日期变化 | ||
136 | * @param {*} val | ||
137 | * @author: renchao | ||
138 | */ | ||
134 | endTimeChange (val) { | 139 | endTimeChange (val) { |
135 | this.form.endTime = timeFormat(new Date(val), true) | 140 | this.form.endTime = timeFormat(new Date(val), true) |
136 | }, | 141 | }, |
142 | /** | ||
143 | * @description: featchData | ||
144 | * @author: renchao | ||
145 | */ | ||
137 | featchData () { | 146 | featchData () { |
138 | getRecordLogPage({ ...this.form }).then(res => { | 147 | getRecordLogPage({ ...this.form }).then(res => { |
139 | if (res.code === 200) { | 148 | if (res.code === 200) { |
... | @@ -145,12 +154,21 @@ | ... | @@ -145,12 +154,21 @@ |
145 | }) | 154 | }) |
146 | }, | 155 | }, |
147 | // 重置 | 156 | // 重置 |
157 | /** | ||
158 | * @description: 重置 | ||
159 | * @author: renchao | ||
160 | */ | ||
148 | resetForm () { | 161 | resetForm () { |
149 | this.$refs.ruleForm.resetFields(); | 162 | this.$refs.ruleForm.resetFields(); |
150 | this.form.currentPage = 1 | 163 | this.form.currentPage = 1 |
151 | this.featchData(); | 164 | this.featchData(); |
152 | }, | 165 | }, |
153 | // 编辑 | 166 | // 编辑 |
167 | /** | ||
168 | * @description: 编辑 | ||
169 | * @param {*} row | ||
170 | * @author: renchao | ||
171 | */ | ||
154 | handleEdit (row) { | 172 | handleEdit (row) { |
155 | this.$refs.editLog.isShow(row); | 173 | this.$refs.editLog.isShow(row); |
156 | this.$store.dispatch('business/setReportLogEdit') | 174 | this.$store.dispatch('business/setReportLogEdit') | ... | ... |
... | @@ -82,9 +82,17 @@ export default { | ... | @@ -82,9 +82,17 @@ export default { |
82 | } | 82 | } |
83 | }, | 83 | }, |
84 | methods: { | 84 | methods: { |
85 | /** | ||
86 | * @description: closeDialog | ||
87 | * @author: renchao | ||
88 | */ | ||
85 | closeDialog () { | 89 | closeDialog () { |
86 | this.$emit('input', false) | 90 | this.$emit('input', false) |
87 | }, | 91 | }, |
92 | /** | ||
93 | * @description: handleSubmit | ||
94 | * @author: renchao | ||
95 | */ | ||
88 | handleSubmit () { | 96 | handleSubmit () { |
89 | this.$emit('input', false) | 97 | this.$emit('input', false) |
90 | } | 98 | } | ... | ... |
... | @@ -194,10 +194,19 @@ | ... | @@ -194,10 +194,19 @@ |
194 | }, | 194 | }, |
195 | methods: { | 195 | methods: { |
196 | //截止日期变化 | 196 | //截止日期变化 |
197 | /** | ||
198 | * @description: 截止日期变化 | ||
199 | * @param {*} val | ||
200 | * @author: renchao | ||
201 | */ | ||
197 | endTimeChange (val) { | 202 | endTimeChange (val) { |
198 | this.form.exchangeEndTime = timeFormat(new Date(val), true) | 203 | this.form.exchangeEndTime = timeFormat(new Date(val), true) |
199 | }, | 204 | }, |
200 | // 初始化数据 | 205 | // 初始化数据 |
206 | /** | ||
207 | * @description: 初始化数据 | ||
208 | * @author: renchao | ||
209 | */ | ||
201 | featchData () { | 210 | featchData () { |
202 | getDataReportPage({ ...this.form }).then((res) => { | 211 | getDataReportPage({ ...this.form }).then((res) => { |
203 | if (res.code === 200) { | 212 | if (res.code === 200) { |
... | @@ -209,8 +218,17 @@ | ... | @@ -209,8 +218,17 @@ |
209 | }); | 218 | }); |
210 | }, | 219 | }, |
211 | // 上报 | 220 | // 上报 |
221 | /** | ||
222 | * @description: 上报 | ||
223 | * @author: renchao | ||
224 | */ | ||
212 | handleEscalation () { }, | 225 | handleEscalation () { }, |
213 | // 详情 | 226 | // 详情 |
227 | /** | ||
228 | * @description: 详情 | ||
229 | * @param {*} row | ||
230 | * @author: renchao | ||
231 | */ | ||
214 | handleDetail (row) { | 232 | handleDetail (row) { |
215 | this.title = row.rectypeName; | 233 | this.title = row.rectypeName; |
216 | this.$refs.editLog.isShow(row); | 234 | this.$refs.editLog.isShow(row); |
... | @@ -221,6 +239,10 @@ | ... | @@ -221,6 +239,10 @@ |
221 | } | 239 | } |
222 | }, | 240 | }, |
223 | // 重置 | 241 | // 重置 |
242 | /** | ||
243 | * @description: 重置 | ||
244 | * @author: renchao | ||
245 | */ | ||
224 | resetForm () { | 246 | resetForm () { |
225 | this.$refs.ruleForm.resetFields(); | 247 | this.$refs.ruleForm.resetFields(); |
226 | this.form.exchangeEndTime = "" | 248 | this.form.exchangeEndTime = "" | ... | ... |
... | @@ -82,9 +82,17 @@ export default { | ... | @@ -82,9 +82,17 @@ export default { |
82 | } | 82 | } |
83 | }, | 83 | }, |
84 | methods: { | 84 | methods: { |
85 | /** | ||
86 | * @description: closeDialog | ||
87 | * @author: renchao | ||
88 | */ | ||
85 | closeDialog () { | 89 | closeDialog () { |
86 | this.$emit('input', false) | 90 | this.$emit('input', false) |
87 | }, | 91 | }, |
92 | /** | ||
93 | * @description: handleSubmit | ||
94 | * @author: renchao | ||
95 | */ | ||
88 | handleSubmit () { | 96 | handleSubmit () { |
89 | this.$emit('input', false) | 97 | this.$emit('input', false) |
90 | } | 98 | } | ... | ... |
... | @@ -245,10 +245,19 @@ | ... | @@ -245,10 +245,19 @@ |
245 | }, | 245 | }, |
246 | methods: { | 246 | methods: { |
247 | //截止日期变化 | 247 | //截止日期变化 |
248 | /** | ||
249 | * @description: 截止日期变化 | ||
250 | * @param {*} val | ||
251 | * @author: renchao | ||
252 | */ | ||
248 | endTimeChange (val) { | 253 | endTimeChange (val) { |
249 | this.form.exchangeEndTime = timeFormat(new Date(val), true) | 254 | this.form.exchangeEndTime = timeFormat(new Date(val), true) |
250 | }, | 255 | }, |
251 | // 初始化数据 | 256 | // 初始化数据 |
257 | /** | ||
258 | * @description: 初始化数据 | ||
259 | * @author: renchao | ||
260 | */ | ||
252 | featchData () { | 261 | featchData () { |
253 | getSjsbReportPage({ ...this.form, ...this.formData }).then((res) => { | 262 | getSjsbReportPage({ ...this.form, ...this.formData }).then((res) => { |
254 | if (res.code === 200) { | 263 | if (res.code === 200) { |
... | @@ -260,8 +269,17 @@ | ... | @@ -260,8 +269,17 @@ |
260 | }); | 269 | }); |
261 | }, | 270 | }, |
262 | // 上报 | 271 | // 上报 |
272 | /** | ||
273 | * @description: 上报 | ||
274 | * @author: renchao | ||
275 | */ | ||
263 | handleEscalation () { }, | 276 | handleEscalation () { }, |
264 | // 详情 | 277 | // 详情 |
278 | /** | ||
279 | * @description: 详情 | ||
280 | * @param {*} row | ||
281 | * @author: renchao | ||
282 | */ | ||
265 | handleDetail (row) { | 283 | handleDetail (row) { |
266 | this.title = row.rectypeName; | 284 | this.title = row.rectypeName; |
267 | this.$refs.editLog.isShow(row); | 285 | this.$refs.editLog.isShow(row); |
... | @@ -272,12 +290,21 @@ | ... | @@ -272,12 +290,21 @@ |
272 | } | 290 | } |
273 | }, | 291 | }, |
274 | // 重置 | 292 | // 重置 |
293 | /** | ||
294 | * @description: 重置 | ||
295 | * @author: renchao | ||
296 | */ | ||
275 | resetForm () { | 297 | resetForm () { |
276 | this.$refs.ruleForm.resetFields(); | 298 | this.$refs.ruleForm.resetFields(); |
277 | this.form.exchangeEndTime = "" | 299 | this.form.exchangeEndTime = "" |
278 | this.form.currentPage = 1 | 300 | this.form.currentPage = 1 |
279 | this.featchData(); | 301 | this.featchData(); |
280 | }, | 302 | }, |
303 | /** | ||
304 | * @description: ywhClick | ||
305 | * @param {*} item | ||
306 | * @author: renchao | ||
307 | */ | ||
281 | ywhClick (item) { | 308 | ywhClick (item) { |
282 | window.open('http://192.168.2.38/bdcdj#/workFrame?bsmSlsq=4582b05a4d49c25673eb0880b5787e58&bestepid=sl&bsmBusiness=&sqywbm=A03100', '_blank') | 309 | window.open('http://192.168.2.38/bdcdj#/workFrame?bsmSlsq=4582b05a4d49c25673eb0880b5787e58&bestepid=sl&bsmBusiness=&sqywbm=A03100', '_blank') |
283 | //判断用户是否拥有该任务的权限,若有则跳转,无权限则给予提示并刷新页面 | 310 | //判断用户是否拥有该任务的权限,若有则跳转,无权限则给予提示并刷新页面 | ... | ... |
... | @@ -78,6 +78,10 @@ | ... | @@ -78,6 +78,10 @@ |
78 | } | 78 | } |
79 | }, | 79 | }, |
80 | methods: { | 80 | methods: { |
81 | /** | ||
82 | * @description: handleSubmit | ||
83 | * @author: renchao | ||
84 | */ | ||
81 | handleSubmit () { | 85 | handleSubmit () { |
82 | let _this = this | 86 | let _this = this |
83 | this.$refs['ruleForm'].validate(async (valid) => { | 87 | this.$refs['ruleForm'].validate(async (valid) => { |
... | @@ -120,6 +124,10 @@ | ... | @@ -120,6 +124,10 @@ |
120 | } | 124 | } |
121 | }) | 125 | }) |
122 | }, | 126 | }, |
127 | /** | ||
128 | * @description: handleClose | ||
129 | * @author: renchao | ||
130 | */ | ||
123 | handleClose () { | 131 | handleClose () { |
124 | this.$emit("input", false); | 132 | this.$emit("input", false); |
125 | } | 133 | } | ... | ... |
... | @@ -158,6 +158,10 @@ | ... | @@ -158,6 +158,10 @@ |
158 | } | 158 | } |
159 | }, | 159 | }, |
160 | methods: { | 160 | methods: { |
161 | /** | ||
162 | * @description: isShow | ||
163 | * @author: renchao | ||
164 | */ | ||
161 | isShow () { | 165 | isShow () { |
162 | setTimeout(() => { | 166 | setTimeout(() => { |
163 | this.ruleForm = this.ruleData | 167 | this.ruleForm = this.ruleData |
... | @@ -165,9 +169,18 @@ | ... | @@ -165,9 +169,18 @@ |
165 | }, 0) | 169 | }, 0) |
166 | this.$refs.validRule.isShow() | 170 | this.$refs.validRule.isShow() |
167 | }, | 171 | }, |
172 | /** | ||
173 | * @description: handleEdit | ||
174 | * @param {*} scope | ||
175 | * @author: renchao | ||
176 | */ | ||
168 | handleEdit (scope) { | 177 | handleEdit (scope) { |
169 | this.$set(scope.row, '_edit', true) | 178 | this.$set(scope.row, '_edit', true) |
170 | }, | 179 | }, |
180 | /** | ||
181 | * @description: handleAdd | ||
182 | * @author: renchao | ||
183 | */ | ||
171 | handleAdd () { | 184 | handleAdd () { |
172 | this.tableData.data.push({ | 185 | this.tableData.data.push({ |
173 | field: '', | 186 | field: '', |
... | @@ -177,9 +190,19 @@ | ... | @@ -177,9 +190,19 @@ |
177 | message: '' | 190 | message: '' |
178 | }) | 191 | }) |
179 | }, | 192 | }, |
193 | /** | ||
194 | * @description: handleMinus | ||
195 | * @param {*} index | ||
196 | * @param {*} row | ||
197 | * @author: renchao | ||
198 | */ | ||
180 | handleMinus (index, row) { | 199 | handleMinus (index, row) { |
181 | this.tableData.data.splice(index, 1); | 200 | this.tableData.data.splice(index, 1); |
182 | }, | 201 | }, |
202 | /** | ||
203 | * @description: handleSubmit | ||
204 | * @author: renchao | ||
205 | */ | ||
183 | async handleSubmit () { | 206 | async handleSubmit () { |
184 | this.ruleForm.sysYwsjbFieldList = this.tableData.data | 207 | this.ruleForm.sysYwsjbFieldList = this.tableData.data |
185 | try { | 208 | try { |
... | @@ -198,6 +221,10 @@ | ... | @@ -198,6 +221,10 @@ |
198 | } | 221 | } |
199 | 222 | ||
200 | }, | 223 | }, |
224 | /** | ||
225 | * @description: handleClose | ||
226 | * @author: renchao | ||
227 | */ | ||
201 | handleClose () { | 228 | handleClose () { |
202 | this.$refs['ruleForm'].resetFields(); | 229 | this.$refs['ruleForm'].resetFields(); |
203 | this.$refs.validRule.isHide() | 230 | this.$refs.validRule.isHide() | ... | ... |
... | @@ -257,6 +257,12 @@ | ... | @@ -257,6 +257,12 @@ |
257 | }, | 257 | }, |
258 | methods: { | 258 | methods: { |
259 | // 添加索引 | 259 | // 添加索引 |
260 | /** | ||
261 | * @description: 添加索引 | ||
262 | * @param {*} data | ||
263 | * @param {*} isAdd | ||
264 | * @author: renchao | ||
265 | */ | ||
260 | addIndexes (data = this.tableData, isAdd = true) { | 266 | addIndexes (data = this.tableData, isAdd = true) { |
261 | data.forEach((item, index) => { | 267 | data.forEach((item, index) => { |
262 | if (index == 0) { | 268 | if (index == 0) { |
... | @@ -278,6 +284,10 @@ | ... | @@ -278,6 +284,10 @@ |
278 | } | 284 | } |
279 | }); | 285 | }); |
280 | }, | 286 | }, |
287 | /** | ||
288 | * @description: itemShowFalse | ||
289 | * @author: renchao | ||
290 | */ | ||
281 | itemShowFalse () { | 291 | itemShowFalse () { |
282 | this.tableData.forEach((item, index) => { | 292 | this.tableData.forEach((item, index) => { |
283 | item.codeShow = false; | 293 | item.codeShow = false; |
... | @@ -286,11 +296,21 @@ | ... | @@ -286,11 +296,21 @@ |
286 | item.normnameShow = false; | 296 | item.normnameShow = false; |
287 | }); | 297 | }); |
288 | }, | 298 | }, |
299 | /** | ||
300 | * @description: handleMinus | ||
301 | * @param {*} index | ||
302 | * @param {*} row | ||
303 | * @author: renchao | ||
304 | */ | ||
289 | handleMinus (index, row) { | 305 | handleMinus (index, row) { |
290 | removeTreeListItem(this.tableData, row.dictid, 'dictid'); | 306 | removeTreeListItem(this.tableData, row.dictid, 'dictid'); |
291 | this.tableData = judgeSort(this.tableData) | 307 | this.tableData = judgeSort(this.tableData) |
292 | this.key++; | 308 | this.key++; |
293 | }, | 309 | }, |
310 | /** | ||
311 | * @description: handleSubmit | ||
312 | * @author: renchao | ||
313 | */ | ||
294 | handleSubmit () { | 314 | handleSubmit () { |
295 | editDictNode({ | 315 | editDictNode({ |
296 | dictid: this.details.rowData.dictid, | 316 | dictid: this.details.rowData.dictid, |
... | @@ -306,10 +326,19 @@ | ... | @@ -306,10 +326,19 @@ |
306 | } | 326 | } |
307 | }); | 327 | }); |
308 | }, | 328 | }, |
329 | /** | ||
330 | * @description: closeDialog | ||
331 | * @author: renchao | ||
332 | */ | ||
309 | closeDialog () { | 333 | closeDialog () { |
310 | this.$emit("input", false); | 334 | this.$emit("input", false); |
311 | }, | 335 | }, |
312 | // 增加下级 | 336 | // 增加下级 |
337 | /** | ||
338 | * @description: 增加下级 | ||
339 | * @param {*} row | ||
340 | * @author: renchao | ||
341 | */ | ||
313 | handleAddSubordinate (row) { | 342 | handleAddSubordinate (row) { |
314 | if (!row.children) { | 343 | if (!row.children) { |
315 | row.children = []; | 344 | row.children = []; |
... | @@ -327,6 +356,10 @@ | ... | @@ -327,6 +356,10 @@ |
327 | this.keyList.push(row.dictid); | 356 | this.keyList.push(row.dictid); |
328 | }, | 357 | }, |
329 | // 增加 | 358 | // 增加 |
359 | /** | ||
360 | * @description: 增加 | ||
361 | * @author: renchao | ||
362 | */ | ||
330 | handleAdd () { | 363 | handleAdd () { |
331 | this.$nextTick(() => { | 364 | this.$nextTick(() => { |
332 | let container = this.$el.querySelector(".el-table__body-wrapper"); | 365 | let container = this.$el.querySelector(".el-table__body-wrapper"); |
... | @@ -346,12 +379,24 @@ | ... | @@ -346,12 +379,24 @@ |
346 | this.key++; | 379 | this.key++; |
347 | }, | 380 | }, |
348 | // 上移下移 | 381 | // 上移下移 |
382 | /** | ||
383 | * @description: 上移下移 | ||
384 | * @param {*} index | ||
385 | * @param {*} row | ||
386 | * @author: renchao | ||
387 | */ | ||
349 | moveUpward (index, row) { | 388 | moveUpward (index, row) { |
350 | realMove(row.dictid, "UP", this.tableData); | 389 | realMove(row.dictid, "UP", this.tableData); |
351 | let id = findParents(this.tableData, row.dictid); | 390 | let id = findParents(this.tableData, row.dictid); |
352 | this.keyList = id; | 391 | this.keyList = id; |
353 | this.key++; | 392 | this.key++; |
354 | }, | 393 | }, |
394 | /** | ||
395 | * @description: moveDown | ||
396 | * @param {*} index | ||
397 | * @param {*} row | ||
398 | * @author: renchao | ||
399 | */ | ||
355 | moveDown (index, row) { | 400 | moveDown (index, row) { |
356 | realMove(row.dictid, "DOWN", this.tableData); | 401 | realMove(row.dictid, "DOWN", this.tableData); |
357 | let id = findParents(this.tableData, row.dictid); | 402 | let id = findParents(this.tableData, row.dictid); | ... | ... |
... | @@ -83,6 +83,10 @@ | ... | @@ -83,6 +83,10 @@ |
83 | }, | 83 | }, |
84 | methods: { | 84 | methods: { |
85 | // 初始化数据 | 85 | // 初始化数据 |
86 | /** | ||
87 | * @description: 初始化数据 | ||
88 | * @author: renchao | ||
89 | */ | ||
86 | queryClick () { | 90 | queryClick () { |
87 | getQlxxDictList({ ...this.ruleForm, ...this.pageData }).then(res => { | 91 | getQlxxDictList({ ...this.ruleForm, ...this.pageData }).then(res => { |
88 | let { records, total } = res.result | 92 | let { records, total } = res.result |
... | @@ -90,11 +94,19 @@ | ... | @@ -90,11 +94,19 @@ |
90 | this.tableData.total = total ? total : 0 | 94 | this.tableData.total = total ? total : 0 |
91 | }) | 95 | }) |
92 | }, | 96 | }, |
97 | /** | ||
98 | * @description: handleSearch | ||
99 | * @author: renchao | ||
100 | */ | ||
93 | handleSearch () { | 101 | handleSearch () { |
94 | this.pageData.currentPage = 1 | 102 | this.pageData.currentPage = 1 |
95 | this.tableData.data = [] | 103 | this.tableData.data = [] |
96 | this.queryClick() | 104 | this.queryClick() |
97 | }, | 105 | }, |
106 | /** | ||
107 | * @description: handleRefresh | ||
108 | * @author: renchao | ||
109 | */ | ||
98 | handleRefresh () { | 110 | handleRefresh () { |
99 | this.$confirm('是否确认刷新', '提示', { | 111 | this.$confirm('是否确认刷新', '提示', { |
100 | confirmButtonText: '确定', | 112 | confirmButtonText: '确定', |
... | @@ -120,6 +132,12 @@ | ... | @@ -120,6 +132,12 @@ |
120 | }); | 132 | }); |
121 | }); | 133 | }); |
122 | }, | 134 | }, |
135 | /** | ||
136 | * @description: editClick | ||
137 | * @param {*} row | ||
138 | * @param {*} val | ||
139 | * @author: renchao | ||
140 | */ | ||
123 | editClick (row, val) { | 141 | editClick (row, val) { |
124 | this.details.rowData = row | 142 | this.details.rowData = row |
125 | this.details.isenable = val | 143 | this.details.isenable = val | ... | ... |
... | @@ -103,14 +103,26 @@ | ... | @@ -103,14 +103,26 @@ |
103 | } | 103 | } |
104 | }, | 104 | }, |
105 | methods: { | 105 | methods: { |
106 | /** | ||
107 | * @description: handleAdd | ||
108 | * @author: renchao | ||
109 | */ | ||
106 | handleAdd () { | 110 | handleAdd () { |
107 | this.taskData = null | 111 | this.taskData = null |
108 | this.isDialog = true | 112 | this.isDialog = true |
109 | }, | 113 | }, |
114 | /** | ||
115 | * @description: resetSe | ||
116 | * @author: renchao | ||
117 | */ | ||
110 | resetSe () { | 118 | resetSe () { |
111 | this.form.jobName = '' | 119 | this.form.jobName = '' |
112 | this.featchData() | 120 | this.featchData() |
113 | }, | 121 | }, |
122 | /** | ||
123 | * @description: featchData | ||
124 | * @author: renchao | ||
125 | */ | ||
114 | async featchData () { | 126 | async featchData () { |
115 | try { | 127 | try { |
116 | this.form = Object.assign(this.form, this.formData) | 128 | this.form = Object.assign(this.form, this.formData) |
... | @@ -121,6 +133,11 @@ | ... | @@ -121,6 +133,11 @@ |
121 | this.message = error | 133 | this.message = error |
122 | } | 134 | } |
123 | }, | 135 | }, |
136 | /** | ||
137 | * @description: recover | ||
138 | * @param {*} row | ||
139 | * @author: renchao | ||
140 | */ | ||
124 | recover (row) { | 141 | recover (row) { |
125 | this.$confirm('此操将进行恢复操作, 是否继续?', '提示', { | 142 | this.$confirm('此操将进行恢复操作, 是否继续?', '提示', { |
126 | confirmButtonText: '确定', | 143 | confirmButtonText: '确定', |
... | @@ -153,6 +170,11 @@ | ... | @@ -153,6 +170,11 @@ |
153 | }) | 170 | }) |
154 | }, | 171 | }, |
155 | 172 | ||
173 | /** | ||
174 | * @description: handleActive | ||
175 | * @param {*} row | ||
176 | * @author: renchao | ||
177 | */ | ||
156 | handleActive (row) { | 178 | handleActive (row) { |
157 | this.$confirm('此操将进行激活操作, 是否继续?', '提示', { | 179 | this.$confirm('此操将进行激活操作, 是否继续?', '提示', { |
158 | confirmButtonText: '确定', | 180 | confirmButtonText: '确定', |
... | @@ -185,6 +207,11 @@ | ... | @@ -185,6 +207,11 @@ |
185 | }) | 207 | }) |
186 | }, | 208 | }, |
187 | // 暂停 | 209 | // 暂停 |
210 | /** | ||
211 | * @description: 暂停 | ||
212 | * @param {*} row | ||
213 | * @author: renchao | ||
214 | */ | ||
188 | handleSuspend (row) { | 215 | handleSuspend (row) { |
189 | this.$confirm('此操将进行暂停操作, 是否继续?', '提示', { | 216 | this.$confirm('此操将进行暂停操作, 是否继续?', '提示', { |
190 | confirmButtonText: '确定', | 217 | confirmButtonText: '确定', |
... | @@ -216,10 +243,20 @@ | ... | @@ -216,10 +243,20 @@ |
216 | }) | 243 | }) |
217 | }) | 244 | }) |
218 | }, | 245 | }, |
246 | /** | ||
247 | * @description: handleEdit | ||
248 | * @param {*} row | ||
249 | * @author: renchao | ||
250 | */ | ||
219 | handleEdit (row) { | 251 | handleEdit (row) { |
220 | this.taskData = row | 252 | this.taskData = row |
221 | this.isDialog = true | 253 | this.isDialog = true |
222 | }, | 254 | }, |
255 | /** | ||
256 | * @description: handleDel | ||
257 | * @param {*} row | ||
258 | * @author: renchao | ||
259 | */ | ||
223 | handleDel (row) { | 260 | handleDel (row) { |
224 | this.$confirm('此操将进行删除操作, 是否继续?', '提示', { | 261 | this.$confirm('此操将进行删除操作, 是否继续?', '提示', { |
225 | confirmButtonText: '确定', | 262 | confirmButtonText: '确定', | ... | ... |
-
Please register or sign in to post a comment