vue2-client 1.9.25 → 1.9.27

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": "vue2-client",
3
- "version": "1.9.25",
3
+ "version": "1.9.27",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
package/src/App.vue CHANGED
@@ -96,11 +96,15 @@ export default {
96
96
  },
97
97
  setMicroApp () {
98
98
  let baseApp = '/login'
99
+ let queryData = {}
99
100
  const that = this
100
101
  if (window.__MICRO_APP_ENVIRONMENT__) {
101
102
  const data = window.microApp.getData() // 获取主应用下发的data数据
102
103
  if (data.baseroute) {
103
104
  baseApp = data.baseroute
105
+ } // 获取主应用下发的data数据
106
+ if (data.queryData) {
107
+ queryData = data.queryData
104
108
  }
105
109
  this.setMicroAppTheme(data.themeStore)
106
110
  window.microApp.addDataListener((_data) => {
@@ -110,7 +114,7 @@ export default {
110
114
  that.setMicroAppTheme(_data.themeStore)
111
115
  })
112
116
  console.log('microApp', window.microApp)
113
- this.$router.replace({ path: baseApp })
117
+ this.$router.replace({ path: baseApp, query: queryData })
114
118
  }
115
119
  },
116
120
  setMicroAppTheme (themeStore) {
@@ -60,32 +60,28 @@
60
60
  <span class="custom-tree-node" slot-scope="{ node,data }">
61
61
  <span :class="{ 'selected': data === selectedNode }" @click="nodeItemClick(data)">
62
62
  <a-tooltip placement="right" :title="node.label">
63
- <a-space>
64
- <a-icon
65
- v-if="data.icon"
66
- :style="{color: data.iconColor}"
67
- :type="data.icon"/>
68
- <span
69
- v-html="highlightKeyword(node.label, searchInput)"></span>
70
- <span v-if="countVisible">{{
71
- data.hasOwnProperty('count') ? ' (' + data.count + ')' : ''
72
- }}</span>
73
- </a-space>
74
- </a-tooltip>
75
- </span>
76
- <a-space style="float:right;margin-right: .2rem">
77
- <a-tooltip
78
- :title="icon.title"
79
- :key="icon.func"
80
- v-for="icon in config.btn"
81
- >
82
63
  <a-icon
83
- @click.stop="action(data, icon.func)"
84
- v-if="executeStrFunction( icon.customFunction,[data])"
85
- :type="icon.icon"
86
- :style="{color:icon.color}"></a-icon>
64
+ v-if="data.icon"
65
+ :style="{color: data.iconColor, marginRight: '5px'}"
66
+ :type="data.icon"/>
67
+ <span
68
+ v-html="highlightKeyword(node.label, searchInput)"></span>
69
+ <span v-if="countVisible">{{
70
+ data.hasOwnProperty('count') ? ' (' + data.count + ')' : ''
71
+ }}</span>
87
72
  </a-tooltip>
88
- </a-space>
73
+ </span>
74
+ <a-tooltip
75
+ :title="icon.title"
76
+ :key="icon.func"
77
+ v-for="icon in config.btn"
78
+ >
79
+ <a-icon
80
+ @click.stop="action(data, icon.func)"
81
+ v-if="executeStrFunction( icon.customFunction,[data])"
82
+ :type="icon.icon"
83
+ :style="{color:icon.color, marginLeft: '8px'}"></a-icon>
84
+ </a-tooltip>
89
85
  </span>
90
86
  </vue-easy-tree>
91
87
  </div>
@@ -429,6 +425,10 @@ export default {
429
425
  :deep(.el-tree-node__content) {
430
426
  cursor: default;
431
427
  }
428
+
429
+ :deep(.vue-recycle-scroller__item-wrapper) {
430
+ overflow-x: auto;
431
+ }
432
432
  }
433
433
 
434
434
  </style>
@@ -96,6 +96,8 @@ export default {
96
96
  dataMode: undefined,
97
97
  // 保存数据调用的Logic名称
98
98
  saveDataLogicName: undefined,
99
+ // 保存数据调用Logic传入的额外参数
100
+ logicExtraParams: undefined,
99
101
  // 服务名
100
102
  serviceName: undefined
101
103
  }
@@ -112,6 +114,7 @@ export default {
112
114
  resId,
113
115
  bindObject,
114
116
  saveDataLogicName,
117
+ logicExtraParams,
115
118
  serviceName,
116
119
  showModeChoose = true,
117
120
  modeType = 'readonly'
@@ -124,6 +127,7 @@ export default {
124
127
  this.dataMode = 'template'
125
128
  }
126
129
  this.saveDataLogicName = saveDataLogicName
130
+ this.logicExtraParams = logicExtraParams
127
131
  this.serviceName = serviceName
128
132
  this.showModeChoose = showModeChoose
129
133
  this.modeType = modeType
@@ -155,7 +159,8 @@ export default {
155
159
  doc: this.editorRef.getHtml(),
156
160
  dataObject: this.editorRef.getBindObject(),
157
161
  dataMode: this.dataMode,
158
- resId: this.resId
162
+ resId: this.resId,
163
+ logicExtraParams: this.logicExtraParams
159
164
  }
160
165
  // 保存HTML文档和结构化数据到后端服务
161
166
  runLogic(this.saveDataLogicName, data, this.serviceName).then(res => {