问题优化
This commit is contained in:
parent
f924dff045
commit
f0015f24b5
|
@ -137,6 +137,15 @@ export function pageTextbook(query: any): AxiosPromise<any[]> {
|
|||
});
|
||||
}
|
||||
|
||||
export function pageTextbookSchool(query: any): AxiosPromise<any[]> {
|
||||
return request({
|
||||
url: '/file/textbook/school/pageList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export function pageResource(query: any): AxiosPromise<any[]> {
|
||||
return request({
|
||||
url: '/file/resource/pageList',
|
||||
|
|
|
@ -193,7 +193,7 @@
|
|||
</template>
|
||||
|
||||
<script setup name="Oss" lang="ts">
|
||||
import { pageTextbook, awaitTexbookList, previewTextbook, awaitTextbookCount, delTextbook, addTextbook, reviewTextbook, copyTextbook, moveTextbook } from '@/api/system/oss';
|
||||
import { pageTextbookSchool, awaitTexbookList, previewTextbook, awaitTextbookCount, delTextbook, addTextbook, reviewTextbook, copyTextbook, moveTextbook } from '@/api/system/oss';
|
||||
import FileMd5Upload from '@/components/FileMd5Upload/index.vue';
|
||||
import { listCatalogTextbook } from "@/api/resource/catalogTextbook";
|
||||
import { CatalogTextbookVO } from '@/api/resource/catalogTextbook/types';
|
||||
|
@ -332,7 +332,7 @@ const getList = async () => {
|
|||
if (isAudit.value) {
|
||||
response = await awaitTexbookList(queryParams.value);
|
||||
} else {
|
||||
response = await pageTextbook(queryParams.value);
|
||||
response = await pageTextbookSchool(queryParams.value);
|
||||
}
|
||||
ossList.value = response.rows;
|
||||
total.value = response.total;
|
||||
|
|
|
@ -135,9 +135,9 @@
|
|||
@click="handleCopy(scope.row)">复制</el-button>
|
||||
</el-tooltip>
|
||||
|
||||
<el-tooltip content="定稿" placement="top">
|
||||
<el-button v-if="scope.row.finalizeStatus == 0" v-hasPermi="['file:textbook:finalize']" link
|
||||
type="primary" icon="CircleCheck" @click="handleFinalize(scope.row)">定稿</el-button>
|
||||
<el-tooltip content="定稿" placement="top" v-if="scope.row.finalizeStatus == 0">
|
||||
<el-button v-hasPermi="['file:textbook:finalize']" link type="primary" icon="CircleCheck"
|
||||
@click="handleFinalize(scope.row)">定稿</el-button>
|
||||
</el-tooltip>
|
||||
|
||||
<el-tooltip content="删除" placement="top">
|
||||
|
|
Loading…
Reference in New Issue