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

View File

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