Commit fd470fa6 authored by 黄奎's avatar 黄奎

页面修改

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