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