Commit 059571e8 authored by 黄奎's avatar 黄奎

页面修改

parent 796af1d9
<template>
<div class="page-body">
<div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3">
<q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.Name" label="项目名称"
@clear="resetSearch" maxlength="20" />
</div>
</div>
</div>
<div class="page-content">
<q-table :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table"
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table"
separator="none" :data="dataList" :columns="columns" row-key="name">
<template v-slot:top="props">
<div class="col-2 q-table__title">留学信息</div>
......@@ -11,7 +19,7 @@
</div>
</template>
<template v-slot:bottom>
<q-pagination class="full-width justify-end" v-model="msg.PageIndex" color="primary" :max="PageCount"
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="PageCount"
:input="true" @input="changePage" />
</template>
</q-table>
......@@ -29,22 +37,23 @@
export default {
meta: {
title: "留学"
title: "留学产品"
},
components: {
studyAbroadForm,
},
data() {
return {
msg:{
Type:1, //1留学 2就业
msg: {
Type: 1, //1留学 2就业
pageIndex: 1,
pageSize: 12
pageSize: 10,
rowsPerPage: 10,
Name: "",
},
dataList: [],
loading:true,
columns: [
{
loading: true,
columns: [{
name: 'Name',
label: '项目名称',
field: 'Name',
......@@ -122,19 +131,19 @@
field: 'OfferCommissionType',
align: 'left'
},
{
{
name: 'OfferCommission',
label: '校企返佣金额',
field: 'OfferCommission',
align: 'left'
},
{
{
name: 'Remark',
label: '备注',
field: 'Remark',
align: 'left'
},
{
{
name: 'SaleState',
label: '销售状态',
field: 'SaleState',
......@@ -146,48 +155,55 @@
field: 'CateId'
}
],
PageCount:0,
isShowStudy:false,
studyObj:{}
PageCount: 0,
isShowStudy: false, //是否显示留学弹窗
studyObj: {}, //留学对象
}
},
mounted() {
this.getList();
},
created() {
},
methods: {
//重新查询
resetSearch() {
this.msg.pageIndex = 1;
this.getsupplierpage();
},
//获取留学分页列表
getList() {
this.loading = true;
queryStudyAbroadPage(this.msg).then(res => {
this.loading = false;
console.log(res,'数据来了');
this.dataList = res.Data.PageData;
this.pageCount = res.Data.PageCount;
this.PageCount = res.Data.PageCount;
})
.catch(() => {
this.loading = false;
});
},
changePage(val){
this.msg.pageIndex=val;
changePage(val) {
this.msg.pageIndex = val;
this.getList();
},
//关闭弹窗
closeStudyForm() {
this.isShowStudy = false
},
refreshPage(){
//刷新页面
refreshPage() {
this.getList();
},
//编辑留学
EditStudy(obj){
EditStudy(obj) {
if (obj) {
this.studyObj = obj;
} else {
this.studyObj = null;
}
this.isShowStudy=true;
this.isShowStudy = true;
}
}
}
......
......@@ -22,7 +22,6 @@
<q-td :props="props">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
@click="EditSupplier(props.row)" />
<q-btn flat size="xs" icon="delete" color="negative" style="font-weight:400;" label="删除"
@click="removeSupplier(props.row)" />
</q-td>
......
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