mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-18 23:36:46 +08:00
fix:增加添加修改阶段动画
This commit is contained in:
@@ -824,6 +824,15 @@
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="aeLoading"
|
||||
:style="{ display: addLoading ? 'flex' : 'none' }"
|
||||
>
|
||||
<a-spin
|
||||
:spinning="addLoading"
|
||||
:tip="updateStageID ? '修改中...' : '添加中...'"
|
||||
/>
|
||||
</div>
|
||||
</a-modal>
|
||||
</div>
|
||||
<!-- 确认添加阶段弹窗 -->
|
||||
@@ -1301,6 +1310,8 @@ export default {
|
||||
deleteStageModal: false, //删除阶段弹窗
|
||||
|
||||
unlockModeVisible: false, //切换模式抽屉
|
||||
|
||||
addLoading: false, //添加、编辑阶段动画
|
||||
});
|
||||
console.log("projectTemplateId", state.projectTemplateId);
|
||||
const selectProjectName = (value, index) => {
|
||||
@@ -1709,6 +1720,7 @@ export default {
|
||||
message.destroy();
|
||||
return message.warning("请输入阶段名称");
|
||||
}
|
||||
state.addLoading = true;
|
||||
let obj = {
|
||||
name: state.valuesname,
|
||||
projectTemplateId: localStorage.getItem("projectTemplateId"),
|
||||
@@ -1726,6 +1738,7 @@ export default {
|
||||
message.destroy();
|
||||
message.success("修改阶段成功");
|
||||
getTask();
|
||||
state.addLoading = false;
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("添加阶段失败", err);
|
||||
|
||||
Reference in New Issue
Block a user