新 申请流程

This commit is contained in:
a0049873 2022-08-23 13:59:43 +08:00
parent 273a7c98c8
commit ded027bb64
6 changed files with 51 additions and 9 deletions

View File

@ -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

View File

@ -109,6 +109,7 @@
<script>
import mixinViewModule from '@/mixins/view-module'
import processModule from '@/mixins/process-module'
import returnLocationStr from '@/utils/location'
import qs from 'qs'
export default {
mixins: [mixinViewModule, processModule],
@ -122,7 +123,7 @@ export default {
},
dataForm: {
processDefinitionId: '',
processDefinitionKey: 'abilityprocess_v2'
processDefinitionKey: returnLocationStr() == 'qingdao' ? 'abilityprocess_v3' : 'abilityprocess_v2'
}
}
},

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-06-27 11:27:22
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-07-25 09:39:01
* @LastEditTime: 2022-08-23 10:37:29
* @Description: 能力申请
-->
<template>
@ -121,6 +121,7 @@
import bus from '@/views/bus.js'
import mixinViewModule from '@/mixins/view-module'
import processModule from '@/mixins/process-module'
import returnLocationStr from '@/utils/location'
export default {
mixins: [mixinViewModule, processModule],
data () {
@ -135,7 +136,7 @@ export default {
dataForm: {
taskName: '',
taskId: '',
processDefinitionKey: 'abilityprocess_v2'
processDefinitionKey: returnLocationStr() == 'qingdao' ? 'abilityprocess_v3' : 'abilityprocess_v2'
},
processInstanceId: ''
}
@ -144,7 +145,7 @@ export default {
methods: {
//
taskHandle (row) {
console.log('row======================>', row, this.forwardHandleUrl)
console.log('row======================>', row, this.forwardHandleUrl, this.dataForm.processDefinitionKey)
if (!row.businessKey) {
return this.$message.error(this.$t('task.businessKeyError'))
}

View File

@ -2,7 +2,7 @@
* @Author: hisense.wuhongjian
* @Date: 2020-07-07 16:03:23
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-08-19 09:56:27
* @LastEditTime: 2022-08-22 18:21:31
* @Description: 数据资源参数配置
*/
//const newLocation = 'qingdao'

View File

@ -2,10 +2,11 @@
* @Author: hisense.wuhongjian
* @Date: 2022-04-01 19:19:40
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-08-13 14:54:04
* @LastEditTime: 2022-08-23 09:37:58
* @Description: 告诉大家这是什么
*/
import request from '@/utils/request'
import returnLocationStr from '@/utils/location'
export function selectDicStoreAll(params) {
return request({
@ -113,16 +114,30 @@ export function lastestPage(params) {
//
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({
url: '/ability/center/v2/apply',
url: url,
method: 'post',
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({
url: '/ability/center/v2/applyAllApplication',
url: url,
method: 'post',
data,
})

View File

@ -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