@zscreate/zhxy-app-component 1.0.338 → 1.0.340
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
|
-
|
|
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
|
}
|
|
@@ -941,8 +942,10 @@ export default {
|
|
|
941
942
|
checkboxChange(e) {
|
|
942
943
|
if (this.tableKey) {
|
|
943
944
|
this.models[this.tableKey][this.tableIndex][this.widget.model] = e.target.value;
|
|
945
|
+
this.tableValueSet(e.target.value)
|
|
944
946
|
} else {
|
|
945
947
|
this.models[this.widget.model] = e.target.value;
|
|
948
|
+
this.valueSet(e.target.value)
|
|
946
949
|
}
|
|
947
950
|
this.validateInit()
|
|
948
951
|
},
|
|
@@ -2074,6 +2077,12 @@ export default {
|
|
|
2074
2077
|
});
|
|
2075
2078
|
this.$emit("input-change", val, this.widget.model);
|
|
2076
2079
|
},
|
|
2080
|
+
valueSet(val) {
|
|
2081
|
+
this.$emit("update:models", {
|
|
2082
|
+
...this.models,
|
|
2083
|
+
[this.widget.model]: val
|
|
2084
|
+
});
|
|
2085
|
+
},
|
|
2077
2086
|
// getParentModels(){
|
|
2078
2087
|
// Pubsub.subscribe('randomObserve',(msg,data) => {
|
|
2079
2088
|
// // console.log('fu传递model',msg, data)
|
|
@@ -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
|
}
|