|
@@ -11,7 +11,7 @@
|
|
|
</template>
|
|
|
</Search>
|
|
|
<div class="table-default">
|
|
|
- <Operate :show="open" v-action="'contentManage.cpList.store'" />
|
|
|
+ <Operate :show="open" v-action="'cpManage.cpList.store'" />
|
|
|
|
|
|
<el-table :data="tableData" class="mt-3" v-loading="loading">
|
|
|
<el-table-column type="index" width="100" label="序号" />
|
|
@@ -24,11 +24,11 @@
|
|
|
<el-table-column prop="created_at" label="创建时间" />
|
|
|
<el-table-column label="操作" width="200">
|
|
|
<template #default="scope">
|
|
|
- <el-button v-action="'contentManage.cpList.cpCollection'" @click="syncCp(scope.row)" type="primary" link
|
|
|
+ <el-button v-action="'cpManage.cpList.cpCollection'" @click="syncCp(scope.row)" type="primary" link
|
|
|
size="small">同步CP书籍</el-button><br>
|
|
|
- <el-button v-action="'contentManage.cpList.update'" @click="open(scope.row.cp_id)" type="primary" link
|
|
|
+ <el-button v-action="'cpManage.cpList.update'" @click="open(scope.row.cp_id)" type="primary" link
|
|
|
size="small">编辑</el-button><br>
|
|
|
- <el-button v-action="'contentManage.cpSettle.index'" @click="goToSettle(scope.row.cp_id, scope.row.cp_name)"
|
|
|
+ <el-button v-action="'cpManage.cpSettle.index'" @click="goToSettle(scope.row.cp_id, scope.row.cp_name)"
|
|
|
type="primary" link size="small">结算列表</el-button><br>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
} from '@/hook/curd/useOpen';
|
|
|
import { cpCpCollection } from '@/api/cp/index'
|
|
|
|
|
|
-const api = 'contentManage/cp/manage/cp_list';
|
|
|
+const api = 'cpManage/cp/manage/cp_list';
|
|
|
|
|
|
const syncCp = (row: object) => {
|
|
|
console.log(row);
|
|
@@ -84,7 +84,7 @@ const syncCp = (row: object) => {
|
|
|
}
|
|
|
|
|
|
const goToSettle = (cp_id = 0, cp_name = '') => {
|
|
|
- router.push({ path: '/contentManage/cpSettle', params: { cp_id: cp_id, cp_name } })
|
|
|
+ router.push({ path: '/cpManage/cpSettle', params: { cp_id: cp_id, cp_name } })
|
|
|
}
|
|
|
const { data, query, search, reset, loading } = useGetList(api);
|
|
|
const { deleted } = useDestroy();
|