|
@@ -636,12 +636,14 @@ export default {
|
636
|
636
|
//true是自身的策略即编辑
|
637
|
637
|
let hasSave =
|
638
|
638
|
this.curClass.type === this.strategyInfo.sttype ? true : false;
|
|
639
|
+ console.log(this.curClass.type,this.strategyInfo.sttype)
|
639
|
640
|
if (hasSave) {
|
640
|
641
|
//编辑
|
641
|
642
|
form.padid = this.strategyInfo.padid;
|
642
|
643
|
form.rversion = this.strategyInfo.rversion;
|
643
|
644
|
}
|
644
|
645
|
let api = hasSave ? stPad_edit : stPad_add;
|
|
646
|
+ console.log(hasSave)
|
645
|
647
|
api(form).then((res) => {
|
646
|
648
|
if (res.code === 0) {
|
647
|
649
|
this.$Message.success(res.msg);
|
|
@@ -683,6 +685,7 @@ export default {
|
683
|
685
|
if (document.querySelector(".user_list")) {
|
684
|
686
|
document.querySelector(".user_list").scrollTop = 0;
|
685
|
687
|
}
|
|
688
|
+ this.strategyInfo.sttype = 0;
|
686
|
689
|
if (res.obj) {
|
687
|
690
|
//数据回显
|
688
|
691
|
this.strategyInfo = res.obj;
|