vue2-client 1.6.48 → 1.7.0

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 (41) hide show
  1. package/.env +15 -15
  2. package/CHANGELOG.md +6 -0
  3. package/package.json +1 -1
  4. package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +1 -1
  5. package/src/base-client/components/common/CreateQuery/CreateQuery.vue +667 -667
  6. package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +1 -1
  7. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +468 -462
  8. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +1 -1
  9. package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +8 -2
  10. package/src/base-client/components/common/Upload/Upload.vue +3 -3
  11. package/src/base-client/components/common/XAddForm/XAddForm.vue +2 -2
  12. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +1 -1
  13. package/src/base-client/components/common/XForm/XForm.vue +2 -2
  14. package/src/base-client/components/common/XForm/XFormItem.vue +1 -1
  15. package/src/base-client/components/common/XFormTable/XFormTable.vue +12 -4
  16. package/src/base-client/components/common/XImportExcel/XImportExcel.vue +1 -1
  17. package/src/base-client/components/common/XTable/XTable.vue +506 -505
  18. package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +231 -231
  19. package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +1 -1
  20. package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +1 -1
  21. package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +1 -1
  22. package/src/config/default/setting.config.js +46 -46
  23. package/src/layouts/header/HeaderNotice.vue +1 -1
  24. package/src/layouts/header/InstitutionDetail.vue +2 -2
  25. package/src/pages/CreateQueryPage.vue +84 -84
  26. package/src/pages/login/Login.vue +4 -1
  27. package/src/pages/report/ReportTableHome.vue +1 -1
  28. package/src/pages/system/dictionary/index.vue +43 -43
  29. package/src/pages/system/file/index.vue +3 -3
  30. package/src/pages/system/monitor/loginInfor/index.vue +36 -36
  31. package/src/pages/system/monitor/operLog/index.vue +36 -36
  32. package/src/router/async/router.map.js +0 -2
  33. package/src/services/api/DictionaryDetailsViewApi.js +1 -1
  34. package/src/services/api/LogDetailsViewApi.js +3 -3
  35. package/src/services/api/QueryParamsDetailsViewApi.js +1 -1
  36. package/src/services/api/TicketDetailsViewApi.js +15 -15
  37. package/src/services/api/common.js +137 -123
  38. package/src/services/api/commonTempTable.js +3 -3
  39. package/src/services/api/logininfor/index.js +1 -1
  40. package/src/services/api/manage.js +2 -2
  41. package/src/pages/system/queryParams/index.vue +0 -43
@@ -447,7 +447,7 @@ export default {
447
447
  // 获取所有仓库
448
448
  getStocks () {
449
449
  if (this.stockList.length === 0) {
450
- post('/api/af-system/logic/getFilesStock', {}).then(res => {
450
+ post('/api/system/logic/getFilesStock', {}).then(res => {
451
451
  this.stockList = res.sort((a, b) => b.progress - a.progress)
452
452
  }).catch(e => {})
453
453
  }
@@ -29,7 +29,8 @@
29
29
  <script>
30
30
  import { mapState } from 'vuex'
31
31
  import XAddForm from '@vue2-client/base-client/components/common/XAddForm/XAddForm'
32
- import { commonApi, post } from '@vue2-client/services/api'
32
+ import { post } from '@vue2-client/services/api'
33
+ import { getConfigUrl } from '@vue2-client/services/api/common'
33
34
 
34
35
  export default {
35
36
  name: 'FormGroupEdit',
@@ -58,6 +59,10 @@ export default {
58
59
  type: Boolean,
59
60
  default: false
60
61
  },
62
+ serviceName: {
63
+ type: String,
64
+ default: undefined
65
+ },
61
66
  modifyModelData: {
62
67
  type: Object,
63
68
  default: () => {
@@ -80,7 +85,8 @@ export default {
80
85
  })
81
86
  },
82
87
  toEdit (item) {
83
- post(commonApi.getColumnsJson, { queryObject: item }).then(res => {
88
+ const url = getConfigUrl(this.serviceName)
89
+ post(url, { queryObject: item }).then(res => {
84
90
  this.formObj = res
85
91
  this.$refs.xAddForm.init({
86
92
  formItems: res.formJson,
@@ -68,7 +68,7 @@ export default {
68
68
  },
69
69
  serviceName: {
70
70
  type: String,
71
- default: 'af-system'
71
+ default: 'system'
72
72
  }
73
73
  },
74
74
  computed: {
@@ -117,9 +117,9 @@ export default {
117
117
  formData.append('filesize', (info.file.size / 1024 / 1024).toFixed(4))
118
118
  formData.append('f_operator', this.currUser ? this.currUser.username : '')
119
119
 
120
- // const url = '/api/af-system/resource'
120
+ // const url = '/api/system/resource'
121
121
  // if (process.env.NODE_ENV === 'production') {
122
- // url = `/${this.model.stockAlias}/af-system/resource`
122
+ // url = `/${this.model.stockAlias}/system/resource`
123
123
  // }
124
124
  upload(formData, this.serviceName, { headers, timeout: 600 * 1000 }).then(res => {
125
125
  // 根据服务端返回的结果判断成功与否,设置文件条目的状态
@@ -75,7 +75,7 @@ export default {
75
75
  // 表单项集合
76
76
  formItems: [],
77
77
  // 服务名称
78
- serviceName: 'af-system',
78
+ serviceName: 'system',
79
79
  // 修改有文件的表单时使用
80
80
  files: [],
81
81
  images: [],
@@ -109,7 +109,7 @@ export default {
109
109
  },
110
110
  methods: {
111
111
  init (params) {
112
- const { isShow = true, formItems, viewMode, isTableTemp, serviceName = 'af-system' } = params
112
+ const { isShow = true, formItems, viewMode, isTableTemp, serviceName = 'system' } = params
113
113
  if (isShow) {
114
114
  this.isShow = true
115
115
  this.formItems = JSON.parse(JSON.stringify(formItems))
@@ -76,7 +76,7 @@ export default {
76
76
  },
77
77
  serviceName: {
78
78
  type: String,
79
- default: 'af-system'
79
+ default: 'system'
80
80
  },
81
81
  // 业务类型
82
82
  businessType: {
@@ -67,7 +67,7 @@ export default {
67
67
  // 内容加载是否完成
68
68
  loaded: false,
69
69
  // 服务名称
70
- serviceName: 'af-system',
70
+ serviceName: 'system',
71
71
  // 是否展开条件
72
72
  advanced: false,
73
73
  // 表单Model
@@ -94,7 +94,7 @@ export default {
94
94
  methods: {
95
95
  init (params) {
96
96
  const {
97
- formItems, serviceName = 'af-system'
97
+ formItems, serviceName = 'system'
98
98
  } = params
99
99
  this.loaded = false
100
100
  this.formItems = JSON.parse(JSON.stringify(formItems))
@@ -370,7 +370,7 @@ export default {
370
370
  },
371
371
  serviceName: {
372
372
  type: String,
373
- default: 'af-system'
373
+ default: 'system'
374
374
  },
375
375
  // 调用logic获取数据源的追加参数
376
376
  getDataParams: {
@@ -49,7 +49,7 @@ import XForm from '@vue2-client/base-client/components/common/XForm'
49
49
  import XAddForm from '@vue2-client/base-client/components/common/XAddForm'
50
50
  import XTable from '@vue2-client/base-client/components/common/XTable'
51
51
  import XImportExcel from '@vue2-client/base-client/components/common/XImportExcel'
52
- import { addOrModify, commonApi } from '@vue2-client/services/api/common'
52
+ import { addOrModify, getConfigUrl } from '@vue2-client/services/api/common'
53
53
  import { indexedDB } from '@vue2-client/utils/indexedDB'
54
54
  import { mapState } from 'vuex'
55
55
  import { post } from '@vue2-client/services/api/restTools'
@@ -87,6 +87,11 @@ export default {
87
87
  type: String,
88
88
  default: null
89
89
  },
90
+ // 配置所属命名空间
91
+ serviceName: {
92
+ type: String,
93
+ default: undefined
94
+ },
90
95
  // 查询配置文件Json,用于查询配置生成器的预览
91
96
  queryParamsJson: {
92
97
  type: Object,
@@ -171,19 +176,22 @@ export default {
171
176
  methods: {
172
177
  getColumnsJson () {
173
178
  this.loading = true
174
- indexedDB.getByWeb(this.queryParamsName, commonApi.getColumnsJson, { str: this.queryParamsName }, (res) => {
179
+ const url = getConfigUrl(this.serviceName)
180
+ indexedDB.getByWeb(this.queryParamsName, url, { configName: this.queryParamsName }, (res) => {
175
181
  this.updateComponents(res)
176
182
  })
177
183
  },
178
184
  getColumnsJsonBySource () {
179
185
  this.loading = true
180
- post(commonApi.getColumnsJson, { queryObject: this.queryParamsJson }).then(res => {
186
+ const url = getConfigUrl(this.serviceName)
187
+ post(url, { queryObject: this.queryParamsJson }).then(res => {
181
188
  this.updateComponents(res, true)
182
189
  })
183
190
  },
184
191
  getColumnJsonByLogic () {
185
192
  this.loading = true
186
- indexedDB.getByWeb(`${this.logicName}_${JSON.stringify(this.logicParam)}`, commonApi.getColumnsJson, { logic: this.logicName, logicParam: this.logicParam }, (res) => {
193
+ const url = getConfigUrl(this.serviceName)
194
+ indexedDB.getByWeb(`${this.logicName}_${JSON.stringify(this.logicParam)}`, url, { logic: this.logicName, logicParam: this.logicParam }, (res) => {
187
195
  this.updateComponents(res, true)
188
196
  })
189
197
  },
@@ -44,7 +44,7 @@ export default {
44
44
  props: {
45
45
  serviceName: {
46
46
  type: String,
47
- default: 'af-system'
47
+ default: 'system'
48
48
  },
49
49
  queryParamsName: {
50
50
  type: String,