cnhis-design-vue 0.2.42-beta → 0.2.43-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "0.2.42-beta",
3
+ "version": "0.2.43-beta",
4
4
  "description": "基于 Ant Desgin Vue 的UI库",
5
5
  "keyword": "cnhis-design-vue vue cnhis",
6
6
  "homepage": "http://dv.cnhis.com/",
@@ -56,6 +56,11 @@ export default {
56
56
  },
57
57
  assemblyId: {
58
58
  type: [String, Number]
59
+ },
60
+ // 是否单独配置的菜单,比如系统设置->配置管理->进入本页面
61
+ isOtherEntry: {
62
+ type: Boolean,
63
+ default: false
59
64
  }
60
65
  },
61
66
  data() {
@@ -125,7 +130,7 @@ export default {
125
130
  },
126
131
  useMenuList() {
127
132
  let exclude = [];
128
- if (!this.isOrgAdmin) {
133
+ if (!this.isOtherEntry && !this.isOrgAdmin) {
129
134
  exclude = exclude.concat([
130
135
  "authority",
131
136
  "base-info",
@@ -30,7 +30,7 @@
30
30
  </a-dropdown>
31
31
  </div>
32
32
  <slot name="classification"></slot>
33
- <li v-if="isShowSetting('hideQuickSearch') && isRelatedSearchFold" ref="quickSearchLi">
33
+ <li v-if="showQuickSearch" ref="quickSearchLi">
34
34
  <a-button class="search-default" type="default" @click="foldQuickSearch">
35
35
  <svg-icon icon-class="xitongtubiaoBIxitongshaixuan" style="color: #2d7aff; margin-right: 6px"></svg-icon>
36
36
  筛选 {{ qqConObjCount ? `(${qqConObjCount})` : '' }}
@@ -750,6 +750,12 @@ export default create({
750
750
  },
751
751
  showRelatedSearch() {
752
752
  return this.showRelatedTreeBtn && this.isShowSetting('hideSearch')
753
+ },
754
+ showQuickSearch() {
755
+ let showQuick = this.isShowSetting('hideQuickSearch')
756
+ // 平铺列表, 左侧不为tree, 而是table
757
+ if(this.editTableSource == 'relatedComponent' && this.relatedBaseInfo?.showType != "TREE") return showQuick
758
+ return showQuick && this.isRelatedSearchFold
753
759
  }
754
760
  },
755
761
  data() {