|
@@ -89,8 +89,8 @@ async function handleDocPublishChange(row){
|
|
|
<template>
|
|
|
<div class="bg-white help-center-page">
|
|
|
<div class="flex top-wrap">
|
|
|
- <t-button theme="primary" @click="$router.push('/system/helpCenter/addDoc')">添加文章</t-button>
|
|
|
- <t-button theme="primary" @click="$router.push('/system/helpCenter/classify')">分类管理</t-button>
|
|
|
+ <t-button theme="primary" @click="$router.push('/system/addDoc')">添加文章</t-button>
|
|
|
+ <t-button theme="primary" @click="$router.push('/system/classify')">分类管理</t-button>
|
|
|
<t-cascader
|
|
|
v-model="classifyValue"
|
|
|
:options="classifyOpts"
|
|
@@ -128,13 +128,13 @@ async function handleDocPublishChange(row){
|
|
|
@page-change="handlePageChange"
|
|
|
>
|
|
|
<template #Title="{row}">
|
|
|
- <t-link theme="primary" @click="$router.push({path:'/system/helpCenter/detail',query:{DocId:row.Id}})">{{row.Title}}</t-link>
|
|
|
+ <t-link theme="primary" @click="$router.push({path:'/system/detail',query:{DocId:row.Id}})">{{row.Title}}</t-link>
|
|
|
</template>
|
|
|
<template #Status="{row}">
|
|
|
<t-button variant="text" :theme="row.Status==2?'success':'danger'">{{row.Status==2?"已发布":"未发布"}}</t-button>
|
|
|
</template>
|
|
|
<template #opt="{ row }">
|
|
|
- <t-button size="small" variant="text" theme="primary" @click="$router.push({path:'/system/helpCenter/addDoc',query:{DocId:row.Id}})" v-if="row.Status==1">编辑</t-button>
|
|
|
+ <t-button size="small" variant="text" theme="primary" @click="$router.push({path:'/system/addDoc',query:{DocId:row.Id}})" v-if="row.Status==1">编辑</t-button>
|
|
|
<t-button size="small" variant="text" theme="primary" @click="handleDocPublishChange(row)" v-if="row.Status==1">发布</t-button>
|
|
|
<t-button size="small" variant="text" theme="primary" @click="handleDocPublishChange(row)" v-if="row.Status==2">取消发布</t-button>
|
|
|
<t-button size="small" variant="text" theme="danger" @click="handleDelDoc(row)">删除</t-button>
|