askbot-dragon 0.9.13 → 0.9.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
</div>
|
|
14
14
|
</div> -->
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
:formList="
|
|
16
|
+
<form-template
|
|
17
|
+
:formList="formList3"
|
|
18
18
|
@submitClick="submitClick"
|
|
19
|
-
></form-template>
|
|
19
|
+
></form-template>
|
|
20
20
|
<!-- <voice-component @closeVoice="closeVoice">
|
|
21
21
|
<div slot="voiceTip">
|
|
22
22
|
松开发送
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
/*import FormTemplate from "@/components/formTemplate";
|
|
54
54
|
import TextMessage from "@/components/message/TextMessage";*/
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
import FormTemplate from '@/components/formTemplate'
|
|
57
57
|
import AnswerRadio from './answerRadio'
|
|
58
58
|
// import TicketMessage from './message/TicketMessage'
|
|
59
59
|
/*import VoiceComponent from "./voiceComponent";*/
|
|
@@ -91,7 +91,7 @@ export default {
|
|
|
91
91
|
// TicketMessage,
|
|
92
92
|
// AsserDeatils,
|
|
93
93
|
AnswerRadio,
|
|
94
|
-
|
|
94
|
+
FormTemplate,
|
|
95
95
|
// TextMessage,
|
|
96
96
|
// FeedBack,
|
|
97
97
|
// VoiceCompontent,
|
|
@@ -3307,6 +3307,953 @@ export default {
|
|
|
3307
3307
|
],
|
|
3308
3308
|
}
|
|
3309
3309
|
},
|
|
3310
|
+
formList4:{
|
|
3311
|
+
formActionId: '14',
|
|
3312
|
+
form:{
|
|
3313
|
+
"formFieldRelation":[
|
|
3314
|
+
{
|
|
3315
|
+
"fieldId":"workorder_description",
|
|
3316
|
+
"paramName":"description",
|
|
3317
|
+
"formField":{
|
|
3318
|
+
"id":null,
|
|
3319
|
+
"name":"问题描述",
|
|
3320
|
+
"description":null,
|
|
3321
|
+
"type":"TEXTAREA",
|
|
3322
|
+
"deleted":null,
|
|
3323
|
+
"lastOperatorId":null,
|
|
3324
|
+
"mainId":null,
|
|
3325
|
+
"extInfo":{
|
|
3326
|
+
"visibleWithoutPermission":true,
|
|
3327
|
+
"isDelete":false,
|
|
3328
|
+
"autoInput":{
|
|
3329
|
+
"enable":false,
|
|
3330
|
+
"rule":{
|
|
3331
|
+
"handler":"",
|
|
3332
|
+
"exp":"",
|
|
3333
|
+
"type":"reg"
|
|
3334
|
+
},
|
|
3335
|
+
"source":[
|
|
3336
|
+
|
|
3337
|
+
]
|
|
3338
|
+
},
|
|
3339
|
+
"range":{
|
|
3340
|
+
"start":"",
|
|
3341
|
+
"end":""
|
|
3342
|
+
},
|
|
3343
|
+
"disabled":true,
|
|
3344
|
+
"placeholder":"请输入"
|
|
3345
|
+
},
|
|
3346
|
+
"createTime":null,
|
|
3347
|
+
"updateTime":null,
|
|
3348
|
+
"required":null,
|
|
3349
|
+
"workOrderFieldId":"e6aa2667ae64494d917613048f00f3ad"
|
|
3350
|
+
},
|
|
3351
|
+
"value":"",
|
|
3352
|
+
"display":true,
|
|
3353
|
+
"required":true,
|
|
3354
|
+
"editable":null
|
|
3355
|
+
},
|
|
3356
|
+
{
|
|
3357
|
+
"fieldId":"workorder_priority",
|
|
3358
|
+
"paramName":"priority",
|
|
3359
|
+
"formField":{
|
|
3360
|
+
"id":null,
|
|
3361
|
+
"name":"优先级",
|
|
3362
|
+
"description":null,
|
|
3363
|
+
"type":"SELECT",
|
|
3364
|
+
"deleted":null,
|
|
3365
|
+
"lastOperatorId":null,
|
|
3366
|
+
"mainId":null,
|
|
3367
|
+
"extInfo":{
|
|
3368
|
+
"option":[
|
|
3369
|
+
{
|
|
3370
|
+
"label":"紧急",
|
|
3371
|
+
"value":"URGENT"
|
|
3372
|
+
},
|
|
3373
|
+
{
|
|
3374
|
+
"label":"高",
|
|
3375
|
+
"value":"HIGH"
|
|
3376
|
+
},
|
|
3377
|
+
{
|
|
3378
|
+
"label":"中",
|
|
3379
|
+
"value":"MIDDLE"
|
|
3380
|
+
},
|
|
3381
|
+
{
|
|
3382
|
+
"label":"低",
|
|
3383
|
+
"value":"LOW"
|
|
3384
|
+
}
|
|
3385
|
+
]
|
|
3386
|
+
},
|
|
3387
|
+
"createTime":null,
|
|
3388
|
+
"updateTime":null,
|
|
3389
|
+
"required":null,
|
|
3390
|
+
"workOrderFieldId":"f816946e83f84f5584ce50d95b7fb896"
|
|
3391
|
+
},
|
|
3392
|
+
"value":"MIDDLE",
|
|
3393
|
+
"display":true,
|
|
3394
|
+
"required":true,
|
|
3395
|
+
"editable":null
|
|
3396
|
+
},
|
|
3397
|
+
{
|
|
3398
|
+
"fieldId":"workorder_clientId",
|
|
3399
|
+
"paramName":"clientId",
|
|
3400
|
+
"formField":{
|
|
3401
|
+
"id":null,
|
|
3402
|
+
"name":"客户",
|
|
3403
|
+
"description":null,
|
|
3404
|
+
"type":"SELECT",
|
|
3405
|
+
"deleted":null,
|
|
3406
|
+
"lastOperatorId":null,
|
|
3407
|
+
"mainId":null,
|
|
3408
|
+
"extInfo":{
|
|
3409
|
+
"option":[
|
|
3410
|
+
{
|
|
3411
|
+
"label":"woWeMoBwAA4Tl0h9pQHI6WbcoIVmg3YA",
|
|
3412
|
+
"value":"6204d47e78d5a11647df80be"
|
|
3413
|
+
},
|
|
3414
|
+
{
|
|
3415
|
+
"label":"woWeMoBwAACYR3trQ2LYHWtyOfpplqkw",
|
|
3416
|
+
"value":"6209f179afbdcd6fa056a4a4"
|
|
3417
|
+
},
|
|
3418
|
+
{
|
|
3419
|
+
"label":"woWeMoBwAA20zzhSI-H6bsoR85kQRmVg",
|
|
3420
|
+
"value":"6209fd7fafbdcd6fa056a4c8"
|
|
3421
|
+
},
|
|
3422
|
+
{
|
|
3423
|
+
"label":"woWeMoBwAAJrf9huLqkIUdZqtSX8Gn5w",
|
|
3424
|
+
"value":"620a0d9b42aa263ff58e33c2"
|
|
3425
|
+
},
|
|
3426
|
+
{
|
|
3427
|
+
"label":"woWeMoBwAAfFhhBXkez5W1ZFHKYXu-Fw",
|
|
3428
|
+
"value":"620a27a742aa263ff58e3402"
|
|
3429
|
+
},
|
|
3430
|
+
{
|
|
3431
|
+
"label":"woWeMoBwAAsnXU1XmId2s1YEpUQs3RSQ",
|
|
3432
|
+
"value":"620a37da42aa263ff58e340a"
|
|
3433
|
+
},
|
|
3434
|
+
{
|
|
3435
|
+
"label":"woWeMoBwAAZiyHnkSTslQXI2FnofVPjg",
|
|
3436
|
+
"value":"620b573b42aa263ff58e34da"
|
|
3437
|
+
},
|
|
3438
|
+
{
|
|
3439
|
+
"label":"woWeMoBwAAIX7QQAKxZN-nBPMjR0QuCw",
|
|
3440
|
+
"value":"620ca14f4337607a8d4c5ca2"
|
|
3441
|
+
},
|
|
3442
|
+
{
|
|
3443
|
+
"label":"woWeMoBwAABl7fosZeGvguVARqN4rG0A",
|
|
3444
|
+
"value":"6212ff4453efc7278ccef8ae"
|
|
3445
|
+
},
|
|
3446
|
+
{
|
|
3447
|
+
"label":"woWeMoBwAAQ-iS-m6AjmFvQ7g2I3FPng",
|
|
3448
|
+
"value":"625e1f5f786af427b2832807"
|
|
3449
|
+
},
|
|
3450
|
+
{
|
|
3451
|
+
"label":"woWeMoBwAAiD6E8vXINiqy1Kko9VQbmg",
|
|
3452
|
+
"value":"625e75942320fd5b53f3c7a4"
|
|
3453
|
+
},
|
|
3454
|
+
{
|
|
3455
|
+
"label":"woWeMoBwAAfQSn5vV66oK9CVkGqkXeCQ",
|
|
3456
|
+
"value":"627bbedbfa08ba2c93a59fee"
|
|
3457
|
+
},
|
|
3458
|
+
{
|
|
3459
|
+
"label":"woWeMoBwAAWCWoqUrWhGZf0cKjcZBEsQ",
|
|
3460
|
+
"value":"62b2ba2383d61122e6e53e02"
|
|
3461
|
+
},
|
|
3462
|
+
{
|
|
3463
|
+
"label":"woWeMoBwAArT4aNWvAYWM6uO4yWpicCw",
|
|
3464
|
+
"value":"62b430034b8f9e682bdab2d0"
|
|
3465
|
+
},
|
|
3466
|
+
{
|
|
3467
|
+
"label":"woWeMoBwAASNKq97dfLem1lWhCGKPiJg",
|
|
3468
|
+
"value":"62f4acdde1c53619d0739268"
|
|
3469
|
+
},
|
|
3470
|
+
{
|
|
3471
|
+
"label":"刘玉丽",
|
|
3472
|
+
"value":"63107ee0653ea51f90d8aa60"
|
|
3473
|
+
},
|
|
3474
|
+
{
|
|
3475
|
+
"label":"woWeMoBwAACYR3trQ2LYHWtyOfpplqkw",
|
|
3476
|
+
"value":"6320731a1d16876a4eb8df96"
|
|
3477
|
+
},
|
|
3478
|
+
{
|
|
3479
|
+
"label":"woWeMoBwAAWCWoqUrWhGZf0cKjcZBEsQ",
|
|
3480
|
+
"value":"632194f31955025d5b782edc"
|
|
3481
|
+
},
|
|
3482
|
+
{
|
|
3483
|
+
"label":"woWeMoBwAACYR3trQ2LYHWtyOfpplqkw",
|
|
3484
|
+
"value":"63228d75e635840361f47cac"
|
|
3485
|
+
},
|
|
3486
|
+
{
|
|
3487
|
+
"label":"张庆雷",
|
|
3488
|
+
"value":"6322a187a772d84c09c01ce6"
|
|
3489
|
+
},
|
|
3490
|
+
{
|
|
3491
|
+
"label":"woWeMoBwAAfQSn5vV66oK9CVkGqkXeCQ",
|
|
3492
|
+
"value":"6324227b2458710b4c800247"
|
|
3493
|
+
},
|
|
3494
|
+
{
|
|
3495
|
+
"label":"woWeMoBwAAfQSn5vV66oK9CVkGqkXeCQ",
|
|
3496
|
+
"value":"633147665e71f84dfba63840"
|
|
3497
|
+
},
|
|
3498
|
+
{
|
|
3499
|
+
"label":"woWeMoBwAAWCWoqUrWhGZf0cKjcZBEsQ",
|
|
3500
|
+
"value":"63314ef077063a014e8e3065"
|
|
3501
|
+
},
|
|
3502
|
+
{
|
|
3503
|
+
"label":"woWeMoBwAAWCWoqUrWhGZf0cKjcZBEsQ",
|
|
3504
|
+
"value":"6331548a5be47738953792dd"
|
|
3505
|
+
},
|
|
3506
|
+
{
|
|
3507
|
+
"label":"woWeMoBwAAfQSn5vV66oK9CVkGqkXeCQ",
|
|
3508
|
+
"value":"6331827253c0b338536bb6c2"
|
|
3509
|
+
},
|
|
3510
|
+
{
|
|
3511
|
+
"label":"woWeMoBwAAfQSn5vV66oK9CVkGqkXeCQ",
|
|
3512
|
+
"value":"633541309f18f43c58c78c75"
|
|
3513
|
+
},
|
|
3514
|
+
{
|
|
3515
|
+
"label":"woWeMoBwAAWCWoqUrWhGZf0cKjcZBEsQ",
|
|
3516
|
+
"value":"6347df7b6eb87a637c06231d"
|
|
3517
|
+
},
|
|
3518
|
+
{
|
|
3519
|
+
"label":"woWeMoBwAAKtKLBwBGiaGyofH3FKySaw",
|
|
3520
|
+
"value":"63773556a55c096bcfd370ec"
|
|
3521
|
+
},
|
|
3522
|
+
{
|
|
3523
|
+
"label":"吴可贤",
|
|
3524
|
+
"value":"637dded7d1d40c1070a0742d"
|
|
3525
|
+
},
|
|
3526
|
+
{
|
|
3527
|
+
"label":"刁瑶杭",
|
|
3528
|
+
"value":"637de019d1d40c1070a07450"
|
|
3529
|
+
},
|
|
3530
|
+
{
|
|
3531
|
+
"label":"陈勇",
|
|
3532
|
+
"value":"637de7d6d1d40c1070a074c6"
|
|
3533
|
+
},
|
|
3534
|
+
{
|
|
3535
|
+
"label":"woWeMoBwAAzx5ydFD2Z5riW0pKudUYhg",
|
|
3536
|
+
"value":"637e1df61c63c7757cac95d1"
|
|
3537
|
+
},
|
|
3538
|
+
{
|
|
3539
|
+
"label":"王亚欣",
|
|
3540
|
+
"value":"637ed8e869f73a42730b30d3"
|
|
3541
|
+
}
|
|
3542
|
+
]
|
|
3543
|
+
},
|
|
3544
|
+
"createTime":null,
|
|
3545
|
+
"updateTime":null,
|
|
3546
|
+
"required":null,
|
|
3547
|
+
"workOrderFieldId":""
|
|
3548
|
+
},
|
|
3549
|
+
"value":"",
|
|
3550
|
+
"display":true,
|
|
3551
|
+
"required":false,
|
|
3552
|
+
"editable":null
|
|
3553
|
+
},
|
|
3554
|
+
{
|
|
3555
|
+
"fieldId":"workorder_statusId",
|
|
3556
|
+
"paramName":"statusId",
|
|
3557
|
+
"formField":{
|
|
3558
|
+
"id":null,
|
|
3559
|
+
"name":"状态",
|
|
3560
|
+
"description":null,
|
|
3561
|
+
"type":"SELECT",
|
|
3562
|
+
"deleted":null,
|
|
3563
|
+
"lastOperatorId":null,
|
|
3564
|
+
"mainId":null,
|
|
3565
|
+
"extInfo":{
|
|
3566
|
+
"option":[
|
|
3567
|
+
{
|
|
3568
|
+
"label":"新建",
|
|
3569
|
+
"value":"61f0b074e698d414a7857d1b"
|
|
3570
|
+
},
|
|
3571
|
+
{
|
|
3572
|
+
"label":"已解决",
|
|
3573
|
+
"value":"61f0b074e698d414a7857d1d"
|
|
3574
|
+
},
|
|
3575
|
+
{
|
|
3576
|
+
"label":"已关闭",
|
|
3577
|
+
"value":"61f0b074e698d414a7857d1e"
|
|
3578
|
+
},
|
|
3579
|
+
{
|
|
3580
|
+
"label":"解决中",
|
|
3581
|
+
"value":"61f0b074e698d414a7857d1c"
|
|
3582
|
+
},
|
|
3583
|
+
{
|
|
3584
|
+
"label":"已取消",
|
|
3585
|
+
"value":"62e26fe65f7c5542654fbec2"
|
|
3586
|
+
},
|
|
3587
|
+
{
|
|
3588
|
+
"label":"暂不处理",
|
|
3589
|
+
"value":"6318618b9158ca1fe08ceef0"
|
|
3590
|
+
},
|
|
3591
|
+
{
|
|
3592
|
+
"label":"状态7",
|
|
3593
|
+
"value":"632411b84af7ef4c3365db9f"
|
|
3594
|
+
},
|
|
3595
|
+
{
|
|
3596
|
+
"label":"状态八",
|
|
3597
|
+
"value":"632411c24af7ef4c3365dc04"
|
|
3598
|
+
},
|
|
3599
|
+
{
|
|
3600
|
+
"label":"状态九",
|
|
3601
|
+
"value":"632411d04af7ef4c3365dc54"
|
|
3602
|
+
},
|
|
3603
|
+
{
|
|
3604
|
+
"label":"状态1",
|
|
3605
|
+
"value":"63246757bfd61a1bb88747b0"
|
|
3606
|
+
},
|
|
3607
|
+
{
|
|
3608
|
+
"label":"状态2",
|
|
3609
|
+
"value":"63246761bfd61a1bb8874800"
|
|
3610
|
+
},
|
|
3611
|
+
{
|
|
3612
|
+
"label":"状态3",
|
|
3613
|
+
"value":"63246769bfd61a1bb8874850"
|
|
3614
|
+
},
|
|
3615
|
+
{
|
|
3616
|
+
"label":"状态4",
|
|
3617
|
+
"value":"63246773bfd61a1bb88748a0"
|
|
3618
|
+
},
|
|
3619
|
+
{
|
|
3620
|
+
"label":"状态5",
|
|
3621
|
+
"value":"6324677dbfd61a1bb88748f0"
|
|
3622
|
+
},
|
|
3623
|
+
{
|
|
3624
|
+
"label":"待现场处理",
|
|
3625
|
+
"value":"6358d4aece442906c9e090ed"
|
|
3626
|
+
}
|
|
3627
|
+
]
|
|
3628
|
+
},
|
|
3629
|
+
"createTime":null,
|
|
3630
|
+
"updateTime":null,
|
|
3631
|
+
"required":null,
|
|
3632
|
+
"workOrderFieldId":"540cab88377f486e99f14cff4695e780"
|
|
3633
|
+
},
|
|
3634
|
+
"value":"61f0b074e698d414a7857d1b",
|
|
3635
|
+
"display":true,
|
|
3636
|
+
"required":true,
|
|
3637
|
+
"editable":null
|
|
3638
|
+
},
|
|
3639
|
+
{
|
|
3640
|
+
"fieldId":"c32c7a17f48040d2b92294a77b58d7b8",
|
|
3641
|
+
"paramName":"fieldValue.c32c7a17f48040d2b92294a77b58d7b8",
|
|
3642
|
+
"formField":{
|
|
3643
|
+
"id":null,
|
|
3644
|
+
"name":"级联1",
|
|
3645
|
+
"description":null,
|
|
3646
|
+
"type":"CASCADER",
|
|
3647
|
+
"deleted":null,
|
|
3648
|
+
"lastOperatorId":null,
|
|
3649
|
+
"mainId":null,
|
|
3650
|
+
"extInfo":{
|
|
3651
|
+
"isDelete":true,
|
|
3652
|
+
"autoInput":{
|
|
3653
|
+
"enable":false,
|
|
3654
|
+
"rule":{
|
|
3655
|
+
"handler":"",
|
|
3656
|
+
"type":"dict",
|
|
3657
|
+
"exp":""
|
|
3658
|
+
},
|
|
3659
|
+
"source":[
|
|
3660
|
+
|
|
3661
|
+
]
|
|
3662
|
+
},
|
|
3663
|
+
"range":{
|
|
3664
|
+
"start":"",
|
|
3665
|
+
"end":""
|
|
3666
|
+
},
|
|
3667
|
+
"selectType":"多选",
|
|
3668
|
+
"placeholder":"请选择",
|
|
3669
|
+
"dependent":{
|
|
3670
|
+
|
|
3671
|
+
},
|
|
3672
|
+
"fieldValue":[
|
|
3673
|
+
|
|
3674
|
+
],
|
|
3675
|
+
"cascadeDown":{
|
|
3676
|
+
"options":[
|
|
3677
|
+
{
|
|
3678
|
+
"_default":false,
|
|
3679
|
+
"optionStruct":{
|
|
3680
|
+
"894409022d464ac595da6fcc9a2a282a":[
|
|
3681
|
+
[
|
|
3682
|
+
"级联2"
|
|
3683
|
+
],
|
|
3684
|
+
[
|
|
3685
|
+
"级联2",
|
|
3686
|
+
"级联22"
|
|
3687
|
+
]
|
|
3688
|
+
],
|
|
3689
|
+
"3a8f2444758c40478583ce097e26e340":[
|
|
3690
|
+
[
|
|
3691
|
+
"级联3"
|
|
3692
|
+
],
|
|
3693
|
+
[
|
|
3694
|
+
"级联3",
|
|
3695
|
+
"级联33"
|
|
3696
|
+
]
|
|
3697
|
+
],
|
|
3698
|
+
"3b64ca68db3b4e058b35a23aa1bfdfdd":[
|
|
3699
|
+
{
|
|
3700
|
+
"label":"选项一",
|
|
3701
|
+
"value":"选项一"
|
|
3702
|
+
},
|
|
3703
|
+
{
|
|
3704
|
+
"label":"选项二",
|
|
3705
|
+
"value":"选项二"
|
|
3706
|
+
}
|
|
3707
|
+
]
|
|
3708
|
+
},
|
|
3709
|
+
"children":[
|
|
3710
|
+
{
|
|
3711
|
+
"_default":false,
|
|
3712
|
+
"optionStruct":{
|
|
3713
|
+
"894409022d464ac595da6fcc9a2a282a":[
|
|
3714
|
+
[
|
|
3715
|
+
"级联2",
|
|
3716
|
+
"级联22"
|
|
3717
|
+
],
|
|
3718
|
+
[
|
|
3719
|
+
"级联2",
|
|
3720
|
+
"级联22",
|
|
3721
|
+
"级联22"
|
|
3722
|
+
]
|
|
3723
|
+
],
|
|
3724
|
+
"3a8f2444758c40478583ce097e26e340":[
|
|
3725
|
+
[
|
|
3726
|
+
"级联3",
|
|
3727
|
+
"级联33",
|
|
3728
|
+
"级联333"
|
|
3729
|
+
],
|
|
3730
|
+
[
|
|
3731
|
+
"级联3",
|
|
3732
|
+
"级联3333"
|
|
3733
|
+
]
|
|
3734
|
+
],
|
|
3735
|
+
"3b64ca68db3b4e058b35a23aa1bfdfdd":[
|
|
3736
|
+
{
|
|
3737
|
+
"label":"选项二",
|
|
3738
|
+
"value":"选项二"
|
|
3739
|
+
},
|
|
3740
|
+
{
|
|
3741
|
+
"label":"选项三",
|
|
3742
|
+
"value":"选项三"
|
|
3743
|
+
}
|
|
3744
|
+
]
|
|
3745
|
+
},
|
|
3746
|
+
"children":[
|
|
3747
|
+
{
|
|
3748
|
+
"_default":false,
|
|
3749
|
+
"optionStruct":{
|
|
3750
|
+
"894409022d464ac595da6fcc9a2a282a":[
|
|
3751
|
+
[
|
|
3752
|
+
"级联2"
|
|
3753
|
+
],
|
|
3754
|
+
[
|
|
3755
|
+
"其他"
|
|
3756
|
+
]
|
|
3757
|
+
],
|
|
3758
|
+
"3a8f2444758c40478583ce097e26e340":[
|
|
3759
|
+
[
|
|
3760
|
+
"级联3",
|
|
3761
|
+
"级联33"
|
|
3762
|
+
],
|
|
3763
|
+
[
|
|
3764
|
+
"级联3",
|
|
3765
|
+
"级联3333"
|
|
3766
|
+
]
|
|
3767
|
+
],
|
|
3768
|
+
"3b64ca68db3b4e058b35a23aa1bfdfdd":[
|
|
3769
|
+
{
|
|
3770
|
+
"label":"选项三",
|
|
3771
|
+
"value":"选项三"
|
|
3772
|
+
},
|
|
3773
|
+
{
|
|
3774
|
+
"label":"选项一",
|
|
3775
|
+
"value":"选项一"
|
|
3776
|
+
}
|
|
3777
|
+
]
|
|
3778
|
+
},
|
|
3779
|
+
"label":"级联111",
|
|
3780
|
+
"relationItems":[
|
|
3781
|
+
|
|
3782
|
+
],
|
|
3783
|
+
"value":"级联111"
|
|
3784
|
+
}
|
|
3785
|
+
],
|
|
3786
|
+
"label":"级联11",
|
|
3787
|
+
"relationItems":[
|
|
3788
|
+
|
|
3789
|
+
],
|
|
3790
|
+
"value":"级联11"
|
|
3791
|
+
}
|
|
3792
|
+
],
|
|
3793
|
+
"label":"级联1",
|
|
3794
|
+
"relationItems":[
|
|
3795
|
+
|
|
3796
|
+
],
|
|
3797
|
+
"value":"级联1",
|
|
3798
|
+
"requiredItems":[
|
|
3799
|
+
|
|
3800
|
+
]
|
|
3801
|
+
}
|
|
3802
|
+
]
|
|
3803
|
+
}
|
|
3804
|
+
},
|
|
3805
|
+
"createTime":null,
|
|
3806
|
+
"updateTime":null,
|
|
3807
|
+
"required":null,
|
|
3808
|
+
"workOrderFieldId":"c32c7a17f48040d2b92294a77b58d7b8"
|
|
3809
|
+
},
|
|
3810
|
+
"value":[
|
|
3811
|
+
|
|
3812
|
+
],
|
|
3813
|
+
"display":true,
|
|
3814
|
+
"required":false,
|
|
3815
|
+
"editable":null
|
|
3816
|
+
},
|
|
3817
|
+
{
|
|
3818
|
+
"fieldId":"894409022d464ac595da6fcc9a2a282a",
|
|
3819
|
+
"paramName":"fieldValue.894409022d464ac595da6fcc9a2a282a",
|
|
3820
|
+
"formField":{
|
|
3821
|
+
"id":null,
|
|
3822
|
+
"name":"级联2",
|
|
3823
|
+
"description":null,
|
|
3824
|
+
"type":"CASCADER",
|
|
3825
|
+
"deleted":null,
|
|
3826
|
+
"lastOperatorId":null,
|
|
3827
|
+
"mainId":null,
|
|
3828
|
+
"extInfo":{
|
|
3829
|
+
"isDelete":true,
|
|
3830
|
+
"autoInput":{
|
|
3831
|
+
"enable":false,
|
|
3832
|
+
"rule":{
|
|
3833
|
+
"handler":"",
|
|
3834
|
+
"type":"dict",
|
|
3835
|
+
"exp":""
|
|
3836
|
+
},
|
|
3837
|
+
"source":[
|
|
3838
|
+
|
|
3839
|
+
]
|
|
3840
|
+
},
|
|
3841
|
+
"range":{
|
|
3842
|
+
"start":"",
|
|
3843
|
+
"end":""
|
|
3844
|
+
},
|
|
3845
|
+
"selectType":"多选",
|
|
3846
|
+
"placeholder":"请选择",
|
|
3847
|
+
"dependent":{
|
|
3848
|
+
"c32c7a17f48040d2b92294a77b58d7b8":{
|
|
3849
|
+
"filterStruct":[
|
|
3850
|
+
{
|
|
3851
|
+
"output":[
|
|
3852
|
+
[
|
|
3853
|
+
"级联2"
|
|
3854
|
+
],
|
|
3855
|
+
[
|
|
3856
|
+
"级联2",
|
|
3857
|
+
"级联22"
|
|
3858
|
+
]
|
|
3859
|
+
],
|
|
3860
|
+
"input":"级联1"
|
|
3861
|
+
},
|
|
3862
|
+
{
|
|
3863
|
+
"output":[
|
|
3864
|
+
[
|
|
3865
|
+
"级联2",
|
|
3866
|
+
"级联22"
|
|
3867
|
+
],
|
|
3868
|
+
[
|
|
3869
|
+
"级联2",
|
|
3870
|
+
"级联22",
|
|
3871
|
+
"级联22"
|
|
3872
|
+
]
|
|
3873
|
+
],
|
|
3874
|
+
"input":"级联11"
|
|
3875
|
+
},
|
|
3876
|
+
{
|
|
3877
|
+
"output":[
|
|
3878
|
+
[
|
|
3879
|
+
"级联2"
|
|
3880
|
+
],
|
|
3881
|
+
[
|
|
3882
|
+
"其他"
|
|
3883
|
+
]
|
|
3884
|
+
],
|
|
3885
|
+
"input":"级联111"
|
|
3886
|
+
}
|
|
3887
|
+
]
|
|
3888
|
+
}
|
|
3889
|
+
},
|
|
3890
|
+
"fieldValue":[
|
|
3891
|
+
|
|
3892
|
+
],
|
|
3893
|
+
"cascadeDown":{
|
|
3894
|
+
"options":[
|
|
3895
|
+
{
|
|
3896
|
+
"_default":false,
|
|
3897
|
+
"children":[
|
|
3898
|
+
{
|
|
3899
|
+
"_default":false,
|
|
3900
|
+
"children":[
|
|
3901
|
+
{
|
|
3902
|
+
"_default":false,
|
|
3903
|
+
"checked":false,
|
|
3904
|
+
"label":"级联22",
|
|
3905
|
+
"relationItems":[
|
|
3906
|
+
|
|
3907
|
+
],
|
|
3908
|
+
"value":"级联22"
|
|
3909
|
+
}
|
|
3910
|
+
],
|
|
3911
|
+
"checked":false,
|
|
3912
|
+
"label":"级联22",
|
|
3913
|
+
"relationItems":[
|
|
3914
|
+
|
|
3915
|
+
],
|
|
3916
|
+
"value":"级联22"
|
|
3917
|
+
}
|
|
3918
|
+
],
|
|
3919
|
+
"checked":false,
|
|
3920
|
+
"label":"级联2",
|
|
3921
|
+
"relationItems":[
|
|
3922
|
+
|
|
3923
|
+
],
|
|
3924
|
+
"value":"级联2",
|
|
3925
|
+
"requiredItems":[
|
|
3926
|
+
|
|
3927
|
+
]
|
|
3928
|
+
},
|
|
3929
|
+
{
|
|
3930
|
+
"_default":false,
|
|
3931
|
+
"checked":false,
|
|
3932
|
+
"label":"其他",
|
|
3933
|
+
"relationItems":[
|
|
3934
|
+
|
|
3935
|
+
],
|
|
3936
|
+
"value":"其他"
|
|
3937
|
+
}
|
|
3938
|
+
]
|
|
3939
|
+
}
|
|
3940
|
+
},
|
|
3941
|
+
"createTime":null,
|
|
3942
|
+
"updateTime":null,
|
|
3943
|
+
"required":null,
|
|
3944
|
+
"workOrderFieldId":"894409022d464ac595da6fcc9a2a282a"
|
|
3945
|
+
},
|
|
3946
|
+
"value":[
|
|
3947
|
+
|
|
3948
|
+
],
|
|
3949
|
+
"display":true,
|
|
3950
|
+
"required":false,
|
|
3951
|
+
"editable":null
|
|
3952
|
+
},
|
|
3953
|
+
{
|
|
3954
|
+
"fieldId":"3a8f2444758c40478583ce097e26e340",
|
|
3955
|
+
"paramName":"fieldValue.3a8f2444758c40478583ce097e26e340",
|
|
3956
|
+
"formField":{
|
|
3957
|
+
"id":null,
|
|
3958
|
+
"name":"级联3",
|
|
3959
|
+
"description":null,
|
|
3960
|
+
"type":"CASCADER",
|
|
3961
|
+
"deleted":null,
|
|
3962
|
+
"lastOperatorId":null,
|
|
3963
|
+
"mainId":null,
|
|
3964
|
+
"extInfo":{
|
|
3965
|
+
"isDelete":true,
|
|
3966
|
+
"autoInput":{
|
|
3967
|
+
"enable":false,
|
|
3968
|
+
"rule":{
|
|
3969
|
+
"handler":"",
|
|
3970
|
+
"type":"dict",
|
|
3971
|
+
"exp":""
|
|
3972
|
+
},
|
|
3973
|
+
"source":[
|
|
3974
|
+
|
|
3975
|
+
]
|
|
3976
|
+
},
|
|
3977
|
+
"range":{
|
|
3978
|
+
"start":"",
|
|
3979
|
+
"end":""
|
|
3980
|
+
},
|
|
3981
|
+
"selectType":"多选",
|
|
3982
|
+
"placeholder":"请选择",
|
|
3983
|
+
"dependent":{
|
|
3984
|
+
"c32c7a17f48040d2b92294a77b58d7b8":{
|
|
3985
|
+
"filterStruct":[
|
|
3986
|
+
{
|
|
3987
|
+
"output":[
|
|
3988
|
+
[
|
|
3989
|
+
"级联3"
|
|
3990
|
+
],
|
|
3991
|
+
[
|
|
3992
|
+
"级联3",
|
|
3993
|
+
"级联33"
|
|
3994
|
+
]
|
|
3995
|
+
],
|
|
3996
|
+
"input":"级联1"
|
|
3997
|
+
},
|
|
3998
|
+
{
|
|
3999
|
+
"output":[
|
|
4000
|
+
[
|
|
4001
|
+
"级联3",
|
|
4002
|
+
"级联33",
|
|
4003
|
+
"级联333"
|
|
4004
|
+
],
|
|
4005
|
+
[
|
|
4006
|
+
"级联3",
|
|
4007
|
+
"级联3333"
|
|
4008
|
+
]
|
|
4009
|
+
],
|
|
4010
|
+
"input":"级联11"
|
|
4011
|
+
},
|
|
4012
|
+
{
|
|
4013
|
+
"output":[
|
|
4014
|
+
[
|
|
4015
|
+
"级联3",
|
|
4016
|
+
"级联33"
|
|
4017
|
+
],
|
|
4018
|
+
[
|
|
4019
|
+
"级联3",
|
|
4020
|
+
"级联3333"
|
|
4021
|
+
]
|
|
4022
|
+
],
|
|
4023
|
+
"input":"级联111"
|
|
4024
|
+
}
|
|
4025
|
+
]
|
|
4026
|
+
}
|
|
4027
|
+
},
|
|
4028
|
+
"fieldValue":[
|
|
4029
|
+
|
|
4030
|
+
],
|
|
4031
|
+
"cascadeDown":{
|
|
4032
|
+
"options":[
|
|
4033
|
+
{
|
|
4034
|
+
"_default":false,
|
|
4035
|
+
"children":[
|
|
4036
|
+
{
|
|
4037
|
+
"_default":false,
|
|
4038
|
+
"children":[
|
|
4039
|
+
{
|
|
4040
|
+
"_default":false,
|
|
4041
|
+
"checked":false,
|
|
4042
|
+
"label":"级联333",
|
|
4043
|
+
"relationItems":[
|
|
4044
|
+
|
|
4045
|
+
],
|
|
4046
|
+
"value":"级联333"
|
|
4047
|
+
}
|
|
4048
|
+
],
|
|
4049
|
+
"checked":false,
|
|
4050
|
+
"label":"级联33",
|
|
4051
|
+
"relationItems":[
|
|
4052
|
+
|
|
4053
|
+
],
|
|
4054
|
+
"value":"级联33"
|
|
4055
|
+
},
|
|
4056
|
+
{
|
|
4057
|
+
"_default":false,
|
|
4058
|
+
"checked":false,
|
|
4059
|
+
"label":"级联3333",
|
|
4060
|
+
"relationItems":[
|
|
4061
|
+
|
|
4062
|
+
],
|
|
4063
|
+
"value":"级联3333"
|
|
4064
|
+
}
|
|
4065
|
+
],
|
|
4066
|
+
"checked":false,
|
|
4067
|
+
"label":"级联3",
|
|
4068
|
+
"relationItems":[
|
|
4069
|
+
|
|
4070
|
+
],
|
|
4071
|
+
"value":"级联3",
|
|
4072
|
+
"requiredItems":[
|
|
4073
|
+
|
|
4074
|
+
]
|
|
4075
|
+
}
|
|
4076
|
+
]
|
|
4077
|
+
}
|
|
4078
|
+
},
|
|
4079
|
+
"createTime":null,
|
|
4080
|
+
"updateTime":null,
|
|
4081
|
+
"required":null,
|
|
4082
|
+
"workOrderFieldId":"3a8f2444758c40478583ce097e26e340"
|
|
4083
|
+
},
|
|
4084
|
+
"value":[
|
|
4085
|
+
|
|
4086
|
+
],
|
|
4087
|
+
"display":true,
|
|
4088
|
+
"required":false,
|
|
4089
|
+
"editable":null
|
|
4090
|
+
},
|
|
4091
|
+
{
|
|
4092
|
+
"fieldId":"3b64ca68db3b4e058b35a23aa1bfdfdd",
|
|
4093
|
+
"paramName":"fieldValue.3b64ca68db3b4e058b35a23aa1bfdfdd",
|
|
4094
|
+
"formField":{
|
|
4095
|
+
"id":null,
|
|
4096
|
+
"name":"多选",
|
|
4097
|
+
"description":null,
|
|
4098
|
+
"type":"CHECKBOX",
|
|
4099
|
+
"deleted":null,
|
|
4100
|
+
"lastOperatorId":null,
|
|
4101
|
+
"mainId":null,
|
|
4102
|
+
"extInfo":{
|
|
4103
|
+
"isDelete":true,
|
|
4104
|
+
"autoInput":{
|
|
4105
|
+
"enable":false,
|
|
4106
|
+
"rule":{
|
|
4107
|
+
"handler":"",
|
|
4108
|
+
"type":"dict",
|
|
4109
|
+
"exp":""
|
|
4110
|
+
},
|
|
4111
|
+
"source":[
|
|
4112
|
+
|
|
4113
|
+
]
|
|
4114
|
+
},
|
|
4115
|
+
"options":[
|
|
4116
|
+
{
|
|
4117
|
+
"_default":false,
|
|
4118
|
+
"label":"选项一",
|
|
4119
|
+
"relationItems":[
|
|
4120
|
+
|
|
4121
|
+
],
|
|
4122
|
+
"value":"选项一",
|
|
4123
|
+
"requiredItems":[
|
|
4124
|
+
|
|
4125
|
+
]
|
|
4126
|
+
},
|
|
4127
|
+
{
|
|
4128
|
+
"_default":false,
|
|
4129
|
+
"label":"选项二",
|
|
4130
|
+
"relationItems":[
|
|
4131
|
+
|
|
4132
|
+
],
|
|
4133
|
+
"value":"选项二",
|
|
4134
|
+
"requiredItems":[
|
|
4135
|
+
|
|
4136
|
+
]
|
|
4137
|
+
},
|
|
4138
|
+
{
|
|
4139
|
+
"_default":false,
|
|
4140
|
+
"label":"选项三",
|
|
4141
|
+
"relationItems":[
|
|
4142
|
+
|
|
4143
|
+
],
|
|
4144
|
+
"value":"选项三",
|
|
4145
|
+
"requiredItems":[
|
|
4146
|
+
|
|
4147
|
+
]
|
|
4148
|
+
}
|
|
4149
|
+
],
|
|
4150
|
+
"range":{
|
|
4151
|
+
"start":"",
|
|
4152
|
+
"end":""
|
|
4153
|
+
},
|
|
4154
|
+
"placeholder":"请选择",
|
|
4155
|
+
"dependent":{
|
|
4156
|
+
"c32c7a17f48040d2b92294a77b58d7b8":{
|
|
4157
|
+
"filterStruct":[
|
|
4158
|
+
{
|
|
4159
|
+
"output":[
|
|
4160
|
+
{
|
|
4161
|
+
"label":"选项一",
|
|
4162
|
+
"value":"选项一"
|
|
4163
|
+
},
|
|
4164
|
+
{
|
|
4165
|
+
"label":"选项二",
|
|
4166
|
+
"value":"选项二"
|
|
4167
|
+
}
|
|
4168
|
+
],
|
|
4169
|
+
"input":"级联1"
|
|
4170
|
+
},
|
|
4171
|
+
{
|
|
4172
|
+
"output":[
|
|
4173
|
+
{
|
|
4174
|
+
"label":"选项二",
|
|
4175
|
+
"value":"选项二"
|
|
4176
|
+
},
|
|
4177
|
+
{
|
|
4178
|
+
"label":"选项三",
|
|
4179
|
+
"value":"选项三"
|
|
4180
|
+
}
|
|
4181
|
+
],
|
|
4182
|
+
"input":"级联11"
|
|
4183
|
+
},
|
|
4184
|
+
{
|
|
4185
|
+
"output":[
|
|
4186
|
+
{
|
|
4187
|
+
"label":"选项三",
|
|
4188
|
+
"value":"选项三"
|
|
4189
|
+
},
|
|
4190
|
+
{
|
|
4191
|
+
"label":"选项一",
|
|
4192
|
+
"value":"选项一"
|
|
4193
|
+
}
|
|
4194
|
+
],
|
|
4195
|
+
"input":"级联111"
|
|
4196
|
+
}
|
|
4197
|
+
]
|
|
4198
|
+
}
|
|
4199
|
+
}
|
|
4200
|
+
},
|
|
4201
|
+
"createTime":null,
|
|
4202
|
+
"updateTime":null,
|
|
4203
|
+
"required":null,
|
|
4204
|
+
"workOrderFieldId":"3b64ca68db3b4e058b35a23aa1bfdfdd"
|
|
4205
|
+
},
|
|
4206
|
+
"value":[
|
|
4207
|
+
|
|
4208
|
+
],
|
|
4209
|
+
"display":true,
|
|
4210
|
+
"required":false,
|
|
4211
|
+
"editable":null
|
|
4212
|
+
},
|
|
4213
|
+
{
|
|
4214
|
+
"fieldId":"8cede86017134b2eb033461a79b9d0bd",
|
|
4215
|
+
"paramName":"fieldValue.8cede86017134b2eb033461a79b9d0bd",
|
|
4216
|
+
"formField":{
|
|
4217
|
+
"id":null,
|
|
4218
|
+
"name":"聊天记录",
|
|
4219
|
+
"description":null,
|
|
4220
|
+
"type":"CHAT_RECORD",
|
|
4221
|
+
"deleted":null,
|
|
4222
|
+
"lastOperatorId":null,
|
|
4223
|
+
"mainId":null,
|
|
4224
|
+
"extInfo":{
|
|
4225
|
+
"visibleWithoutPermission":true,
|
|
4226
|
+
"isDelete":true,
|
|
4227
|
+
"autoInput":{
|
|
4228
|
+
"enable":false,
|
|
4229
|
+
"rule":{
|
|
4230
|
+
"handler":"",
|
|
4231
|
+
"exp":"",
|
|
4232
|
+
"type":"reg"
|
|
4233
|
+
},
|
|
4234
|
+
"source":[
|
|
4235
|
+
|
|
4236
|
+
]
|
|
4237
|
+
},
|
|
4238
|
+
"range":{
|
|
4239
|
+
"start":"",
|
|
4240
|
+
"end":""
|
|
4241
|
+
},
|
|
4242
|
+
"disabled":false
|
|
4243
|
+
},
|
|
4244
|
+
"createTime":null,
|
|
4245
|
+
"updateTime":null,
|
|
4246
|
+
"required":null,
|
|
4247
|
+
"workOrderFieldId":"8cede86017134b2eb033461a79b9d0bd"
|
|
4248
|
+
},
|
|
4249
|
+
"value":"",
|
|
4250
|
+
"display":true,
|
|
4251
|
+
"required":false,
|
|
4252
|
+
"editable":null
|
|
4253
|
+
}
|
|
4254
|
+
],
|
|
4255
|
+
}
|
|
4256
|
+
},
|
|
3310
4257
|
text: {
|
|
3311
4258
|
template:
|
|
3312
4259
|
'<p>开始时间 <span class="ask-component-placeholder-container"><span class="ask-component-placeholder-span" data="${开始时间戳_秒}" type="INPUT">1607427268</span><i class="ask-component-placeholder-icon arsenal_icon arsenalbianji2" icon="arsenal_icon arsenalkebianji" editable="true" onclick="_askEditValue(this,this.previousElementSibling)"></i><br/></span>结束时间 <span class="ask-component-placeholder-container"><span class="ask-component-placeholder-span" data="${结束时间戳_秒}" type="TIME_PICKER">1607772868</span><i class="ask-component-placeholder-icon arsenal_icon arsenalkebianji" icon="arsenal_icon arsenalkebianji" editable="true" onclick="_askEditValue(this,this.previousElementSibling)"></i></span></p>',
|
|
@@ -979,12 +979,22 @@ export default {
|
|
|
979
979
|
if (Array.isArray(this.fieldValue[k]) && Array.isArray(this.fieldValue[k][0])){
|
|
980
980
|
this.fieldValue[k].forEach(item=>{
|
|
981
981
|
field.formField.extInfo.dependent[k].filterStruct.forEach(filter=>{
|
|
982
|
-
if (
|
|
983
|
-
if (
|
|
984
|
-
options[field.fieldId]
|
|
982
|
+
if (Array.isArray(item)){
|
|
983
|
+
if (filter.input === item[item.length - 1]){
|
|
984
|
+
if (!options[field.fieldId]){
|
|
985
|
+
options[field.fieldId] = []
|
|
986
|
+
}
|
|
987
|
+
options[field.fieldId] = options[field.fieldId].concat(filter.output)
|
|
988
|
+
flag = true
|
|
989
|
+
}
|
|
990
|
+
} else {
|
|
991
|
+
if (filter.input === item){
|
|
992
|
+
if (!options[field.fieldId]){
|
|
993
|
+
options[field.fieldId] = []
|
|
994
|
+
}
|
|
995
|
+
options[field.fieldId] = options[field.fieldId].concat(filter.output)
|
|
996
|
+
flag = true
|
|
985
997
|
}
|
|
986
|
-
options[field.fieldId] = options[field.fieldId].concat(filter.output)
|
|
987
|
-
flag = true
|
|
988
998
|
}
|
|
989
999
|
})
|
|
990
1000
|
})
|
|
@@ -1005,11 +1015,20 @@ export default {
|
|
|
1005
1015
|
if (Array.isArray(this.fieldValue[k]) && Array.isArray(this.fieldValue[k][0])){
|
|
1006
1016
|
this.fieldValue[k].forEach(item=>{
|
|
1007
1017
|
field.formField.extInfo.selfDependent[k].filterStruct.forEach(filter=>{
|
|
1008
|
-
if (
|
|
1009
|
-
if (
|
|
1010
|
-
options[field.fieldId]
|
|
1018
|
+
if (Array.isArray(item)){
|
|
1019
|
+
if (filter.input === item[item.length - 1]){
|
|
1020
|
+
if (!options[field.fieldId]){
|
|
1021
|
+
options[field.fieldId] = []
|
|
1022
|
+
}
|
|
1023
|
+
options[field.fieldId] = options[field.fieldId].concat(filter.output)
|
|
1024
|
+
}
|
|
1025
|
+
} else {
|
|
1026
|
+
if (filter.input === item){
|
|
1027
|
+
if (!options[field.fieldId]){
|
|
1028
|
+
options[field.fieldId] = []
|
|
1029
|
+
}
|
|
1030
|
+
options[field.fieldId] = options[field.fieldId].concat(filter.output)
|
|
1011
1031
|
}
|
|
1012
|
-
options[field.fieldId] = options[field.fieldId].concat(filter.output)
|
|
1013
1032
|
}
|
|
1014
1033
|
})
|
|
1015
1034
|
})
|
|
@@ -1198,15 +1217,73 @@ export default {
|
|
|
1198
1217
|
}
|
|
1199
1218
|
return opt
|
|
1200
1219
|
},
|
|
1220
|
+
// 清除当前节点关联的值
|
|
1221
|
+
clearOptionStruct() {
|
|
1222
|
+
// this.fieldValue,this.cascadeDetail.field.id
|
|
1223
|
+
console.log(this.detailField,'this.cascadeDetail',this.fieldValue[this.detailField.fieldId]);
|
|
1224
|
+
let options = this.detailField.formField.extInfo.cascadeDown.options
|
|
1225
|
+
let clear = (options, parent) => {
|
|
1226
|
+
for (let index = 0; index < options.length; index++) {
|
|
1227
|
+
const opt = options[index];
|
|
1228
|
+
if (this.fieldValue[this.detailField.fieldId]){
|
|
1229
|
+
for (let i = 0; i < this.fieldValue[this.detailField.fieldId].length; i++) {
|
|
1230
|
+
const value = this.fieldValue[this.detailField.fieldId][i];
|
|
1231
|
+
if (Array.isArray(value)) {
|
|
1232
|
+
if (value.includes(opt.value)) {
|
|
1233
|
+
for (let k in opt.optionStruct) {
|
|
1234
|
+
if (k != this.detailField.fieldId) {
|
|
1235
|
+
this.fieldValue[k] = []
|
|
1236
|
+
if (this.extInfoFieldValue[k]) {
|
|
1237
|
+
this.$set(this.extInfoFieldValue, k, [])
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
} else {
|
|
1243
|
+
if (value === opt.value) {
|
|
1244
|
+
for (let k in opt.optionStruct) {
|
|
1245
|
+
if (k != this.detailField.fieldId) {
|
|
1246
|
+
this.fieldValue[k] = []
|
|
1247
|
+
if (this.extInfoFieldValue[k]) {
|
|
1248
|
+
this.$set(this.extInfoFieldValue, k, [])
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
if(opt.children && opt.children.length != 0) {
|
|
1257
|
+
clear(opt.children)
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
clear(options)
|
|
1262
|
+
},
|
|
1201
1263
|
changeSelect(field){
|
|
1202
|
-
if ( field.formField.extInfo.selectType
|
|
1203
|
-
|
|
1264
|
+
if ( field.formField.extInfo.selectType !== '多选'){
|
|
1265
|
+
let arr = field.formField.extInfo.relationControlsId ? JSON.parse(JSON.stringify(field.formField.extInfo.relationControlsId)) : []
|
|
1266
|
+
this.associatedControlsCopy = [...this.associatedControlsCopy, ...arr];
|
|
1204
1267
|
}
|
|
1205
|
-
let arr = field.formField.extInfo.relationControlsId ? JSON.parse(JSON.stringify(field.formField.extInfo.relationControlsId)) : []
|
|
1206
|
-
this.associatedControlsCopy = [...this.associatedControlsCopy, ...arr];
|
|
1207
1268
|
this.$forceUpdate();
|
|
1208
1269
|
this.$set(this.fieldValue,field.fieldId,field.value);
|
|
1209
|
-
|
|
1270
|
+
this.formShow.form.formFieldRelation.forEach(item=>{
|
|
1271
|
+
if (item.formField.type === 'CASCADER' ||
|
|
1272
|
+
item.formField.type === 'SELECT' ||
|
|
1273
|
+
item.formField.type === 'RADIO' ||
|
|
1274
|
+
item.formField.type === 'CHECKBOX'){
|
|
1275
|
+
if (item.formField.extInfo && item.formField.extInfo.dependent){
|
|
1276
|
+
for (let k in item.formField.extInfo.dependent){
|
|
1277
|
+
if (k === field.fieldId && field.value !== item.formField.extInfo.dependent[k].input){
|
|
1278
|
+
item.value = item.formField.type === 'CHECKBOX' || item.formField.type === 'CASCADER' ? [] : "";
|
|
1279
|
+
if (this.extInfoFieldValue[item.fieldId]){
|
|
1280
|
+
this.$set(this.extInfoFieldValue,item.fieldId,[])
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
})
|
|
1210
1287
|
},
|
|
1211
1288
|
selectOptions(field){
|
|
1212
1289
|
let options = []
|
|
@@ -2510,8 +2587,8 @@ export default {
|
|
|
2510
2587
|
},
|
|
2511
2588
|
//保存级联数据
|
|
2512
2589
|
saveData(checkList,checkDatas){
|
|
2590
|
+
this.clearOptionStruct();
|
|
2513
2591
|
this.$set(this.detailField,'value',checkList);
|
|
2514
|
-
this.$set(this.fieldValue,this.detailField.fieldId,checkList);
|
|
2515
2592
|
this.extInfoFieldValue[this.detailField.fieldId] = checkDatas;
|
|
2516
2593
|
this.$set(this.detailField.formField.extInfo,'extInfoFieldValue',checkDatas);
|
|
2517
2594
|
console.debug('checkDatas',this.detailField.formField.extInfo,checkList);
|