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 {
}
};
+