vue2-client 1.19.11 → 1.19.13

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.19.11",
3
+ "version": "1.19.13",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -78,7 +78,7 @@ export default {
78
78
  },
79
79
  serviceName: {
80
80
  type: String,
81
- default: 'af-system'
81
+ default: process.env.VUE_APP_SYSTEM_NAME
82
82
  },
83
83
  // 业务类型
84
84
  businessType: {
@@ -62,7 +62,7 @@ export default {
62
62
  // 服务名
63
63
  serviceName: {
64
64
  type: String,
65
- default: 'af-system'
65
+ default: process.env.VUE_APP_SYSTEM_NAME
66
66
  }
67
67
  },
68
68
  data () {
@@ -118,26 +118,7 @@
118
118
  </a-select-option>
119
119
  </template>
120
120
  <template v-else-if="attr.keyName">
121
- <template
122
- v-if="
123
- attr.keyName.indexOf('logic@') !== -1 ||
124
- attr.keyName.indexOf('config@') !== -1 ||
125
- attr.keyName.indexOf('search@') !== -1 ||
126
- attr.keyName.indexOf('search@') !== -1
127
- "
128
- >
129
- <a-select-option v-for="(item, index) in option" :key="index.value" :value="item.value + ''">
130
- <template v-if="attr.keyName.indexOf('config@') !== -1 && item.status">
131
- <!-- 徽标(badge) -->
132
- <a-badge v-if="item.status !== 'gary'" :color="item.status" :text="item.label" />
133
- <a-badge v-else color="#D9D9D9" :text="item.label" />
134
- </template>
135
- <template v-else>
136
- {{ item.label }}
137
- </template>
138
- </a-select-option>
139
- </template>
140
- <template v-else-if="attr.keyName.indexOf('async ') !== -1 || attr.keyName.indexOf('function ') !== -1">
121
+ <template v-if="attr.keyName.indexOf('async ') !== -1 || attr.keyName.indexOf('function ') !== -1">
141
122
  <a-select-option v-for="(item, index) in optionForFunc" :key="index.value" :value="item.value + ''">
142
123
  <template>
143
124
  {{ item.label }}
@@ -145,19 +126,20 @@
145
126
  </a-select-option>
146
127
  </template>
147
128
  <template v-else>
148
- <a-select-option
149
- v-for="item in dictMap[attr.keyName] || []"
150
- :key="item.value"
151
- :value="item.value + ''"
152
- >
153
- <!-- 徽标(badge) -->
154
- <x-badge
155
- :badge-key="attr.keyName"
156
- :replaceText="item.label"
157
- :value="item.value"
158
- :service-name="serviceName"
159
- :env="env"
160
- />
129
+ <a-select-option v-for="(item, index) in option" :key="index.value" :value="item.value + ''">
130
+ <template
131
+ v-if="
132
+ attr.keyName.indexOf('logic@') !== -1 ||
133
+ attr.keyName.indexOf('config@') !== -1 ||
134
+ attr.keyName.indexOf('search@') !== -1
135
+ ">
136
+ {{ item.label }}
137
+ </template>
138
+ <template v-else-if="item.status">
139
+ <!-- 徽标(badge) -->
140
+ <a-badge v-if="item.status !== 'gary'" :color="item.status" :text="item.label" />
141
+ <a-badge v-else color="#D9D9D9" :text="item.label" />
142
+ </template>
161
143
  </a-select-option>
162
144
  </template>
163
145
  </template>
@@ -240,19 +222,7 @@
240
222
  </a-select-option>
241
223
  </template>
242
224
  <template v-else-if="attr.keyName">
243
- <template
244
- v-if="
245
- attr.keyName.indexOf('logic@') !== -1 ||
246
- attr.keyName.indexOf('config@') !== -1 ||
247
- attr.keyName.indexOf('search@') !== -1 ||
248
- attr.keyName.indexOf('search@') !== -1
249
- "
250
- >
251
- <a-select-option v-for="(item, index) in option" :key="index" :value="item.value">
252
- {{ item.label }}
253
- </a-select-option>
254
- </template>
255
- <template v-else-if="attr.keyName.indexOf('async ') !== -1 || attr.keyName.indexOf('function ') !== -1">
225
+ <template v-if="attr.keyName.indexOf('async ') !== -1 || attr.keyName.indexOf('function ') !== -1">
256
226
  <a-select-option v-for="(item, index) in optionForFunc" :key="index.value" :value="item.value + ''">
257
227
  <template>
258
228
  {{ item.label }}
@@ -260,11 +230,7 @@
260
230
  </a-select-option>
261
231
  </template>
262
232
  <template v-else>
263
- <a-select-option
264
- v-for="item in dictMap[attr.keyName] || []"
265
- :key="item.value"
266
- :value="item.value + ''"
267
- >
233
+ <a-select-option v-for="(item, index) in option" :key="index" :value="item.value">
268
234
  {{ item.label }}
269
235
  </a-select-option>
270
236
  </template>
@@ -321,23 +287,9 @@
321
287
  </a-radio>
322
288
  </template>
323
289
  <template v-else-if="attr.keyName">
324
- <template
325
- v-if="
326
- attr.keyName.indexOf('logic@') !== -1 ||
327
- attr.keyName.indexOf('config@') !== -1 ||
328
- attr.keyName.indexOf('search@') !== -1 ||
329
- attr.keyName.indexOf('search@') !== -1
330
- "
331
- >
332
- <a-radio v-for="(item, index) in option" :key="index" :value="item.value">
333
- {{ item.label }}
334
- </a-radio>
335
- </template>
336
- <template v-else>
337
- <a-radio v-for="(item, index) in dictMap[attr.keyName] || []" :key="index" :value="item.value">
338
- {{ item.label }}
339
- </a-radio>
340
- </template>
290
+ <a-radio v-for="(item, index) in option" :key="index" :value="item.value">
291
+ {{ item.label }}
292
+ </a-radio>
341
293
  </template>
342
294
  </a-radio-group>
343
295
  </a-form-model-item>
@@ -705,7 +657,7 @@ import PersonSetting from '@vue2-client/base-client/components/common/PersonSett
705
657
  import AddressSearchCombobox from '@vue2-client/base-client/components/common/AddressSearchCombobox'
706
658
  import Upload from '@vue2-client/base-client/components/common/Upload'
707
659
  import moment from 'moment'
708
- import { getConfigByName, runLogic, getConfigByNameAsync } from '@vue2-client/services/api/common'
660
+ import { runLogic, getConfigByNameAsync } from '@vue2-client/services/api/common'
709
661
  import * as util from '@vue2-client/utils/util'
710
662
  import XTreeSelect from '@vue2-client/base-client/components/common/XForm/XTreeSelect'
711
663
  import { searchToListOption, searchToOption } from '@vue2-client/services/v3Api'
@@ -764,8 +716,7 @@ export default {
764
716
  rowChoosePopoverVisible: false,
765
717
  // 行选择器CRUD固定查询值
766
718
  rowChooseFixedQueryValue: undefined,
767
- bindOther: {},
768
- dictMap: {}
719
+ bindOther: {}
769
720
  }
770
721
  },
771
722
  props: {
@@ -816,7 +767,7 @@ export default {
816
767
  },
817
768
  serviceName: {
818
769
  type: String,
819
- default: undefined
770
+ default: process.env.VUE_APP_SYSTEM_NAME
820
771
  },
821
772
  // 调用logic获取数据源的追加参数
822
773
  getDataParams: {
@@ -873,10 +824,6 @@ export default {
873
824
  },
874
825
  async created() {
875
826
  this.init()
876
- if (this.attr.keyName) {
877
- const key = this.attr.keyName
878
- this.dictMap[key] = await this.$appdata.getDictByKeyAsync(key)
879
- }
880
827
  if (
881
828
  this.attr.keyName &&
882
829
  (this.attr?.keyName?.toString().indexOf('async ') !== -1 ||
@@ -1366,7 +1313,7 @@ export default {
1366
1313
  }
1367
1314
  if (this.attr.keyName && typeof this.attr.keyName === 'string') {
1368
1315
  if (this.attr.keyName.indexOf('logic@') !== -1) {
1369
- this.getData({serviceName:process.env.VUE_APP_SYSTEM_NAME}, res => this.getDataCallback(res))
1316
+ this.getData({serviceName: process.env.VUE_APP_SYSTEM_NAME}, res => this.getDataCallback(res))
1370
1317
  } else if (this.attr.keyName.indexOf('search@') !== -1) {
1371
1318
  // `tool.getFullTree(this.getRights().where(row.getType()==$organization$))`
1372
1319
  // 判断是否根据角色查询
@@ -1392,21 +1339,18 @@ export default {
1392
1339
  // 其他资源通用逻辑
1393
1340
  searchToOption(searchData, res => this.getDataCallback(res))
1394
1341
  }
1395
- } else if (this.attr.keyName.indexOf('config@') !== -1) {
1396
- const configName = this.attr.keyName.substring(7)
1397
- // 处理得到 “undefined” 字符串的问题
1398
- if (configName && configName !== 'undefined') {
1399
- getConfigByName(
1400
- configName,
1401
- this.serviceName,
1402
- res => {
1403
- this.getDataCallback(res.value)
1404
- },
1405
- this.env === 'dev'
1406
- )
1407
- }
1408
1342
  } else if (this.attr.keyName.indexOf('async ') !== -1 || this.attr.keyName.indexOf('function ') !== -1) {
1409
1343
  this.updateOptions()
1344
+ } else {
1345
+ let configName
1346
+ if (this.attr.keyName.indexOf('config@') !== -1) {
1347
+ configName = this.attr.keyName.substring(7)
1348
+ } else {
1349
+ configName = this.attr.keyName
1350
+ }
1351
+ if (configName && configName !== 'undefined') {
1352
+ this.$appdata.getDictByKey(configName, this.serviceName, res => this.getDataCallback(res), this.env === 'dev')
1353
+ }
1410
1354
  }
1411
1355
  } else if (this.attr.keys) {
1412
1356
  // 对静态配置的keys也进行预处理
@@ -5,7 +5,7 @@
5
5
  ref="main"
6
6
  :use-oss-for-img="false"
7
7
  config-name="用户户内通气点火工艺流程"
8
- server-name="af-system"
8
+ :server-name="process.env.VUE_APP_SYSTEM_NAME"
9
9
  :show-img-in-cell="true"
10
10
  :edit-mode="false"
11
11
  :show-save-button="false"
@@ -154,7 +154,7 @@ export default {
154
154
  // 命名空间
155
155
  serverName: {
156
156
  type: String,
157
- default: 'af-system'
157
+ default: process.env.VUE_APP_SYSTEM_NAME
158
158
  },
159
159
  // 是否只能展示不可编辑
160
160
  displayOnly: {
@@ -181,7 +181,7 @@ export default {
181
181
  // 命名空间
182
182
  serverName: {
183
183
  type: String,
184
- default: 'af-system'
184
+ default: process.env.VUE_APP_SYSTEM_NAME
185
185
  },
186
186
  // 是否展示标题
187
187
  showTitle: {
@@ -492,7 +492,7 @@ export default {
492
492
  // 命名空间
493
493
  serverName: {
494
494
  type: String,
495
- default: 'af-system'
495
+ default: process.env.VUE_APP_SYSTEM_NAME
496
496
  },
497
497
  // 原始配置
498
498
  configData: {
@@ -72,7 +72,7 @@ export default {
72
72
  // 命名空间
73
73
  serverName: {
74
74
  type: String,
75
- default: 'af-system'
75
+ default: process.env.VUE_APP_SYSTEM_NAME
76
76
  },
77
77
  // 环境
78
78
  env: {
@@ -243,7 +243,7 @@ export default {
243
243
  // 命名空间
244
244
  serverName: {
245
245
  type: String,
246
- default: 'af-system'
246
+ default: process.env.VUE_APP_SYSTEM_NAME
247
247
  },
248
248
  // 环境
249
249
  env: {
@@ -240,7 +240,7 @@
240
240
  ref="searchTable"
241
241
  v-if="tabActiveKey === 'workHistory'"
242
242
  :fixed-query-form="fixedQueryForm"
243
- serviceName="af-system"
243
+ serviceName="af-oa"
244
244
  :queryParamsName="queryParamsName"
245
245
  title="已提交工单"
246
246
  @action="toDetail">