Commit c7ba5a75 authored by 黄奎's avatar 黄奎

页面修改

parent fd470fa6
......@@ -12,25 +12,8 @@
</div>
</div>
<div class="page-content">
<!--<div class="q-pa-md q-gutter-sm">
<q-tree v-if="isShow" :nodes="data" node-key="CateId" label-key="CateName" children-key="ChildList"
:filter="keyWords" :filter-method="myFilterMethod" default-expand-all no-results-label="暂无相关数据">
<template v-slot:default-header="prop">
<div class="row items-center">
<div class="text-weight-bold text-primary">{{ prop.node.CateName }}</div>
<template v-if="prop.node.ChildList && prop.node.ChildList.length>0">
&nbsp;
<q-btn round icon="add" size="xs" @click="EditCategory(null)" />
</template>
&nbsp;
<q-btn round icon="edit" size="xs" @click="EditCategory(prop.node)" />
</div>
</template>
</q-tree>
</div>-->
<q-table :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table" separator="none" :data="data"
:columns="columns" row-key="name">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table" separator="none" :data="dataList"
:columns="columns" >
<template v-slot:top="props">
<div class="col-2 q-table__title">系列信息</div>
<q-space />
......@@ -84,7 +67,7 @@
PageCount: 1,
},
currentUrl: "",
data: [],
dataList: [],
keyWords: '',
isShowCategory: false,
isShow: false,
......@@ -184,13 +167,10 @@
//获取课程分类树形结构
getcoursecategorytree() {
this.isShow = false;
queryCourseCategoryPage({
PageSize: this.msg.PageSize,
PageIndex: this.msg.PageIndex
}).then(res => {
queryCourseCategoryPage(this.msg).then(res => {
this.isShow = true;
this.loading = false;
this.data = res.Data.PageData;
this.dataList = res.Data.PageData;
this.msg.PageCount = res.Data.PageCount
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment