update 任务管理下的任务列表界面的主题点击也要能弹窗跟场景名称一致;报工按钮隐藏

This commit is contained in:
2026-04-16 20:13:31 +08:00
parent 6d338e7719
commit 44ff8a502b
3 changed files with 37 additions and 32 deletions

View File

@@ -28,22 +28,22 @@ const tagTypeMapList = commonStore.getDictData('TAG_TYPE_MAP_LIST')?.A || [];
const showCreateWorkTimeVisible = ref(false);
const actionList = ref([
{
title: '报工',
type: 'primary',
click: (row: any) => {
showCreateWorkTimeVisible.value = true;
taskInfo.uuid = row.uuid;
taskInfo.taskName = row.taskName;
taskInfo.description = row.description;
taskInfo.workName = row.tag1Code + '-' + row.tag5Code + '-' + row.taskName;
tagTypeMapList.forEach((item: any) => {
if (item.value === NODE_TYPE.WORKSPACE) {
taskInfo.workspace = row[item.label];
}
});
},
},
// {
// title: '报工',
// type: 'primary',
// click: (row: any) => {
// showCreateWorkTimeVisible.value = true;
// taskInfo.uuid = row.uuid;
// taskInfo.taskName = row.taskName;
// taskInfo.description = row.description;
// taskInfo.workName = row.tag1Code + '-' + row.tag5Code + '-' + row.taskName;
// tagTypeMapList.forEach((item: any) => {
// if (item.value === NODE_TYPE.WORKSPACE) {
// taskInfo.workspace = row[item.label];
// }
// });
// },
// },
]);
</script>
<style lang="scss" scoped></style>

View File

@@ -27,22 +27,22 @@ const tagTypeMapList = commonStore.getDictData('TAG_TYPE_MAP_LIST')?.A || [];
const showCreateWorkTimeVisible = ref(false);
const actionList = ref([
{
title: '创建报工',
type: 'primary',
click: (row: any) => {
showCreateWorkTimeVisible.value = true;
taskInfo.uuid = row.uuid;
taskInfo.taskName = row.taskName;
taskInfo.description = row.description;
taskInfo.workName = row.tag1Code + '-' + row.tag5Code + '-' + row.taskName;
tagTypeMapList.forEach((item: any) => {
if (item.value === NODE_TYPE.WORKSPACE) {
taskInfo.workspace = row[item.label];
}
});
},
},
// {
// title: '创建报工',
// type: 'primary',
// click: (row: any) => {
// showCreateWorkTimeVisible.value = true;
// taskInfo.uuid = row.uuid;
// taskInfo.taskName = row.taskName;
// taskInfo.description = row.description;
// taskInfo.workName = row.tag1Code + '-' + row.tag5Code + '-' + row.taskName;
// tagTypeMapList.forEach((item: any) => {
// if (item.value === NODE_TYPE.WORKSPACE) {
// taskInfo.workspace = row[item.label];
// }
// });
// },
// },
]);
</script>
<style lang="scss" scoped></style>

View File

@@ -72,6 +72,11 @@
{{ row.taskName }}
</span>
</template>
<template #tag10="{ row }">
<span class="task-name" @click="nameClickFun(row)">
{{ row.tag10 }}
</span>
</template>
<template #demandName="{ row }">
<span class="demand-name" @click="seeDemandDetailDialogFun(row.demandId)">
{{ row.demandName }}