askbot-dragon 0.8.13 → 0.8.16
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/components/formTemplate.vue +11 -11
package/package.json
CHANGED
|
@@ -1218,11 +1218,6 @@ export default {
|
|
|
1218
1218
|
if (!this.extInfoFieldValue[this.formList.form.formFieldRelation[i].fieldId]){
|
|
1219
1219
|
this.extInfoFieldValue[this.formList.form.formFieldRelation[i].fieldId] = fieldValue
|
|
1220
1220
|
}
|
|
1221
|
-
if (this.formList.form.formFieldRelation[i].value){
|
|
1222
|
-
this.formList.form.formFieldRelation[i].value = this.formList.form.formFieldRelation[i].formField.defaultValue?
|
|
1223
|
-
this.formList.form.formFieldRelation[i].formField.defaultValue:[];
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
1221
|
}
|
|
1227
1222
|
if (type === 'DATE_PICKER') {
|
|
1228
1223
|
if(this.formList.form.formFieldRelation[i].value!==null && this.formList.form.formFieldRelation[i].value!=='' ) {
|
|
@@ -1489,13 +1484,18 @@ export default {
|
|
|
1489
1484
|
(this.formShow.form.formFieldRelation[i].required || this.isRequiredFn(this.formShow.form.formFieldRelation[i].formField)) &&
|
|
1490
1485
|
this.formShow.form.formFieldRelation[i].fieldId!=='workorder_name'&&
|
|
1491
1486
|
this.formShow.form.formFieldRelation[i].formField.type !== 'EXPLANATION') {
|
|
1492
|
-
|
|
1493
|
-
let
|
|
1487
|
+
console.debug('formFieldRelation',this.formShow.form.formFieldRelation[i].value)
|
|
1488
|
+
let value = "";
|
|
1489
|
+
let bool = false
|
|
1490
|
+
if (this.formShow.form.formFieldRelation[i].formField.type === 'INPUT' || this.formShow.form.formFieldRelation[i].formField.type === 'TEXTAREA'){
|
|
1491
|
+
value = this.formShow.form.formFieldRelation[i].value && this.formShow.form.formFieldRelation[i].value.indexOf('\n')!==-1?this.formShow.form.formFieldRelation[i].value:'';
|
|
1492
|
+
let strVal = '';
|
|
1494
1493
|
if(value){
|
|
1495
|
-
|
|
1494
|
+
strVal = value.replace(/\n/g,'');
|
|
1495
|
+
}
|
|
1496
|
+
bool = this.formShow.form.formFieldRelation[i].value && this.formShow.form.formFieldRelation[i].value.indexOf('\n')!==-1 && !strVal
|
|
1496
1497
|
}
|
|
1497
|
-
|
|
1498
|
-
if(!this.formShow.form.formFieldRelation[i].value || bool || (this.formShow.form.formFieldRelation[i].value&&this.formShow.form.formFieldRelation[i].value.length===0)) {
|
|
1498
|
+
if(!this.formShow.form.formFieldRelation[i].value || bool || (this.formShow.form.formFieldRelation[i].value && !this.formShow.form.formFieldRelation[i].value.length)) {
|
|
1499
1499
|
this.$message.error('请完善'+ this.formShow.form.formFieldRelation[i].formField.name)
|
|
1500
1500
|
return
|
|
1501
1501
|
}
|
|
@@ -2335,7 +2335,7 @@ export default {
|
|
|
2335
2335
|
text-align: center;
|
|
2336
2336
|
font-size:28px;
|
|
2337
2337
|
color:#366AFF;
|
|
2338
|
-
display:
|
|
2338
|
+
display: flex;
|
|
2339
2339
|
align-items: center;
|
|
2340
2340
|
justify-content: center;
|
|
2341
2341
|
i{
|