-
@@ -10,13 +9,15 @@
:data="tableList"
readonly
:loading="tableLoading"
- :specialActionList="[{
- title: '查看详情',
- type: 'primary',
- click: (row: any) => {
- openTaskDetailDialogFun(row);
+ :specialActionList="[
+ {
+ title: '查看详情',
+ type: 'primary',
+ click: (row: any) => {
+ openTaskDetailDialogFun(row);
+ },
},
- }]"
+ ]"
>
@@ -43,7 +44,6 @@
@click="openTaskDetailDialogFun(row)"
>查看详情
-->
-
-
+
-
+
@@ -44,10 +68,16 @@
:projectId="currentProjectInfo.id"
:projectUuid="currentProjectInfo.uuid"
:projectName="projectName"
+ freeze
/>
-
+
@@ -165,7 +195,11 @@ const openEditNodeDialogFun = () => {
const showTaskDialog = ref(false);
const openAddTaskDialogFun = () => {
- showTaskDialog.value = true;
+ if (phaseListLength.value === 0) {
+ ElMessage.warning('请先创建阶段');
+ } else {
+ showTaskDialog.value = true;
+ }
};
const currentProjectInfo = reactive({
id: '',
@@ -185,7 +219,7 @@ const currentProjectInfo = reactive({
memberList: [],
});
-const updateProjectInfo = (projectInfo:any) => {
+const updateProjectInfo = (projectInfo: any) => {
for (const key in currentProjectInfo) {
currentProjectInfo[key] = projectInfo[key];
}
@@ -208,7 +242,7 @@ const updateProjectInfo = (projectInfo:any) => {
// }
// };
-const updateCurrentProjectBaseInfo = (projectInfo:any) => {
+const updateCurrentProjectBaseInfo = (projectInfo: any) => {
for (const key in currentProjectInfo) {
currentProjectInfo[key] = projectInfo[key];
}
@@ -217,7 +251,7 @@ const updateCurrentProjectBaseInfo = (projectInfo:any) => {
const loadcaseRef = ref();
-const completeFun = (page:string) => {
+const completeFun = (page: string) => {
console.log('index completeFun', page);
if (page === 'projectBasePage') {
basePageRef.value.refresh();
@@ -231,8 +265,10 @@ const completeFun = (page:string) => {
}
};
-const closeProject = async() => {
- const res:any = await editNodeApi({ editNodeList: [{ uuid: props.projectUuid, exeStatus: PROJECT_EXE_STATUS_CODE.CLOSED }] });
+const closeProject = async () => {
+ const res: any = await editNodeApi({
+ editNodeList: [{ uuid: props.projectUuid, exeStatus: PROJECT_EXE_STATUS_CODE.CLOSED }],
+ });
if (res && res.code === 200) {
ElMessage.success('关闭项目成功!');
} else {
@@ -240,6 +276,12 @@ const closeProject = async() => {
}
};
+const phaseListLength = ref(0);
+
+const getPhaseListFun = (length: number) => {
+ phaseListLength.value = length;
+};
+
// if (route.query?.nodeId) {
// projectUuid.value = route.query?.nodeId;
// projectName.value = route.query?.nodeName;
@@ -260,11 +302,11 @@ const closeProject = async() => {
.app-container {
padding: 16px;
}
-.select-content{
+.select-content {
width: 500px;
display: flex;
align-items: center;
- span{
+ span {
display: inline-block;
width: 100px;
white-space: nowrap;
diff --git a/src/views/task/simulationTask/confirmTask/index.vue b/src/views/task/simulationTask/confirmTask/index.vue
index 53acea6..d82c303 100644
--- a/src/views/task/simulationTask/confirmTask/index.vue
+++ b/src/views/task/simulationTask/confirmTask/index.vue
@@ -2,12 +2,12 @@
@@ -23,51 +23,11 @@
-
-