Commit c7ba5a75 authored by 黄奎's avatar 黄奎

页面修改

parent fd470fa6
...@@ -12,25 +12,8 @@ ...@@ -12,25 +12,8 @@
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
<!--<div class="q-pa-md q-gutter-sm"> <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table" separator="none" :data="dataList"
<q-tree v-if="isShow" :nodes="data" node-key="CateId" label-key="CateName" children-key="ChildList" :columns="columns" >
: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">
<template v-slot:top="props"> <template v-slot:top="props">
<div class="col-2 q-table__title">系列信息</div> <div class="col-2 q-table__title">系列信息</div>
<q-space /> <q-space />
...@@ -84,7 +67,7 @@ ...@@ -84,7 +67,7 @@
PageCount: 1, PageCount: 1,
}, },
currentUrl: "", currentUrl: "",
data: [], dataList: [],
keyWords: '', keyWords: '',
isShowCategory: false, isShowCategory: false,
isShow: false, isShow: false,
...@@ -184,13 +167,10 @@ ...@@ -184,13 +167,10 @@
//获取课程分类树形结构 //获取课程分类树形结构
getcoursecategorytree() { getcoursecategorytree() {
this.isShow = false; this.isShow = false;
queryCourseCategoryPage({ queryCourseCategoryPage(this.msg).then(res => {
PageSize: this.msg.PageSize,
PageIndex: this.msg.PageIndex
}).then(res => {
this.isShow = true; this.isShow = true;
this.loading = false; this.loading = false;
this.data = res.Data.PageData; this.dataList = res.Data.PageData;
this.msg.PageCount = res.Data.PageCount 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