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

页面修改

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