新 申请流程
This commit is contained in:
parent
273a7c98c8
commit
ded027bb64
|
@ -0,0 +1,12 @@
|
||||||
|
/*
|
||||||
|
* @Author: hisense.liangjunhua
|
||||||
|
* @Date: 2022-08-23 10:30:11
|
||||||
|
* @LastEditors: hisense.liangjunhua
|
||||||
|
* @LastEditTime: 2022-08-23 10:31:30
|
||||||
|
* @Description: 告诉大家这是什么
|
||||||
|
*/
|
||||||
|
const returnLocationStr = () => {
|
||||||
|
return 'qingdao'
|
||||||
|
}
|
||||||
|
|
||||||
|
export default returnLocationStr
|
|
@ -109,6 +109,7 @@
|
||||||
<script>
|
<script>
|
||||||
import mixinViewModule from '@/mixins/view-module'
|
import mixinViewModule from '@/mixins/view-module'
|
||||||
import processModule from '@/mixins/process-module'
|
import processModule from '@/mixins/process-module'
|
||||||
|
import returnLocationStr from '@/utils/location'
|
||||||
import qs from 'qs'
|
import qs from 'qs'
|
||||||
export default {
|
export default {
|
||||||
mixins: [mixinViewModule, processModule],
|
mixins: [mixinViewModule, processModule],
|
||||||
|
@ -122,7 +123,7 @@ export default {
|
||||||
},
|
},
|
||||||
dataForm: {
|
dataForm: {
|
||||||
processDefinitionId: '',
|
processDefinitionId: '',
|
||||||
processDefinitionKey: 'abilityprocess_v2'
|
processDefinitionKey: returnLocationStr() == 'qingdao' ? 'abilityprocess_v3' : 'abilityprocess_v2'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author: hisense.liangjunhua
|
* @Author: hisense.liangjunhua
|
||||||
* @Date: 2022-06-27 11:27:22
|
* @Date: 2022-06-27 11:27:22
|
||||||
* @LastEditors: hisense.liangjunhua
|
* @LastEditors: hisense.liangjunhua
|
||||||
* @LastEditTime: 2022-07-25 09:39:01
|
* @LastEditTime: 2022-08-23 10:37:29
|
||||||
* @Description: 能力申请
|
* @Description: 能力申请
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
|
@ -121,6 +121,7 @@
|
||||||
import bus from '@/views/bus.js'
|
import bus from '@/views/bus.js'
|
||||||
import mixinViewModule from '@/mixins/view-module'
|
import mixinViewModule from '@/mixins/view-module'
|
||||||
import processModule from '@/mixins/process-module'
|
import processModule from '@/mixins/process-module'
|
||||||
|
import returnLocationStr from '@/utils/location'
|
||||||
export default {
|
export default {
|
||||||
mixins: [mixinViewModule, processModule],
|
mixins: [mixinViewModule, processModule],
|
||||||
data () {
|
data () {
|
||||||
|
@ -135,7 +136,7 @@ export default {
|
||||||
dataForm: {
|
dataForm: {
|
||||||
taskName: '',
|
taskName: '',
|
||||||
taskId: '',
|
taskId: '',
|
||||||
processDefinitionKey: 'abilityprocess_v2'
|
processDefinitionKey: returnLocationStr() == 'qingdao' ? 'abilityprocess_v3' : 'abilityprocess_v2'
|
||||||
},
|
},
|
||||||
processInstanceId: ''
|
processInstanceId: ''
|
||||||
}
|
}
|
||||||
|
@ -144,7 +145,7 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
// 处理
|
// 处理
|
||||||
taskHandle (row) {
|
taskHandle (row) {
|
||||||
console.log('row======================>', row, this.forwardHandleUrl)
|
console.log('row======================>', row, this.forwardHandleUrl, this.dataForm.processDefinitionKey)
|
||||||
if (!row.businessKey) {
|
if (!row.businessKey) {
|
||||||
return this.$message.error(this.$t('task.businessKeyError'))
|
return this.$message.error(this.$t('task.businessKeyError'))
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author: hisense.wuhongjian
|
* @Author: hisense.wuhongjian
|
||||||
* @Date: 2020-07-07 16:03:23
|
* @Date: 2020-07-07 16:03:23
|
||||||
* @LastEditors: hisense.liangjunhua
|
* @LastEditors: hisense.liangjunhua
|
||||||
* @LastEditTime: 2022-08-19 09:56:27
|
* @LastEditTime: 2022-08-22 18:21:31
|
||||||
* @Description: 数据资源参数配置
|
* @Description: 数据资源参数配置
|
||||||
*/
|
*/
|
||||||
//const newLocation = 'qingdao'
|
//const newLocation = 'qingdao'
|
||||||
|
|
|
@ -2,10 +2,11 @@
|
||||||
* @Author: hisense.wuhongjian
|
* @Author: hisense.wuhongjian
|
||||||
* @Date: 2022-04-01 19:19:40
|
* @Date: 2022-04-01 19:19:40
|
||||||
* @LastEditors: hisense.liangjunhua
|
* @LastEditors: hisense.liangjunhua
|
||||||
* @LastEditTime: 2022-08-13 14:54:04
|
* @LastEditTime: 2022-08-23 09:37:58
|
||||||
* @Description: 告诉大家这是什么
|
* @Description: 告诉大家这是什么
|
||||||
*/
|
*/
|
||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
import returnLocationStr from '@/utils/location'
|
||||||
|
|
||||||
export function selectDicStoreAll(params) {
|
export function selectDicStoreAll(params) {
|
||||||
return request({
|
return request({
|
||||||
|
@ -113,16 +114,30 @@ export function lastestPage(params) {
|
||||||
|
|
||||||
// 提交申请
|
// 提交申请
|
||||||
export function submitApply(data) {
|
export function submitApply(data) {
|
||||||
|
const newLocation = returnLocationStr()
|
||||||
|
let url = ''
|
||||||
|
if (newLocation == 'qingdao') {
|
||||||
|
url = '/ability/center/v3/apply'
|
||||||
|
} else {
|
||||||
|
url = '/ability/center/v2/apply'
|
||||||
|
}
|
||||||
return request({
|
return request({
|
||||||
url: '/ability/center/v2/apply',
|
url: url,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data,
|
data,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 提交申请
|
// 全部应用提交申请
|
||||||
export function applyAllApplication(data) {
|
export function applyAllApplication(data) {
|
||||||
|
const newLocation = returnLocationStr()
|
||||||
|
let url = ''
|
||||||
|
if (newLocation == 'qingdao') {
|
||||||
|
url = '/ability/center/v3/applyAllApplication'
|
||||||
|
} else {
|
||||||
|
url = '/ability/center/v2/applyAllApplication'
|
||||||
|
}
|
||||||
return request({
|
return request({
|
||||||
url: '/ability/center/v2/applyAllApplication',
|
url: url,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data,
|
data,
|
||||||
})
|
})
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
/*
|
||||||
|
* @Author: hisense.liangjunhua
|
||||||
|
* @Date: 2022-08-22 18:22:16
|
||||||
|
* @LastEditors: hisense.liangjunhua
|
||||||
|
* @LastEditTime: 2022-08-23 09:31:02
|
||||||
|
* @Description: 告诉大家这是什么
|
||||||
|
*/
|
||||||
|
|
||||||
|
const returnLocationStr = () => {
|
||||||
|
return 'qingdao'
|
||||||
|
}
|
||||||
|
|
||||||
|
export default returnLocationStr
|
Loading…
Reference in New Issue