@zscreate/zhxy-app-component 1.0.338 → 1.0.339

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.
@@ -923,7 +923,8 @@ export default {
923
923
  }
924
924
  if(this.widget.type === 'imgupload') {
925
925
  // applyId代表已提交过的(不包含暂存)
926
- if((!this.dataModel || !this.dataModel.length) && !this.applyId && !this.$Route.query.applyId && this.widget.options.defaultFiles) {
926
+ debugger
927
+ if((!this.dataModel || !this.dataModel.length) && !this.applyId && (!this.dataObj().config.status || this.dataObj().config.status == 'XZ') && !this.$Route.query.applyId && this.widget.options.defaultFiles) {
927
928
  this.dataModel = this.widget.options.defaultFiles
928
929
  this.models[this.widget.model] = this.widget.options.defaultFiles
929
930
  }
@@ -1335,7 +1335,7 @@ export default {
1335
1335
  } else {
1336
1336
  // console.log('TO-JSON==',JSON.stringify(this.models));
1337
1337
  // console.log(genList[i].model);
1338
- let default_value = genList[i].options.defaultValue
1338
+ let default_value = !this.dataObj.config.status || this.dataObj.config.status == 'XZ' ? genList[i].options.defaultValue : ''
1339
1339
  if (String(default_value).startsWith('script:')) {
1340
1340
  default_value = ''
1341
1341
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.338",
3
+ "version": "1.0.339",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",