|
|
@ -27,9 +27,9 @@ |
|
|
|
v-model:currentPage="tableObject.currentPage" |
|
|
|
v-model:sort="tableObject.sort" |
|
|
|
> |
|
|
|
<template #code="{row}"> |
|
|
|
<el-button type="primary" link @click="openDetail(row, '代码', row.code)"> |
|
|
|
<span>{{ row.code }}</span> |
|
|
|
<template #number="{row}"> |
|
|
|
<el-button type="primary" link @click="openDetail(row, '代码', row.number)"> |
|
|
|
<span>{{ row.number }}</span> |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
<template #action="{ row }"> |
|
|
@ -51,7 +51,20 @@ |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
|
<Detail ref="detailRef" :isBasic="true" :allSchemas="ProblemSharingPlatform.allSchemas" /> |
|
|
|
<Detail ref="detailRef" :isBasic="true" :allSchemas="ProblemSharingPlatform.allSchemas" > |
|
|
|
<template #uploadImgs="{row}"> |
|
|
|
<!-- {{row.uploadImgs}} --> |
|
|
|
<el-image v-for="(cur,key) in row.uploadImgs" :key="key" |
|
|
|
style="width: 100px; height: 100px" |
|
|
|
:src="cur.url" |
|
|
|
/> |
|
|
|
</template> |
|
|
|
<template #uploadFiles="{row}"> |
|
|
|
<el-link type="primary" v-for="(cur,key) in row.uploadFiles" :key="key" @click="open1(cur)">{{ cur.name }}</el-link> |
|
|
|
<!-- <div v-for="(cur,key) in row.uploadFiles" :key="key">{{ cur.url }}</div> --> |
|
|
|
</template> |
|
|
|
</Detail> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
|
<ImportForm ref="importFormRef" url="/question/sharing-platform/import" :importTemplateData="importTemplateData" @success="importSuccess" /> |
|
|
@ -75,7 +88,9 @@ const route = useRoute() // 路由信息 |
|
|
|
const routeName = ref() |
|
|
|
routeName.value = route.name |
|
|
|
const tableColumns = ref(ProblemSharingPlatform.allSchemas.tableColumns) |
|
|
|
|
|
|
|
const open1=(cur)=>{ |
|
|
|
window.open(cur.url) |
|
|
|
} |
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
|
nextTick(() => { |
|
|
|