Commit fd470fa6 authored by 黄奎's avatar 黄奎

页面修改

parent 2b1a0b0a
...@@ -29,8 +29,8 @@ ...@@ -29,8 +29,8 @@
</q-tree> </q-tree>
</div>--> </div>-->
<q-table :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table" <q-table :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table" separator="none" :data="data"
separator="none" :data="data" :columns="columns" row-key="name"> :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 />
...@@ -77,10 +77,11 @@ ...@@ -77,10 +77,11 @@
}, },
data() { data() {
return { return {
msg:{ msg: {
PageIndex:1, PageIndex: 1,
PageSize:20, PageSize: 10,
PageCount:1 rowsPerPage: 10,
PageCount: 1,
}, },
currentUrl: "", currentUrl: "",
data: [], data: [],
...@@ -88,9 +89,8 @@ ...@@ -88,9 +89,8 @@
isShowCategory: false, isShowCategory: false,
isShow: false, isShow: false,
categoryObj: {}, categoryObj: {},
loading:true, loading: true,
columns: [ columns: [{
{
name: 'CateName', name: 'CateName',
label: '系列名称', label: '系列名称',
field: 'CateName', field: 'CateName',
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
], ],
} }
}, },
mounted() { mounted() {
this.currentUrl = this.$route.path this.currentUrl = this.$route.path
this.getcoursecategorytree() this.getcoursecategorytree()
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
this.msg.PageIndex = val; this.msg.PageIndex = val;
this.getcoursecategorytree() this.getcoursecategorytree()
}, },
//删除系列 //删除系列
deleteCategory(item) { deleteCategory(item) {
let delMsg = { let delMsg = {
CateId: item.CateId, CateId: item.CateId,
...@@ -185,13 +185,13 @@ ...@@ -185,13 +185,13 @@
getcoursecategorytree() { getcoursecategorytree() {
this.isShow = false; this.isShow = false;
queryCourseCategoryPage({ queryCourseCategoryPage({
PageSize:this.msg.PageSize, PageSize: this.msg.PageSize,
PageIndex:this.msg.PageIndex PageIndex: this.msg.PageIndex
}).then(res => { }).then(res => {
this.isShow = true; this.isShow = true;
this.loading=false; this.loading = false;
this.data = res.Data.PageData; this.data = 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