工作台会客厅跳转 能力挂接页面 部门过滤
This commit is contained in:
parent
18dbbfc42d
commit
6270f3bf6d
|
@ -47,7 +47,17 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 获取流程定义的表单路由配置信息
|
// 获取流程定义的表单路由配置信息
|
||||||
getProcDefRouteSet (data, callback) {
|
getProcDefRouteSet (data, callback, str) {
|
||||||
|
if (data.resourceName && !data.processDefinitionId) {
|
||||||
|
switch (str) {
|
||||||
|
case '待办':
|
||||||
|
this.$router.push({ name: 'activiti-RoomExamineAdmin' })
|
||||||
|
break
|
||||||
|
case '已办':
|
||||||
|
this.$router.push({ name: 'activiti-RoomExamineAdminDone' })
|
||||||
|
break
|
||||||
|
}
|
||||||
|
} else {
|
||||||
this.$http.get(`/act/process/getProcDefBizRoute/${data.processDefinitionId}`).then(({ data: res }) => {
|
this.$http.get(`/act/process/getProcDefBizRoute/${data.processDefinitionId}`).then(({ data: res }) => {
|
||||||
if (res.code !== 0) {
|
if (res.code !== 0) {
|
||||||
return this.$message.error(res.msg)
|
return this.$message.error(res.msg)
|
||||||
|
@ -61,6 +71,7 @@ export default {
|
||||||
}
|
}
|
||||||
callback(param)
|
callback(param)
|
||||||
}).catch(() => { })
|
}).catch(() => { })
|
||||||
|
}
|
||||||
},
|
},
|
||||||
getProcDefBizRouteAndProcessInstance (params, callback) {
|
getProcDefBizRouteAndProcessInstance (params, callback) {
|
||||||
this.$http.get('/act/process/getProcDefBizRouteAndProcessInstance', {
|
this.$http.get('/act/process/getProcDefBizRouteAndProcessInstance', {
|
||||||
|
|
|
@ -288,7 +288,8 @@ export default {
|
||||||
getDataListIsPage: true,
|
getDataListIsPage: true,
|
||||||
exportURL: '/ability/bsabilityai/export',
|
exportURL: '/ability/bsabilityai/export',
|
||||||
deleteURL: '/resource/delete',
|
deleteURL: '/resource/delete',
|
||||||
deleteIsBatch: true
|
deleteIsBatch: true,
|
||||||
|
createdIsNeed: false
|
||||||
},
|
},
|
||||||
disabled: false,
|
disabled: false,
|
||||||
sceneArr: dictionaries.sceneArr,
|
sceneArr: dictionaries.sceneArr,
|
||||||
|
@ -300,7 +301,8 @@ export default {
|
||||||
infoList: [],
|
infoList: [],
|
||||||
delFlag: 0,
|
delFlag: 0,
|
||||||
type: '组件服务',
|
type: '组件服务',
|
||||||
name: ''
|
name: '',
|
||||||
|
deptIds: []
|
||||||
},
|
},
|
||||||
// qp: false,
|
// qp: false,
|
||||||
// 关联应用弹窗
|
// 关联应用弹窗
|
||||||
|
@ -326,8 +328,12 @@ export default {
|
||||||
this.dataForm.name = ''
|
this.dataForm.name = ''
|
||||||
this.dataForm.type = '组件服务'
|
this.dataForm.type = '组件服务'
|
||||||
this.$http.get('/sys/user/info').then(res => {
|
this.$http.get('/sys/user/info').then(res => {
|
||||||
console.log('res', res.data.data)
|
console.log('res', res.data.data, !res.data.data.superAdmin, this.$store.state.user.roleIdList)
|
||||||
this.superAdmin = res.data.data.superAdmin
|
this.superAdmin = res.data.data.superAdmin
|
||||||
|
if (!(res.data.data.superAdmin || this.$store.state.user.roleIdList.indexOf('运维管理员') !== -1)) {
|
||||||
|
this.dataForm.deptIds = [res.data.data.deptId]
|
||||||
|
}
|
||||||
|
this.query()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
@ -391,7 +397,8 @@ export default {
|
||||||
infoList: [],
|
infoList: [],
|
||||||
delFlag: 0,
|
delFlag: 0,
|
||||||
type: '组件服务',
|
type: '组件服务',
|
||||||
name: ''
|
name: '',
|
||||||
|
deptIds: this.dataForm.deptIds
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
|
@ -546,7 +553,8 @@ export default {
|
||||||
infoList: [],
|
infoList: [],
|
||||||
delFlag: 0,
|
delFlag: 0,
|
||||||
type: '组件服务',
|
type: '组件服务',
|
||||||
name: names
|
name: names,
|
||||||
|
deptIds: this.dataForm.deptIds
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
|
|
|
@ -249,7 +249,8 @@ export default {
|
||||||
getDataListIsPage: true,
|
getDataListIsPage: true,
|
||||||
exportURL: '/ability/bsabilityai/export',
|
exportURL: '/ability/bsabilityai/export',
|
||||||
deleteURL: '/resource/delete',
|
deleteURL: '/resource/delete',
|
||||||
deleteIsBatch: true
|
deleteIsBatch: true,
|
||||||
|
createdIsNeed: false
|
||||||
},
|
},
|
||||||
disabled: false,
|
disabled: false,
|
||||||
sceneArr: dictionaries.sceneArr,
|
sceneArr: dictionaries.sceneArr,
|
||||||
|
@ -260,7 +261,8 @@ export default {
|
||||||
creator: '',
|
creator: '',
|
||||||
selectType: 0,
|
selectType: 0,
|
||||||
delFlag: 0,
|
delFlag: 0,
|
||||||
type: '应用资源'
|
type: '应用资源',
|
||||||
|
deptId: ''
|
||||||
},
|
},
|
||||||
qp: false,
|
qp: false,
|
||||||
relateApplicationResourceVisible: false,
|
relateApplicationResourceVisible: false,
|
||||||
|
@ -297,6 +299,11 @@ export default {
|
||||||
this.$http.get('/sys/user/info').then(res => {
|
this.$http.get('/sys/user/info').then(res => {
|
||||||
console.log('res', res.data.data)
|
console.log('res', res.data.data)
|
||||||
this.superAdmin = res.data.data.superAdmin
|
this.superAdmin = res.data.data.superAdmin
|
||||||
|
this.superAdmin = res.data.data.superAdmin
|
||||||
|
if (!(res.data.data.superAdmin || this.$store.state.user.roleIdList.indexOf('运维管理员') !== -1)) {
|
||||||
|
this.dataForm.deptId = [res.data.data.deptId]
|
||||||
|
}
|
||||||
|
this.query()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
@ -319,7 +326,8 @@ export default {
|
||||||
delFlag: 0,
|
delFlag: 0,
|
||||||
creator: '',
|
creator: '',
|
||||||
type: '应用资源',
|
type: '应用资源',
|
||||||
name: ''
|
name: '',
|
||||||
|
deptIds: this.dataForm.deptId
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
|
@ -405,7 +413,8 @@ export default {
|
||||||
creator: '',
|
creator: '',
|
||||||
selectType: 0,
|
selectType: 0,
|
||||||
delFlag: 0,
|
delFlag: 0,
|
||||||
name: names
|
name: names,
|
||||||
|
deptIds: this.dataForm.deptId
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
|
|
|
@ -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: Light
|
* @LastEditors: Light
|
||||||
* @LastEditTime: 2022-12-06 10:18:28
|
* @LastEditTime: 2022-12-15 10:28:03
|
||||||
* @Description: 能力申请
|
* @Description: 能力申请
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
|
@ -83,11 +83,22 @@
|
||||||
<!-- <el-table-column prop="businessKey" :label="$t('process.businessKey')" header-align="center" align="center"></el-table-column>
|
<!-- <el-table-column prop="businessKey" :label="$t('process.businessKey')" header-align="center" align="center"></el-table-column>
|
||||||
<el-table-column prop="processInstanceId" :label="$t('running.id')" header-align="center" align="center"></el-table-column> -->
|
<el-table-column prop="processInstanceId" :label="$t('running.id')" header-align="center" align="center"></el-table-column> -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
label="当前审核人"
|
||||||
|
header-align="center"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{
|
||||||
|
scope.row.assigneeName + (scope.row.synergism ? '('+scope.row.auditTeamName+')':'')
|
||||||
|
}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- <el-table-column
|
||||||
prop="processDefinitionName"
|
prop="processDefinitionName"
|
||||||
:label="$t('process.processDefinitionName')"
|
:label="$t('process.processDefinitionName')"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
></el-table-column>
|
></el-table-column> -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="taskName"
|
prop="taskName"
|
||||||
:label="$t('process.taskName')"
|
:label="$t('process.taskName')"
|
||||||
|
|
|
@ -129,9 +129,9 @@ export default {
|
||||||
data.taskName = name
|
data.taskName = name
|
||||||
data.activityId = data.startUserId
|
data.activityId = data.startUserId
|
||||||
if (nameSwitch === '待办') {
|
if (nameSwitch === '待办') {
|
||||||
this.getProcDefRouteSet(item, this.forwardHandleUrl)
|
this.getProcDefRouteSet(item, this.forwardHandleUrl, '待办')
|
||||||
} else {
|
} else {
|
||||||
this.getProcDefRouteSet(item, this.forwardDetail)
|
this.getProcDefRouteSet(item, this.forwardDetail, '已办')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
formatNum (num) {
|
formatNum (num) {
|
||||||
|
|
Loading…
Reference in New Issue