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 tmpArr = assertions.value;
tmpArr[currentIndex] = cloneDeep(val);
console.log('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>
</template>
<template #operation="{ record }">
<MsButton class="!mr-0">{{ t('project.taskCenter.viewReport') }}</MsButton>
<a-divider v-if="['RUNNING', 'RERUNNING'].includes(record.status)" direction="vertical" />
<MsButton
v-if="
['PENDING', 'RUNNING', 'RERUNNING'].includes(record.status) &&
hasAnyPermission(permissionsMap[props.group].stop)
"
v-if="['RUNNING', 'RERUNNING'].includes(record.status) && hasAnyPermission(permissionsMap[props.group].stop)"
class="!mr-0"
@click="stop(record)"
>{{ 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>
</ms-base-table>
</div>
@ -214,7 +209,7 @@
title: 'common.operation',
slotName: 'operation',
dataIndex: 'operation',
width: 220,
width: 180,
fixed: 'right',
},
];

View File

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