|
@@ -27,32 +27,38 @@
|
|
|
header-align="center"
|
|
header-align="center"
|
|
|
class-name="index-column"
|
|
class-name="index-column"
|
|
|
/>
|
|
/>
|
|
|
- <el-table-column prop="sn" label="编号" align="center" header-align="center" />
|
|
|
|
|
|
|
+ <el-table-column prop="sn" width="140" label="编号" align="center" header-align="center" />
|
|
|
<el-table-column prop="name" label="名称" align="center" header-align="center" />
|
|
<el-table-column prop="name" label="名称" align="center" header-align="center" />
|
|
|
- <el-table-column prop="type" label="类型" align="center" header-align="center">
|
|
|
|
|
|
|
+ <el-table-column prop="type" width="90" label="类型" align="center" header-align="center">
|
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
|
- {{ row.type === 1 ? '整本教材模板' : row.type === 3 ? '整章教材模板' : '单页教材模板' }}
|
|
|
|
|
|
|
+ {{ row.type === 1 ? '整本教材' : row.type === 3 ? '整课内容' : '单页内容' }}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
+ <el-table-column prop="label_list" label="标签" align="center" header-align="center"
|
|
|
|
|
+ ><template slot-scope="{ row }">
|
|
|
|
|
+ {{ row.label_list.join('、') }}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="memo" label="描述" align="center" header-align="center" />
|
|
|
|
|
|
|
|
<el-table-column width="70" prop="storage_type" label="来源" align="center" header-align="center">
|
|
<el-table-column width="70" prop="storage_type" label="来源" align="center" header-align="center">
|
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
|
{{ row.storage_type === 0 ? '个人' : '机构' }}
|
|
{{ row.storage_type === 0 ? '个人' : '机构' }}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column width="70" prop="status" label="状态" align="center" header-align="center">
|
|
|
|
|
|
|
+ <el-table-column width="120" prop="status" label="状态" align="center" header-align="center">
|
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
|
{{ status_list.find((item) => item.value === row.status).label }}
|
|
{{ status_list.find((item) => item.value === row.status).label }}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column width="120" prop="use_scope" label="使用范围" align="center" header-align="center">
|
|
|
|
|
|
|
+ <el-table-column width="80" prop="use_scope" label="使用范围" align="center" header-align="center">
|
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
|
{{ row.use_scope === 0 ? '本机构' : '全域' }}
|
|
{{ row.use_scope === 0 ? '本机构' : '全域' }}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="create_time" label="创建时间" align="center" width="180" header-align="center" />
|
|
<el-table-column prop="create_time" label="创建时间" align="center" width="180" header-align="center" />
|
|
|
|
|
|
|
|
- <el-table-column prop="operation" label="操作" fixed="right" width="300" align="center" header-align="center">
|
|
|
|
|
|
|
+ <el-table-column prop="operation" label="操作" fixed="right" width="230" align="center" header-align="center">
|
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
|
<span class="link" @click="previewTemplate(row)">预览</span>
|
|
<span class="link" @click="previewTemplate(row)">预览</span>
|
|
|
<span v-if="row.status === 0 || row.status === 3" class="link" @click="changeStatusTemplate(row, 1)">{{
|
|
<span v-if="row.status === 0 || row.status === 3" class="link" @click="changeStatusTemplate(row, 1)">{{
|