|
|
@@ -6,6 +6,11 @@
|
|
6
|
6
|
<el-step :title="item.caseNodeName || item.content" v-for="(item,index) in pageData.allCasenode" :key="index" :description="(item.createNickName || '') + (item.caseNodeTime || '')+(item.nextRoleName || '')"></el-step>
|
|
7
|
7
|
|
|
8
|
8
|
</el-steps> -->
|
|
|
9
|
+ <el-steps :active="finishCasenode.length">
|
|
|
10
|
+ <el-step :title="item.content" v-for="(item,index) in finishCasenode" :key="index"></el-step>
|
|
|
11
|
+ <el-step :title="item.content" v-for="(item,index) in inCasenode" :key="index"></el-step>
|
|
|
12
|
+ <el-step :title="item.content" v-for="(item,index) in nextCasenode" :key="index"></el-step>
|
|
|
13
|
+ </el-steps>
|
|
9
|
14
|
</div>
|
|
10
|
15
|
<div slot="footer" class="dialog-footer">
|
|
11
|
16
|
<el-button @click="cancel" class="endbutton1"><span>取 消</span></el-button>
|
|
|
@@ -15,38 +20,40 @@
|
|
15
|
20
|
</template>
|
|
16
|
21
|
|
|
17
|
22
|
<script>
|
|
18
|
|
-import {selectCaseProgress} from '@/api/caseManagement/caseManagement'
|
|
|
23
|
+import {selectCaseProgress} from '@/api/caseManagement/caseManagement.js'
|
|
19
|
24
|
export default {
|
|
20
|
|
- props: ["processVisable","processData"],
|
|
|
25
|
+ props: ["processVisable","processData","caseFlowNumber"],
|
|
21
|
26
|
data() {
|
|
22
|
27
|
return {
|
|
23
|
28
|
processId:null,
|
|
24
|
29
|
pageData:{},
|
|
25
|
|
- caseStatus:0
|
|
|
30
|
+ caseStatus:0,
|
|
|
31
|
+ finishCasenode:[],
|
|
|
32
|
+ inCasenode:[],
|
|
|
33
|
+ nextCasenode:[]
|
|
|
34
|
+
|
|
26
|
35
|
};
|
|
27
|
36
|
},
|
|
28
|
37
|
watch: {
|
|
29
|
38
|
processVisable(val){
|
|
30
|
39
|
if(val){
|
|
31
|
|
- // this.processId = this.processData.id;
|
|
32
|
|
- // this.selectCaseProgressFn({id:this.processId});
|
|
|
40
|
+ this.processId = this.caseFlowNumber.id;
|
|
|
41
|
+ this.selectCaseProgressFn({caseId:this.processId});
|
|
|
42
|
+
|
|
33
|
43
|
}
|
|
34
|
44
|
}
|
|
35
|
45
|
},
|
|
|
46
|
+
|
|
36
|
47
|
methods: {
|
|
37
|
48
|
cancel() {
|
|
38
|
49
|
this.$emit("cancelViewProcess");
|
|
39
|
50
|
},
|
|
40
|
51
|
selectCaseProgressFn(data){
|
|
41
|
52
|
selectCaseProgress(data).then(res=>{
|
|
42
|
|
- this.pageData = res.data.data;
|
|
43
|
|
- let allCasenode = res.data.data.allCasenode;
|
|
44
|
|
- console.log(allCasenode)
|
|
45
|
|
- allCasenode.forEach((item,index) => {
|
|
46
|
|
- if(item.caseNode==res.data.data.caseStatus){
|
|
47
|
|
- this.caseStatus = index
|
|
48
|
|
- }
|
|
49
|
|
- });
|
|
|
53
|
+ this.finishCasenode = res.data.data.finishCasenode
|
|
|
54
|
+ this.inCasenode = res.data.data.inCasenode
|
|
|
55
|
+ this.nextCasenode = res.data.data.nextCasenode
|
|
|
56
|
+
|
|
50
|
57
|
})
|
|
51
|
58
|
}
|
|
52
|
59
|
},
|