Commit 41c021a2 authored by 黄奎's avatar 黄奎

页面修改

parent 61176e98
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<div class="page-content"> <div class="page-content">
<q-table :pagination='qMsg' :loading="loading" no-data-label="暂无相关数据" flat class="sticky-right-column-table" <q-table :pagination='qMsg' :loading="loading" no-data-label="暂无相关数据" flat class="sticky-right-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>
<div class="col-2 q-table__title">值班事项管理</div> <div class="col-2 q-table__title">值班事项管理</div>
<q-space /> <q-space />
<div class="page-option"> <div class="page-option">
...@@ -175,7 +175,9 @@ ...@@ -175,7 +175,9 @@
}, },
//获取数据 //获取数据
getList() { getList() {
this.loading=true;
queryDutyItemPage(this.qMsg).then(res => { queryDutyItemPage(this.qMsg).then(res => {
this.loading=false;
if (res.Code == 1) { if (res.Code == 1) {
this.pageCount = res.Data.PageCount; this.pageCount = res.Data.PageCount;
this.dataList = res.Data.PageData;; this.dataList = res.Data.PageData;;
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
.site_ListDiv { .site_ListDiv {
margin-bottom: 10px; margin-bottom: 10px;
} }
</style> </style>
<template> <template>
<div class="page-body"> <div class="page-body">
...@@ -102,7 +101,6 @@ ...@@ -102,7 +101,6 @@
} }
], ],
data: [], data: [],
// loading: true,
loading: false, loading: false,
msg: { msg: {
pageIndex: 1, pageIndex: 1,
...@@ -116,12 +114,14 @@ ...@@ -116,12 +114,14 @@
}, },
methods: { methods: {
getList() { getList() {
this.loading = true;
getSiteConfig(this.msg).then(res => { getSiteConfig(this.msg).then(res => {
this.loading = false;
if (res.Code == 1) { if (res.Code == 1) {
this.data = res.Data; this.data = res.Data;
} }
}).catch(() => { }).catch(() => {
this.loading = false;
}) })
}, },
//新增站点 //新增站点
...@@ -160,9 +160,7 @@ ...@@ -160,9 +160,7 @@
}, },
} }
} }
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style> </style>
\ No newline at end of file
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