|
@@ -1,7 +1,7 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div class="index1">
|
3
|
3
|
<div class="operation">
|
4
|
|
- <span @click="curState = 2">修改</span>
|
|
4
|
+ <span v-if="curState === 1" @click="curState = 2">修改</span>
|
5
|
5
|
<span
|
6
|
6
|
style="font-size: 13px"
|
7
|
7
|
v-if="curClass.type === strategyInfo.sttype"
|
|
@@ -250,7 +250,7 @@
|
250
|
250
|
style="text-align: center; margin-top: 20px"
|
251
|
251
|
v-if="curState === 2"
|
252
|
252
|
>
|
253
|
|
- <Button style="margin-right: 16px" @click="curState = 1">取消</Button>
|
|
253
|
+ <Button style="margin-right: 16px" @click="cancel">取消</Button>
|
254
|
254
|
<Button type="primary" class="primary_btn" @click="save()">保存</Button>
|
255
|
255
|
</div>
|
256
|
256
|
</div>
|
|
@@ -492,7 +492,7 @@ export default {
|
492
|
492
|
}
|
493
|
493
|
//刷新左侧树
|
494
|
494
|
this.$emit("refresh");
|
495
|
|
- this.curState = 2; //编辑状态
|
|
495
|
+ this.curState = 1; //查看状态
|
496
|
496
|
this.stPadInfo.show = false;
|
497
|
497
|
} else {
|
498
|
498
|
this.$Message.error(res.msg);
|
|
@@ -556,6 +556,11 @@ export default {
|
556
|
556
|
timesChange(times) {
|
557
|
557
|
this.strategyInfo.padTimes = times;
|
558
|
558
|
},
|
|
559
|
+ cancel(){
|
|
560
|
+ //取消
|
|
561
|
+ this.curState = 1;
|
|
562
|
+ this.detail();
|
|
563
|
+ },
|
559
|
564
|
save() {
|
560
|
565
|
if (
|
561
|
566
|
!this.strategyInfo.hastime &&
|