mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 22:06:45 +08:00
fix:增加添加修改阶段动画
This commit is contained in:
@@ -823,6 +823,15 @@
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="aeLoading"
|
||||
:style="{ display: addLoading ? 'flex' : 'none' }"
|
||||
>
|
||||
<a-spin
|
||||
:spinning="addLoading"
|
||||
:tip="updateStageID ? '修改中...' : '添加中...'"
|
||||
/>
|
||||
</div>
|
||||
</a-modal>
|
||||
</div>
|
||||
<!-- 确认添加阶段弹窗 -->
|
||||
@@ -1154,6 +1163,8 @@ export default {
|
||||
deleteStageModal: false, //删除阶段弹窗
|
||||
|
||||
unlockModeVisible: false, //切换模式抽屉
|
||||
|
||||
addLoading: false, // 添加编辑阶段动画
|
||||
});
|
||||
console.log("projectId", state.projectId);
|
||||
const selectProjectName = (value, index) => {
|
||||
@@ -1607,6 +1618,8 @@ export default {
|
||||
message.destroy();
|
||||
return message.warning("请输入阶段名称");
|
||||
}
|
||||
|
||||
state.addLoading = true;
|
||||
if (state.updateStageID) {
|
||||
let obj = {
|
||||
name: state.valuesname,
|
||||
@@ -1630,6 +1643,7 @@ export default {
|
||||
(item) => item.id == state.chooseStageId
|
||||
);
|
||||
getTableData(final.taskList);
|
||||
state.addLoading = false;
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("添加阶段失败", err);
|
||||
@@ -1655,6 +1669,7 @@ export default {
|
||||
(item) => item.id == state.chooseStageId
|
||||
);
|
||||
getTableData(final.taskList);
|
||||
state.addLoading = false;
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("添加阶段失败", err);
|
||||
|
||||
Reference in New Issue
Block a user