From a4bcd1eb9305e2c1b77c7847c2f4a979c0e95e93 Mon Sep 17 00:00:00 2001 From: batman <978517621@qq.com> Date: 星期一, 13 三月 2023 19:45:50 +0800 Subject: [PATCH] 新修改添加页面 --- src/views/intellectInspect/inspectBasic/facility/index.vue | 22 ++++++---------------- 1 files changed, 6 insertions(+), 16 deletions(-) diff --git a/src/views/intellectInspect/inspectBasic/facility/index.vue b/src/views/intellectInspect/inspectBasic/facility/index.vue index e25ffd3..e84b57e 100644 --- a/src/views/intellectInspect/inspectBasic/facility/index.vue +++ b/src/views/intellectInspect/inspectBasic/facility/index.vue @@ -22,13 +22,14 @@ <el-icon> <ele-FolderAdd /> </el-icon> - 新增巡检指标 + 新增设备区域 </el-button> </div> <el-table :data="facilityAreaData.data" style="width: 100%"> <el-table-column type="index" label="序号" width="60" /> <el-table-column prop="region" label="设备区域名称" show-overflow-tooltip></el-table-column> <el-table-column prop="regionType" label="设备区域类型" show-overflow-tooltip></el-table-column> + <el-table-column prop="regionDepartment" label="所属部门" show-overflow-tooltip></el-table-column> <el-table-column prop="createByUserName" label="创建人" show-overflow-tooltip></el-table-column> <el-table-column prop="gmtCreate" label="创建时间" show-overflow-tooltip></el-table-column> <el-table-column prop="lastEditUserName" label="最后修改人" show-overflow-tooltip></el-table-column> @@ -41,19 +42,7 @@ </el-table-column> </el-table> <br /> - <el-pagination - @size-change="onHandleSizeChange" - @current-change="onHandleCurrentChange" - :pager-count="5" - :page-sizes="[10, 20, 30]" - v-model:current-page="facilityAreaData.params.pageIndex" - background - v-model:page-size="facilityAreaData.params.pageSize" - layout="total, sizes, prev, pager, next, jumper" - :total="facilityAreaData.total" - class="page-position" - > - </el-pagination> + <el-pagination @size-change="onHandleSizeChange" @current-change="onHandleCurrentChange" :pager-count="5" :page-sizes="[10, 20, 30]" v-model:current-page="facilityAreaData.params.pageIndex" background v-model:page-size="facilityAreaData.params.pageSize" layout="total, sizes, prev, pager, next, jumper" :total="facilityAreaData.total" class="page-position"> </el-pagination> <br /> <br /> </el-card> @@ -119,6 +108,7 @@ }); // 初始化表格数据 const initFacilityAreaTableData = async () => { + debugger let res = await facilityAreaApi().getFacilityAreaList(state.facilityAreaData.params); if (res.data.code === '200') { state.facilityAreaData.data = res.data.data.records; @@ -144,11 +134,11 @@ } }; - // 打开生产装置弹窗 + // 打开弹窗 const onOpenDialogRef = (type: string, value: any) => { facilityAreaDialogRef.value.openFacilityAreaDialog(type, value, state.facilityAreaTypeList); }; - // 删除角色 + // 删除 const onDelProductionDevice = (row: any) => { ElMessageBox.confirm(`此操作将永久删除该条设备区域:“${row.region}”,是否继续?`, '提示', { confirmButtonText: '确认', -- Gitblit v1.9.2