增加注释
Showing
3 changed files
with
124 additions
and
15 deletions
| ... | @@ -92,6 +92,10 @@ export default { | ... | @@ -92,6 +92,10 @@ export default { |
| 92 | } | 92 | } |
| 93 | }, | 93 | }, |
| 94 | methods: { | 94 | methods: { |
| 95 | /** | ||
| 96 | * @description: handleFullscreen | ||
| 97 | * @author: renchao | ||
| 98 | */ | ||
| 95 | handleFullscreen () { | 99 | handleFullscreen () { |
| 96 | this.fullscreen = !this.fullscreen | 100 | this.fullscreen = !this.fullscreen |
| 97 | if (!this.fullscreen) { | 101 | if (!this.fullscreen) { |
| ... | @@ -100,11 +104,19 @@ export default { | ... | @@ -100,11 +104,19 @@ export default { |
| 100 | this.scrollerHeight = (window.innerHeight - 120) + 'px' | 104 | this.scrollerHeight = (window.innerHeight - 120) + 'px' |
| 101 | } | 105 | } |
| 102 | }, | 106 | }, |
| 107 | /** | ||
| 108 | * @description: submitForm | ||
| 109 | * @author: renchao | ||
| 110 | */ | ||
| 103 | submitForm () { | 111 | submitForm () { |
| 104 | if (this.isButton) { | 112 | if (this.isButton) { |
| 105 | this.$emit('submitForm'); | 113 | this.$emit('submitForm'); |
| 106 | } | 114 | } |
| 107 | }, | 115 | }, |
| 116 | /** | ||
| 117 | * @description: closeDialog | ||
| 118 | * @author: renchao | ||
| 119 | */ | ||
| 108 | closeDialog () { | 120 | closeDialog () { |
| 109 | this.key++ | 121 | this.key++ |
| 110 | this.$emit('input', false) | 122 | this.$emit('input', false) | ... | ... |
| ... | @@ -345,6 +345,10 @@ export default { | ... | @@ -345,6 +345,10 @@ export default { |
| 345 | }; | 345 | }; |
| 346 | }, | 346 | }, |
| 347 | methods: { | 347 | methods: { |
| 348 | /** | ||
| 349 | * @description: inputBlur | ||
| 350 | * @author: renchao | ||
| 351 | */ | ||
| 348 | inputBlur (e) { | 352 | inputBlur (e) { |
| 349 | if (e.target.value != '') { | 353 | if (e.target.value != '') { |
| 350 | e.target.style.border = "" | 354 | e.target.style.border = "" |
| ... | @@ -353,8 +357,10 @@ export default { | ... | @@ -353,8 +357,10 @@ export default { |
| 353 | e.target.style.boxSizing = 'border-box'; | 357 | e.target.style.boxSizing = 'border-box'; |
| 354 | } | 358 | } |
| 355 | }, | 359 | }, |
| 356 | 360 | /** | |
| 357 | //新增行数据 | 361 | * @description: 新增行数据 |
| 362 | * @author: renchao | ||
| 363 | */ | ||
| 358 | addRow () { | 364 | addRow () { |
| 359 | 365 | ||
| 360 | console.log(this.gyfs, '共有方式') | 366 | console.log(this.gyfs, '共有方式') |
| ... | @@ -382,7 +388,10 @@ export default { | ... | @@ -382,7 +388,10 @@ export default { |
| 382 | this.dialogVisible = true; | 388 | this.dialogVisible = true; |
| 383 | } | 389 | } |
| 384 | }, | 390 | }, |
| 385 | //确认权利人信息按钮;可以进行新增;可以进行更新; | 391 | /** |
| 392 | * @description: 确认权利人信息按钮;可以进行新增;可以进行更新; | ||
| 393 | * @author: renchao | ||
| 394 | */ | ||
| 386 | addNewQlrInfo () { | 395 | addNewQlrInfo () { |
| 387 | 396 | ||
| 388 | this.rules = [ | 397 | this.rules = [ |
| ... | @@ -482,7 +491,10 @@ export default { | ... | @@ -482,7 +491,10 @@ export default { |
| 482 | 491 | ||
| 483 | 492 | ||
| 484 | }, | 493 | }, |
| 485 | //修改行数据 | 494 | /** |
| 495 | * @description: 修改行数据 | ||
| 496 | * @author: renchao | ||
| 497 | */ | ||
| 486 | changeRow () { | 498 | changeRow () { |
| 487 | if (this.multipleSelection.length === 1) { | 499 | if (this.multipleSelection.length === 1) { |
| 488 | this.dialogVisible = true; | 500 | this.dialogVisible = true; |
| ... | @@ -498,7 +510,10 @@ export default { | ... | @@ -498,7 +510,10 @@ export default { |
| 498 | }); | 510 | }); |
| 499 | } | 511 | } |
| 500 | }, | 512 | }, |
| 501 | 513 | /** | |
| 514 | * @description: updateGyfs | ||
| 515 | * @author: renchao | ||
| 516 | */ | ||
| 502 | updateGyfs (val) { | 517 | updateGyfs (val) { |
| 503 | console.log(val, this.type) | 518 | console.log(val, this.type) |
| 504 | updateGyGyQlrQk(this.bsm, this.type, val).then((res) => { | 519 | updateGyGyQlrQk(this.bsm, this.type, val).then((res) => { |
| ... | @@ -509,12 +524,18 @@ export default { | ... | @@ -509,12 +524,18 @@ export default { |
| 509 | }) | 524 | }) |
| 510 | }, | 525 | }, |
| 511 | 526 | ||
| 512 | //父组件改变子组件的共有方式 | 527 | /** |
| 528 | * @description: 父组件改变子组件的共有方式 | ||
| 529 | * @author: renchao | ||
| 530 | */ | ||
| 513 | changeGyfs (val) { | 531 | changeGyfs (val) { |
| 514 | this.gyfs = val; | 532 | this.gyfs = val; |
| 515 | }, | 533 | }, |
| 516 | 534 | ||
| 517 | //行双击事件 | 535 | /** |
| 536 | * @description: 行双击事件 | ||
| 537 | * @author: renchao | ||
| 538 | */ | ||
| 518 | rowDbclick (row) { | 539 | rowDbclick (row) { |
| 519 | if (+this.qszt == 0) { | 540 | if (+this.qszt == 0) { |
| 520 | this.dialogVisible = true; | 541 | this.dialogVisible = true; |
| ... | @@ -542,7 +563,10 @@ export default { | ... | @@ -542,7 +563,10 @@ export default { |
| 542 | // } | 563 | // } |
| 543 | // }, | 564 | // }, |
| 544 | 565 | ||
| 545 | //删除行数据 | 566 | /** |
| 567 | * @description: 删除行数据 | ||
| 568 | * @author: renchao | ||
| 569 | */ | ||
| 546 | delRow () { | 570 | delRow () { |
| 547 | if (this.multipleSelection.length > 0) { | 571 | if (this.multipleSelection.length > 0) { |
| 548 | let qlrbsms = []; | 572 | let qlrbsms = []; |
| ... | @@ -563,20 +587,35 @@ export default { | ... | @@ -563,20 +587,35 @@ export default { |
| 563 | }); | 587 | }); |
| 564 | } | 588 | } |
| 565 | }, | 589 | }, |
| 566 | //选中表格某一项 | 590 | /** |
| 591 | * @description: 选中表格某一项 | ||
| 592 | * @author: renchao | ||
| 593 | */ | ||
| 567 | handleSelectionChange (val) { | 594 | handleSelectionChange (val) { |
| 568 | this.multipleSelection = val; | 595 | this.multipleSelection = val; |
| 569 | }, | 596 | }, |
| 570 | 597 | ||
| 571 | //供父组件调用来获取共有方式 | 598 | /** |
| 599 | * @description: 供父组件调用来获取共有方式 | ||
| 600 | * @author: renchao | ||
| 601 | */ | ||
| 572 | getQlgyfsData () { | 602 | getQlgyfsData () { |
| 573 | return this.gyfs; | 603 | return this.gyfs; |
| 574 | }, | 604 | }, |
| 575 | //供父组件调用来获取权利人表格数据 | 605 | /** |
| 606 | * @description: 供父组件调用来获取权利人表格数据 | ||
| 607 | * @author: renchao | ||
| 608 | */ | ||
| 576 | getQlrxxData () { | 609 | getQlrxxData () { |
| 577 | return this.tableData; | 610 | return this.tableData; |
| 578 | }, | 611 | }, |
| 579 | //增删代理人 | 612 | /** |
| 613 | * @description: 增删代理人 | ||
| 614 | * @param {*} obj | ||
| 615 | * @param {*} ind | ||
| 616 | * @param {*} type | ||
| 617 | * @author: renchao | ||
| 618 | */ | ||
| 580 | handleClick (obj, ind, type) { | 619 | handleClick (obj, ind, type) { |
| 581 | if (type === "add") { | 620 | if (type === "add") { |
| 582 | this.formData.dlrList.push({ | 621 | this.formData.dlrList.push({ |
| ... | @@ -595,6 +634,11 @@ export default { | ... | @@ -595,6 +634,11 @@ export default { |
| 595 | }); | 634 | }); |
| 596 | } | 635 | } |
| 597 | }, | 636 | }, |
| 637 | /** | ||
| 638 | * @description: getQlrInfo | ||
| 639 | * @param {*} bsm | ||
| 640 | * @author: renchao | ||
| 641 | */ | ||
| 598 | getQlrInfo (bsm) { | 642 | getQlrInfo (bsm) { |
| 599 | if (this.lq == "") { | 643 | if (this.lq == "") { |
| 600 | getQlrInfoByGlbsm(bsm).then((res) => { | 644 | getQlrInfoByGlbsm(bsm).then((res) => { | ... | ... |
| ... | @@ -257,6 +257,12 @@ export default { | ... | @@ -257,6 +257,12 @@ export default { |
| 257 | mounted () { | 257 | mounted () { |
| 258 | }, | 258 | }, |
| 259 | methods: { | 259 | methods: { |
| 260 | /** | ||
| 261 | * @description: startTime | ||
| 262 | * @param {*} index | ||
| 263 | * @param {*} childIndex | ||
| 264 | * @author: renchao | ||
| 265 | */ | ||
| 260 | startTime (index, childIndex) { | 266 | startTime (index, childIndex) { |
| 261 | let startTime = this.countList[index].list[childIndex].tdsyqssj; | 267 | let startTime = this.countList[index].list[childIndex].tdsyqssj; |
| 262 | let endTime = this.countList[index].list[childIndex].tdsyjssj; | 268 | let endTime = this.countList[index].list[childIndex].tdsyjssj; |
| ... | @@ -276,6 +282,13 @@ export default { | ... | @@ -276,6 +282,13 @@ export default { |
| 276 | // this.countList[index].list[childIndex].syqx=endYear-startYear; | 282 | // this.countList[index].list[childIndex].syqx=endYear-startYear; |
| 277 | } | 283 | } |
| 278 | }, | 284 | }, |
| 285 | /** | ||
| 286 | * @description: sumTime | ||
| 287 | * @param {*} index | ||
| 288 | * @param {*} childIndex | ||
| 289 | * @param {*} syqx | ||
| 290 | * @author: renchao | ||
| 291 | */ | ||
| 279 | sumTime (index, childIndex, syqx, e) { | 292 | sumTime (index, childIndex, syqx, e) { |
| 280 | this.$refs.syqx.forEach((item, index) => { | 293 | this.$refs.syqx.forEach((item, index) => { |
| 281 | if (item.value == syqx) { | 294 | if (item.value == syqx) { |
| ... | @@ -285,6 +298,12 @@ export default { | ... | @@ -285,6 +298,12 @@ export default { |
| 285 | let startTime = this.countList[index].list[childIndex].tdsyqssj; | 298 | let startTime = this.countList[index].list[childIndex].tdsyqssj; |
| 286 | this.countList[index].list[childIndex].tdsyjssj = Number(startTime.substring(0, 4)) + Number(syqx) + startTime.slice(4, 10); | 299 | this.countList[index].list[childIndex].tdsyjssj = Number(startTime.substring(0, 4)) + Number(syqx) + startTime.slice(4, 10); |
| 287 | }, | 300 | }, |
| 301 | /** | ||
| 302 | * @description: endTime | ||
| 303 | * @param {*} index | ||
| 304 | * @param {*} childIndex | ||
| 305 | * @author: renchao | ||
| 306 | */ | ||
| 288 | endTime (index, childIndex, e) { | 307 | endTime (index, childIndex, e) { |
| 289 | let startTime = this.countList[index].list[childIndex].tdsyqssj; | 308 | let startTime = this.countList[index].list[childIndex].tdsyqssj; |
| 290 | let endTime = this.countList[index].list[childIndex].tdsyjssj; | 309 | let endTime = this.countList[index].list[childIndex].tdsyjssj; |
| ... | @@ -303,7 +322,12 @@ export default { | ... | @@ -303,7 +322,12 @@ export default { |
| 303 | // this.countList[index].list[childIndex].syqx=endYear-startYear; | 322 | // this.countList[index].list[childIndex].syqx=endYear-startYear; |
| 304 | } | 323 | } |
| 305 | }, | 324 | }, |
| 306 | //外层操作 | 325 | /** |
| 326 | * @description: 外层操作 | ||
| 327 | * @param {*} ind | ||
| 328 | * @param {*} type | ||
| 329 | * @author: renchao | ||
| 330 | */ | ||
| 307 | handleClick (ind, type) { | 331 | handleClick (ind, type) { |
| 308 | let outsideObj = { | 332 | let outsideObj = { |
| 309 | id: Math.random(), | 333 | id: Math.random(), |
| ... | @@ -348,6 +372,10 @@ export default { | ... | @@ -348,6 +372,10 @@ export default { |
| 348 | this.outNum--; | 372 | this.outNum--; |
| 349 | } | 373 | } |
| 350 | }, | 374 | }, |
| 375 | /** | ||
| 376 | * @description: reset | ||
| 377 | * @author: renchao | ||
| 378 | */ | ||
| 351 | reset () { | 379 | reset () { |
| 352 | this.countList = [ | 380 | this.countList = [ |
| 353 | { | 381 | { |
| ... | @@ -383,7 +411,13 @@ export default { | ... | @@ -383,7 +411,13 @@ export default { |
| 383 | }, | 411 | }, |
| 384 | ]; | 412 | ]; |
| 385 | }, | 413 | }, |
| 386 | //内层操作 | 414 | /** |
| 415 | * @description: 内层操作 | ||
| 416 | * @param {*} index | ||
| 417 | * @param {*} childIndex | ||
| 418 | * @param {*} type | ||
| 419 | * @author: renchao | ||
| 420 | */ | ||
| 387 | handleInClick (index, childIndex, type) { | 421 | handleInClick (index, childIndex, type) { |
| 388 | let insideObj = { | 422 | let insideObj = { |
| 389 | pzdjbsm: "", | 423 | pzdjbsm: "", |
| ... | @@ -415,7 +449,10 @@ export default { | ... | @@ -415,7 +449,10 @@ export default { |
| 415 | } | 449 | } |
| 416 | this.hasBorderOrNot(); | 450 | this.hasBorderOrNot(); |
| 417 | }, | 451 | }, |
| 418 | //判断是否显示边框 | 452 | /** |
| 453 | * @description: 判断是否显示边框 | ||
| 454 | * @author: renchao | ||
| 455 | */ | ||
| 419 | hasBorderOrNot () { | 456 | hasBorderOrNot () { |
| 420 | this.countList.forEach((item, index) => { | 457 | this.countList.forEach((item, index) => { |
| 421 | if (index == this.countList.length - 1) { | 458 | if (index == this.countList.length - 1) { |
| ... | @@ -426,9 +463,17 @@ export default { | ... | @@ -426,9 +463,17 @@ export default { |
| 426 | } | 463 | } |
| 427 | }); | 464 | }); |
| 428 | }, | 465 | }, |
| 466 | /** | ||
| 467 | * @description: getQlxzDataList | ||
| 468 | * @author: renchao | ||
| 469 | */ | ||
| 429 | getQlxzDataList () { | 470 | getQlxzDataList () { |
| 430 | return this.countList; | 471 | return this.countList; |
| 431 | }, | 472 | }, |
| 473 | /** | ||
| 474 | * @description: getRules | ||
| 475 | * @author: renchao | ||
| 476 | */ | ||
| 432 | getRules () { | 477 | getRules () { |
| 433 | let rules = []; | 478 | let rules = []; |
| 434 | let temp = 0; | 479 | let temp = 0; |
| ... | @@ -507,9 +552,17 @@ export default { | ... | @@ -507,9 +552,17 @@ export default { |
| 507 | }) | 552 | }) |
| 508 | // console.log(rules,'rules'); | 553 | // console.log(rules,'rules'); |
| 509 | }, | 554 | }, |
| 555 | /** | ||
| 556 | * @description: getRulesResult | ||
| 557 | * @author: renchao | ||
| 558 | */ | ||
| 510 | getRulesResult () { | 559 | getRulesResult () { |
| 511 | return this.rulesResult | 560 | return this.rulesResult |
| 512 | }, | 561 | }, |
| 562 | /** | ||
| 563 | * @description: inputBlur | ||
| 564 | * @author: renchao | ||
| 565 | */ | ||
| 513 | inputBlur (e, flag) { | 566 | inputBlur (e, flag) { |
| 514 | if (flag) { | 567 | if (flag) { |
| 515 | if (e.value != '') { | 568 | if (e.value != '') { | ... | ... |
-
Please register or sign in to post a comment