vue2-client 1.7.2 → 1.7.4
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 +1 -1
- package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +2 -2
- package/src/base-client/components/common/CreateQuery/CreateQuery.vue +3 -3
- package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +4 -3
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +10 -7
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +4 -3
- package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +3 -5
- package/src/base-client/components/common/Upload/Upload.vue +4 -9
- package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +5 -13
- package/src/base-client/components/common/XAddNativeForm/index.md +1 -1
- package/src/base-client/components/common/XForm/XForm.vue +2 -2
- package/src/base-client/components/common/XForm/XFormItem.vue +5 -5
- package/src/base-client/components/common/XForm/index.md +2 -2
- package/src/base-client/components/common/XFormTable/XFormTable.vue +15 -20
- package/src/base-client/components/common/XTable/XTable.vue +2 -2
- package/src/base-client/components/common/XTable/index.md +2 -2
- 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 +2 -0
- package/src/layouts/header/HeaderNotice.vue +1 -1
- package/src/layouts/header/InstitutionDetail.vue +2 -2
- package/src/pages/CreateQueryPage.vue +39 -41
- package/src/pages/report/ReportTableHome.vue +1 -1
- package/src/pages/resourceManage/orgListManage.vue +2 -2
- package/src/pages/system/file/index.vue +3 -3
- package/src/router/async/router.map.js +2 -0
- 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 +70 -18
- package/src/services/api/commonTempTable.js +3 -3
- package/src/services/api/index.js +2 -2
- package/src/services/api/logininfor/index.js +1 -1
- package/src/services/api/manage.js +2 -2
- package/vue.config.js +1 -1
package/package.json
CHANGED
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
</template>
|
|
53
53
|
<script>
|
|
54
54
|
|
|
55
|
-
import { post } from '@vue2-client/services/api'
|
|
56
55
|
import { GetGDMap } from '@vue2-client/utils/map-utils'
|
|
57
56
|
import { debounce } from 'ant-design-vue/lib/vc-table/src/utils'
|
|
58
57
|
import { mapState } from 'vuex'
|
|
58
|
+
import { runLogic } from '@vue2-client/services/api/common'
|
|
59
59
|
|
|
60
60
|
export default {
|
|
61
61
|
name: 'AddressSearchCombobox',
|
|
@@ -196,7 +196,7 @@ export default {
|
|
|
196
196
|
if (value !== '') {
|
|
197
197
|
const logicName = this.attr.keyName
|
|
198
198
|
const logic = logicName.substring(6)
|
|
199
|
-
|
|
199
|
+
runLogic(logic, value, 'af-system').then(res => {
|
|
200
200
|
callback(res)
|
|
201
201
|
})
|
|
202
202
|
}
|
|
@@ -556,10 +556,10 @@ export default {
|
|
|
556
556
|
this.form.joinArray = joinArrayObject
|
|
557
557
|
},
|
|
558
558
|
exportJson () {
|
|
559
|
-
const data = JSON.stringify(this.
|
|
559
|
+
const data = JSON.stringify(this.result, null, 2)
|
|
560
560
|
const blob = new Blob([data], { type: 'application/json' })
|
|
561
561
|
FileSaver.saveAs(blob, `Query.json`)
|
|
562
|
-
this.$message.success('
|
|
562
|
+
this.$message.success('导出到本地成功,请复制内容到琉璃配置中心中')
|
|
563
563
|
},
|
|
564
564
|
viewHandle (then) {
|
|
565
565
|
if (this.form.column.length === 0) {
|
|
@@ -604,7 +604,7 @@ export default {
|
|
|
604
604
|
if (valid) {
|
|
605
605
|
this.viewHandle(() => {
|
|
606
606
|
// saveQueryParams
|
|
607
|
-
this
|
|
607
|
+
this.exportJson()
|
|
608
608
|
})
|
|
609
609
|
}
|
|
610
610
|
})
|
|
@@ -348,8 +348,9 @@ import {
|
|
|
348
348
|
addOrEditType,
|
|
349
349
|
selectDataType
|
|
350
350
|
} from '@vue2-client/config/CreateQueryConfig'
|
|
351
|
-
import {
|
|
351
|
+
import { post } from '@vue2-client/services/api'
|
|
352
352
|
import JsonViewer from 'vue-json-viewer'
|
|
353
|
+
import { getDictionaryParam } from '@vue2-client/services/api/common'
|
|
353
354
|
|
|
354
355
|
const DemoJson = [{
|
|
355
356
|
value: 'zhejiang',
|
|
@@ -522,7 +523,7 @@ export default {
|
|
|
522
523
|
flashModal (show = 'None') {
|
|
523
524
|
const bool = show === 'None' ? !this.visible : !!show
|
|
524
525
|
if (bool && this.option.length === 0) {
|
|
525
|
-
|
|
526
|
+
getDictionaryParam().then(res => {
|
|
526
527
|
this.option = res
|
|
527
528
|
})
|
|
528
529
|
}
|
|
@@ -632,7 +633,7 @@ export default {
|
|
|
632
633
|
// 获取所有仓库
|
|
633
634
|
getStocks () {
|
|
634
635
|
if (this.stockList.length === 0) {
|
|
635
|
-
post('/api/system/logic/getFilesStock', {}).then(res => {
|
|
636
|
+
post('/api/af-system/logic/getFilesStock', {}).then(res => {
|
|
636
637
|
this.stockList = res.sort((a, b) => b.progress - a.progress)
|
|
637
638
|
}).catch(e => {})
|
|
638
639
|
}
|
|
@@ -130,7 +130,7 @@ import JsonViewer from 'vue-json-viewer'
|
|
|
130
130
|
import FileSaver from 'file-saver'
|
|
131
131
|
import { mapState } from 'vuex'
|
|
132
132
|
import { post } from '@vue2-client/services/api'
|
|
133
|
-
import {
|
|
133
|
+
import { parseConfigUrl } from '@vue2-client/services/api/common'
|
|
134
134
|
|
|
135
135
|
export default {
|
|
136
136
|
name: 'CreateSimpleFormQuery',
|
|
@@ -352,10 +352,10 @@ export default {
|
|
|
352
352
|
changeJoinArray () {
|
|
353
353
|
},
|
|
354
354
|
exportJson () {
|
|
355
|
-
const data = JSON.stringify(this.
|
|
355
|
+
const data = JSON.stringify(this.result, null, 2)
|
|
356
356
|
const blob = new Blob([data], { type: 'application/json' })
|
|
357
357
|
FileSaver.saveAs(blob, `SimpleFormQuery.json`)
|
|
358
|
-
this.$message.success('
|
|
358
|
+
this.$message.success('导出到本地成功,请复制内容到琉璃配置中心中')
|
|
359
359
|
},
|
|
360
360
|
viewHandle (then) {
|
|
361
361
|
if (this.form.column.length === 0) {
|
|
@@ -382,13 +382,16 @@ export default {
|
|
|
382
382
|
this.$refs.businessCreateForm.validate(valid => {
|
|
383
383
|
if (valid) {
|
|
384
384
|
this.viewHandle(() => {
|
|
385
|
-
const url =
|
|
386
|
-
post(url, {
|
|
385
|
+
const url = parseConfigUrl(this.serviceName)
|
|
386
|
+
post(url, {
|
|
387
|
+
configType: 'SIMPLE_FORM',
|
|
388
|
+
configContent: this.result
|
|
389
|
+
}).then(res => {
|
|
387
390
|
this.$refs.xAddForm.init({
|
|
388
391
|
businessType: '新增',
|
|
389
392
|
title: '效果预览',
|
|
390
393
|
formItems: res.formJson,
|
|
391
|
-
serviceName:
|
|
394
|
+
serviceName: this.serviceName,
|
|
392
395
|
viewMode: true
|
|
393
396
|
})
|
|
394
397
|
})
|
|
@@ -401,7 +404,7 @@ export default {
|
|
|
401
404
|
if (valid) {
|
|
402
405
|
this.viewHandle(() => {
|
|
403
406
|
// saveQueryParams
|
|
404
|
-
this
|
|
407
|
+
this.exportJson()
|
|
405
408
|
})
|
|
406
409
|
}
|
|
407
410
|
})
|
package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue
CHANGED
|
@@ -249,8 +249,9 @@ import {
|
|
|
249
249
|
addOrEditType,
|
|
250
250
|
selectDataType
|
|
251
251
|
} from '@vue2-client/config/CreateQueryConfig'
|
|
252
|
-
import {
|
|
252
|
+
import { post } from '@vue2-client/services/api'
|
|
253
253
|
import JsonViewer from 'vue-json-viewer'
|
|
254
|
+
import { getDictionaryParam } from '@vue2-client/services/api/common'
|
|
254
255
|
|
|
255
256
|
const DemoJson = [{
|
|
256
257
|
value: 'zhejiang',
|
|
@@ -366,7 +367,7 @@ export default {
|
|
|
366
367
|
flashModal (show = 'None') {
|
|
367
368
|
const bool = show === 'None' ? !this.visible : !!show
|
|
368
369
|
if (bool && this.option.length === 0) {
|
|
369
|
-
|
|
370
|
+
getDictionaryParam().then(res => {
|
|
370
371
|
this.option = res
|
|
371
372
|
})
|
|
372
373
|
}
|
|
@@ -449,7 +450,7 @@ export default {
|
|
|
449
450
|
// 获取所有仓库
|
|
450
451
|
getStocks () {
|
|
451
452
|
if (this.stockList.length === 0) {
|
|
452
|
-
post('/api/system/logic/getFilesStock', {}).then(res => {
|
|
453
|
+
post('/api/af-system/logic/getFilesStock', {}).then(res => {
|
|
453
454
|
this.stockList = res.sort((a, b) => b.progress - a.progress)
|
|
454
455
|
}).catch(e => {})
|
|
455
456
|
}
|
|
@@ -29,8 +29,7 @@
|
|
|
29
29
|
<script>
|
|
30
30
|
import { mapState } from 'vuex'
|
|
31
31
|
import XAddForm from '@vue2-client/base-client/components/common/XAddForm/XAddForm'
|
|
32
|
-
import {
|
|
33
|
-
import { getConfigUrl } from '@vue2-client/services/api/common'
|
|
32
|
+
import { parseConfig } from '@vue2-client/services/api/common'
|
|
34
33
|
|
|
35
34
|
export default {
|
|
36
35
|
name: 'FormGroupEdit',
|
|
@@ -85,15 +84,14 @@ export default {
|
|
|
85
84
|
})
|
|
86
85
|
},
|
|
87
86
|
toEdit (item) {
|
|
88
|
-
|
|
89
|
-
post(url, { queryObject: item }).then(res => {
|
|
87
|
+
parseConfig(item, 'SIMPLE_FORM', this.serviceName).then(res => {
|
|
90
88
|
this.formObj = res
|
|
91
89
|
const modifyModelData = { data: this.modifyModelData[res.groupName] }
|
|
92
90
|
this.$refs.xAddForm.init({
|
|
93
91
|
businessType: '修改',
|
|
94
92
|
title: '参数项',
|
|
95
93
|
formItems: res.formJson,
|
|
96
|
-
serviceName:
|
|
94
|
+
serviceName: this.serviceName,
|
|
97
95
|
modifyModelData: modifyModelData
|
|
98
96
|
})
|
|
99
97
|
})
|
|
@@ -35,9 +35,8 @@
|
|
|
35
35
|
|
|
36
36
|
<script>
|
|
37
37
|
|
|
38
|
-
import { post } from '@vue2-client/services/api'
|
|
39
38
|
import { mapState } from 'vuex'
|
|
40
|
-
import { upload } from '@vue2-client/services/api/common'
|
|
39
|
+
import { fileDelete, upload } from '@vue2-client/services/api/common'
|
|
41
40
|
|
|
42
41
|
export default {
|
|
43
42
|
name: 'uploads',
|
|
@@ -68,7 +67,7 @@ export default {
|
|
|
68
67
|
},
|
|
69
68
|
serviceName: {
|
|
70
69
|
type: String,
|
|
71
|
-
default:
|
|
70
|
+
default: undefined
|
|
72
71
|
}
|
|
73
72
|
},
|
|
74
73
|
computed: {
|
|
@@ -117,10 +116,6 @@ export default {
|
|
|
117
116
|
formData.append('filesize', (info.file.size / 1024 / 1024).toFixed(4))
|
|
118
117
|
formData.append('f_operator', this.currUser ? this.currUser.username : '')
|
|
119
118
|
|
|
120
|
-
// const url = '/api/system/resource'
|
|
121
|
-
// if (process.env.NODE_ENV === 'production') {
|
|
122
|
-
// url = `/${this.model.stockAlias}/system/resource`
|
|
123
|
-
// }
|
|
124
119
|
upload(formData, this.serviceName, { headers, timeout: 600 * 1000 }).then(res => {
|
|
125
120
|
// 根据服务端返回的结果判断成功与否,设置文件条目的状态
|
|
126
121
|
if (res.success) {
|
|
@@ -150,8 +145,8 @@ export default {
|
|
|
150
145
|
// 删除文件
|
|
151
146
|
deleteFileItem (file) {
|
|
152
147
|
if (file.id) {
|
|
153
|
-
|
|
154
|
-
|
|
148
|
+
fileDelete({ id: file.id, f_state: '删除' })
|
|
149
|
+
.then(res => {}).catch(e => { })
|
|
155
150
|
}
|
|
156
151
|
// 找到当前文件所在列表的索引
|
|
157
152
|
const index = this.uploadedFileList.indexOf(file)
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
import XFormItem from '@vue2-client/base-client/components/common/XForm/XFormItem'
|
|
42
42
|
import { formatDate } from '@vue2-client/utils/util'
|
|
43
43
|
import { mapState } from 'vuex'
|
|
44
|
-
import {
|
|
44
|
+
import { runLogic } from '@vue2-client/services/api/common'
|
|
45
45
|
|
|
46
46
|
export default {
|
|
47
47
|
name: 'XAddNativeForm',
|
|
@@ -69,7 +69,7 @@ export default {
|
|
|
69
69
|
// 表单项集合
|
|
70
70
|
formItems: [],
|
|
71
71
|
// 服务名称
|
|
72
|
-
serviceName:
|
|
72
|
+
serviceName: undefined,
|
|
73
73
|
// 修改有文件的表单时使用
|
|
74
74
|
files: [],
|
|
75
75
|
images: [],
|
|
@@ -110,7 +110,7 @@ export default {
|
|
|
110
110
|
methods: {
|
|
111
111
|
init (params) {
|
|
112
112
|
const {
|
|
113
|
-
formItems, viewMode, isHandleFormKey = true, serviceName
|
|
113
|
+
formItems, viewMode, isHandleFormKey = true, serviceName, isTableTemp = false, modifyModelData = {}, businessType, title, fixedAddForm = {}, getDataParams = {}, simpleFormJsonData = {}
|
|
114
114
|
} = params
|
|
115
115
|
this.loaded = false
|
|
116
116
|
if (typeof formItems === 'string') {
|
|
@@ -262,7 +262,8 @@ export default {
|
|
|
262
262
|
}
|
|
263
263
|
// 通过请求追加静默新增:自定义字段
|
|
264
264
|
for (const item of this.silenceAddJsonData.filter((item) => item.silencePurpose === 'customize')) {
|
|
265
|
-
|
|
265
|
+
// 获取通过logic静默新增的字段
|
|
266
|
+
requestForm[item.model] = await runLogic(item.silenceSource, requestForm, this.serviceName)
|
|
266
267
|
}
|
|
267
268
|
}
|
|
268
269
|
// 如果是临时表
|
|
@@ -301,15 +302,6 @@ export default {
|
|
|
301
302
|
})
|
|
302
303
|
})
|
|
303
304
|
},
|
|
304
|
-
/**
|
|
305
|
-
* 获取通过logic静默新增的字段
|
|
306
|
-
* @param logicName logic名称
|
|
307
|
-
* @param requestParameters 请求参数
|
|
308
|
-
*/
|
|
309
|
-
async getSilenceSource (logicName, requestParameters) {
|
|
310
|
-
const result = await post('/api/' + this.serviceName + '/logic/' + logicName, requestParameters)
|
|
311
|
-
return result
|
|
312
|
-
},
|
|
313
305
|
// 获取表单字段实际值
|
|
314
306
|
getRealKey (key) {
|
|
315
307
|
if (this.isHandleFormKey) {
|
|
@@ -62,7 +62,7 @@ export default {
|
|
|
62
62
|
// 内容加载是否完成
|
|
63
63
|
loaded: false,
|
|
64
64
|
// 服务名称
|
|
65
|
-
serviceName:
|
|
65
|
+
serviceName: undefined,
|
|
66
66
|
// 是否展开条件
|
|
67
67
|
advanced: false,
|
|
68
68
|
// 表单Model
|
|
@@ -91,7 +91,7 @@ export default {
|
|
|
91
91
|
methods: {
|
|
92
92
|
init (params) {
|
|
93
93
|
const {
|
|
94
|
-
formItems, serviceName
|
|
94
|
+
formItems, serviceName, getDataParams = {}
|
|
95
95
|
} = params
|
|
96
96
|
this.loaded = false
|
|
97
97
|
this.formItems = JSON.parse(JSON.stringify(formItems))
|
|
@@ -304,7 +304,6 @@
|
|
|
304
304
|
</template>
|
|
305
305
|
<script>
|
|
306
306
|
|
|
307
|
-
import { post } from '@vue2-client/services/api'
|
|
308
307
|
import { debounce } from 'ant-design-vue/lib/vc-table/src/utils'
|
|
309
308
|
import XFormCol from '@vue2-client/base-client/components/common/XFormCol'
|
|
310
309
|
import XBadge from '@vue2-client/base-client/components/common/XBadge'
|
|
@@ -314,6 +313,7 @@ import AddressSearchCombobox from '@vue2-client/base-client/components/common/Ad
|
|
|
314
313
|
import Upload from '@vue2-client/base-client/components/common/Upload'
|
|
315
314
|
import moment from 'moment'
|
|
316
315
|
import XTreeSelect from '@vue2-client/base-client/components/common/XForm/XTreeSelect'
|
|
316
|
+
import { runLogic } from '@vue2-client/services/api/common'
|
|
317
317
|
|
|
318
318
|
export default {
|
|
319
319
|
name: 'XFormItem',
|
|
@@ -378,7 +378,7 @@ export default {
|
|
|
378
378
|
},
|
|
379
379
|
serviceName: {
|
|
380
380
|
type: String,
|
|
381
|
-
default:
|
|
381
|
+
default: undefined
|
|
382
382
|
},
|
|
383
383
|
// 调用logic获取数据源的追加参数
|
|
384
384
|
getDataParams: {
|
|
@@ -401,8 +401,8 @@ export default {
|
|
|
401
401
|
const value = newVal[this.attr.model]
|
|
402
402
|
const isEmpty = !value || !value.toString()
|
|
403
403
|
// 查询表单点击重置按钮时清空树形选择框选中状态
|
|
404
|
-
if (this.attr.type === 'treeSelect' && isEmpty) {
|
|
405
|
-
|
|
404
|
+
if (this.$refs.XTreeSelect && this.attr.type === 'treeSelect' && isEmpty) {
|
|
405
|
+
this.$refs.xTreeSelect.setValue(undefined)
|
|
406
406
|
}
|
|
407
407
|
},
|
|
408
408
|
deep: true
|
|
@@ -498,7 +498,7 @@ export default {
|
|
|
498
498
|
if (this.getDataParams && this.getDataParams[this.attr.model]) {
|
|
499
499
|
Object.assign(value, this.getDataParams[this.attr.model])
|
|
500
500
|
}
|
|
501
|
-
|
|
501
|
+
runLogic(logic, value, this.serviceName).then(res => {
|
|
502
502
|
callback(res)
|
|
503
503
|
})
|
|
504
504
|
}
|
|
@@ -165,8 +165,8 @@ export default {
|
|
|
165
165
|
}
|
|
166
166
|
},
|
|
167
167
|
methods: {
|
|
168
|
-
|
|
169
|
-
Vue.resetpost(commonApi.
|
|
168
|
+
getConfig () {
|
|
169
|
+
Vue.resetpost(commonApi.getConfig, {str: this.queryParamsName}).then((res) => {
|
|
170
170
|
this.formItemJson = res.formJson
|
|
171
171
|
this.columnItemJson = res.columnJson
|
|
172
172
|
this.loaded = true
|
|
@@ -50,10 +50,8 @@ import XForm from '@vue2-client/base-client/components/common/XForm'
|
|
|
50
50
|
import XAddForm from '@vue2-client/base-client/components/common/XAddForm'
|
|
51
51
|
import XTable from '@vue2-client/base-client/components/common/XTable'
|
|
52
52
|
import XImportExcel from '@vue2-client/base-client/components/common/XImportExcel'
|
|
53
|
-
import { addOrModify,
|
|
54
|
-
import { indexedDB } from '@vue2-client/utils/indexedDB'
|
|
53
|
+
import { addOrModify, getConfig, getConfigByLogic, parseConfig } from '@vue2-client/services/api/common'
|
|
55
54
|
import { mapState } from 'vuex'
|
|
56
|
-
import { post } from '@vue2-client/services/api/restTools'
|
|
57
55
|
|
|
58
56
|
export default {
|
|
59
57
|
name: 'XFormTable',
|
|
@@ -159,42 +157,39 @@ export default {
|
|
|
159
157
|
},
|
|
160
158
|
queryParamsJson: {
|
|
161
159
|
handler () {
|
|
162
|
-
this.
|
|
160
|
+
this.getConfigBySource()
|
|
163
161
|
},
|
|
164
162
|
deep: true
|
|
165
163
|
},
|
|
166
164
|
queryParamsName: {
|
|
167
165
|
handler () {
|
|
168
|
-
this.
|
|
166
|
+
this.getConfig()
|
|
169
167
|
}
|
|
170
168
|
}
|
|
171
169
|
},
|
|
172
170
|
created () {
|
|
173
171
|
if (this.queryParamsName) {
|
|
174
|
-
this.
|
|
172
|
+
this.getConfig()
|
|
175
173
|
} else if (this.queryParamsJson) {
|
|
176
|
-
this.
|
|
174
|
+
this.getConfigBySource()
|
|
177
175
|
}
|
|
178
176
|
},
|
|
179
177
|
methods: {
|
|
180
|
-
|
|
178
|
+
getConfig () {
|
|
181
179
|
this.loading = true
|
|
182
|
-
|
|
183
|
-
indexedDB.getByWeb(this.queryParamsName, url, { configName: this.queryParamsName }, (res) => {
|
|
180
|
+
getConfig(this.queryParamsName, this.serviceName, (res) => {
|
|
184
181
|
this.updateComponents(res)
|
|
185
182
|
})
|
|
186
183
|
},
|
|
187
|
-
|
|
184
|
+
getConfigBySource () {
|
|
188
185
|
this.loading = true
|
|
189
|
-
|
|
190
|
-
post(url, { queryObject: this.queryParamsJson }).then(res => {
|
|
186
|
+
parseConfig(this.queryParamsJson, 'CRUD_FORM', this.serviceName).then(res => {
|
|
191
187
|
this.updateComponents(res, true)
|
|
192
188
|
})
|
|
193
189
|
},
|
|
194
190
|
getColumnJsonByLogic () {
|
|
195
191
|
this.loading = true
|
|
196
|
-
|
|
197
|
-
indexedDB.getByWeb(`${this.logicName}_${JSON.stringify(this.logicParam)}`, url, { logic: this.logicName, logicParam: this.logicParam }, (res) => {
|
|
192
|
+
getConfigByLogic(this.logicName, this.logicParam, this.serviceName, (res) => {
|
|
198
193
|
this.updateComponents(res, true)
|
|
199
194
|
})
|
|
200
195
|
},
|
|
@@ -213,11 +208,11 @@ export default {
|
|
|
213
208
|
title: this.title,
|
|
214
209
|
viewMode: this.viewMode,
|
|
215
210
|
isTableTemp: this.isTableTemp,
|
|
216
|
-
serviceName:
|
|
211
|
+
serviceName: this.serviceName
|
|
217
212
|
})
|
|
218
213
|
this.$refs.xForm.init({
|
|
219
214
|
formItems: res.formJson,
|
|
220
|
-
serviceName:
|
|
215
|
+
serviceName: this.serviceName,
|
|
221
216
|
getDataParams: this.getDataParams
|
|
222
217
|
})
|
|
223
218
|
}
|
|
@@ -249,7 +244,7 @@ export default {
|
|
|
249
244
|
businessType: res.businessType,
|
|
250
245
|
operator: res.currUserName
|
|
251
246
|
}
|
|
252
|
-
addOrModify(requestParameters,
|
|
247
|
+
addOrModify(requestParameters, this.serviceName).then(data => {
|
|
253
248
|
this.$message.success(res.businessType + '成功!')
|
|
254
249
|
this.refreshTable(res.businessType === '新增')
|
|
255
250
|
// commit
|
|
@@ -289,7 +284,7 @@ export default {
|
|
|
289
284
|
formItems: res.formJson,
|
|
290
285
|
viewMode: this.viewMode,
|
|
291
286
|
isTableTemp: this.isTableTemp,
|
|
292
|
-
serviceName:
|
|
287
|
+
serviceName: this.serviceName,
|
|
293
288
|
fixedAddForm: this.fixedAddForm,
|
|
294
289
|
getDataParams: this.getDataParams
|
|
295
290
|
})
|
|
@@ -307,7 +302,7 @@ export default {
|
|
|
307
302
|
formItems: res.formJson,
|
|
308
303
|
viewMode: this.viewMode,
|
|
309
304
|
isTableTemp: this.isTableTemp,
|
|
310
|
-
serviceName:
|
|
305
|
+
serviceName: this.serviceName,
|
|
311
306
|
fixedAddForm: this.fixedAddForm,
|
|
312
307
|
getDataParams: this.getDataParams,
|
|
313
308
|
modifyModelData: modifyModelData
|
|
@@ -161,7 +161,7 @@ export default {
|
|
|
161
161
|
// 是否允许删除
|
|
162
162
|
isDelete: false,
|
|
163
163
|
// 服务名称
|
|
164
|
-
serviceName:
|
|
164
|
+
serviceName: undefined,
|
|
165
165
|
// 选中用于修改的id
|
|
166
166
|
selectId: undefined,
|
|
167
167
|
// 是否为临时表
|
|
@@ -225,7 +225,7 @@ export default {
|
|
|
225
225
|
tableColumns,
|
|
226
226
|
buttonState,
|
|
227
227
|
title,
|
|
228
|
-
serviceName
|
|
228
|
+
serviceName,
|
|
229
229
|
viewMode
|
|
230
230
|
} = params
|
|
231
231
|
this.queryParams = queryParams
|
|
@@ -242,8 +242,8 @@ export default {
|
|
|
242
242
|
}
|
|
243
243
|
},
|
|
244
244
|
methods: {
|
|
245
|
-
|
|
246
|
-
Vue.resetpost(commonApi.
|
|
245
|
+
getConfig () {
|
|
246
|
+
Vue.resetpost(commonApi.getConfig, {str: this.queryParamsName}).then((res) => {
|
|
247
247
|
this.formItemJson = res.formJson
|
|
248
248
|
this.columnItemJson = res.columnJson
|
|
249
249
|
this.loaded = true
|
|
@@ -182,7 +182,7 @@ export default {
|
|
|
182
182
|
},
|
|
183
183
|
// 存储查询配置信息
|
|
184
184
|
saveQueryParams (source) {
|
|
185
|
-
return post('/api/system/logic/updateQueryParamsData', {
|
|
185
|
+
return post('/api/af-system/logic/updateQueryParamsData', {
|
|
186
186
|
id: this.id,
|
|
187
187
|
source: source
|
|
188
188
|
}).then(res => {
|
|
@@ -35,6 +35,8 @@ module.exports = {
|
|
|
35
35
|
},
|
|
36
36
|
footerLinks: [ // 页面底部链接,{link: '链接地址', name: '名称/显示文字', icon: '图标,支持 ant design vue 图标库'}
|
|
37
37
|
],
|
|
38
|
+
// 配置的默认命名空间
|
|
39
|
+
defaultServiceName: 'af-system',
|
|
38
40
|
// 旧系统路径
|
|
39
41
|
iframeSrc: '../singlepage/page.html',
|
|
40
42
|
// 兼容旧版本 V3(最新V3产品) OA(公司OA)
|
|
@@ -86,7 +86,7 @@ export default {
|
|
|
86
86
|
this.institutionDetailVisible = false
|
|
87
87
|
try {
|
|
88
88
|
if (this.$login.f.name) {
|
|
89
|
-
post('/api/system/logic/getTodo', { name: this.$login.f.name }).then(res => {
|
|
89
|
+
post('/api/af-system/logic/getTodo', { name: this.$login.f.name }).then(res => {
|
|
90
90
|
this.backlog = [...res]
|
|
91
91
|
if (this.backlog.length > 0) {
|
|
92
92
|
const key = `open${Date.now()}`
|
|
@@ -81,7 +81,7 @@ export default {
|
|
|
81
81
|
return
|
|
82
82
|
}
|
|
83
83
|
const otherFiles = []
|
|
84
|
-
post('/api/system/logic/getInstitutionDetail', {
|
|
84
|
+
post('/api/af-system/logic/getInstitutionDetail', {
|
|
85
85
|
id: this.institutionId
|
|
86
86
|
}).then(res => {
|
|
87
87
|
res.files.forEach(item => {
|
|
@@ -116,7 +116,7 @@ export default {
|
|
|
116
116
|
a.click()
|
|
117
117
|
},
|
|
118
118
|
confirm_institution () {
|
|
119
|
-
post('/api/system/logic/affirmInstitution', {
|
|
119
|
+
post('/api/af-system/logic/affirmInstitution', {
|
|
120
120
|
data: {
|
|
121
121
|
tobe: [
|
|
122
122
|
{
|
|
@@ -2,24 +2,34 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<create-query
|
|
4
4
|
:visible.sync="visible"
|
|
5
|
-
|
|
5
|
+
:to-edit-json="toEditJson"
|
|
6
6
|
/>
|
|
7
7
|
<create-simple-form-query
|
|
8
8
|
:visible.sync="createSimpleFormVisible"
|
|
9
|
-
|
|
9
|
+
:to-edit-json="toEditSimpleFormJson"
|
|
10
10
|
/>
|
|
11
|
-
<a-
|
|
11
|
+
<a-modal
|
|
12
|
+
:visible="importJsonVisible"
|
|
13
|
+
title="导入JSON配置"
|
|
14
|
+
@cancel="importJsonVisible = false"
|
|
15
|
+
@ok="importJsonHandleOk"
|
|
16
|
+
>
|
|
17
|
+
<a-textarea v-model="importEditJson" placeholder="输入现有的JSON配置"/>
|
|
18
|
+
</a-modal>
|
|
19
|
+
<a-button style="margin-top: 10px;margin-left: 10px;" type="primary" @click="showDrawer">创建查询配置
|
|
12
20
|
</a-button>
|
|
21
|
+
<a-button style="margin-top: 10px;margin-left: 10px;" type="primary" @click="openImportView(1)">导入已有查询配置
|
|
22
|
+
</a-button>
|
|
23
|
+
<br/>
|
|
13
24
|
<a-button style="margin-top: 10px;margin-left: 10px;" type="primary" @click="showSimpleFormQueryParamsDrawer">
|
|
14
|
-
|
|
25
|
+
创建简易表单配置
|
|
26
|
+
</a-button>
|
|
27
|
+
<a-button style="margin-top: 10px;margin-left: 10px;" type="primary" @click="openImportView(2)">导入已有简易表单配置
|
|
15
28
|
</a-button>
|
|
16
|
-
<a-button style="margin-top: 10px;margin-left: 10px;" type="primary" @click="searchReport">请求数据</a-button>
|
|
17
|
-
<!-- <webmeter-analysis-view/>-->
|
|
18
29
|
</div>
|
|
19
30
|
</template>
|
|
20
31
|
|
|
21
32
|
<script>
|
|
22
|
-
import { post } from '@vue2-client/services/api/restTools'
|
|
23
33
|
import CreateQuery from '@vue2-client/base-client/components/common/CreateQuery'
|
|
24
34
|
import CreateSimpleFormQuery from '@vue2-client/base-client/components/common/CreateSimpleFormQuery'
|
|
25
35
|
|
|
@@ -32,7 +42,12 @@ export default {
|
|
|
32
42
|
data () {
|
|
33
43
|
return {
|
|
34
44
|
visible: false,
|
|
35
|
-
createSimpleFormVisible: false
|
|
45
|
+
createSimpleFormVisible: false,
|
|
46
|
+
toEditJson: undefined,
|
|
47
|
+
toEditSimpleFormJson: undefined,
|
|
48
|
+
importJsonVisible: false,
|
|
49
|
+
type: undefined,
|
|
50
|
+
importEditJson: ''
|
|
36
51
|
}
|
|
37
52
|
},
|
|
38
53
|
methods: {
|
|
@@ -42,41 +57,24 @@ export default {
|
|
|
42
57
|
showSimpleFormQueryParamsDrawer () {
|
|
43
58
|
this.createSimpleFormVisible = true
|
|
44
59
|
},
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
'data': {
|
|
49
|
-
'condition': ' 1=1 ',
|
|
50
|
-
'startDate': '2022-11-21 00:00:00',
|
|
51
|
-
'endDate': '2022-11-21 23:59:59',
|
|
52
|
-
'f_orgid': 'f_orgid in (21142)'
|
|
53
|
-
}
|
|
54
|
-
}).then(res => {
|
|
55
|
-
this.$message.success(res)
|
|
56
|
-
}, err => {
|
|
57
|
-
console.error(err)
|
|
58
|
-
})
|
|
60
|
+
openImportView (type) {
|
|
61
|
+
this.type = type
|
|
62
|
+
this.importJsonVisible = true
|
|
59
63
|
},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
importJsonHandleOk () {
|
|
65
|
+
try {
|
|
66
|
+
if (this.type === 1) {
|
|
67
|
+
this.toEditJson = JSON.parse(this.importEditJson)
|
|
68
|
+
this.showDrawer()
|
|
69
|
+
} else {
|
|
70
|
+
this.toEditSimpleFormJson = JSON.parse(this.importEditJson)
|
|
71
|
+
this.showSimpleFormQueryParamsDrawer()
|
|
72
|
+
}
|
|
73
|
+
} catch (e) {
|
|
74
|
+
this.$message.warn('操作失败,输入配置不是JSON格式')
|
|
75
|
+
}
|
|
76
|
+
this.importJsonVisible = false
|
|
69
77
|
},
|
|
70
|
-
// 存储基础表单配置信息
|
|
71
|
-
saveSimpleFormQueryParams (source) {
|
|
72
|
-
return post('/api/system/logic/addOrEditSimpleFormQueryParams', {
|
|
73
|
-
source: source
|
|
74
|
-
}).then(res => {
|
|
75
|
-
this.$message.success('保存基础表单配置成功')
|
|
76
|
-
}, err => {
|
|
77
|
-
console.error(err)
|
|
78
|
-
})
|
|
79
|
-
}
|
|
80
78
|
}
|
|
81
79
|
}
|
|
82
80
|
</script>
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
|
|
53
53
|
<script>
|
|
54
54
|
import { getOrganization, searchFun } from '@vue2-client/base-client/plugins/GetLoginInfoService'
|
|
55
|
-
import {
|
|
55
|
+
import { getConfig } from '@vue2-client/services/api'
|
|
56
56
|
export default {
|
|
57
57
|
// 组织管理
|
|
58
58
|
name: 'orgListManage',
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
created () {
|
|
84
84
|
},
|
|
85
85
|
async mounted () {
|
|
86
|
-
|
|
86
|
+
getConfig('orgListManage', (res) => {
|
|
87
87
|
this.columnsJson = res
|
|
88
88
|
})
|
|
89
89
|
const fun = await getOrganization()
|
|
@@ -195,10 +195,10 @@ export default {
|
|
|
195
195
|
getStockList () {
|
|
196
196
|
this.loading = true
|
|
197
197
|
// 请求仓库列表
|
|
198
|
-
post('/api/system/logic/getFilesStock', {}).then(res => {
|
|
198
|
+
post('/api/af-system/logic/getFilesStock', {}).then(res => {
|
|
199
199
|
this.data = res.sort((a, b) => a.progress - b.progress)
|
|
200
200
|
// 请求仓库列表
|
|
201
|
-
post('/api/system/logic/getFilesColl', {}).then(res => {
|
|
201
|
+
post('/api/af-system/logic/getFilesColl', {}).then(res => {
|
|
202
202
|
this.coll = res
|
|
203
203
|
this.loading = false
|
|
204
204
|
})
|
|
@@ -269,7 +269,7 @@ export default {
|
|
|
269
269
|
},
|
|
270
270
|
submitStock () {
|
|
271
271
|
// 保存仓库信息
|
|
272
|
-
post('/api/system/entity/t_files_manager', this.form).then(res => {
|
|
272
|
+
post('/api/af-system/entity/t_files_manager', this.form).then(res => {
|
|
273
273
|
this.$message.success('提交成功')
|
|
274
274
|
this.visible = false
|
|
275
275
|
this.getStockList()
|
|
@@ -31,6 +31,8 @@ routerResource.operLog = () => import('@vue2-client/pages/system/monitor/operLog
|
|
|
31
31
|
routerResource.submitTicket = () => import('@vue2-client/pages/system/ticket')
|
|
32
32
|
// 系统设置
|
|
33
33
|
routerResource.settings = () => import('@vue2-client/pages/system/settings')
|
|
34
|
+
// 查询配置生成工具
|
|
35
|
+
routerResource.createQuery = () => import('@vue2-client/pages/CreateQueryPage')
|
|
34
36
|
|
|
35
37
|
// 基础路由组件注册
|
|
36
38
|
const routerMap = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const LogDetailsViewApi = {
|
|
2
2
|
// 查询:获取日志详情
|
|
3
|
-
getLogDetails: '/api/system/logic/foreignaidGetLogDetails',
|
|
3
|
+
getLogDetails: '/api/af-system/logic/foreignaidGetLogDetails',
|
|
4
4
|
// 查询:获取日志维护记录
|
|
5
|
-
getLogRecordList: '/api/system/logic/foreignaidGetRecordList',
|
|
5
|
+
getLogRecordList: '/api/af-system/logic/foreignaidGetRecordList',
|
|
6
6
|
// 操作:更新日志状态
|
|
7
|
-
updateLogStatusData: '/api/system/logic/foreignaidUpdateLogStatus'
|
|
7
|
+
updateLogStatusData: '/api/af-system/logic/foreignaidUpdateLogStatus'
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export { LogDetailsViewApi }
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
const TicketDetailsViewApi = {
|
|
2
2
|
// 查询:获取工单流转详情
|
|
3
|
-
getTicketWorkFlowDetails: '/api/system/logic/getTicketWorkFlowDetails',
|
|
3
|
+
getTicketWorkFlowDetails: '/api/af-system/logic/getTicketWorkFlowDetails',
|
|
4
4
|
// 查询:获取工单详情
|
|
5
|
-
getTicketDetails: '/api/system/logic/getTicketDetails',
|
|
5
|
+
getTicketDetails: '/api/af-system/logic/getTicketDetails',
|
|
6
6
|
// 手动关闭工单
|
|
7
|
-
manualCloseTicket: '/api/system/logic/manualCloseTicket',
|
|
7
|
+
manualCloseTicket: '/api/af-system/logic/manualCloseTicket',
|
|
8
8
|
// 转交工单给其他人
|
|
9
|
-
transferTicketToOthers: '/api/system/logic/transferTicketToOthers',
|
|
9
|
+
transferTicketToOthers: '/api/af-system/logic/transferTicketToOthers',
|
|
10
10
|
// 确认工单,开始处理
|
|
11
|
-
confirmTicket: '/api/system/logic/confirmTicket',
|
|
11
|
+
confirmTicket: '/api/af-system/logic/confirmTicket',
|
|
12
12
|
// 查询:获取订单详情用于订单追踪
|
|
13
|
-
getTicketDetailsForUploader: '/api/system/logic/getTicketDetailsForUploader',
|
|
13
|
+
getTicketDetailsForUploader: '/api/af-system/logic/getTicketDetailsForUploader',
|
|
14
14
|
// 更新:将工单优先级增加
|
|
15
|
-
rushTicket: '/api/system/logic/rushTicket',
|
|
15
|
+
rushTicket: '/api/af-system/logic/rushTicket',
|
|
16
16
|
// 客户手动关闭工单
|
|
17
|
-
manualCloseTicketByCustomer: '/api/system/logic/manualCloseTicketByCustomer',
|
|
17
|
+
manualCloseTicketByCustomer: '/api/af-system/logic/manualCloseTicketByCustomer',
|
|
18
18
|
// 在工单提交页面删除照片
|
|
19
|
-
revocationImage: '/api/system/logic/revocationImage',
|
|
19
|
+
revocationImage: '/api/af-system/logic/revocationImage',
|
|
20
20
|
// 在工单提交页面删除照片
|
|
21
|
-
getTicketImages: '/api/system/logic/getTicketImages',
|
|
21
|
+
getTicketImages: '/api/af-system/logic/getTicketImages',
|
|
22
22
|
// 用户填写附加信息时取消了操作,将已上传的照片清空
|
|
23
|
-
removeAllImages: '/api/system/logic/removeAllImages',
|
|
23
|
+
removeAllImages: '/api/af-system/logic/removeAllImages',
|
|
24
24
|
// 提交用户填写附加信息
|
|
25
|
-
AddonDescriptionToTicket: '/api/system/logic/AddonDescriptionToTicket',
|
|
25
|
+
AddonDescriptionToTicket: '/api/af-system/logic/AddonDescriptionToTicket',
|
|
26
26
|
// 获取用户填写附加信息
|
|
27
|
-
getAddonDescription: '/api/system/logic/getAddonDescription',
|
|
27
|
+
getAddonDescription: '/api/af-system/logic/getAddonDescription',
|
|
28
28
|
// 发起售后工单流程
|
|
29
|
-
createTicket: '/api/system/logic/createTicket',
|
|
29
|
+
createTicket: '/api/af-system/logic/createTicket',
|
|
30
30
|
// 查询:获取所有员工名,供前端展示备选项
|
|
31
|
-
getAllEmployeeName: '/api/system/logic/getAllEmployeeName'
|
|
31
|
+
getAllEmployeeName: '/api/af-system/logic/getAllEmployeeName'
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export { TicketDetailsViewApi }
|
|
@@ -5,10 +5,13 @@ import { blobValidate } from '@vue2-client/utils/common'
|
|
|
5
5
|
import errorCode from '@vue2-client/utils/errorCode'
|
|
6
6
|
import { saveAs } from 'file-saver'
|
|
7
7
|
import { post } from '@vue2-client/services/api/restTools'
|
|
8
|
+
import setting from '@vue2-client/store/modules/setting'
|
|
8
9
|
|
|
9
10
|
const commonApi = {
|
|
10
11
|
// 获取表格列配置
|
|
11
12
|
getConfig: 'logic/getLiuliConfiguration',
|
|
13
|
+
// 配置解析
|
|
14
|
+
parseConfig: 'logic/parseConfig',
|
|
12
15
|
// 通用查询
|
|
13
16
|
query: 'logic/commonQuery',
|
|
14
17
|
// 表单查询
|
|
@@ -17,10 +20,6 @@ const commonApi = {
|
|
|
17
20
|
addOrModify: 'logic/commonAddOrModify',
|
|
18
21
|
// 通用删除
|
|
19
22
|
delete: 'logic/commonDelete',
|
|
20
|
-
// 获取字典键列表
|
|
21
|
-
getDictionaryParam: '/api/system/logic/getDictionaryParam',
|
|
22
|
-
// 获取所有员工及其部门的级联菜单数据
|
|
23
|
-
getEmpTree: '/api/system/logic/getEmpTree',
|
|
24
23
|
// 导入数据
|
|
25
24
|
importData: 'logic/importData',
|
|
26
25
|
// 导出数据
|
|
@@ -28,74 +27,122 @@ const commonApi = {
|
|
|
28
27
|
// 下载数据
|
|
29
28
|
download: 'resource/download',
|
|
30
29
|
// 通用上传
|
|
31
|
-
upload: '
|
|
30
|
+
upload: 'resource/upload',
|
|
31
|
+
// 文件实体操作
|
|
32
|
+
fileEntity: 'entity/t_files',
|
|
33
|
+
// 获取所有员工及其部门的级联菜单数据
|
|
34
|
+
getEmpTree: '/api/af-system/logic/getEmpTree',
|
|
32
35
|
}
|
|
33
36
|
|
|
34
|
-
export function getConfigUrl (serviceName =
|
|
37
|
+
export function getConfigUrl (serviceName = setting.state.state.defaultServiceName) {
|
|
35
38
|
return '/api/' + serviceName + '/' + commonApi.getConfig
|
|
36
39
|
}
|
|
37
40
|
|
|
41
|
+
export function parseConfigUrl (serviceName = setting.state.state.defaultServiceName) {
|
|
42
|
+
return '/api/' + serviceName + '/' + commonApi.parseConfig
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* 获取字典键参数
|
|
47
|
+
*/
|
|
48
|
+
export function getDictionaryParam () {
|
|
49
|
+
return post('/api/af-system/logic/getDictionaryParam', {})
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* 根据配置名获取配置内容
|
|
54
|
+
* @param configName 配置名称
|
|
55
|
+
* @param serviceName 命名空间名称
|
|
56
|
+
* @param callback 回调函数
|
|
57
|
+
*/
|
|
58
|
+
export function getConfig (configName, serviceName = setting.state.defaultServiceName, callback) {
|
|
59
|
+
indexedDB.getByWeb(configName, getConfigUrl(serviceName), { configName: configName }, callback)
|
|
60
|
+
}
|
|
61
|
+
|
|
38
62
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @param
|
|
63
|
+
* 调用Logic获取配置内容
|
|
64
|
+
* @param logicName Logic名称
|
|
65
|
+
* @param parameter Logic调用参数
|
|
41
66
|
* @param serviceName 命名空间名称
|
|
42
67
|
* @param callback 回调函数
|
|
43
68
|
*/
|
|
44
|
-
export function
|
|
45
|
-
indexedDB.getByWeb(
|
|
69
|
+
export function getConfigByLogic (logicName, parameter, serviceName = setting.state.defaultServiceName, callback) {
|
|
70
|
+
indexedDB.getByWeb(`${logicName}_${JSON.stringify(parameter)}`, '/api/' + serviceName + '/logic/' + logicName,
|
|
71
|
+
parameter, callback)
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* 配置解析
|
|
76
|
+
* @param configContent 原配置内容
|
|
77
|
+
* @param configType 配置类型
|
|
78
|
+
* @param serviceName 命名空间名称
|
|
79
|
+
*/
|
|
80
|
+
export function parseConfig (configContent, configType, serviceName = setting.state.defaultServiceName) {
|
|
81
|
+
const url = parseConfigUrl(serviceName)
|
|
82
|
+
return post(url, {
|
|
83
|
+
configType: configType,
|
|
84
|
+
configContent: configContent
|
|
85
|
+
})
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* 通用执行业务逻辑
|
|
90
|
+
*/
|
|
91
|
+
export function runLogic (logicName, parameter, serviceName = setting.state.defaultServiceName) {
|
|
92
|
+
return post('/api/' + serviceName + '/logic/' + logicName, parameter)
|
|
46
93
|
}
|
|
47
94
|
|
|
48
95
|
/**
|
|
49
96
|
* 通用查询
|
|
50
97
|
*/
|
|
51
|
-
export function query (parameter, serviceName =
|
|
98
|
+
export function query (parameter, serviceName = setting.state.defaultServiceName) {
|
|
52
99
|
return post('/api/' + serviceName + '/' + commonApi.query, parameter, null)
|
|
53
100
|
}
|
|
54
101
|
|
|
55
102
|
/**
|
|
56
103
|
* 通用表单查询
|
|
57
104
|
*/
|
|
58
|
-
export function queryWithResource (parameter, serviceName =
|
|
105
|
+
export function queryWithResource (parameter, serviceName = setting.state.defaultServiceName) {
|
|
59
106
|
return post('/api/' + serviceName + '/' + commonApi.queryWithResource, parameter, null)
|
|
60
107
|
}
|
|
61
108
|
|
|
62
109
|
/**
|
|
63
110
|
* 通用新增/修改
|
|
64
111
|
*/
|
|
65
|
-
export function addOrModify (parameter, serviceName =
|
|
112
|
+
export function addOrModify (parameter, serviceName = setting.state.defaultServiceName) {
|
|
66
113
|
return post('/api/' + serviceName + '/' + commonApi.addOrModify, parameter, null)
|
|
67
114
|
}
|
|
68
115
|
|
|
69
116
|
/**
|
|
70
117
|
* 通用删除
|
|
71
118
|
*/
|
|
72
|
-
export function remove (parameter, serviceName =
|
|
119
|
+
export function remove (parameter, serviceName = setting.state.defaultServiceName) {
|
|
73
120
|
return post('/api/' + serviceName + '/' + commonApi.delete, parameter, null)
|
|
74
121
|
}
|
|
75
122
|
|
|
76
123
|
/**
|
|
77
124
|
* 通用导入
|
|
78
125
|
*/
|
|
79
|
-
export function importData (parameter, serviceName =
|
|
126
|
+
export function importData (parameter, serviceName = setting.state.defaultServiceName) {
|
|
80
127
|
return post('/api/' + serviceName + '/' + commonApi.importData, parameter, null)
|
|
81
128
|
}
|
|
82
129
|
|
|
83
130
|
/**
|
|
84
131
|
* 通用导出
|
|
85
132
|
*/
|
|
86
|
-
export function exportData (parameter, serviceName =
|
|
133
|
+
export function exportData (parameter, serviceName = setting.state.defaultServiceName) {
|
|
87
134
|
return post('/api/' + serviceName + '/' + commonApi.exportData, parameter, null)
|
|
88
135
|
}
|
|
89
136
|
|
|
90
137
|
/**
|
|
91
138
|
* 通用上传
|
|
92
139
|
*/
|
|
93
|
-
export function upload (parameter, serviceName =
|
|
140
|
+
export function upload (parameter, serviceName = setting.state.defaultServiceName, config) {
|
|
94
141
|
return post('/api/' + serviceName + '/' + commonApi.upload, parameter, config)
|
|
95
142
|
}
|
|
96
143
|
|
|
97
144
|
// 通用下载
|
|
98
|
-
export function download (parameter, filename, serviceName =
|
|
145
|
+
export function download (parameter, filename, serviceName = setting.state.defaultServiceName) {
|
|
99
146
|
const notificationKey = 'download'
|
|
100
147
|
notification.open({
|
|
101
148
|
key: notificationKey,
|
|
@@ -134,4 +181,9 @@ export function download (parameter, filename, serviceName = 'system') {
|
|
|
134
181
|
})
|
|
135
182
|
}
|
|
136
183
|
|
|
184
|
+
// 文件删除
|
|
185
|
+
export function fileDelete (parameter, serviceName = setting.state.defaultServiceName) {
|
|
186
|
+
return post('/api/' + serviceName + '/' + commonApi.fileEntity, parameter)
|
|
187
|
+
}
|
|
188
|
+
|
|
137
189
|
export { commonApi }
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const CommonTempTable = {
|
|
2
2
|
// 初始化子表
|
|
3
|
-
initApplySubTable: '/api/system/logic/initApplySubTable',
|
|
3
|
+
initApplySubTable: '/api/af-system/logic/initApplySubTable',
|
|
4
4
|
// 创建临时表,根据配置文件动态生成
|
|
5
|
-
createTempTable: '/api/system/logic/createTempTable',
|
|
5
|
+
createTempTable: '/api/af-system/logic/createTempTable',
|
|
6
6
|
// 向临时表中插入数据
|
|
7
|
-
insertDataToTempTable: '/api/system/logic/insertDataToTempTable'
|
|
7
|
+
insertDataToTempTable: '/api/af-system/logic/insertDataToTempTable'
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export { CommonTempTable }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { commonApi,
|
|
1
|
+
import { commonApi, getConfig, query, addOrModify, remove } from '@vue2-client/services/api/common'
|
|
2
2
|
import { QueryParamsDetailsViewApi } from '@vue2-client/services/api/QueryParamsDetailsViewApi'
|
|
3
3
|
import { DictionaryDetailsViewApi } from '@vue2-client/services/api/DictionaryDetailsViewApi'
|
|
4
4
|
import { LogDetailsViewApi } from '@vue2-client/services/api/LogDetailsViewApi'
|
|
@@ -7,7 +7,7 @@ import { get, post } from '@vue2-client/services/api/restTools'
|
|
|
7
7
|
import { TicketDetailsViewApi } from '@vue2-client/services/api/TicketDetailsViewApi'
|
|
8
8
|
|
|
9
9
|
export {
|
|
10
|
-
commonApi,
|
|
10
|
+
commonApi, getConfig, query, addOrModify, remove,
|
|
11
11
|
DictionaryDetailsViewApi,
|
|
12
12
|
LogDetailsViewApi,
|
|
13
13
|
manageApi,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const manageApi = {
|
|
2
2
|
// 查询:获取字典键列表
|
|
3
|
-
getDictionaryValue: '/api/system/logic/getDictionaryValue',
|
|
3
|
+
getDictionaryValue: '/api/af-system/logic/getDictionaryValue',
|
|
4
4
|
// 查询:获取省市区街道三级分类
|
|
5
|
-
getDivisionsOhChina: '/api/system/logic/getDivisionsOhChina'
|
|
5
|
+
getDivisionsOhChina: '/api/af-system/logic/getDivisionsOhChina'
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
export { manageApi }
|
package/vue.config.js
CHANGED