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.
- package/.env +15 -15
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +1 -1
- package/src/base-client/components/common/CreateQuery/CreateQuery.vue +667 -667
- package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +1 -1
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +468 -462
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +1 -1
- package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +8 -2
- package/src/base-client/components/common/Upload/Upload.vue +3 -3
- package/src/base-client/components/common/XAddForm/XAddForm.vue +2 -2
- package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +1 -1
- package/src/base-client/components/common/XForm/XForm.vue +2 -2
- package/src/base-client/components/common/XForm/XFormItem.vue +1 -1
- package/src/base-client/components/common/XFormTable/XFormTable.vue +12 -4
- package/src/base-client/components/common/XImportExcel/XImportExcel.vue +1 -1
- package/src/base-client/components/common/XTable/XTable.vue +506 -505
- package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +231 -231
- package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +1 -1
- package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +1 -1
- package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +1 -1
- package/src/config/default/setting.config.js +46 -46
- package/src/layouts/header/HeaderNotice.vue +1 -1
- package/src/layouts/header/InstitutionDetail.vue +2 -2
- package/src/pages/CreateQueryPage.vue +84 -84
- package/src/pages/login/Login.vue +4 -1
- package/src/pages/report/ReportTableHome.vue +1 -1
- package/src/pages/system/dictionary/index.vue +43 -43
- package/src/pages/system/file/index.vue +3 -3
- package/src/pages/system/monitor/loginInfor/index.vue +36 -36
- package/src/pages/system/monitor/operLog/index.vue +36 -36
- package/src/router/async/router.map.js +0 -2
- package/src/services/api/DictionaryDetailsViewApi.js +1 -1
- package/src/services/api/LogDetailsViewApi.js +3 -3
- package/src/services/api/QueryParamsDetailsViewApi.js +1 -1
- package/src/services/api/TicketDetailsViewApi.js +15 -15
- package/src/services/api/common.js +137 -123
- package/src/services/api/commonTempTable.js +3 -3
- package/src/services/api/logininfor/index.js +1 -1
- package/src/services/api/manage.js +2 -2
- package/src/pages/system/queryParams/index.vue +0 -43
package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue
CHANGED
|
@@ -447,7 +447,7 @@ export default {
|
|
|
447
447
|
// 获取所有仓库
|
|
448
448
|
getStocks () {
|
|
449
449
|
if (this.stockList.length === 0) {
|
|
450
|
-
post('/api/
|
|
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 {
|
|
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
|
-
|
|
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: '
|
|
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/
|
|
120
|
+
// const url = '/api/system/resource'
|
|
121
121
|
// if (process.env.NODE_ENV === 'production') {
|
|
122
|
-
// url = `/${this.model.stockAlias}/
|
|
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: '
|
|
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 = '
|
|
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))
|
|
@@ -67,7 +67,7 @@ export default {
|
|
|
67
67
|
// 内容加载是否完成
|
|
68
68
|
loaded: false,
|
|
69
69
|
// 服务名称
|
|
70
|
-
serviceName: '
|
|
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 = '
|
|
97
|
+
formItems, serviceName = 'system'
|
|
98
98
|
} = params
|
|
99
99
|
this.loaded = false
|
|
100
100
|
this.formItems = JSON.parse(JSON.stringify(formItems))
|
|
@@ -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,
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
},
|