From a1ff69f228b7a0d08959e6b25eff2dac6085df8d Mon Sep 17 00:00:00 2001 From: zhuzhuanzhuan Date: 星期四, 21 九月 2023 17:59:23 +0800 Subject: [PATCH] 1、优化数据报表模块页面布局 2、修复因时间选择器的showTime属性导致的布局混乱 3、删除假期管理页面中重复的导出按钮组件 --- src/views/mdc/common/BaseTree.vue | 25 +++++++++++-------------- 1 files changed, 11 insertions(+), 14 deletions(-) diff --git a/src/views/mdc/common/BaseTree.vue b/src/views/mdc/common/BaseTree.vue index 0aab780..809f02f 100644 --- a/src/views/mdc/common/BaseTree.vue +++ b/src/views/mdc/common/BaseTree.vue @@ -112,21 +112,24 @@ ...mapActions(['QueryProduction']), getCurrSelectedTitle() { return !this.currSelected.title ? '' : this.currSelected.title - } - , + }, + /** + * 鍙栨秷杞﹂棿閫変腑椤� + */ onClearSelected() { this.hiding = true this.currSelected = {} this.selectedKeys = [] + console.log('鍙戦��') + // this.$bus.$emit('treeClearSelected','閲嶇疆鍒楄〃') this.$emit('sendSelectBaseTree', '') }, - onSelect(selectedKeys, e) { this.hiding = false let record = e.node.dataRef this.currSelected = Object.assign({}, record) this.selectedKeys = [record.key] - console.log(this.selectedKeys) + console.log('閫変腑鏍戜腑椤�',this.selectedKeys) this.$emit('sendSelectBaseTree', this.selectedKeys) }, handleEdit(entity) { @@ -167,8 +170,7 @@ // this.loading = false // this.cardLoading = false // }) - } - , + }, handleChange() { let search = this.searchInput let expandedKeys = this.dataList @@ -186,8 +188,7 @@ searchValue: search, autoExpandParent: true }) - } - , + }, handleSearch(value) { let search = value let expandedKeys = this.dataList @@ -206,8 +207,7 @@ searchValue: search, autoExpandParent: true }) - } - , + }, getParentKey(key, tree) { let parentKey for (let i = 0; i < tree.length; i++) { @@ -223,7 +223,6 @@ } return parentKey }, - generateList(data) { for (let i = 0; i < data.length; i++) { const node = data[i] @@ -288,9 +287,7 @@ this.queryTreeData() // 鏂板/淇敼 鎴愬姛鏃讹紝閲嶈浇鍒楄〃 } - - } - , + }, //鐩戝惉 watch: { currSelected(val) { //鐩戝惉currSelected 鍙樺寲锛屽皢鍙樺寲鍚庣殑鏁板�间紶閫掔粰 getCurrSelected 浜嬩欢 -- Gitblit v1.9.3