Browse Source

fix: 科研成果管理

master
xuesinan 4 years ago
parent
commit
d1b127fea2
  1. 14
      src/components/tall/task/ScientificPayoffs.vue

14
src/components/tall/task/ScientificPayoffs.vue

@ -36,8 +36,14 @@
<div v-if="record.status === 4" class="status-btn" style="background: #ff5353"></div>
</div>
<template v-else-if="['report', 'course', 'information', 'result', 'sourceCode'].includes(column.dataIndex)">
<div style="color: #1890ff">{{ text }}</div>
<template v-else-if="['information', 'result', 'sourceCode'].includes(column.dataIndex)">
<a style="color: #1890ff" :href="text" target="_blank">{{ text }}</a>
</template>
<template v-else-if="['report', 'course'].includes(column.dataIndex)">
<a style="color: #1890ff" :href="!text || !text.url ? '' : text.url" target="_blank">
{{ !text || !text.name ? '' : text.name }}
</a>
</template>
</template>
</a-table>
@ -176,7 +182,10 @@ async function getExperimentations() {
data.forEach((item, index) => {
item.indexId = index + 1;
if (item.report) item.report = JSON.parse(item.report);
if (item.course) item.course = JSON.parse(item.course);
});
console.log(data);
dataList.value = data;
} catch (error) {
message.info(error);
@ -231,6 +240,7 @@ async function toUnlock() {
}
.action-btn {
flex-shrink: 0;
width: 50px !important;
height: 28px !important;
font-size: 14px !important;

Loading…
Cancel
Save