This commit is contained in:
parent
f88d4fa80f
commit
86c010dc19
|
|
@ -21,7 +21,7 @@
|
|||
<el-input
|
||||
v-model="treeSearchKey"
|
||||
placeholder="搜索"
|
||||
@keyup.enter.native="getDeviceListByTreeSearch"
|
||||
@input="getDeviceListByTreeSearch"
|
||||
class="tree-search-input"
|
||||
|
||||
|
||||
|
|
@ -34,7 +34,6 @@
|
|||
@click="getDeviceListByTreeSearch"
|
||||
title="查询"
|
||||
class="search-btn-embedded"
|
||||
@keyup.enter.native="getDeviceListByTreeSearch"
|
||||
/>
|
||||
<el-button
|
||||
icon="el-icon-refresh"
|
||||
|
|
@ -1217,13 +1216,13 @@ export default {
|
|||
this.defaultExpandedKeys = expandedIds;
|
||||
|
||||
// 6. 无匹配结果时提示
|
||||
if (filteredTreeData.length === 0 || this.isTreeEmpty(filteredTreeData)) {
|
||||
this.$message.info('未找到匹配的类型分支');
|
||||
} else {
|
||||
this.$message.success(`找到 ${expandedIds.length} 个匹配项`);
|
||||
}
|
||||
// if (filteredTreeData.length === 0 || this.isTreeEmpty(filteredTreeData)) {
|
||||
// this.$message.info('未找到匹配的类型分支');
|
||||
// } else {
|
||||
// this.$message.success(`找到 ${expandedIds.length} 个匹配项`);
|
||||
// }
|
||||
} catch (error) {
|
||||
this.$message.error('树形查询失败:' + (error.message || '未知错误'));
|
||||
// this.$message.error('树形查询失败:' + (error.message || '未知错误'));
|
||||
console.error(error);
|
||||
} finally {
|
||||
this.treeLoading = false;
|
||||
|
|
@ -1336,9 +1335,9 @@ export default {
|
|||
// this.collectFirstAndSecondLevelKeys(this.treeData);
|
||||
this.initDefaultExpandedKeys()
|
||||
|
||||
this.$message.success('树形查询已重置');
|
||||
// this.$message.success('树形查询已重置');
|
||||
} catch (error) {
|
||||
this.$message.error('树形重置失败:' + (error.message || '未知错误'));
|
||||
// this.$message.error('树形重置失败:' + (error.message || '未知错误'));
|
||||
console.error(error);
|
||||
} finally {
|
||||
this.treeLoading = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue