mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 20:06:47 +08:00
style:添加路径图的loading
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
function formatNumber(n) {
|
function formatNumber(n) {
|
||||||
n = n.toString();
|
n = n.toString();
|
||||||
return n[1] ? n : "0" + n;
|
return n[1] ? n : "0" + n;
|
||||||
@@ -161,8 +162,12 @@ function autoComma(number) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const commonData={
|
||||||
|
timeout:50
|
||||||
|
}
|
||||||
export {
|
export {
|
||||||
toDate,
|
toDate,
|
||||||
getWeek,
|
getWeek,
|
||||||
autoComma,
|
autoComma,
|
||||||
|
commonData,
|
||||||
}
|
}
|
||||||
@@ -443,7 +443,7 @@ textarea {
|
|||||||
.aeLoading {
|
.aeLoading {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: rgba(0, 0, 0, 0.05);
|
background: rgba(0, 0, 0, 0.2);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|||||||
@@ -226,22 +226,8 @@
|
|||||||
<button class="samtn btn2" @click="createLearnPath">确定</button>
|
<button class="samtn btn2" @click="createLearnPath">确定</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div class="aeLoading" :style="{display:lpLoading?'flex':'none'}">
|
||||||
style="
|
<a-spin :spinning="lpLoading" tip="添加中..." />
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
flex-shrink: 0;
|
|
||||||
position:absolute;
|
|
||||||
z-index: 100;
|
|
||||||
left:0;
|
|
||||||
top:0;
|
|
||||||
"
|
|
||||||
v-if="true"
|
|
||||||
>
|
|
||||||
<a-spin :spinning="true" />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -604,7 +590,7 @@ import QueryRight from "../../components/drawers/QueryRight";
|
|||||||
import ManageRight from "../../components/drawers/ManageRight";
|
import ManageRight from "../../components/drawers/ManageRight";
|
||||||
import * as api from "../../api/index1";
|
import * as api from "../../api/index1";
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
import { toDate } from "../../api/method";
|
import { toDate,commonData } from "../../api/method";
|
||||||
import { storage } from "../../api/storage";
|
import { storage } from "../../api/storage";
|
||||||
export default {
|
export default {
|
||||||
name: "learningPath",
|
name: "learningPath",
|
||||||
@@ -734,6 +720,8 @@ export default {
|
|||||||
routeStudentsNum: 0,
|
routeStudentsNum: 0,
|
||||||
recallPathId: null, //撤回路径id
|
recallPathId: null, //撤回路径id
|
||||||
stopPathId: null, //停用路径id
|
stopPathId: null, //停用路径id
|
||||||
|
|
||||||
|
lpLoading:false,
|
||||||
});
|
});
|
||||||
|
|
||||||
const selectProjectName = (value, index) => {
|
const selectProjectName = (value, index) => {
|
||||||
@@ -1300,7 +1288,7 @@ export default {
|
|||||||
// message.destroy();
|
// message.destroy();
|
||||||
// return message.warning("请选择归属组织");
|
// return message.warning("请选择归属组织");
|
||||||
// }
|
// }
|
||||||
// state.createLoading = true;
|
state.lpLoading = true;
|
||||||
let obj = {
|
let obj = {
|
||||||
name: state.pathName,
|
name: state.pathName,
|
||||||
picUrl: "",
|
picUrl: "",
|
||||||
@@ -1310,19 +1298,19 @@ export default {
|
|||||||
api
|
api
|
||||||
.createLearnPath(obj)
|
.createLearnPath(obj)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log("创建成功", res);
|
// console.log("创建成功", res);
|
||||||
message.destroy();
|
// message.destroy();
|
||||||
message.success("创建成功");
|
// message.success("创建成功");
|
||||||
router.push("/leveladd");
|
// router.push("/leveladd");
|
||||||
// setTimeout(() => {
|
setTimeout(() => {
|
||||||
// console.log("创建成功", res);
|
console.log("创建成功", res);
|
||||||
// message.destroy();
|
message.destroy();
|
||||||
// message.success("创建成功");
|
message.success("创建成功");
|
||||||
// // state.createLoading = false;
|
state.lpLoading = false;
|
||||||
// state.currentPage = 1;
|
state.currentPage = 1;
|
||||||
// router.push("/leveladd");
|
router.push("/leveladd");
|
||||||
// // getLearnPath();
|
// getLearnPath();
|
||||||
// }, 1000);
|
}, commonData.timeout);
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log("创建失败", err);
|
console.log("创建失败", err);
|
||||||
|
|||||||
Reference in New Issue
Block a user