|
@@ -37,18 +37,18 @@
|
|
|
:loading="state.tableLoading"
|
|
|
:data="state.tableData"
|
|
|
:column-config="{ resizable: true }"
|
|
|
- :row-config="{ isCurrent: true, isHover: true, height: 30 }"
|
|
|
+ :row-config="{ isCurrent: true, isHover: true, height: 30, useKey: true }"
|
|
|
ref="tableRef"
|
|
|
height="auto"
|
|
|
auto-resize
|
|
|
show-overflow
|
|
|
- :scrollY="{ enabled: true, gt: 0 }"
|
|
|
+ :scrollY="{ enabled: true, gt: 20, mode: 'wheel' }"
|
|
|
id="knowledgeQuestion"
|
|
|
:custom-config="{ storage: true }"
|
|
|
showHeaderOverflow
|
|
|
>
|
|
|
<vxe-column field="knowledge.title" title="标题" min-width="200">
|
|
|
- <template #default="{row}">
|
|
|
+ <template #default="{ row }">
|
|
|
<el-button link type="primary" @click="onPreview(row)">{{ row.knowledge?.title }}</el-button>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
@@ -68,7 +68,7 @@
|
|
|
{{ formatDate(row.replyTime, 'YYYY-mm-dd HH:MM:SS') }}
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
- <vxe-column title="操作" fixed="right" width="160" align="center" :show-overflow="false">
|
|
|
+ <vxe-column title="操作" fixed="right" width="180" align="center" :show-overflow="false">
|
|
|
<template #default="{ row }">
|
|
|
<el-button link type="primary" @click="onPreview(row)" title="知识详情"> 知识详情 </el-button>
|
|
|
<el-button link type="primary" @click="onReply(row)" v-auth="'knowledge:question:reply'" title="答复" v-if="[0].includes(row.state)">
|