|
|
|
|
778
|
form.padid = this.strategyInfo.padid;
|
778
|
form.padid = this.strategyInfo.padid;
|
779
|
form.rversion = this.strategyInfo.rversion;
|
779
|
form.rversion = this.strategyInfo.rversion;
|
780
|
}
|
780
|
}
|
781
|
- let api = this.strategyInfo.model === "edit" ? stPad_edit : stPad_add;
|
|
|
|
|
781
|
+ let api = !isNaN(this.strategyInfo.padid) ? stPad_edit : stPad_add;
|
782
|
api(form).then((res) => {
|
782
|
api(form).then((res) => {
|
783
|
if (res.code === 0) {
|
783
|
if (res.code === 0) {
|
784
|
this.$Message.success(res.msg);
|
784
|
this.$Message.success(res.msg);
|