vue2-client 1.18.33 → 1.18.35
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 +1 -1
- package/src/assets/svg/female.svg +1 -1
- package/src/assets/svg/male.svg +1 -1
- package/src/base-client/components/common/AmapMarker/index.js +3 -3
- package/src/base-client/components/common/HIS/HFormGroup/index.js +3 -3
- package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +42 -53
- package/src/base-client/components/common/XAddNativeForm/demo.vue +7 -2
- package/src/base-client/components/common/XCollapse/XCollapse.vue +830 -830
- package/src/base-client/components/common/XDetailsView/index.js +3 -3
- package/src/base-client/components/common/XFormGroupDetails/index.js +3 -3
- package/src/base-client/components/common/XTimeline/XTimeline.vue +477 -477
- package/src/base-client/components/his/XHisEditor/XHisEditor.vue +705 -705
- package/src/base-client/components/his/XList/XList.vue +938 -938
- package/src/base-client/components/his/XSimpleTable/XSimpleTable.vue +81 -21
- package/src/base-client/components/his/XTimeSelect/XTimeSelect.vue +354 -354
- package/src/base-client/components/his/XTitle/XTitle.vue +314 -314
- package/src/base-client/components/his/XTreeRows/XTreeRows.vue +341 -341
- package/src/base-client/components/his/threeTestOrders/editor.vue +113 -113
- package/src/pages/WorkflowDetail/WorkFlowDemo.vue +1 -1
- package/src/pages/userInfoDetailManage/ExceptionRecordQuery/index.vue +45 -45
- package/src/router/async/router.map.js +2 -2
- package/src-base-client/components/common/HIS/HForm/HForm.vue +0 -347
- /package/{src-base-client/components/common/XCollapse/XCollapse.vue → tests/unit/a.log} +0 -0
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="32" height="32" viewBox="0 0 32 32"><g><path d="M16,6.193552C12.580641,6.193552,9.8064489,8.9677448,9.8064489,12.387104C9.8064489,15.806449,12.580641,18.580641,16,18.580641C19.419361,18.580641,22.193602,15.806449,22.193602,12.387104C22.193602,8.9677448,19.419361,6.193552,16,6.193552C16,6.193552,16,6.193552,16,6.193552ZM16,15.483871C14.29032,15.483871,12.903233,14.096769,12.903233,12.387104C12.903233,10.677424,14.29032,9.2903204,16,9.2903204C17.7096,9.2903204,19.096802,10.677424,19.096802,12.387104C19.096802,14.096769,17.7096,15.483871,16,15.483871C16,15.483871,16,15.483871,16,15.483871ZM16,0C7.1612964,0,0,7.1612964,0,16C0,24.838722,7.1612964,32,16,32C24.838722,32,32,24.838722,32,16C32,7.1612964,24.838722,0,16,0C16,0,16,0,16,0ZM16,28.903204C12.793552,28.903204,9.8645124,27.722561,7.6064487,25.78064C8.5677443,24.296803,10.212896,23.290403,12.096769,23.232321C13.438704,23.645123,14.716129,23.851683,16,23.851683C17.28384,23.851683,18.561281,23.65168,19.903202,23.232321C21.787041,23.296803,23.43232,24.296803,24.3936,25.78064C22.135521,27.722561,19.206402,28.903204,16,28.903204C16,28.903204,16,28.903204,16,28.903204C16,28.903204,16,28.903204,16,28.903204ZM26.496801,23.47744C24.922562,21.451681,22.490402,20.128962,19.716162,20.128962C19.058081,20.128962,18.038723,20.748322,16,20.748322C13.967746,20.748322,12.941936,20.128962,12.283874,20.128962C9.5161285,20.128962,7.0838728,21.451681,5.5032325,23.47744C3.9935522,21.367682,3.0967681,18.787043,3.0967681,16C3.0967681,8.883873,8.883873,3.0967681,16,3.0967681C23.116163,3.0967681,28.903204,8.883873,28.903204,16C28.903204,18.787043,28.006401,21.367682,26.496801,23.47744C26.496801,23.47744,26.496801,23.47744,26.496801,23.47744Z" fill="#D15DFF" fill-opacity="1"/></g></svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="32" height="32" viewBox="0 0 32 32"><g><path d="M16,6.193552C12.580641,6.193552,9.8064489,8.9677448,9.8064489,12.387104C9.8064489,15.806449,12.580641,18.580641,16,18.580641C19.419361,18.580641,22.193602,15.806449,22.193602,12.387104C22.193602,8.9677448,19.419361,6.193552,16,6.193552C16,6.193552,16,6.193552,16,6.193552ZM16,15.483871C14.29032,15.483871,12.903233,14.096769,12.903233,12.387104C12.903233,10.677424,14.29032,9.2903204,16,9.2903204C17.7096,9.2903204,19.096802,10.677424,19.096802,12.387104C19.096802,14.096769,17.7096,15.483871,16,15.483871C16,15.483871,16,15.483871,16,15.483871ZM16,0C7.1612964,0,0,7.1612964,0,16C0,24.838722,7.1612964,32,16,32C24.838722,32,32,24.838722,32,16C32,7.1612964,24.838722,0,16,0C16,0,16,0,16,0ZM16,28.903204C12.793552,28.903204,9.8645124,27.722561,7.6064487,25.78064C8.5677443,24.296803,10.212896,23.290403,12.096769,23.232321C13.438704,23.645123,14.716129,23.851683,16,23.851683C17.28384,23.851683,18.561281,23.65168,19.903202,23.232321C21.787041,23.296803,23.43232,24.296803,24.3936,25.78064C22.135521,27.722561,19.206402,28.903204,16,28.903204C16,28.903204,16,28.903204,16,28.903204C16,28.903204,16,28.903204,16,28.903204ZM26.496801,23.47744C24.922562,21.451681,22.490402,20.128962,19.716162,20.128962C19.058081,20.128962,18.038723,20.748322,16,20.748322C13.967746,20.748322,12.941936,20.128962,12.283874,20.128962C9.5161285,20.128962,7.0838728,21.451681,5.5032325,23.47744C3.9935522,21.367682,3.0967681,18.787043,3.0967681,16C3.0967681,8.883873,8.883873,3.0967681,16,3.0967681C23.116163,3.0967681,28.903204,8.883873,28.903204,16C28.903204,18.787043,28.006401,21.367682,26.496801,23.47744C26.496801,23.47744,26.496801,23.47744,26.496801,23.47744Z" fill="#D15DFF" fill-opacity="1"/></g></svg>
|
package/src/assets/svg/male.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="32" height="32" viewBox="0 0 32 32"><g><path d="M16,6.193552C12.580641,6.193552,9.8064489,8.9677448,9.8064489,12.387104C9.8064489,15.806449,12.580641,18.580641,16,18.580641C19.419361,18.580641,22.193602,15.806449,22.193602,12.387104C22.193602,8.9677448,19.419361,6.193552,16,6.193552C16,6.193552,16,6.193552,16,6.193552ZM16,15.483871C14.29032,15.483871,12.903233,14.096769,12.903233,12.387104C12.903233,10.677424,14.29032,9.2903204,16,9.2903204C17.7096,9.2903204,19.096802,10.677424,19.096802,12.387104C19.096802,14.096769,17.7096,15.483871,16,15.483871C16,15.483871,16,15.483871,16,15.483871ZM16,0C7.1612964,0,0,7.1612964,0,16C0,24.838722,7.1612964,32,16,32C24.838722,32,32,24.838722,32,16C32,7.1612964,24.838722,0,16,0C16,0,16,0,16,0ZM16,28.903204C12.793552,28.903204,9.8645124,27.722561,7.6064487,25.78064C8.5677443,24.296803,10.212896,23.290403,12.096769,23.232321C13.438704,23.645123,14.716129,23.851683,16,23.851683C17.28384,23.851683,18.561281,23.65168,19.903202,23.232321C21.787041,23.296803,23.43232,24.296803,24.3936,25.78064C22.135521,27.722561,19.206402,28.903204,16,28.903204C16,28.903204,16,28.903204,16,28.903204C16,28.903204,16,28.903204,16,28.903204ZM26.496801,23.47744C24.922562,21.451681,22.490402,20.128962,19.716162,20.128962C19.058081,20.128962,18.038723,20.748322,16,20.748322C13.967746,20.748322,12.941936,20.128962,12.283874,20.128962C9.5161285,20.128962,7.0838728,21.451681,5.5032325,23.47744C3.9935522,21.367682,3.0967681,18.787043,3.0967681,16C3.0967681,8.883873,8.883873,3.0967681,16,3.0967681C23.116163,3.0967681,28.903204,8.883873,28.903204,16C28.903204,18.787043,28.006401,21.367682,26.496801,23.47744C26.496801,23.47744,26.496801,23.47744,26.496801,23.47744Z" fill="#0057FE" fill-opacity="1"/></g></svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="32" height="32" viewBox="0 0 32 32"><g><path d="M16,6.193552C12.580641,6.193552,9.8064489,8.9677448,9.8064489,12.387104C9.8064489,15.806449,12.580641,18.580641,16,18.580641C19.419361,18.580641,22.193602,15.806449,22.193602,12.387104C22.193602,8.9677448,19.419361,6.193552,16,6.193552C16,6.193552,16,6.193552,16,6.193552ZM16,15.483871C14.29032,15.483871,12.903233,14.096769,12.903233,12.387104C12.903233,10.677424,14.29032,9.2903204,16,9.2903204C17.7096,9.2903204,19.096802,10.677424,19.096802,12.387104C19.096802,14.096769,17.7096,15.483871,16,15.483871C16,15.483871,16,15.483871,16,15.483871ZM16,0C7.1612964,0,0,7.1612964,0,16C0,24.838722,7.1612964,32,16,32C24.838722,32,32,24.838722,32,16C32,7.1612964,24.838722,0,16,0C16,0,16,0,16,0ZM16,28.903204C12.793552,28.903204,9.8645124,27.722561,7.6064487,25.78064C8.5677443,24.296803,10.212896,23.290403,12.096769,23.232321C13.438704,23.645123,14.716129,23.851683,16,23.851683C17.28384,23.851683,18.561281,23.65168,19.903202,23.232321C21.787041,23.296803,23.43232,24.296803,24.3936,25.78064C22.135521,27.722561,19.206402,28.903204,16,28.903204C16,28.903204,16,28.903204,16,28.903204C16,28.903204,16,28.903204,16,28.903204ZM26.496801,23.47744C24.922562,21.451681,22.490402,20.128962,19.716162,20.128962C19.058081,20.128962,18.038723,20.748322,16,20.748322C13.967746,20.748322,12.941936,20.128962,12.283874,20.128962C9.5161285,20.128962,7.0838728,21.451681,5.5032325,23.47744C3.9935522,21.367682,3.0967681,18.787043,3.0967681,16C3.0967681,8.883873,8.883873,3.0967681,16,3.0967681C23.116163,3.0967681,28.903204,8.883873,28.903204,16C28.903204,18.787043,28.006401,21.367682,26.496801,23.47744C26.496801,23.47744,26.496801,23.47744,26.496801,23.47744Z" fill="#0057FE" fill-opacity="1"/></g></svg>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import AmapPointRendering from './AmapPointRendering'
|
|
2
|
-
|
|
3
|
-
export default AmapPointRendering
|
|
1
|
+
import AmapPointRendering from './AmapPointRendering'
|
|
2
|
+
|
|
3
|
+
export default AmapPointRendering
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import HFormGroup from './HFormGroup.vue'
|
|
2
|
-
|
|
3
|
-
export default HFormGroup
|
|
1
|
+
import HFormGroup from './HFormGroup.vue'
|
|
2
|
+
|
|
3
|
+
export default HFormGroup
|
|
@@ -683,11 +683,8 @@ export default {
|
|
|
683
683
|
}
|
|
684
684
|
// 处理表单校验情况
|
|
685
685
|
if (item.rule) {
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
} else {
|
|
689
|
-
this.rules[rulesKey] = []
|
|
690
|
-
}
|
|
686
|
+
const rulesArrayKey = groupItem || rulesKey
|
|
687
|
+
this.rules[rulesArrayKey] = []
|
|
691
688
|
const required = item.rule.required ? item.rule.required === true || item.rule.required === 'true' : false
|
|
692
689
|
let trigger
|
|
693
690
|
let message
|
|
@@ -713,19 +710,26 @@ export default {
|
|
|
713
710
|
message = '请输入' + item.name
|
|
714
711
|
trigger = 'blur'
|
|
715
712
|
}
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
713
|
+
this.rules[rulesArrayKey].push({
|
|
714
|
+
required: true,
|
|
715
|
+
message: message,
|
|
716
|
+
trigger: trigger
|
|
717
|
+
})
|
|
718
|
+
}
|
|
719
|
+
// 文件/图片上传最小数量校验:必填时强制校验;非必填但已上传时也需校验
|
|
720
|
+
if (['file', 'image'].includes(item.type) && item.minAcceptCount) {
|
|
721
|
+
const minCount = Number(item.minAcceptCount)
|
|
722
|
+
this.rules[rulesArrayKey].push({
|
|
723
|
+
validator: (rule, value, callback) => {
|
|
724
|
+
const count = Array.isArray(value) ? value.length : (value ? 1 : 0)
|
|
725
|
+
if ((required || count > 0) && count < minCount) {
|
|
726
|
+
callback(new Error(`请至少上传${minCount}个${item.name}`))
|
|
727
|
+
} else {
|
|
728
|
+
callback()
|
|
729
|
+
}
|
|
730
|
+
},
|
|
731
|
+
trigger: 'change'
|
|
732
|
+
})
|
|
729
733
|
}
|
|
730
734
|
|
|
731
735
|
switch (item.rule.type) {
|
|
@@ -753,33 +757,18 @@ export default {
|
|
|
753
757
|
defaultValue = 0.0
|
|
754
758
|
break
|
|
755
759
|
}
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
})
|
|
769
|
-
} else {
|
|
770
|
-
this.rules[rulesKey].push({
|
|
771
|
-
type: item.rule.type,
|
|
772
|
-
message: item.name + '必须为' + message,
|
|
773
|
-
transform: (value) => {
|
|
774
|
-
if (value && value.length !== 0) {
|
|
775
|
-
return Number(value)
|
|
776
|
-
} else {
|
|
777
|
-
return defaultValue
|
|
778
|
-
}
|
|
779
|
-
},
|
|
780
|
-
trigger: 'blur'
|
|
781
|
-
})
|
|
782
|
-
}
|
|
760
|
+
this.rules[rulesArrayKey].push({
|
|
761
|
+
type: item.rule.type,
|
|
762
|
+
message: item.name + '必须为' + message,
|
|
763
|
+
transform: (value) => {
|
|
764
|
+
if (value && value.length !== 0) {
|
|
765
|
+
return Number(value)
|
|
766
|
+
} else {
|
|
767
|
+
return defaultValue
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
trigger: 'blur'
|
|
771
|
+
})
|
|
783
772
|
break
|
|
784
773
|
case 'email': {
|
|
785
774
|
const validator = (rule, value, callback) => {
|
|
@@ -789,7 +778,7 @@ export default {
|
|
|
789
778
|
callback()
|
|
790
779
|
}
|
|
791
780
|
}
|
|
792
|
-
this.rules[
|
|
781
|
+
this.rules[rulesArrayKey].push({
|
|
793
782
|
type: 'email',
|
|
794
783
|
validator: validator,
|
|
795
784
|
message: '请输入正确的邮箱地址',
|
|
@@ -798,7 +787,7 @@ export default {
|
|
|
798
787
|
break
|
|
799
788
|
}
|
|
800
789
|
case 'userPhone': {
|
|
801
|
-
this.rules[
|
|
790
|
+
this.rules[rulesArrayKey].push({
|
|
802
791
|
type: 'userPhone',
|
|
803
792
|
validator: (rule, value, callback) => {
|
|
804
793
|
if (value && !REG_PHONE.test(value)) {
|
|
@@ -813,7 +802,7 @@ export default {
|
|
|
813
802
|
break
|
|
814
803
|
}
|
|
815
804
|
case 'idNumber': {
|
|
816
|
-
this.rules[
|
|
805
|
+
this.rules[rulesArrayKey].push({
|
|
817
806
|
validator: (rule, value, callback) => {
|
|
818
807
|
if (value && !checkIdNumber(value)) {
|
|
819
808
|
callback(new Error('请输入正确的身份证号码'))
|
|
@@ -826,7 +815,7 @@ export default {
|
|
|
826
815
|
break
|
|
827
816
|
}
|
|
828
817
|
case 'landlineNumber': {
|
|
829
|
-
this.rules[
|
|
818
|
+
this.rules[rulesArrayKey].push({
|
|
830
819
|
validator: (rule, value, callback) => {
|
|
831
820
|
if (value && !REG_LANDLINE.test(value)) {
|
|
832
821
|
callback(new Error('请输入正确的座机号码'))
|
|
@@ -841,7 +830,7 @@ export default {
|
|
|
841
830
|
// 大于0
|
|
842
831
|
case 'greaterThanZero': {
|
|
843
832
|
item.numberInput = true
|
|
844
|
-
this.rules[
|
|
833
|
+
this.rules[rulesArrayKey].push({
|
|
845
834
|
validator: (rule, value, callback) => {
|
|
846
835
|
if (isNaN(value) || value <= 0) {
|
|
847
836
|
callback(new Error('请输入一个大于0的数字'))
|
|
@@ -856,7 +845,7 @@ export default {
|
|
|
856
845
|
// 大于等于0
|
|
857
846
|
case 'greaterThanOrEqualZero': {
|
|
858
847
|
item.numberInput = true
|
|
859
|
-
this.rules[
|
|
848
|
+
this.rules[rulesArrayKey].push({
|
|
860
849
|
validator: (rule, value, callback) => {
|
|
861
850
|
if (isNaN(value) || value < 0) {
|
|
862
851
|
callback(new Error('请输入一个大于等于0的数字'))
|
|
@@ -869,7 +858,7 @@ export default {
|
|
|
869
858
|
break
|
|
870
859
|
}
|
|
871
860
|
case 'stringLength': {
|
|
872
|
-
this.rules[
|
|
861
|
+
this.rules[rulesArrayKey].push({
|
|
873
862
|
validator: (rule, value, callback) => {
|
|
874
863
|
if (value && value.length < item.rule.minLen) {
|
|
875
864
|
callback(new Error('长度不能少于' + item.rule.minLen + '个字符'))
|
|
@@ -884,7 +873,7 @@ export default {
|
|
|
884
873
|
break
|
|
885
874
|
}
|
|
886
875
|
case 'customJs': {
|
|
887
|
-
this.rules[
|
|
876
|
+
this.rules[rulesArrayKey].push({
|
|
888
877
|
validator: (rule, value, callback) => {
|
|
889
878
|
this.customJsValidate(rule, value, callback, item)
|
|
890
879
|
},
|
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
mounted () {
|
|
14
|
-
getConfigByNameAsync('
|
|
14
|
+
getConfigByNameAsync('SecurityPhotoForm', 'af-safecheck').then(res => {
|
|
15
15
|
this.$refs.xAddFrom.init(Object.assign(res, {
|
|
16
16
|
modifyModelData: {
|
|
17
17
|
data: {}
|
|
@@ -26,6 +26,9 @@ export default {
|
|
|
26
26
|
},
|
|
27
27
|
singLocal () {
|
|
28
28
|
console.log('singLocal')
|
|
29
|
+
},
|
|
30
|
+
onSubmit () {
|
|
31
|
+
this.$refs.xAddFrom.onSubmit()
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
34
|
}
|
|
@@ -43,8 +46,10 @@ export default {
|
|
|
43
46
|
</a-card>
|
|
44
47
|
<a-card>
|
|
45
48
|
<pre>{{
|
|
46
|
-
form ? JSON.stringify(form, null, 2) : '请先点击获取表单数据' }}
|
|
49
|
+
form ? JSON.stringify(form, null, 2) : '请先点击获取表单数据11111' }}
|
|
50
|
+
<a-button type="primary" @click="onSubmit()">提交</a-button>
|
|
47
51
|
</pre>
|
|
52
|
+
|
|
48
53
|
</a-card>
|
|
49
54
|
</div>
|
|
50
55
|
</template>
|