|
@@ -76,7 +76,9 @@
|
|
/>
|
|
/>
|
|
<div>
|
|
<div>
|
|
<div class="table-title">流程追踪</div>
|
|
<div class="table-title">流程追踪</div>
|
|
- <Table :list="lables"></Table>
|
|
|
|
|
|
+ <div v-if="abc == true">
|
|
|
|
+ <Table :list="lables"></Table>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<div v-if="destroy">
|
|
<div v-if="destroy">
|
|
@@ -98,7 +100,7 @@
|
|
<WorkflowEntrance
|
|
<WorkflowEntrance
|
|
:list="fromList"
|
|
:list="fromList"
|
|
v-else
|
|
v-else
|
|
- :lastManList='lastManList'
|
|
|
|
|
|
+ :lastManList="lastManList"
|
|
@beforeClose="beforeClose"
|
|
@beforeClose="beforeClose"
|
|
:requestForm="requestForm"
|
|
:requestForm="requestForm"
|
|
/>
|
|
/>
|
|
@@ -159,7 +161,7 @@ export default {
|
|
buttonStatus: true,
|
|
buttonStatus: true,
|
|
copyStatus: false,
|
|
copyStatus: false,
|
|
dialogTitle: "",
|
|
dialogTitle: "",
|
|
- disabled: false,
|
|
|
|
|
|
+ disabled: true,
|
|
destroy: false,
|
|
destroy: false,
|
|
//分页数据
|
|
//分页数据
|
|
totalPage: "1", //默认第一页
|
|
totalPage: "1", //默认第一页
|
|
@@ -189,8 +191,8 @@ export default {
|
|
processDefinitionKey: "request_form_process",
|
|
processDefinitionKey: "request_form_process",
|
|
},
|
|
},
|
|
requestForm: {
|
|
requestForm: {
|
|
- fresourceId: "0d94de8a-0281-11ed-a302-4ae7da54db39", // 本地环境
|
|
|
|
- // fresourceId: "bf79721c-33f3-11ed-ba0b-00505687dcd3", //测试环境
|
|
|
|
|
|
+ // fresourceId: "0d94de8a-0281-11ed-a302-4ae7da54db39", // 本地环境
|
|
|
|
+ fresourceId: "bf79721c-33f3-11ed-ba0b-00505687dcd3", //测试环境
|
|
processDefinitionKey: "request_form_process",
|
|
processDefinitionKey: "request_form_process",
|
|
},
|
|
},
|
|
treeList: [], //候选人列表
|
|
treeList: [], //候选人列表
|
|
@@ -657,6 +659,7 @@ export default {
|
|
],
|
|
],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ abc: false,
|
|
lable: {},
|
|
lable: {},
|
|
copyUser: "", //抄送人
|
|
copyUser: "", //抄送人
|
|
backThree: [],
|
|
backThree: [],
|
|
@@ -665,26 +668,31 @@ export default {
|
|
height: "400",
|
|
height: "400",
|
|
titledata: [
|
|
titledata: [
|
|
{
|
|
{
|
|
|
|
+ id: 1,
|
|
label: "环节名称",
|
|
label: "环节名称",
|
|
prop: "taskName",
|
|
prop: "taskName",
|
|
width: 300,
|
|
width: 300,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ id: 2,
|
|
label: "处理人",
|
|
label: "处理人",
|
|
prop: "assignee",
|
|
prop: "assignee",
|
|
width: 300,
|
|
width: 300,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ id: 3,
|
|
label: "到达时间",
|
|
label: "到达时间",
|
|
prop: "startTime",
|
|
prop: "startTime",
|
|
width: 300,
|
|
width: 300,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ id: 4,
|
|
label: "处理时间",
|
|
label: "处理时间",
|
|
prop: "endTime",
|
|
prop: "endTime",
|
|
width: 300,
|
|
width: 300,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ id: 5,
|
|
label: "回复意见",
|
|
label: "回复意见",
|
|
prop: "content",
|
|
prop: "content",
|
|
width: 300,
|
|
width: 300,
|
|
@@ -745,7 +753,7 @@ export default {
|
|
clickTaskName: "",
|
|
clickTaskName: "",
|
|
seachLists: {},
|
|
seachLists: {},
|
|
timeList: {},
|
|
timeList: {},
|
|
- lastManList:[]
|
|
|
|
|
|
+ lastManList: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -787,10 +795,10 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
//是否最后一个人
|
|
//是否最后一个人
|
|
async getLastName() {
|
|
async getLastName() {
|
|
- console.log( this.fromList);
|
|
|
|
|
|
+ console.log(this.fromList);
|
|
let list = {
|
|
let list = {
|
|
procinstid: this.fromList.processId,
|
|
procinstid: this.fromList.processId,
|
|
- taskid:this.fromList.taskId
|
|
|
|
|
|
+ taskid: this.fromList.taskId,
|
|
|
|
|
|
// taskId:e.taskId
|
|
// taskId:e.taskId
|
|
};
|
|
};
|
|
@@ -807,7 +815,7 @@ export default {
|
|
let res = await this.common.httpPost(obj, success);
|
|
let res = await this.common.httpPost(obj, success);
|
|
function success(data) {
|
|
function success(data) {
|
|
_this.isWorkflowStatus = data.lastMan == false ? false : true;
|
|
_this.isWorkflowStatus = data.lastMan == false ? false : true;
|
|
- _this.lastManList = data
|
|
|
|
|
|
+ _this.lastManList = data;
|
|
// console.log(_this.isWorkflowStatus);
|
|
// console.log(_this.isWorkflowStatus);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -1323,11 +1331,41 @@ export default {
|
|
|
|
|
|
let res = await this.common.httpPost(obj, success);
|
|
let res = await this.common.httpPost(obj, success);
|
|
function success(data) {
|
|
function success(data) {
|
|
- data.data.map((item) => {
|
|
|
|
|
|
+ console.log(data);
|
|
|
|
+ let list = [];
|
|
|
|
+ list = data.data.data;
|
|
|
|
+ data.data.lastmandata.map((item, index) => {
|
|
|
|
+ item.id = index + 22;
|
|
|
|
+ });
|
|
|
|
+ list.map((item, index) => {
|
|
item.startTime = _this.$util.datetimeFormat(item.startTime);
|
|
item.startTime = _this.$util.datetimeFormat(item.startTime);
|
|
item.endTime = _this.$util.datetimeFormat(item.endTime);
|
|
item.endTime = _this.$util.datetimeFormat(item.endTime);
|
|
|
|
+ item.id = index + 1;
|
|
|
|
+ // data.data.lastmandata.map((items, index) => {
|
|
|
|
+ // if (item.taskId === items.taskId) {
|
|
|
|
+ // newList.push(items)
|
|
|
|
+ // item.children = newList
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ if (item.taskId == data.data.lastmandata[0].taskId) {
|
|
|
|
+ item.children = data.data.lastmandata;
|
|
|
|
+ }
|
|
});
|
|
});
|
|
- _this.lables.data = data.data;
|
|
|
|
|
|
+ console.log(list);
|
|
|
|
+ // list.map((item, index) => {
|
|
|
|
+ // data.data.lastmandata.map((items, index) =>{
|
|
|
|
+ // if(item.taskId === items.taskId){
|
|
|
|
+ // newList.push(o)
|
|
|
|
+ // item.children = newList
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ // })
|
|
|
|
+ // console.log(list);
|
|
|
|
+ // console.log(newList);
|
|
|
|
+
|
|
|
|
+ // list[1].children = data.data.lastmandata;
|
|
|
|
+ _this.lables.data = list;
|
|
|
|
+ _this.abc = true;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async clickHandle(e) {
|
|
async clickHandle(e) {
|
|
@@ -1577,6 +1615,7 @@ export default {
|
|
this.saveStatus = false;
|
|
this.saveStatus = false;
|
|
this.startStatus = true;
|
|
this.startStatus = true;
|
|
this.closeStatus = true;
|
|
this.closeStatus = true;
|
|
|
|
+ this.abc = false;
|
|
// this.fromList = {};
|
|
// this.fromList = {};
|
|
},
|
|
},
|
|
handleCloses() {
|
|
handleCloses() {
|