|
@@ -81,11 +81,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- taskCenterData: [
|
|
|
- {
|
|
|
- assigneeNames: '22222'
|
|
|
- }
|
|
|
- ],
|
|
|
+ taskCenterData: [],
|
|
|
workflowVisible: false,
|
|
|
iframeURL: '',
|
|
|
page:{
|
|
@@ -122,30 +118,29 @@ export default {
|
|
|
this.iframeURL = 'http://10.65.78.23:8080/agilebpm-ui/bpm/instance/instanceImageDialog.html?instanceId='+row.instId+'&defId='+row.defId+'&taskId='+row.taskId+'&iamCode='+window.localStorage.getItem('code')
|
|
|
},
|
|
|
taskProcess(row) {
|
|
|
- this.$refs.taskApplicationFrom.init(row)
|
|
|
- // let that = this
|
|
|
- // let params = {
|
|
|
- // id: row.instId,
|
|
|
- // iamCode: window.localStorage.getItem('code')
|
|
|
- // }
|
|
|
- // apiPostgetInstanceAndChildren(params).then(datas =>{
|
|
|
- // if (datas && datas.data) {
|
|
|
- // let allData = datas.data.data.bpmInstance
|
|
|
- // let keyId = datas.data.data.bpmInstance.bizKey
|
|
|
- // let taskDefKey = datas.data.data.bpmInstance.defKey
|
|
|
- // if (taskDefKey === 'bbbmyjzbjh') {
|
|
|
- // that.$refs.taskCenterdeptEvl.init(row, keyId, allData)
|
|
|
- // } else if(taskDefKey === 'bbbmyjzbkh'){
|
|
|
- // that.$refs.taskCenterdeptbusinessEvl.init(row, keyId, allData)
|
|
|
- // } else if(taskDefKey === 'jxjgkhsb'){
|
|
|
- // that.$refs.taskApplicationFrom.init(row, keyId)
|
|
|
- // } else if(taskDefKey === 'yddwkplc' || taskDefKey === 'jddwkplc' || taskDefKey === 'nddwkplc') {
|
|
|
- // that.$refs.taskCenterEvl.init(row, allData)
|
|
|
- // } else if (taskDefKey === 'dwkpmbqd' || taskDefKey === 'dwkpmbxd') {
|
|
|
- // that.$refs.taskEvaluationStart.init(row)
|
|
|
- // }
|
|
|
- // }
|
|
|
- // })
|
|
|
+ let that = this
|
|
|
+ let params = {
|
|
|
+ id: row.instId,
|
|
|
+ iamCode: window.localStorage.getItem('code')
|
|
|
+ }
|
|
|
+ apiPostgetInstanceAndChildren(params).then(datas =>{
|
|
|
+ if (datas && datas.data) {
|
|
|
+ let allData = datas.data.data.bpmInstance
|
|
|
+ let keyId = datas.data.data.bpmInstance.bizKey
|
|
|
+ let taskDefKey = datas.data.data.bpmInstance.defKey
|
|
|
+ if (taskDefKey === 'bbbmyjzbjh') {
|
|
|
+ that.$refs.taskCenterdeptEvl.init(row, keyId, allData)
|
|
|
+ } else if(taskDefKey === 'bbbmyjzbkh'){
|
|
|
+ that.$refs.taskCenterdeptbusinessEvl.init(row, keyId, allData)
|
|
|
+ } else if(taskDefKey === 'jxjgkhsb'){
|
|
|
+ that.$refs.taskApplicationFrom.init(row, keyId)
|
|
|
+ } else if(taskDefKey === 'yddwkplc' || taskDefKey === 'jddwkplc' || taskDefKey === 'nddwkplc') {
|
|
|
+ that.$refs.taskCenterEvl.init(row, allData)
|
|
|
+ } else if (taskDefKey === 'dwkpmbqd' || taskDefKey === 'dwkpmbxd') {
|
|
|
+ that.$refs.taskEvaluationStart.init(row)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
rowClick(selection, row) {
|
|
|
this.changeDateSelect = selection
|