From 9cce9a6fc634ea713d81e3ec975cb686b825a1fb Mon Sep 17 00:00:00 2001
From: 18650502300 <18650502300@163.com>
Date: Wed, 21 Aug 2024 16:38:07 +0800
Subject: [PATCH] =?UTF-8?q?1.=E7=A1=AC=E4=BB=B6=E7=89=88=E6=9C=AC=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=E6=89=B9=E6=AC=A1=E6=94=B9=E9=80=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/system/articleClassify/index.vue | 4 +-
src/views/system/hardwareVersion/index.vue | 45 +++++++++++++++++++---
2 files changed, 43 insertions(+), 6 deletions(-)
diff --git a/src/views/system/articleClassify/index.vue b/src/views/system/articleClassify/index.vue
index 8ce70a5..7214e0c 100644
--- a/src/views/system/articleClassify/index.vue
+++ b/src/views/system/articleClassify/index.vue
@@ -264,8 +264,10 @@ export default {
/** 查询分类列表 */
getList() {
this.loading = true;
- listDept2({status: '0',pageNum:1,pageSize:999 }).then(response => {
+ listDept(this.queryParams).then(response => {
+ console.log("response======",response.data)
this.deptList = this.handleTree(response.data, "classifyId");
+ console.log("deptList======",this.deptList)
this.loading = false;
});
},
diff --git a/src/views/system/hardwareVersion/index.vue b/src/views/system/hardwareVersion/index.vue
index bff96fd..1c7831e 100644
--- a/src/views/system/hardwareVersion/index.vue
+++ b/src/views/system/hardwareVersion/index.vue
@@ -69,16 +69,27 @@
-
+
+ :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
-
{{ parseTime(scope.row.productionTime, '{y}-{m}-{d}') }}
-
+
+
+
+
+
+
@@ -122,9 +133,12 @@
placeholder="请选择生产时间">
-
+
+
+
+
@@ -158,6 +172,8 @@ export default {
total: 0,
// 硬件版本表格数据
hardwareVersionList: [],
+ // 是否展开,默认全部展开
+ isExpandAll: true,
// 弹出层标题
title: "",
// 是否显示弹出层
@@ -181,11 +197,21 @@ export default {
this.getList();
},
methods: {
+ tableRowClassName({row, rowIndex}) {
+ if (row.parentId === 0) {
+ return 'success-row';
+ }
+ return '';
+ },
+ formatNum(row, column, cellValue) {
+ return cellValue === 0 ? '' : cellValue;
+ },
/** 查询硬件版本列表 */
getList() {
this.loading = true;
listHardwareVersion(this.queryParams).then(response => {
- this.hardwareVersionList = response.rows;
+ this.hardwareVersionList = this.handleTree(response.rows, "id");
+ console.log("hardwareVersionList:",this.hardwareVersionList)
this.total = response.total;
this.loading = false;
});
@@ -202,6 +228,7 @@ export default {
version: null,
productionTime: null,
quantity: null,
+ notEnteredNum: null,
instructions: null,
createTime: null
};
@@ -278,3 +305,11 @@ export default {
}
};
+