vue2-client 1.18.59 → 1.18.61
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/PersonSetting/PersonSetting.vue +8 -2
- package/src/base-client/components/index.js +0 -6
- package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +5 -1
- package/src/base-client/plugins/AppData.js +10 -5
- package/src/main.js +1 -1
- package/src/mock/user/routes.js +1 -1
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue +8 -3
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandleReso.vue +12 -10
- package/src/router/async/config.async.js +0 -1
- package/src/services/api/common.js +0 -2
- package/src/services/api/index.js +0 -2
- package/src/base-client/components/common/CreateQuery/CreateQuery.vue +0 -669
- package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +0 -1014
- package/src/base-client/components/common/CreateQuery/index.js +0 -3
- package/src/base-client/components/common/CreateQuery/index.md +0 -42
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +0 -452
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +0 -511
- package/src/base-client/components/common/CreateSimpleFormQuery/index.js +0 -3
- package/src/base-client/components/common/CreateSimpleFormQuery/index.md +0 -42
- package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +0 -166
- package/src/base-client/components/common/FormGroupQuery/index.js +0 -3
- package/src/base-client/components/common/FormGroupQuery/index.md +0 -43
- package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +0 -281
- package/src/base-client/components/system/QueryParamsDetailsView/index.js +0 -3
- package/src/services/api/QueryParamsDetailsViewApi.js +0 -6
package/package.json
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
</template>
|
|
50
50
|
|
|
51
51
|
<script>
|
|
52
|
-
import {
|
|
52
|
+
import { post } from '@vue2-client/services/api'
|
|
53
53
|
|
|
54
54
|
const departments = ['运维部', '项目部', '项目一部', '项目二部', '开发部', '售后部', '办公室', '管理员', '软件工程部', 'IC卡部', '销售部']
|
|
55
55
|
|
|
@@ -97,7 +97,13 @@ export default {
|
|
|
97
97
|
watch: {},
|
|
98
98
|
components: {},
|
|
99
99
|
created () {
|
|
100
|
-
|
|
100
|
+
let api
|
|
101
|
+
if (this.compatible === 'OA') {
|
|
102
|
+
api = '/api/af-system/logic/getEmpTree'
|
|
103
|
+
} else {
|
|
104
|
+
api = '/api/af-oa/logic/getEmpTree'
|
|
105
|
+
}
|
|
106
|
+
post(api, {}).then(res => {
|
|
101
107
|
this.sourceTreeData = res
|
|
102
108
|
})
|
|
103
109
|
},
|
|
@@ -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
|
|
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
|
|
90
|
-
|
|
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 '
|
|
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'
|
package/src/mock/user/routes.js
CHANGED
|
@@ -32,7 +32,7 @@ const router = [{
|
|
|
32
32
|
// },
|
|
33
33
|
// {
|
|
34
34
|
// router: 'system',
|
|
35
|
-
// children: ['dictionaryManage', 'queryParamsManage', 'customerManage', 'safeguardSearchLog', 'runtime'
|
|
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'
|
|
1127
|
-
|
|
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
|
-
<
|
|
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'
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
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
|
-
|
|
795
|
-
|
|
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]
|
|
@@ -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
|
}
|