From 2c6ca0658f23ce8e893a81400ddb9dd9595f335f Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期四, 05 十二月 2024 11:30:36 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
Source/plt-web/plt-web-ui/src/components/PLT-basic-component/basicForm.vue | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/basicForm.vue b/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/basicForm.vue
index ba912dd..dc51274 100644
--- a/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/basicForm.vue
+++ b/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/basicForm.vue
@@ -187,11 +187,11 @@
...item,
label: item.text,
prop: item.prop || item.field,
- showProp:item.showProp || item.showField,
+ showProp: item.showProp || item.showField,
type: type,
- labelWidth:item.labelWidth || this.labelWidth || (item.text.length >= 6 ? 115 : 90),
+ labelWidth: item.labelWidth || this.labelWidth || (item.text.length >= 6 ? 115 : 90),
disabled: item.disabled || this.disabled,
- readonly:item.readonly || item.readOnly,
+ readonly: item.readonly || item.readOnly,
span: item.span
? item.span
: item.type === "textarea"
@@ -200,30 +200,30 @@
value: item.value || item.defaultValue,
display: item.display || !item.hidden,
labelSuffix: item.labelSuffix || item.suffix,
- suffixIcon: item.suffixIcon || item.prefix,
tip: item.tip || item.tooltips,
dictCode: item.dictCode || item.comboxKey,
- valueFormat: item.valueFormat ||item.dateFormate ,
+ valueFormat: item.valueFormat || item.dateFormate,
format: item.format || item.dateFormate,
- rules: this.isEdit?(type=="select" || type=="refer" || type=="date" || type=="datetime"?[{
+ };
+ if(!item.rules || item.rules.length==0){
+ col.rules=this.isEdit ? (type == "select" || type == "refer" || type == "date" || type == "datetime" ? [{
required: item.required || false,
message: `璇烽�夋嫨${item.text}!`,
trigger: "change"
- },{
- required: item.required|| false,
+ }, {
+ required: item.required || false,
message: `璇烽�夋嫨${item.text}!`,
trigger: "submit"
- }]:[{
- required: item.required|| false,
+ }] : [{
+ required: item.required || false,
message: `璇疯緭鍏�${item.text}!`,
trigger: "blur"
- },{
- required: item.required|| false,
+ }, {
+ required: item.required || false,
message: `璇疯緭鍏�${item.text}!`,
trigger: "submit"
- }]):[],
-
- };
+ }]) : []
+ }
if(!this.isEdit){
col.placeholder=col.label;
col.disabled=true;
--
Gitblit v1.9.3