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

1

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