From cd158636f12c409fd101d6fa6f9b78f18a440951 Mon Sep 17 00:00:00 2001 From: "lj7788@126.com" Date: Thu, 9 Oct 2025 14:39:47 +0800 Subject: [PATCH] =?UTF-8?q?10.9=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=9F=BA=E5=9D=91=E7=9B=91=E6=B5=8B=E5=90=8E=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yanzhu-ui-vue3/src/assets/styles/ruoyi.scss | 7 + .../device/pitDevice/deviceDetailDlg.vue | 2 +- .../src/views/device/pitDevice/index.vue | 262 ++++-------------- .../src/views/device/pitElement/index.vue | 138 +-------- 4 files changed, 72 insertions(+), 337 deletions(-) diff --git a/yanzhu-ui-vue3/src/assets/styles/ruoyi.scss b/yanzhu-ui-vue3/src/assets/styles/ruoyi.scss index 0b7a9e59..f2338e50 100644 --- a/yanzhu-ui-vue3/src/assets/styles/ruoyi.scss +++ b/yanzhu-ui-vue3/src/assets/styles/ruoyi.scss @@ -66,6 +66,9 @@ .el-dialog:not(.is-fullscreen) { margin-top: 6vh !important; } +.el-dialog.top-30vh{ + margin-top: 30vh !important; +} .el-dialog.scrollbar .el-dialog__body { overflow: auto; @@ -74,6 +77,10 @@ padding: 10px 20px 0; } +.el-dialog.hide-scrollbar .el-dialog__body { + overflow: hidden !important; +} + .el-table { .el-table__header-wrapper, .el-table__fixed-header-wrapper { th { diff --git a/yanzhu-ui-vue3/src/views/device/pitDevice/deviceDetailDlg.vue b/yanzhu-ui-vue3/src/views/device/pitDevice/deviceDetailDlg.vue index 8bc5c8ae..43ac01d5 100644 --- a/yanzhu-ui-vue3/src/views/device/pitDevice/deviceDetailDlg.vue +++ b/yanzhu-ui-vue3/src/views/device/pitDevice/deviceDetailDlg.vue @@ -1,5 +1,5 @@ diff --git a/yanzhu-ui-vue3/src/views/device/pitElement/index.vue b/yanzhu-ui-vue3/src/views/device/pitElement/index.vue index 277d2f75..4420c9d3 100644 --- a/yanzhu-ui-vue3/src/views/device/pitElement/index.vue +++ b/yanzhu-ui-vue3/src/views/device/pitElement/index.vue @@ -10,64 +10,26 @@ - - - 新增 - - - 修改 - - - 删除 - - - 导出 - - - - - - + + - - + + + + + - - - - - - - - - - - - - - @@ -162,36 +124,12 @@ export default { this.loading = true; listPitElement(this.queryParams).then(response => { this.pitElementList = response.rows; + console.log("pitElementList==",response) this.total = response.total; this.loading = false; }); }, - // 取消按钮 - cancel() { - this.open = false; - this.reset(); - }, - // 表单重置 - reset() { - this.form = { - id: null, - cfgId: null, - srvId: null, - maxSp: null, - monitorStatus: null, - name: null, - nameEn: null, - type: null, - state: null, - remark: null, - isDel: null, - createBy: null, - createTime: null, - updateBy: null, - updateTime: null - }; - this.resetForm("form"); - }, + /** 搜索按钮操作 */ handleQuery() { this.queryParams.pageNum = 1; @@ -208,58 +146,6 @@ export default { this.single = selection.length !== 1 this.multiple = !selection.length }, - /** 新增按钮操作 */ - handleAdd() { - this.reset(); - this.open = true; - this.title = "添加监测项管理"; - }, - /** 修改按钮操作 */ - handleUpdate(row) { - this.reset(); - const id = row.id || this.ids - getPitElement(id).then(response => { - this.form = response.data; - this.open = true; - this.title = "修改监测项管理"; - }); - }, - /** 提交按钮 */ - submitForm() { - this.$refs["form"].validate(valid => { - if (valid) { - if (this.form.id != null) { - updatePitElement(this.form).then(response => { - this.$modal.msgSuccess("修改成功"); - this.open = false; - this.getList(); - }); - } else { - addPitElement(this.form).then(response => { - this.$modal.msgSuccess("新增成功"); - this.open = false; - this.getList(); - }); - } - } - }); - }, - /** 删除按钮操作 */ - handleDelete(row) { - const ids = row.id || this.ids; - this.$modal.confirm('是否确认删除监测项管理编号为"' + ids + '"的数据项?').then(function () { - return delPitElement(ids); - }).then(() => { - this.getList(); - this.$modal.msgSuccess("删除成功"); - }).catch(() => { }); - }, - /** 导出按钮操作 */ - handleExport() { - this.download('device/pitElement/export', { - ...this.queryParams - }, `pitElement_${new Date().getTime()}.xlsx`) - } } };