|
@@ -154,7 +154,9 @@ export default {
|
|
|
this.DEPLOY_CONTROL_KEYS.forEach((cont) => {
|
|
|
const defaultVal = cont.type === "number" ? undefined : null;
|
|
|
control[cont.code] =
|
|
|
- controlVals[cont.code] || controlVals[cont.code] === 0
|
|
|
+ controlVals[cont.code] ||
|
|
|
+ controlVals[cont.code] === 0 ||
|
|
|
+ controlVals[cont.code] === false
|
|
|
? controlVals[cont.code]
|
|
|
: defaultVal;
|
|
|
});
|
|
@@ -165,7 +167,9 @@ export default {
|
|
|
this.customOptions.forEach((cont) => {
|
|
|
const defaultVal = cont.type === "number" ? undefined : null;
|
|
|
custom[cont.key] =
|
|
|
- customVals[cont.key] || customVals[cont.key] === 0
|
|
|
+ customVals[cont.key] ||
|
|
|
+ customVals[cont.key] === 0 ||
|
|
|
+ customVals[cont.key] === false
|
|
|
? customVals[cont.key]
|
|
|
: defaultVal;
|
|
|
});
|
|
@@ -174,6 +178,9 @@ export default {
|
|
|
this.$refs.modalFormComp.clearValidate();
|
|
|
},
|
|
|
async visibleChange() {
|
|
|
+ if (this.instance.appId !== this.modalForm.appId) {
|
|
|
+ this.customOptions = [];
|
|
|
+ }
|
|
|
await this.getCustomParams();
|
|
|
this.initData(this.instance);
|
|
|
},
|