style(任务中心): 任务中心操作栏样式调整

This commit is contained in:
fit2-zhao 2024-03-25 16:54:58 +08:00 committed by Craftsman
parent 864d3c198a
commit 6def5660e9
3 changed files with 4 additions and 12 deletions

View File

@ -236,7 +236,6 @@
const currentIndex = assertions.value.findIndex((item) => item.id === activeKey.value); const currentIndex = assertions.value.findIndex((item) => item.id === activeKey.value);
const tmpArr = assertions.value; const tmpArr = assertions.value;
tmpArr[currentIndex] = cloneDeep(val); tmpArr[currentIndex] = cloneDeep(val);
console.log('tmpArr', assertions.value, tmpArr);
assertions.value = tmpArr; assertions.value = tmpArr;
}, },
}); });

View File

@ -54,19 +54,14 @@
<span>{{ dayjs(record.operationTime).format('YYYY-MM-DD HH:mm:ss') }}</span> <span>{{ dayjs(record.operationTime).format('YYYY-MM-DD HH:mm:ss') }}</span>
</template> </template>
<template #operation="{ record }"> <template #operation="{ record }">
<MsButton class="!mr-0">{{ t('project.taskCenter.viewReport') }}</MsButton>
<a-divider v-if="['RUNNING', 'RERUNNING'].includes(record.status)" direction="vertical" />
<MsButton <MsButton
v-if=" v-if="['RUNNING', 'RERUNNING'].includes(record.status) && hasAnyPermission(permissionsMap[props.group].stop)"
['PENDING', 'RUNNING', 'RERUNNING'].includes(record.status) &&
hasAnyPermission(permissionsMap[props.group].stop)
"
class="!mr-0" class="!mr-0"
@click="stop(record)" @click="stop(record)"
>{{ t('project.taskCenter.stop') }}</MsButton >{{ t('project.taskCenter.stop') }}</MsButton
> >
<!-- <a-divider v-if="['PENDING', 'RUNNING', 'RERUNNING'].includes(record.status)" direction="vertical" />
<MsButton class="!mr-0" @click="execution(record)">{{ t('project.taskCenter.execution') }}</MsButton>
<a-divider direction="vertical" />-->
<MsButton class="!mr-0">{{ t('project.taskCenter.viewReport') }}</MsButton>
</template> </template>
</ms-base-table> </ms-base-table>
</div> </div>
@ -214,7 +209,7 @@
title: 'common.operation', title: 'common.operation',
slotName: 'operation', slotName: 'operation',
dataIndex: 'operation', dataIndex: 'operation',
width: 220, width: 180,
fixed: 'right', fixed: 'right',
}, },
]; ];

View File

@ -5,8 +5,6 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref } from 'vue';
import MsCard from '@/components/pure/ms-card/index.vue'; import MsCard from '@/components/pure/ms-card/index.vue';
import TaskCenter from './component/taskCom.vue'; import TaskCenter from './component/taskCom.vue';
</script> </script>