mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 20:36:45 +08:00
-- fix 评估
This commit is contained in:
@@ -359,7 +359,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="pubtn">
|
<div class="pubtn">
|
||||||
<a-button class="pubtn1" @click="closeModal2">取消</a-button>
|
<a-button class="pubtn1" @click="closeModal2">取消</a-button>
|
||||||
<a-button class="pubtn2" @click="createStoreyProject" :loading="projectInfo.validated===1"
|
<a-button class="pubtn2" @click="createStoreyProject" :loading="buttonLoading || projectInfo.validated===1"
|
||||||
>确定
|
>确定
|
||||||
</a-button>
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -974,6 +974,7 @@ export default {
|
|||||||
setup() {
|
setup() {
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
tableLoading: false,
|
tableLoading: false,
|
||||||
|
buttonLoading: false,
|
||||||
projectName: null,
|
projectName: null,
|
||||||
selectTime: null,
|
selectTime: null,
|
||||||
sonproject: false,
|
sonproject: false,
|
||||||
@@ -1083,6 +1084,7 @@ export default {
|
|||||||
|
|
||||||
// 创建多层项目
|
// 创建多层项目
|
||||||
const createStoreyProject = async () => {
|
const createStoreyProject = async () => {
|
||||||
|
state.buttonLoading = true
|
||||||
// 接口需要传递的参数信息
|
// 接口需要传递的参数信息
|
||||||
const errorMsgs = {
|
const errorMsgs = {
|
||||||
name: "请输入项目名称",
|
name: "请输入项目名称",
|
||||||
@@ -1091,6 +1093,7 @@ export default {
|
|||||||
sourceBelongId: "请选择资源归属",
|
sourceBelongId: "请选择资源归属",
|
||||||
};
|
};
|
||||||
if (!validate(state.projectInfo, errorMsgs)) {
|
if (!validate(state.projectInfo, errorMsgs)) {
|
||||||
|
state.buttonLoading = false
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@@ -1107,6 +1110,7 @@ export default {
|
|||||||
return res.data.data == 1;
|
return res.data.data == 1;
|
||||||
});
|
});
|
||||||
if (offName) {
|
if (offName) {
|
||||||
|
state.buttonLoading = false
|
||||||
message.destroy();
|
message.destroy();
|
||||||
return message.warning("项目名称重复,请重新填写");
|
return message.warning("项目名称重复,请重新填写");
|
||||||
}
|
}
|
||||||
@@ -1115,6 +1119,7 @@ export default {
|
|||||||
message.destroy();
|
message.destroy();
|
||||||
message.success("创建成功");
|
message.success("创建成功");
|
||||||
state.currentPage = 1;
|
state.currentPage = 1;
|
||||||
|
state.buttonLoading = false
|
||||||
getTableDate();
|
getTableDate();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user