style:学习路径图编辑任务弹框修改

This commit is contained in:
wuyx
2022-11-29 16:45:47 +08:00
parent bc17a024e8
commit eee5a7f963
3 changed files with 30 additions and 3 deletions

View File

@@ -215,7 +215,7 @@
</div>
</div>
<div class="main_btns">
<button class="btn1" @click="closeDrawer">取消</button>
<button class="btn1" @click="closeDrawer1">取消</button>
<button class="btn2" @click="updateActivityInfo">确定</button>
</div>
</div>
@@ -317,6 +317,22 @@ export default {
localStorage.setItem("stageId", props.chooseStageId);
localStorage.setItem("chapterId", props.isactive);
};
const closeDrawer1 = () => {
ctx.emit("update:addactiveVisible", false);
ctx.emit("update:edit", false);
state.radioV1 = "";
state.inputV1 = "";
state.inputV2 = "";
state.inputV3 = "";
state.inputV4 = "";
state.inputV5 = "";
state.inputV6 = "";
state.textV1 = "";
state.textV2 = "";
state.time = "";
localStorage.setItem("stageId", props.chooseStageId);
localStorage.setItem("chapterId", props.isactive);
}
const queryActive = () => {
api
.getActivity(props.EditActiveId)
@@ -475,6 +491,7 @@ export default {
...toRefs(state),
afterVisibleChange,
closeDrawer,
closeDrawer1,
cloradio1,
updateActivityInfo,
};