Browse Source

“fix:秀阿贵分页”

master
123456 3 years ago
parent
commit
e36ededcba
  1. 56
      src/views/modules/plugins/point/icpointnucleicmonitoring.vue
  2. 60
      src/views/modules/plugins/point/icpointvaccinesinoculation.vue

56
src/views/modules/plugins/point/icpointnucleicmonitoring.vue

@ -112,7 +112,7 @@
v-loading="dataListLoading" v-loading="dataListLoading"
:data="dataList" :data="dataList"
border border
:header-cell-style="{background:'#2195FE',color:'#FFFFFF'}" :header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }"
style="width: 100%; height: 564px" style="width: 100%; height: 564px"
><el-table-column ><el-table-column
label="序号" label="序号"
@ -184,13 +184,16 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination @size-change="pageSizeChangeHandle" <el-pagination
@current-change="pageCurrentChangeHandle" @size-change="handleSizeChange"
:page-sizes="[20, 50, 100, 200]" @current-change="handleCurrentChange"
:page-size="limit" :current-page.sync="pageNo"
layout="sizes, prev, pager, next, total" :page-sizes="[20, 50, 100, 200]"
:total="total"> :page-size="pageSize"
</el-pagination> layout="sizes, prev, pager, next, total"
:total="total"
>
</el-pagination>
</div> </div>
<!-- 弹窗, 新增 / 修改 --> <!-- 弹窗, 新增 / 修改 -->
<el-dialog <el-dialog
@ -240,13 +243,6 @@ export default {
mixins: [mixinViewModule], mixins: [mixinViewModule],
data() { data() {
return { return {
mixinViewModuleOptions: {
getDataListURL: "/epmetuser/icPointNucleicMonitoring/page",
getDataListIsPage: true,
deleteURL: "/epmetuser/icPointNucleicMonitoring",
deleteIsBatch: true,
// exportURL: '/epmetuser/icPointNucleicMonitoring/export'
},
dataForm: { dataForm: {
name: "", name: "",
mobile: "", mobile: "",
@ -258,6 +254,9 @@ export default {
sendNoticeFormShow: false, sendNoticeFormShow: false,
noticeVisible: false, noticeVisible: false,
noticeOrigin: "3", noticeOrigin: "3",
pageSize: 20,
pageNo: 0,
total: 0,
}; };
}, },
components: { components: {
@ -269,6 +268,33 @@ export default {
this.getFormInfo(); this.getFormInfo();
}, },
methods: { methods: {
async loadTable() {
this.dataListLoading = true;
const url = "/epmetuser/icPointNucleicMonitoring/page";
let params = {
limit: this.pageSize,
page: this.pageNo,
};
const { data, code, msg } = await requestGet(url, params);
if (code === 0) {
console.log(data.list);
this.dataList = data.list;
this.total = data.total;
} else {
this.$message.error(msg);
}
this.dataListLoading = false;
},
handleSizeChange(val) {
this.pageSize = val;
this.pageNo = 1;
this.loadTable();
},
handleCurrentChange(val) {
this.pageNo = val;
this.loadTable();
},
async handleDelete(id) { async handleDelete(id) {
this.$confirm("确认删除?", "提示", { this.$confirm("确认删除?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",

60
src/views/modules/plugins/point/icpointvaccinesinoculation.vue

@ -102,8 +102,8 @@
v-loading="dataListLoading" v-loading="dataListLoading"
:data="dataList" :data="dataList"
border border
:header-cell-style="{background:'#2195FE',color:'#FFFFFF'}" :header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }"
style="width: 100%; height: 564px" style="width: 100%; height: 564px;overflow: auto;"
> >
<el-table-column <el-table-column
label="序号" label="序号"
@ -200,13 +200,16 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination @size-change="pageSizeChangeHandle" <el-pagination
@current-change="pageCurrentChangeHandle" @size-change="handleSizeChange"
:page-sizes="[20, 50, 100, 200]" @current-change="handleCurrentChange"
:page-size="limit" :current-page.sync="pageNo"
layout="sizes, prev, pager, next, total" :page-sizes="[20, 50, 100, 200]"
:total="total"> :page-size="pageSize"
</el-pagination> layout="sizes, prev, pager, next, total"
:total="total"
>
</el-pagination>
</div> </div>
<!-- 弹窗, 新增 / 修改 --> <!-- 弹窗, 新增 / 修改 -->
<el-dialog <el-dialog
@ -251,17 +254,11 @@
import mixinViewModule from "@/mixins/view-module"; import mixinViewModule from "@/mixins/view-module";
import AddOrUpdate from "./icpointvaccinesinoculation-add-or-update"; import AddOrUpdate from "./icpointvaccinesinoculation-add-or-update";
import icpointNoice from "./icpointNoice"; import icpointNoice from "./icpointNoice";
import { requestPost } from "@/js/dai/request"; import { requestPost , requestGet} from "@/js/dai/request";
export default { export default {
mixins: [mixinViewModule], mixins: [mixinViewModule],
data() { data() {
return { return {
mixinViewModuleOptions: {
getDataListURL: "/epmetuser/icPointVaccinesInoculation/page",
getDataListIsPage: true,
deleteURL: "/epmetuser/icPointVaccinesInoculation",
deleteIsBatch: true,
},
dataForm: { dataForm: {
name: "", name: "",
mobile: "", mobile: "",
@ -271,6 +268,9 @@ export default {
noticeVisible: false, noticeVisible: false,
noticeOrigin: "4", noticeOrigin: "4",
dialogTitle: "", dialogTitle: "",
pageSize: 20,
pageNo: 0,
total: 0,
}; };
}, },
components: { components: {
@ -278,9 +278,37 @@ export default {
icpointNoice, icpointNoice,
}, },
mounted() { mounted() {
this.loadTable();
this.noticeFun(); this.noticeFun();
}, },
methods: { methods: {
async loadTable() {
this.dataListLoading = true;
const url = "/epmetuser/icPointVaccinesInoculation/page";
let params = {
limit: this.pageSize,
page: this.pageNo,
};
const { data, code, msg } = await requestGet(url, params);
if (code === 0) {
console.log(data.list);
this.dataList = data.list;
this.total = data.total;
} else {
this.$message.error(msg);
}
this.dataListLoading = false;
},
handleSizeChange(val) {
this.pageSize = val;
this.pageNo = 1;
this.loadTable();
},
handleCurrentChange(val) {
this.pageNo = val;
this.loadTable();
},
async handleDelete(id) { async handleDelete(id) {
this.$confirm("确认删除?", "提示", { this.$confirm("确认删除?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",

Loading…
Cancel
Save