vue2-client 1.17.36 → 1.17.38

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.17.36",
3
+ "version": "1.17.38",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -259,6 +259,17 @@
259
259
  :value="item.value">{{ item.label }}
260
260
  </a-select-option>
261
261
  </template>
262
+ <template
263
+ v-else-if="attr.keyName.indexOf('async ') !== -1 || attr.keyName.indexOf('function ') !== -1">
264
+ <a-select-option
265
+ v-for="(item,index) in optionForFunc"
266
+ :key="index.value"
267
+ :value="item.value + ''">
268
+ <template>
269
+ {{ item.label }}
270
+ </template>
271
+ </a-select-option>
272
+ </template>
262
273
  <template v-else>
263
274
  <a-select-option
264
275
  v-for="item in $appdata.getDictionaryList(attr.keyName)"
@@ -72,7 +72,7 @@ export default {
72
72
  },
73
73
  data () {
74
74
  return {
75
- activeKey: 0,
75
+ activeKey: -1,
76
76
  // 配置
77
77
  config: undefined,
78
78
  tabBarExtraContent: undefined,
@@ -85,10 +85,10 @@ export default {
85
85
  ...mapState('account', { currUser: 'user' })
86
86
  },
87
87
  mounted () {
88
- this.activeKey = this.defaultActiveKey
88
+ // this.activeKey = this.defaultActiveKey
89
89
  // 标记默认激活的页签为已加载
90
- this.markTabAsLoaded(this.defaultActiveKey)
91
- this.tabPaneChange('initTabLoading', true)
90
+ // this.markTabAsLoaded(this.defaultActiveKey)
91
+ this.tabPaneChange(this.defaultActiveKey, true)
92
92
  },
93
93
  methods: {
94
94
  // 自定义函数中调用的方法 这个不能删
@@ -113,7 +113,7 @@ export default {
113
113
  this.markTabAsLoaded(newKey)
114
114
  }
115
115
 
116
- if (this.config && this.config.changeFunc) {
116
+ if (this.config && this.config.changeFunc && this.config.data[newKey] !== undefined) {
117
117
  let oldRef
118
118
  let oldTabName
119
119
  let newRef
@@ -148,7 +148,6 @@ export default {
148
148
 
149
149
  // 关键修改:确保新组件实例存在
150
150
  if (!newRef || !newRef[0]) {
151
- console.log('等待新页签组件初始化...')
152
151
  // 等待组件挂载完成
153
152
  await this.waitForComponentReady(newKey)
154
153
  newRef = this.$refs[newTabName]
@@ -158,7 +157,7 @@ export default {
158
157
  args.push(newRef[0])
159
158
  } else {
160
159
  args.push(null)
161
- console.warn('新页签组件实例获取失败')
160
+ console.error('新页签组件实例获取失败')
162
161
  }
163
162
 
164
163
  args.push(this.extraData)
@@ -203,7 +202,7 @@ export default {
203
202
  }
204
203
  },
205
204
 
206
- // 新增:等待组件就绪的方法
205
+ // 新增:等待组件就绪的方法
207
206
  waitForComponentReady (index) {
208
207
  return new Promise((resolve) => {
209
208
  const checkComponent = () => {
@@ -6,7 +6,7 @@ export default {
6
6
  components: { WorkflowDetail },
7
7
  mounted () {
8
8
  this.$refs.workFlow.init({
9
- workflowId: '4476'
9
+ workflowId: 4640
10
10
  })
11
11
  },
12
12
  methods: {