meixioacomponent 0.4.39 → 0.4.42
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/lib/meixioacomponent.common.js +369 -269
- package/lib/meixioacomponent.umd.js +369 -269
- package/lib/meixioacomponent.umd.min.js +14 -14
- package/package.json +1 -1
- package/packages/components/base/baseNumberInput/index.vue +6 -4
- package/packages/components/base/baseStoreSelect/index.vue +99 -0
- package/packages/components/base/baseUpload/baseUpload.vue +1 -0
- package/packages/components/proForm/dialogForm/baseDialogForm.vue +26 -23
- package/packages/components/proForm/proForm/pro_form_item.vue +22 -52
- package/src/component/test.vue +165 -214
- package/src/component/testSelectStore.js +1 -1
package/src/component/test.vue
CHANGED
|
@@ -554,214 +554,185 @@ export default {
|
|
|
554
554
|
:disables="disables"
|
|
555
555
|
:modallAppendToBody="false"
|
|
556
556
|
:footerHandleConfig="footerHandleConfig"
|
|
557
|
-
>
|
|
558
|
-
<template v-slot:formslot-test1="data">
|
|
559
|
-
<el-input v-model="data.scope[0].value"></el-input>
|
|
560
|
-
</template>
|
|
561
|
-
|
|
562
|
-
<!-- <template slot="formWrap-test2">
|
|
563
|
-
<div style="width: 100%; height: 100px; background: red;"></div>
|
|
564
|
-
</template> -->
|
|
565
|
-
</base-dialog-form>
|
|
557
|
+
></base-dialog-form>
|
|
566
558
|
</template>
|
|
567
559
|
|
|
568
560
|
<script>
|
|
569
561
|
export default {
|
|
570
562
|
data() {
|
|
571
563
|
return {
|
|
572
|
-
// 表单验证
|
|
573
|
-
formArray: [
|
|
574
|
-
{
|
|
575
|
-
key: 'test1',
|
|
576
|
-
formTitle: '基本信息',
|
|
577
|
-
formList: [
|
|
578
|
-
{
|
|
579
|
-
value: '签约行业',
|
|
580
|
-
key: 'test1',
|
|
581
|
-
type: 'input',
|
|
582
|
-
disabled: true,
|
|
583
|
-
label: '商机名称',
|
|
584
|
-
},
|
|
585
|
-
{
|
|
586
|
-
key: 'test9',
|
|
587
|
-
type: 'radio',
|
|
588
|
-
value: 1,
|
|
589
|
-
label: '客户地址',
|
|
590
|
-
list: [
|
|
591
|
-
{
|
|
592
|
-
label: '1',
|
|
593
|
-
value: 1,
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
label: '2',
|
|
597
|
-
value: 2,
|
|
598
|
-
},
|
|
599
|
-
],
|
|
600
|
-
},
|
|
601
|
-
{
|
|
602
|
-
key: 'test2',
|
|
603
|
-
type: 'input',
|
|
604
|
-
disabled: false,
|
|
605
|
-
label: '客户名称',
|
|
606
|
-
value: '河南郑州建设股份有限公司 ',
|
|
607
|
-
click: (formItem) => {
|
|
608
|
-
console.log(formItem)
|
|
609
|
-
},
|
|
610
|
-
},
|
|
611
|
-
{
|
|
612
|
-
key: 'test3',
|
|
613
|
-
type: 'number2',
|
|
614
|
-
unit: '元',
|
|
615
|
-
|
|
616
|
-
disabled: false,
|
|
617
|
-
value: 17490,
|
|
618
|
-
color: 'warn',
|
|
619
|
-
label: '商机金额',
|
|
620
|
-
},
|
|
621
|
-
{
|
|
622
|
-
value: '',
|
|
623
|
-
key: 'test4',
|
|
624
|
-
type: 'time',
|
|
625
|
-
disabled: false,
|
|
626
|
-
label: '预计成交日期',
|
|
627
|
-
},
|
|
628
|
-
{
|
|
629
|
-
value: '',
|
|
630
|
-
key: 'test5',
|
|
631
|
-
type: 'daterange',
|
|
632
|
-
disabled: false,
|
|
633
|
-
label: '下次联系时间',
|
|
634
|
-
datePickPlace: ['开始时间', '至', '结束时间'],
|
|
635
|
-
},
|
|
636
|
-
{
|
|
637
|
-
value: [2],
|
|
638
|
-
key: 'test6',
|
|
639
|
-
type: 'select',
|
|
640
|
-
disabled: false,
|
|
641
|
-
label: '商机状态组',
|
|
642
|
-
multipleLimit: 2,
|
|
643
|
-
useStore: 'testSelectStore',
|
|
644
|
-
},
|
|
645
|
-
{
|
|
646
|
-
value: 2,
|
|
647
|
-
key: 'test7',
|
|
648
|
-
type: 'select',
|
|
649
|
-
disabled: false,
|
|
650
|
-
label: '商机阶段',
|
|
651
|
-
useStore: 'testSelectStore',
|
|
652
|
-
},
|
|
653
|
-
{
|
|
654
|
-
value: '',
|
|
655
|
-
key: 'test8',
|
|
656
|
-
type: 'textarea',
|
|
657
|
-
disabled: false,
|
|
658
|
-
label: '备注',
|
|
659
|
-
},
|
|
660
|
-
],
|
|
661
|
-
},
|
|
662
|
-
// {
|
|
663
|
-
// formType: 'template',
|
|
664
|
-
// key: 'test2',
|
|
665
|
-
// formTitle: '基本信息',
|
|
666
|
-
// formList: [
|
|
667
|
-
// {
|
|
668
|
-
// value: '签约行业',
|
|
669
|
-
// key: 'test1',
|
|
670
|
-
// type: 'input',
|
|
671
|
-
// disabled: true,
|
|
672
|
-
// label: '商机名称',
|
|
673
|
-
// },
|
|
674
|
-
// {
|
|
675
|
-
// key: 'test2',
|
|
676
|
-
// type: 'input',
|
|
677
|
-
// disabled: false,
|
|
678
|
-
// label: '客户名称',
|
|
679
|
-
// value: '河南郑州建设股份有限公司 ',
|
|
680
|
-
// click: (formItem) => {
|
|
681
|
-
// console.log(formItem)
|
|
682
|
-
// },
|
|
683
|
-
// },
|
|
684
|
-
// {
|
|
685
|
-
// key: 'test3',
|
|
686
|
-
// type: 'input',
|
|
687
|
-
// disabled: false,
|
|
688
|
-
// value: 17490,
|
|
689
|
-
// color: 'warn',
|
|
690
|
-
// label: '商机金额',
|
|
691
|
-
// },
|
|
692
|
-
// {
|
|
693
|
-
// value: '',
|
|
694
|
-
// key: 'test4',
|
|
695
|
-
// type: 'time',
|
|
696
|
-
// disabled: false,
|
|
697
|
-
// label: '预计成交日期',
|
|
698
|
-
// },
|
|
699
|
-
// {
|
|
700
|
-
// value: '',
|
|
701
|
-
// key: 'test5',
|
|
702
|
-
// type: 'time',
|
|
703
|
-
// disabled: false,
|
|
704
|
-
// label: '下次联系时间',
|
|
705
|
-
// },
|
|
706
|
-
// {
|
|
707
|
-
// value: [2],
|
|
708
|
-
// key: 'test6',
|
|
709
|
-
// type: 'select',
|
|
710
|
-
// disabled: false,
|
|
711
|
-
// label: '商机状态组',
|
|
712
|
-
// multipleLimit: 2,
|
|
713
|
-
// useStore: 'testSelectStore',
|
|
714
|
-
// },
|
|
715
|
-
// {
|
|
716
|
-
// value: 2,
|
|
717
|
-
// key: 'test7',
|
|
718
|
-
// type: 'select',
|
|
719
|
-
// disabled: false,
|
|
720
|
-
// label: '商机阶段',
|
|
721
|
-
// useStore: 'testSelectStore',
|
|
722
|
-
// },
|
|
723
|
-
// {
|
|
724
|
-
// value: '',
|
|
725
|
-
// key: 'test8',
|
|
726
|
-
// type: 'textarea',
|
|
727
|
-
// disabled: false,
|
|
728
|
-
// label: '备注',
|
|
729
|
-
// },
|
|
730
|
-
// ],
|
|
731
|
-
// },
|
|
732
|
-
// {
|
|
733
|
-
// key: 'test3',
|
|
734
|
-
// formTitle: '测试活动图片',
|
|
735
|
-
// formType: 'upload',
|
|
736
|
-
// max: 3,
|
|
737
|
-
// formList: [
|
|
738
|
-
// {
|
|
739
|
-
// value: [],
|
|
740
|
-
// key: 'test1',
|
|
741
|
-
// label: '图片上传',
|
|
742
|
-
// },
|
|
743
|
-
// ],
|
|
744
|
-
// },
|
|
745
|
-
],
|
|
746
564
|
rulesList: {},
|
|
747
565
|
footerHandleConfig: [],
|
|
748
|
-
|
|
566
|
+
basicsMessageData: {},
|
|
567
|
+
configurationData: {},
|
|
568
|
+
configCententData: {},
|
|
749
569
|
}
|
|
750
570
|
},
|
|
751
571
|
|
|
752
572
|
created() {
|
|
753
573
|
//
|
|
574
|
+
|
|
575
|
+
this.basicsMessageData = {
|
|
576
|
+
key: 'basicsMessage',
|
|
577
|
+
formTitle: '基础信息',
|
|
578
|
+
formList: [
|
|
579
|
+
{
|
|
580
|
+
key: 'type',
|
|
581
|
+
type: 'radio',
|
|
582
|
+
label: '通知类型',
|
|
583
|
+
value: 0,
|
|
584
|
+
list: [
|
|
585
|
+
{ label: '否', value: 0 },
|
|
586
|
+
{ label: '是', value: 1 },
|
|
587
|
+
],
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
key: 'businessType',
|
|
591
|
+
type: 'radio',
|
|
592
|
+
value: 1,
|
|
593
|
+
label: '系统通知类型',
|
|
594
|
+
list: [
|
|
595
|
+
{ label: '否', value: 0 },
|
|
596
|
+
{ label: '是', value: 1 },
|
|
597
|
+
],
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
key: 'title',
|
|
601
|
+
type: 'input',
|
|
602
|
+
value: null,
|
|
603
|
+
label: '公告标题',
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
key: 'sendTime',
|
|
607
|
+
type: 'datetime',
|
|
608
|
+
value: '',
|
|
609
|
+
label: '发送时间',
|
|
610
|
+
},
|
|
611
|
+
|
|
612
|
+
{
|
|
613
|
+
key: 'popupEndTime',
|
|
614
|
+
type: 'datetime',
|
|
615
|
+
value: null,
|
|
616
|
+
label: '弹窗失效时间',
|
|
617
|
+
},
|
|
618
|
+
],
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
this.configurationData = {
|
|
622
|
+
key: 'configuration',
|
|
623
|
+
formTitle: '公告配置',
|
|
624
|
+
formList: [
|
|
625
|
+
{
|
|
626
|
+
key: 'isTop',
|
|
627
|
+
type: 'radio',
|
|
628
|
+
label: '是否置顶公告',
|
|
629
|
+
value: 0,
|
|
630
|
+
list: [
|
|
631
|
+
{ label: '否', value: 0 },
|
|
632
|
+
{ label: '是', value: 1 },
|
|
633
|
+
],
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
key: 'isPopup',
|
|
637
|
+
type: 'radio',
|
|
638
|
+
value: 1,
|
|
639
|
+
label: '是否弹窗展示',
|
|
640
|
+
list: [
|
|
641
|
+
{ label: '否', value: 0 },
|
|
642
|
+
{ label: '是', value: 1 },
|
|
643
|
+
],
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
key: 'sendType',
|
|
647
|
+
type: 'radio',
|
|
648
|
+
value: 1,
|
|
649
|
+
label: '是否定时发送',
|
|
650
|
+
list: [
|
|
651
|
+
{ label: '否', value: 0 },
|
|
652
|
+
{ label: '是', value: 1 },
|
|
653
|
+
],
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
key: 'messageType',
|
|
657
|
+
type: 'radio',
|
|
658
|
+
value: 1,
|
|
659
|
+
label: '通知范围',
|
|
660
|
+
list: [
|
|
661
|
+
{ label: '全部通知', value: 0 },
|
|
662
|
+
{ label: '部分通知', value: 1 },
|
|
663
|
+
],
|
|
664
|
+
},
|
|
665
|
+
],
|
|
666
|
+
}
|
|
667
|
+
|
|
754
668
|
this.disables = {
|
|
755
|
-
|
|
669
|
+
sendType: {
|
|
670
|
+
effects: [
|
|
671
|
+
{
|
|
672
|
+
key: 'sendTime',
|
|
673
|
+
type: 'hide',
|
|
674
|
+
fn: (val) => {
|
|
675
|
+
console.log(val)
|
|
676
|
+
},
|
|
677
|
+
},
|
|
678
|
+
],
|
|
679
|
+
},
|
|
680
|
+
messageType: {
|
|
756
681
|
effects: [
|
|
757
682
|
{
|
|
758
|
-
key: '
|
|
759
|
-
type: '
|
|
760
|
-
fn:
|
|
683
|
+
key: 'sendScoped',
|
|
684
|
+
type: 'hide',
|
|
685
|
+
fn: (val) => {
|
|
686
|
+
console.log(val)
|
|
687
|
+
},
|
|
688
|
+
},
|
|
689
|
+
],
|
|
690
|
+
},
|
|
691
|
+
type: {
|
|
692
|
+
effects: [
|
|
693
|
+
{
|
|
694
|
+
key: 'isPopup',
|
|
695
|
+
type: 'hide',
|
|
696
|
+
fn: (val) => {
|
|
697
|
+
console.log(val)
|
|
698
|
+
},
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
key: 'isTop',
|
|
702
|
+
type: 'hide',
|
|
703
|
+
fn: (val) => {
|
|
704
|
+
console.log(val)
|
|
705
|
+
},
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
key: 'businessType',
|
|
709
|
+
type: 'hide',
|
|
710
|
+
fn: (val) => {
|
|
711
|
+
console.log(val)
|
|
712
|
+
},
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
key: 'popupEndTime',
|
|
716
|
+
type: 'hide',
|
|
717
|
+
fn: (val) => {
|
|
718
|
+
return val == 0
|
|
719
|
+
},
|
|
720
|
+
},
|
|
721
|
+
],
|
|
722
|
+
},
|
|
723
|
+
isPopup: {
|
|
724
|
+
effects: [
|
|
725
|
+
{
|
|
726
|
+
key: 'popupEndTime',
|
|
727
|
+
type: 'hide',
|
|
728
|
+
fn: (val) => {
|
|
729
|
+
return val == 0
|
|
730
|
+
},
|
|
761
731
|
},
|
|
762
732
|
],
|
|
763
733
|
},
|
|
764
734
|
}
|
|
735
|
+
|
|
765
736
|
this.footerHandleConfig = [
|
|
766
737
|
{
|
|
767
738
|
text: '取消',
|
|
@@ -800,16 +771,14 @@ export default {
|
|
|
800
771
|
mounted() {
|
|
801
772
|
this.$refs.dialogFormVue.showDialog()
|
|
802
773
|
},
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
hideMenuTypeOfButton(val) {
|
|
807
|
-
if (val == 1) {
|
|
808
|
-
return 'input'
|
|
809
|
-
}
|
|
810
|
-
return 'template'
|
|
774
|
+
computed: {
|
|
775
|
+
formArray() {
|
|
776
|
+
return [this.configurationData, this.basicsMessageData]
|
|
811
777
|
},
|
|
812
778
|
},
|
|
779
|
+
components: {},
|
|
780
|
+
props: { index: {} },
|
|
781
|
+
methods: {},
|
|
813
782
|
}
|
|
814
783
|
</script>
|
|
815
784
|
|
|
@@ -831,18 +800,6 @@ export default {
|
|
|
831
800
|
data() {
|
|
832
801
|
return {
|
|
833
802
|
formList: [
|
|
834
|
-
{
|
|
835
|
-
value: '',
|
|
836
|
-
key: 'legalPerson',
|
|
837
|
-
type: 'input',
|
|
838
|
-
label: '法人名称',
|
|
839
|
-
},
|
|
840
|
-
{
|
|
841
|
-
value: '',
|
|
842
|
-
key: 'idCard',
|
|
843
|
-
type: 'input',
|
|
844
|
-
label: '法人身份证',
|
|
845
|
-
},
|
|
846
803
|
{
|
|
847
804
|
value: 1,
|
|
848
805
|
key: 'businessLicense',
|
|
@@ -850,12 +807,6 @@ export default {
|
|
|
850
807
|
label: '营业执照号',
|
|
851
808
|
useStore: 'testSelectStore',
|
|
852
809
|
},
|
|
853
|
-
{
|
|
854
|
-
value: 'sdakjsdkajk',
|
|
855
|
-
key: 'businessLicenseFile',
|
|
856
|
-
type: 'textarea',
|
|
857
|
-
label: '营业执照电子版',
|
|
858
|
-
},
|
|
859
810
|
],
|
|
860
811
|
disables: {
|
|
861
812
|
businessLicense: {
|