@zscreate/zhxy-app-component 1.0.232 → 1.0.233
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.
|
@@ -565,7 +565,7 @@
|
|
|
565
565
|
</view>
|
|
566
566
|
|
|
567
567
|
|
|
568
|
-
<view class="error-message" v-if="showFalse">{{ showFalseMsg }}</view>
|
|
568
|
+
<view class="error-message" v-if="formShowError !== false && showFalse">{{ showFalseMsg }}</view>
|
|
569
569
|
<view v-if="widget.options.canView && !hiddenLineTypes.includes(widget.type)" class="bottom_line">
|
|
570
570
|
</view>
|
|
571
571
|
<u-toast ref="uToast" />
|
|
@@ -701,7 +701,7 @@ export default {
|
|
|
701
701
|
return '请选择'
|
|
702
702
|
}
|
|
703
703
|
},
|
|
704
|
-
inject: ['dataObj'],
|
|
704
|
+
inject: ['dataObj', 'formShowError'],
|
|
705
705
|
data() {
|
|
706
706
|
return {
|
|
707
707
|
hiddenLineTypes: ['hidden'],
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import utils from '../utils.js'
|
|
2
|
+
import Pubsub from "pubsub-js";
|
|
2
3
|
export const validateFormMixin = {
|
|
3
4
|
methods: {
|
|
4
5
|
/****表单校验***/
|
|
@@ -15,6 +16,12 @@ export const validateFormMixin = {
|
|
|
15
16
|
*******/
|
|
16
17
|
this.showFalse = !res ? false : true;
|
|
17
18
|
this.showFalseMsg = res ? res[0].message : ''; //获取错误信息
|
|
19
|
+
|
|
20
|
+
Pubsub.publish(this.prop + '_validate', {
|
|
21
|
+
showFalse: this.showFalse,
|
|
22
|
+
showFalseMsg: this.showFalseMsg
|
|
23
|
+
})
|
|
24
|
+
|
|
18
25
|
if (!res) {
|
|
19
26
|
resolve(true)
|
|
20
27
|
} else {
|