askbot-dragon 0.8.13 → 0.8.14
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
CHANGED
|
@@ -1489,12 +1489,13 @@ export default {
|
|
|
1489
1489
|
(this.formShow.form.formFieldRelation[i].required || this.isRequiredFn(this.formShow.form.formFieldRelation[i].formField)) &&
|
|
1490
1490
|
this.formShow.form.formFieldRelation[i].fieldId!=='workorder_name'&&
|
|
1491
1491
|
this.formShow.form.formFieldRelation[i].formField.type !== 'EXPLANATION') {
|
|
1492
|
-
|
|
1492
|
+
console.debug('formFieldRelation',this.formShow.form.formFieldRelation[i].value)
|
|
1493
|
+
let value = this.formShow.form.formFieldRelation[i].value && this.formShow.form.formFieldRelation[i].value.indexOf('\n')!==-1?this.formShow.form.formFieldRelation[i].value:'';
|
|
1493
1494
|
let strVal = '';
|
|
1494
1495
|
if(value){
|
|
1495
1496
|
strVal = value.replace(/\n/g,'');
|
|
1496
1497
|
}
|
|
1497
|
-
let bool = this.formShow.form.formFieldRelation[i].value && this.formShow.form.formFieldRelation[i].value.
|
|
1498
|
+
let bool = this.formShow.form.formFieldRelation[i].value && this.formShow.form.formFieldRelation[i].value.indexOf('\n')!==-1 && !strVal
|
|
1498
1499
|
if(!this.formShow.form.formFieldRelation[i].value || bool || (this.formShow.form.formFieldRelation[i].value&&this.formShow.form.formFieldRelation[i].value.length===0)) {
|
|
1499
1500
|
this.$message.error('请完善'+ this.formShow.form.formFieldRelation[i].formField.name)
|
|
1500
1501
|
return
|
|
@@ -2335,7 +2336,7 @@ export default {
|
|
|
2335
2336
|
text-align: center;
|
|
2336
2337
|
font-size:28px;
|
|
2337
2338
|
color:#366AFF;
|
|
2338
|
-
display:
|
|
2339
|
+
display: flex;
|
|
2339
2340
|
align-items: center;
|
|
2340
2341
|
justify-content: center;
|
|
2341
2342
|
i{
|