@zscreate/zhxy-app-component 1.0.83 → 1.0.85

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.
@@ -626,6 +626,7 @@ export default {
626
626
  // firstValidateField: true,//第一次校验
627
627
  isScroll: false,
628
628
  dataModelShow: '',
629
+ imgUrl: this.uniEnv.imgUrl,
629
630
  actionUrl: this.uniEnv.uploadUrl,
630
631
  correntArray: ['input', 'textarea'],
631
632
  checkboxAndRadioOptions: [],
@@ -703,12 +704,11 @@ export default {
703
704
  if (this.widget.options.disabled) return
704
705
  const userInfo = uni.getStorageSync('userinfo')
705
706
  this.$u.get("workhall/userseal/queryById").then((res) => {
706
- if (res.success) {
707
- this.nameSign = res.result.userSign
708
- this.dataModel = res.result.userSign || userInfo.realname
709
- if (this.widget.type === 'sealSignature') {
710
- this.dataModel = res.result.userSeal || ""
711
- }
707
+ const { result = { userSign: '', userSeal : '' } } = res.result || {}
708
+ this.nameSign = result.userSign || userInfo.realname
709
+ this.dataModel = result.userSign || userInfo.realname
710
+ if (this.widget.type.includes('sealSignature') ) {
711
+ this.dataModel = result.userSeal || ""
712
712
  }
713
713
  })
714
714
  },
@@ -867,7 +867,7 @@ export default {
867
867
  if (this.widget.type === 'relateSub') {
868
868
  this.showLabels(this.dataModel)
869
869
  }
870
- if (['nameSignature', 'sealSignature'].includes(this.widget.type)) this.getUserSign()
870
+ if (['nameSignature', 'sealSignature'].some(item => this.widget.type.includes(item))) this.getUserSign()
871
871
  },
872
872
 
873
873
  updateRadioOrCheckboxModel(arr) {
@@ -70,7 +70,6 @@ textarea {
70
70
  width: 100%;
71
71
  }
72
72
  .textarea-wrapper {
73
- z-index: 999;
74
73
  position: relative;
75
74
  display: block;
76
75
  height: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.83",
3
+ "version": "1.0.85",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",