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 @@
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
- 导出
-
-
-
-
-
-
+
+
-
-
+
- 修改
- 删除
+ {{ scope.row.nameEn}}
+
+
+ {{ scope.row.type}}
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -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`)
- }
}
};