|
|
@ -7,7 +7,7 @@ |
|
|
|
:row-class-name="(_record, index) => (index % 2 === 1 ? null : 'table-striped')" |
|
|
|
> |
|
|
|
<template #bodyCell="{ column, text, record }"> |
|
|
|
<div class="flex items-center" v-if="column.key === 'action'"> |
|
|
|
<div class="flex items-center" style="min-width: 160px" v-if="column.key === 'action'"> |
|
|
|
<a-button |
|
|
|
:disabled="record.status === 0 ? false : true" |
|
|
|
class="action-btn edit-btn" |
|
|
@ -32,16 +32,22 @@ |
|
|
|
src="https://www.tall.wiki/staticrec/experiment/locking.png" |
|
|
|
@click="showModal(record.id, 'tips')" |
|
|
|
/> |
|
|
|
<div v-if="record.status === 3" class="status-btn" style="background: #cccccc">审</div> |
|
|
|
<div v-if="record.status === 3" class="status-btn" style="background: #cccccc" @click="showModal(record.id, 'tips')">审</div> |
|
|
|
<div v-if="record.status === 4" class="status-btn" style="background: #ff5353">驳</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<template v-else-if="['information', 'result', 'sourceCode'].includes(column.dataIndex)"> |
|
|
|
<a style="color: #1890ff" :href="text" target="_blank">{{ text }}</a> |
|
|
|
<a class="truncate" style="color: #1890ff" :href="text" target="_blank" :title="text">{{ text }}</a> |
|
|
|
</template> |
|
|
|
|
|
|
|
<template v-else-if="['report', 'course'].includes(column.dataIndex)"> |
|
|
|
<a style="color: #1890ff" :href="!text || !text.url ? '' : text.url" target="_blank"> |
|
|
|
<a |
|
|
|
class="truncate" |
|
|
|
style="color: #1890ff" |
|
|
|
:href="!text || !text.url ? '' : text.url" |
|
|
|
target="_blank" |
|
|
|
:title="!text || !text.name ? '' : text.name" |
|
|
|
> |
|
|
|
{{ !text || !text.name ? '' : text.name }} |
|
|
|
</a> |
|
|
|
</template> |
|
|
@ -280,11 +286,11 @@ async function toUnlock() { |
|
|
|
line-height: 28px; |
|
|
|
} |
|
|
|
|
|
|
|
:deep(.ant-table-container table > thead > tr:first-child th) { |
|
|
|
:deep(.ant-table-container table > thead > tr th) { |
|
|
|
min-width: 100px; |
|
|
|
} |
|
|
|
|
|
|
|
:deep(.ant-table-container table > thead > tr:first-child th:first-child) { |
|
|
|
:deep(.ant-table-container table > thead > tr th:first-child) { |
|
|
|
min-width: 70px; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
@ -293,8 +299,8 @@ async function toUnlock() { |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
|
|
|
|
:deep(.ant-table-container table > thead > tr:first-child th:last-child) { |
|
|
|
min-width: 160px; |
|
|
|
:deep(.ant-table-container table > thead > tr th:last-child) { |
|
|
|
min-width: 192px; |
|
|
|
} |
|
|
|
|
|
|
|
:deep(.ant-btn-primary[disabled]) { |
|
|
|