From 9b7ee2b8d22f14a0fffefb2ee371e9a655b05c54 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期五, 26 七月 2024 14:28:25 +0800
Subject: [PATCH] 修改
---
web/src/views/modules/basicInfo/ProductModelTree.vue | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/web/src/views/modules/basicInfo/ProductModelTree.vue b/web/src/views/modules/basicInfo/ProductModelTree.vue
index 5949b1d..0484c40 100644
--- a/web/src/views/modules/basicInfo/ProductModelTree.vue
+++ b/web/src/views/modules/basicInfo/ProductModelTree.vue
@@ -1,13 +1,13 @@
<template>
<div class="product-tree-container">
- <el-input
+ <!-- <el-input
placeholder="杈撳叆鍚嶇О杩涜杩囨护"
style="width: 60%"
v-model="filterText"
size="small"
clearable
- ></el-input>
- <el-button type="primary" @click="add()" style="margin: 10px 0 0 10px;padding: 9px 18px !important;">鏂板鍨嬪彿</el-button>
+ ></el-input>-->
+ <el-button v-if="isShow" type="primary" @click="add()" style="margin: 10px 0 0 10px;padding: 9px 18px !important;">鏂板鍨嬪彿</el-button>
<el-divider></el-divider>
<el-tree
style="height: 90%;overflow: auto"
@@ -34,6 +34,10 @@
name: 'ProductModelTree',
props: {
showXdy: {
+ type: Boolean,
+ default: true
+ },
+ isShow: {
type: Boolean,
default: true
},
@@ -80,7 +84,6 @@
if (this.basic) {
if (this.productList && this.productList[0].children) {
this.defaultId = this.productList[0].children[0].id
- console.log(this.defaultId, 'this.defaultID')
this.$nextTick(() => {
this.$refs.tree.setCurrentKey(this.defaultId); //涓�瀹氳鍔犺繖涓�変腑浜嗗惁鍒欐牱寮忔病鏈夊嚭鏉�
});
--
Gitblit v1.9.1