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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "0.8.13",
3
+ "version": "0.8.16",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -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
- let value = this.formShow.form.formFieldRelation[i].value && this.formShow.form.formFieldRelation[i].value.includes('\n')?this.formShow.form.formFieldRelation[i].value:'';
1493
- let strVal = '';
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
- strVal = value.replace(/\n/g,'');
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
- let bool = this.formShow.form.formFieldRelation[i].value && this.formShow.form.formFieldRelation[i].value.includes('\n') && !strVal
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: -webkit-box;
2338
+ display: flex;
2339
2339
  align-items: center;
2340
2340
  justify-content: center;
2341
2341
  i{