vue2-client 1.18.60 → 1.18.62

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.
Files changed (26) hide show
  1. package/package.json +1 -1
  2. package/src/base-client/components/common/PersonSetting/PersonSetting.vue +1 -1
  3. package/src/base-client/components/common/XForm/XForm.vue +9 -3
  4. package/src/base-client/components/index.js +0 -6
  5. package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +5 -1
  6. package/src/base-client/plugins/AppData.js +10 -5
  7. package/src/main.js +1 -1
  8. package/src/mock/user/routes.js +1 -1
  9. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue +8 -3
  10. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandleReso.vue +12 -10
  11. package/src/router/async/config.async.js +0 -1
  12. package/src/services/api/index.js +0 -2
  13. package/src/base-client/components/common/CreateQuery/CreateQuery.vue +0 -669
  14. package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +0 -1014
  15. package/src/base-client/components/common/CreateQuery/index.js +0 -3
  16. package/src/base-client/components/common/CreateQuery/index.md +0 -42
  17. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +0 -452
  18. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +0 -511
  19. package/src/base-client/components/common/CreateSimpleFormQuery/index.js +0 -3
  20. package/src/base-client/components/common/CreateSimpleFormQuery/index.md +0 -42
  21. package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +0 -166
  22. package/src/base-client/components/common/FormGroupQuery/index.js +0 -3
  23. package/src/base-client/components/common/FormGroupQuery/index.md +0 -43
  24. package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +0 -281
  25. package/src/base-client/components/system/QueryParamsDetailsView/index.js +0 -3
  26. package/src/services/api/QueryParamsDetailsViewApi.js +0 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.18.60",
3
+ "version": "1.18.62",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -49,7 +49,7 @@
49
49
  </template>
50
50
 
51
51
  <script>
52
- import { commonApi, post } from '@vue2-client/services/api'
52
+ import { post } from '@vue2-client/services/api'
53
53
 
54
54
  const departments = ['运维部', '项目部', '项目一部', '项目二部', '开发部', '售后部', '办公室', '管理员', '软件工程部', 'IC卡部', '销售部']
55
55
 
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div :style="{ marginBottom: !visible ? '12px' : '' }">
3
3
  <div v-if="visible && realJsonData.length > 0" class="table-page-search-wrapper">
4
- <a-form-model v-if="loaded" ref="form" :model="form" :rules="rules" layout="inline">
4
+ <a-form-model v-if="loaded" ref="form" :model="form" :rules="rules" :layout="layout">
5
5
  <a-row :gutter="24" type="flex">
6
6
  <x-form-item
7
7
  v-for="item in visibleItems"
@@ -112,7 +112,9 @@ export default {
112
112
  simpleMode: false,
113
113
  queryParamsName: '',
114
114
  // 默认显示的表单项数量
115
- visibleItemCount: 7
115
+ visibleItemCount: 7,
116
+ // 表单模式 horizontal | vertical | inline
117
+ layout: 'inline'
116
118
  }
117
119
  },
118
120
  computed: {
@@ -248,7 +250,9 @@ export default {
248
250
  simpleMode = false,
249
251
  funcData = {},
250
252
  queryParamsName = 'localConfig',
251
- defaultQueryForm = {}
253
+ defaultQueryForm = {},
254
+ advanced = false,
255
+ layout = 'inline'
252
256
  } = params
253
257
  this.mountedCount = 0
254
258
  this.queryParamsName = queryParamsName
@@ -257,6 +261,8 @@ export default {
257
261
  this.serviceName = serviceName
258
262
  this.env = env
259
263
  this.simpleMode = simpleMode
264
+ this.advanced = advanced
265
+ this.layout = layout
260
266
  // visibleItemCount 现在由 flex 监听动态控制,不再需要手动设置
261
267
  const formData = {}
262
268
  for (let i = 0; i < this.realJsonData.length; i++) {
@@ -11,25 +11,19 @@ import XBadge from './common/XBadge'
11
11
  import Upload from './common/Upload'
12
12
  import JSONToTree from './common/JSONToTree'
13
13
  import FormGroupEdit from './common/FormGroupEdit'
14
- import FormGroupQuery from './common/FormGroupQuery'
15
14
  import AddressSearchCombobox from './common/AddressSearchCombobox'
16
15
  import AmapMarker from './common/AmapMarker'
17
16
  import PersonSetting from './common/PersonSetting'
18
17
  import XFormTable from './common/XFormTable'
19
18
  import XStepView from './common/XStepView'
20
19
  import Tree from './common/Tree'
21
- import CreateQuery from './common/CreateQuery'
22
- import CreateSimpleFormQuery from './common/CreateSimpleFormQuery'
23
20
  import XFormGroup from './common/XFormGroup'
24
21
  import XDescriptionsGroup from './common/XDescriptions/XDescriptionsGroup.vue'
25
22
 
26
23
  export default {
27
24
  AddressSearchCombobox,
28
25
  AmapMarker,
29
- CreateQuery,
30
- CreateSimpleFormQuery,
31
26
  FormGroupEdit,
32
- FormGroupQuery,
33
27
  JSONToTree,
34
28
  PersonSetting,
35
29
  Tree,
@@ -612,7 +612,11 @@
612
612
  this.disableCloseBtn = true
613
613
  }
614
614
  const categoryValue = this.details.category
615
- this.details.category = this.$appdata.getDictionaryList('ticketCategoryMap')[categoryValue].label
615
+ this.$appdata.getDictByKeyAsync('ticketCategoryMap').then(
616
+ res => {
617
+ this.details.category = res[categoryValue].label
618
+ },
619
+ )
616
620
  }, err => {
617
621
  console.error(err)
618
622
  })
@@ -85,12 +85,17 @@ const GetAppDataService = {
85
85
  return processResult(result)
86
86
  }
87
87
  },
88
- // 新版获取配置中心字典推荐使用 服务名默认为当前服务
89
- getDictByKey (dictKey, serviceName = process.env.VUE_APP_SYSTEM_NAME, callback, isDev) {
90
- getConfigByName(dictKey, undefined, result => {
91
- callback(result.value)
92
- }, isDev)
88
+ // 获取琉璃字典(Callback 版本)
89
+ getDictByKey(dictKey, serviceName, callback, isDev) {
90
+ this.getDictByKeyAsync(dictKey, serviceName, isDev).then(callback)
93
91
  },
92
+ // 获取琉璃字典(Promise 版本)
93
+ getDictByKeyAsync(dictKey, serviceName = process.env.VUE_APP_SYSTEM_NAME, isDev) {
94
+ return new Promise(resolve => {
95
+ getConfigByName(dictKey, serviceName, res => resolve(res.value), isDev)
96
+ })
97
+ },
98
+
94
99
  getParam (key, value, callback) {
95
100
  const str = localStorage.getItem(process.env.VUE_APP_BADGE_KEY)
96
101
  const object = JSON.parse(str)
package/src/main.js CHANGED
@@ -4,7 +4,7 @@ import Router from 'vue-router'
4
4
  import Vuex from 'vuex'
5
5
  import { routerOptions, modules, i18n, message, bootstrap } from '../index'
6
6
  // import eventLogPlugin from '@/plugins/EventLogPlugin'
7
- import findParentData from '@/plugins/FindParentsData'
7
+ import findParentData from '@vue2-client/plugins/FindParentsData'
8
8
  import { Modal } from 'ant-design-vue'
9
9
 
10
10
  import VueDraggableResizable from 'vue-draggable-resizable'
@@ -32,7 +32,7 @@ const router = [{
32
32
  // },
33
33
  // {
34
34
  // router: 'system',
35
- // children: ['dictionaryManage', 'queryParamsManage', 'customerManage', 'safeguardSearchLog', 'runtime', 'createQuery']
35
+ // children: ['dictionaryManage', 'queryParamsManage', 'customerManage', 'safeguardSearchLog', 'runtime']
36
36
  // },
37
37
  {
38
38
  router: 'antdv',
@@ -501,7 +501,6 @@ export default {
501
501
  stepsExtraInfo: [],
502
502
  // 控制基础信息页流程展示加载
503
503
  loading: true,
504
- createQueryVisible: false,
505
504
  // 激活的步骤名
506
505
  activeStepName: '',
507
506
  stepsParse: undefined,
@@ -1123,8 +1122,14 @@ export default {
1123
1122
  continue
1124
1123
  }
1125
1124
  // 字典值处理
1126
- if (stepDefine.formType === 'select' && stepDefine.selectType === 'key') {
1127
- const dictList = this.$appdata.getDictionaryList(stepDefine.selectKey)
1125
+ if (stepDefine.formType === 'select') {
1126
+ let dictList
1127
+ if (stepDefine.selectType === 'key') {
1128
+ dictList = this.$appdata.getDictionaryList(stepDefine.selectKey)
1129
+ } else if (stepDefine.selectType === 'config') {
1130
+ const configName = stepDefine.selectKey.substring(7)
1131
+ dictList = await this.$appdata.getDictByKeyAsync(configName)
1132
+ }
1128
1133
  const dictItem = dictList.find(item => item.value === value)
1129
1134
  value = dictItem ? dictItem.label : value
1130
1135
  }
@@ -8,7 +8,7 @@
8
8
  <!-- 上方流程显示 -->
9
9
  <a-card :bordered="false" :loading="loading" title="项目进度">
10
10
  <!-- 项目进度流程 -->
11
- <workflow-timeline
11
+ <work-flow-timeline
12
12
  :current-step-id="currentStepId"
13
13
  :active-step-id="activeStepId"
14
14
  :workflow-id="workflowId"
@@ -323,7 +323,6 @@ export default {
323
323
  loading: true,
324
324
  // 当前步骤子表定义
325
325
  currentStepSubTableDefine: null,
326
- createQueryVisible: false,
327
326
  // 子表定义
328
327
  subTableDefine: {},
329
328
  subTableName: '',
@@ -783,17 +782,20 @@ export default {
783
782
  const stepDefine = this.targetStepDefine[i]
784
783
  if (key === stepDefine.key) {
785
784
  if (!['FilesId', 'Images'].includes(key)) {
785
+ let value = formData[key]
786
786
  // 读取字典值
787
- if (stepDefine.formType === 'select' && stepDefine.selectType === 'key') {
788
- for (const item of this.$appdata.getDictionaryList(stepDefine.selectKey)) {
789
- if (item.value === formData[key]) {
790
- formData[stepDefine.title] = item.label
791
- break
792
- }
787
+ if (stepDefine.formType === 'select') {
788
+ let dictList
789
+ if (stepDefine.selectType === 'key') {
790
+ dictList = this.$appdata.getDictionaryList(stepDefine.selectKey)
791
+ } else if (stepDefine.selectType === 'config') {
792
+ const configName = stepDefine.selectKey.substring(7)
793
+ dictList = await this.$appdata.getDictByKeyAsync(configName)
793
794
  }
794
- } else {
795
- formData[stepDefine.title] = formData[key]
795
+ const dictItem = dictList.find(item => item.value === value)
796
+ value = dictItem ? dictItem.label : value
796
797
  }
798
+ formData[stepDefine.title] = value
797
799
  }
798
800
  if (key !== stepDefine.title) {
799
801
  delete formData[key]
@@ -11,7 +11,6 @@ const routesConfig = [
11
11
  'XReportGrid',
12
12
  'example',
13
13
  'settings',
14
- 'createQuery',
15
14
  'root',
16
15
  'bigDashboard',
17
16
  {
@@ -1,5 +1,4 @@
1
1
  import { commonApi, getConfig, query, addOrModify, remove } from '@vue2-client/services/api/common'
2
- import { QueryParamsDetailsViewApi } from '@vue2-client/services/api/QueryParamsDetailsViewApi'
3
2
  import { DictionaryDetailsViewApi } from '@vue2-client/services/api/DictionaryDetailsViewApi'
4
3
  import { LogDetailsViewApi } from '@vue2-client/services/api/LogDetailsViewApi'
5
4
  import { manageApi } from '@vue2-client/services/api/manage'
@@ -11,7 +10,6 @@ export {
11
10
  DictionaryDetailsViewApi,
12
11
  LogDetailsViewApi,
13
12
  manageApi,
14
- QueryParamsDetailsViewApi,
15
13
  get, post, postByServiceName,
16
14
  TicketDetailsViewApi
17
15
  }