需求改为待办

This commit is contained in:
weibl
2026-03-09 15:30:30 +08:00
parent 913b1d45db
commit 27f80cdb09
7 changed files with 20 additions and 18 deletions

View File

@@ -19,11 +19,11 @@ export const permissionGroups = [
],
},
{
name: '需求管理',
name: '待办管理',
permissions: [
{ btn: '需求管理-创建需求', code: 'demand_add_demand' },
{ btn: '需求管理-编辑需求', code: 'demand_edit_demand' },
{ btn: '需求管理-删除需求', code: 'demand_delete_demand' },
{ btn: '待办管理-创建待办', code: 'demand_add_demand' },
{ btn: '待办管理-编辑待办', code: 'demand_edit_demand' },
{ btn: '待办管理-删除待办', code: 'demand_delete_demand' },
],
},
{

View File

@@ -271,6 +271,7 @@ const confirmUploadFun = async () => {
form.append('fileTypeDictValue', fromData.fileTypeDictValue || '');
form.append('disciplineTypeDictClass', 'DISCIPLINE_TYPE');
form.append('disciplineDictValue', fromData.disciplineDictValue || '');
// 文件都走的batchAddFileInfoApi上传这个只是插入数据库记录
await upload(`${PREFIX}node/uploadProjectFiles`, form);
}
}
@@ -357,6 +358,7 @@ const confirmUploadFun = async () => {
form.append('fileTypeDictValue', fromData.fileTypeDictValue || '');
form.append('disciplineTypeDictClass', 'DISCIPLINE_TYPE');
form.append('disciplineDictValue', fromData.disciplineDictValue || '');
// 文件都走的batchAddFileInfoApi上传这个只是更新数据库记录
await upload(`${PREFIX}node/uploadProjectFiles`, form);
}
}

View File

@@ -25,7 +25,7 @@
<el-radio-group v-model="activeRadio">
<el-radio-button label="仿真报告" value="report" />
<el-radio-button label="任务详情" value="detail" v-if="showTaskInfo" />
<el-radio-button label="关联需求" value="demand" />
<el-radio-button label="关联待办" value="demand" />
</el-radio-group>
<div class="task-tab-content set-tab-content" v-if="activeRadio === 'report'">

View File

@@ -2,7 +2,7 @@
<div class="comp-content">
<Dialog
v-model="dialogVisible"
diaTitle="需求详细信息"
diaTitle="待办详细信息"
width="60%"
height="80%"
@close="closeFun"

View File

@@ -199,7 +199,7 @@ const diaVisible = computed({
// BATCH_SEND_TASK
const headData = ref<any[]>([
{
title: '需求名称',
title: '待办名称',
key: 'demandName',
isShow: true,
inputMode: 'input',
@@ -288,19 +288,19 @@ const confirmFun = async () => {
for (let index = 0; index < tableRef.value.tableData.length; index++) {
const item = tableRef.value.tableData[index];
if (!item.insertIndex) {
return ElMessage.warning('需求名为 ' + item.demandName + ' 的上层节点不能为空!');
return ElMessage.warning('待办名为 ' + item.demandName + ' 的上层节点不能为空!');
}
if (item.insertMode === 'lib' && item.chooseTaskList?.length === 0) {
return ElMessage.warning('需求名为 ' + item.demandName + ' 的选择工况不能为空!');
return ElMessage.warning('待办名为 ' + item.demandName + ' 的选择工况不能为空!');
}
if (item.insertMode === 'custom' && item.taskName?.trim()?.length === 0) {
return ElMessage.warning('需求名为 ' + item.demandName + ' 的任务名称不能为空!');
return ElMessage.warning('待办名为 ' + item.demandName + ' 的任务名称不能为空!');
}
if (item.eMemberList.length === 0) {
return ElMessage.warning('需求名为 ' + item.demandName + ' 的仿真执行人不能为空!');
return ElMessage.warning('待办名为 ' + item.demandName + ' 的仿真执行人不能为空!');
}
if (item.planTime.length === 2 && (!item.planTime[0] || !item.planTime[1])) {
return ElMessage.warning('需求名为 ' + item.demandName + ' 的仿计划时间不能为空!');
return ElMessage.warning('待办名为 ' + item.demandName + ' 的仿计划时间不能为空!');
}
}
loadingInterface.value = true;

View File

@@ -9,7 +9,7 @@
tableName="SIMULATION_TASK_DEMAND_CONFIRM"
:params="taskParams"
:api="demandListApi"
exportFileName="我确认的需求"
exportFileName="我确认的待办"
:actionList="actionList"
:name-click="false"
>
@@ -458,7 +458,7 @@ const checkedList = ref();
const batchSendFun = () => {
checkedList.value = tableRef.value.tableRef.tableRef.getCheckboxRecords();
if (checkedList.value.length === 0) {
return ElMessage.warning('请勾选需要分发的需求');
return ElMessage.warning('请勾选需要分发的待办');
}
bachSendVisible.value = true;
};

View File

@@ -12,7 +12,7 @@
auth: false,
},
}"
exportFileName="新增待办需求"
exportFileName="新增待办"
:actionList="actionList"
@show="showTaskDetailFun"
:name-click="false"
@@ -30,14 +30,14 @@
type="primary"
v-permission="'demand_add_demand'"
@click="visibleDialog(true)"
>创建需求</el-button
>创建待办</el-button
>
</template>
</demandTable>
<Dialog
v-model="formVisible"
:loading="loadingInterface"
:diaTitle="isCreateDialog ? '创建需求' : '编辑需求'"
:diaTitle="isCreateDialog ? '创建待办' : '编辑待办'"
width="60%"
:height="700"
@close="closeFun"
@@ -193,7 +193,7 @@ const actionList = ref([
title: '删除',
type: 'danger',
needConfirm: true,
confirmTip: '删除需求时,跟需求关联的任务及任务下的数据也会删除!确认删除吗?',
confirmTip: '删除待办时,跟待办关联的任务及任务下的数据也会删除!确认删除吗?',
click: (row: any) => {
deleteDemandFun(row.uuid);
},