Commit 843bd8fc authored by 罗超's avatar 罗超

1

parent dc6a8668
......@@ -142,7 +142,14 @@ export function GenerateOrder(data) {
})
}
/**
* 获取合同管理分页列表
*
*/
export function GetMyEducationContractPageList(data) {
return request({
url: '/EducationContract/GetMyEducationContractPageList',
method: 'post',
data
})
}
\ No newline at end of file
......@@ -28,7 +28,7 @@
label="类型"
/>
</div>
<div class="col-3">
<!-- <div class="col-3">
<q-select
@input="resetSearch"
standout="bg-primary text-white"
......@@ -40,7 +40,7 @@
emit-value
map-options
/>
</div>
</div> -->
<div class="col-3">
<q-input
@change="resetSearch"
......@@ -69,7 +69,7 @@
<q-table
:pagination="msg"
:loading="loading"
no-data-label="暂无相关数据"
:no-data-label="noDataMsg"
flat
class="sticky-column-table"
separator="none"
......@@ -241,6 +241,12 @@
<!-- </div> -->
</q-td>
</template>
<template v-slot:no-data="props">
<div>
<q-icon size="2em" :name="props.icon" />
<span> {{ props.message }} </span>
</div>
</template>
</q-table>
</div>
</div>
......@@ -369,6 +375,7 @@ export default {
},
],
type: 0,
noDataMsg: "暂无相关数据",
};
},
created() {},
......@@ -382,6 +389,11 @@ export default {
GetEducationContractPageCodeList(this.msg).then((res) => {
this.loading = false;
if (res.Code == 1) {
if (res.Data.PageData.Type === 0) {
this.noDataMsg = res.Message;
} else {
this.noDataMsg = "暂无相关数据";
}
this.dataList = res.Data.PageData.Result;
this.type = res.Data.PageData.Type;
this.pageCount = res.Data.PageCount;
......
......@@ -241,13 +241,6 @@
</div>
</q-td>
</template>
<template v-slot:no-data="{ icon, message, filter }">
<div class="full-width row flex-center text-accent q-gutter-sm">
<q-icon size="2em" :name="filter ? 'filter_b_and_w' : icon" />
<span> {{ message }} </span>
</div>
</template>
</q-table>
</div>
<eduinfo-form
......@@ -262,6 +255,7 @@
<script>
import {
GetEducationContractPageCodeList,
GetMyEducationContractPageList,
SetEducationContractAudit,
GetDownLoadEducationContract,
SetEducationContractCopy,
......@@ -423,12 +417,11 @@ export default {
//获取校区列表
getList() {
this.loading = true;
GetEducationContractPageCodeList(this.msg).then((res) => {
GetMyEducationContractPageList(this.msg).then((res) => {
this.loading = false;
if (res.Code == 1) {
this.dataList = res.Data.PageData.Result;
this.dataList = res.Data.PageData;
this.pageCount = res.Data.PageCount;
} else {
}
});
},
......
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