diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue
index 228bf65..551c2d7 100644
--- a/src/components/DownloadTemplate/index.vue
+++ b/src/components/DownloadTemplate/index.vue
@@ -49,8 +49,8 @@
diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue
index 228bf65..551c2d7 100644
--- a/src/components/DownloadTemplate/index.vue
+++ b/src/components/DownloadTemplate/index.vue
@@ -49,8 +49,8 @@
diff --git a/src/styles/index.scss b/src/styles/index.scss
index 918c857..0d6a908 100644
--- a/src/styles/index.scss
+++ b/src/styles/index.scss
@@ -159,3 +159,13 @@
.el-table td{
padding: 4px 0px !important;
}
+
+.upload-btn{
+ display: inline-block;
+}
+.el-button + .upload-btn {
+ margin-left: 3px;
+}
+.upload-btn+ .el-button {
+ margin-left: 3px;
+}
diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue
index 228bf65..551c2d7 100644
--- a/src/components/DownloadTemplate/index.vue
+++ b/src/components/DownloadTemplate/index.vue
@@ -49,8 +49,8 @@
diff --git a/src/styles/index.scss b/src/styles/index.scss
index 918c857..0d6a908 100644
--- a/src/styles/index.scss
+++ b/src/styles/index.scss
@@ -159,3 +159,13 @@
.el-table td{
padding: 4px 0px !important;
}
+
+.upload-btn{
+ display: inline-block;
+}
+.el-button + .upload-btn {
+ margin-left: 3px;
+}
+.upload-btn+ .el-button {
+ margin-left: 3px;
+}
diff --git a/src/views/wellManage/listWell.vue b/src/views/wellManage/listWell.vue
index 2392699..9c9e892 100644
--- a/src/views/wellManage/listWell.vue
+++ b/src/views/wellManage/listWell.vue
@@ -19,53 +19,53 @@
-
-
-
-
-
-
-
+
+
+
+ 新增
+
+
+ 删除
+
+
+ 一键布防
+
+
+ 一键撤防
+
+
+
+
+ 批量导入
+
+
导出记录
-
-
-
-
- 批量导入
-
-
-
- 一键布防
-
-
- 一键撤防
-
-
- 删除
-
-
- 新增
-
-
-
-
-
-
+
+
+
-
+
{{ scope.row[column.value] }}
{{ scope.row[column.value] }}
@@ -91,24 +91,11 @@
-
-
-
-
-
+
+
+
+
@@ -135,60 +122,20 @@
order: 'asc'
}, // 筛选条件
columns: [
- {
- text: '点位编号',
- value: 'wellCode',
- align: 'center'
- },
- {
- text: '点位名称',
- value: 'wellName',
- align: 'center'
- },
- {
- text: '井深(m)',
- value: 'deep',
- align: 'center'
- },
- {
- text: '详细地址',
- value: 'position',
- align: 'center'
- },
- {
- text: '点位类型',
- value: 'wellTypeName',
- align: 'center'
- },
- {
- text: '权属单位',
- value: 'deptName',
- align: 'center'
- },
- {
- text: '设备数量',
- value: 'deviceCount',
- align: 'center',
- type: 'Button'
- },
- {
- text: '布防状态',
- value: 'bfztName',
- align: 'center'
- }
+ { text: '点位编号', value: 'wellCode', align: 'center' },
+ { text: '点位名称', value: 'wellName', align: 'center' },
+ { text: '井深(m)', value: 'deep', align: 'center' },
+ { text: '详细地址', value: 'position', align: 'center' },
+ { text: '点位类型', value: 'wellTypeName', align: 'center' },
+ { text: '权属单位', value: 'deptName', align: 'center' },
+ { text: '设备数量', value: 'deviceCount', align: 'center', type: 'Button' },
+ { text: '布防状态', value: 'bfztName', align: 'center' }
], // 显示列
multipleSelection: [], // 多选选中项
list: [], // 列表数据
total: 0, // 数据总数
showWellType: true, // 是否显示点位类型下拉
- wellTypeList: null, // 点位类型列表
- deptProps: {
- parent: 'pid',
- value: 'id',
- label: 'name',
- children: 'children'
- }, // 权属单位树形下拉菜单
- deptTreeList: null, // 组织树列表数据
+ wellTypeList: [], // 点位类型列表
deptShowTop: false, // 权属单位下拉是否显示顶级
listLoading: true, // 加载动画
fullscreenLoading: false, // 全屏加载动画
@@ -217,7 +164,6 @@
methods: {
// 打开详情对话框
detail(row) {
- console.log(row, '============++++')
this.detailShow = true
this.$refs.detailwell.initDialog(true, row)
},
@@ -234,7 +180,6 @@
},
// 编辑井信息
edit(row) {
- console.log(row, '===row====')
this.dialogFormVisible = true
this.editShow = true
this.$refs.editwell.initDialog(this.dialogFormVisible, row)
@@ -468,23 +413,18 @@
goDeviceList(row) {
this.$router.push({ name: 'DeviceList', query: { wellCode: row.wellCode }})
},
+ // 去报警记录页
goAlarmRecords(row) {
this.$router.push({ name: 'AlarmRecords', query: { wellCode: row.wellCode }})
},
- handleSuccess() {
- console.log('handleSuccess')
- },
- indexMethod(index) {
- return this.listQuery.limit * (this.listQuery.offset - 1) + index + 1
- },
- // 改变页容量
- handleSizeChange(val) {
- this.listQuery.limit = val
- this.fetchData()
- },
- // 改变当前页
- handleCurrentChange(val) {
- this.listQuery.offset = val
+ // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写
+ changePage(val) {
+ if (val && val.size) {
+ this.listQuery.limit = val.size
+ }
+ if (val && val.page) {
+ this.listQuery.offset = val.page
+ }
this.fetchData()
},
// 多选触发方法
@@ -496,30 +436,5 @@