{{ operation.operationName }}
@@ -67,46 +77,106 @@ export default {
},
data() {
return {
- timeline: {}
+ timeline: {},
+
}
},
created() {
-
-
- switch (this.state) {
- case '1':
- this.timeline = {
- color: '#f78f5f',
- icon: 'el-icon-more',
- context: '审批进行中'
+ console.log(this.operationList)
+ this.init()
+ },
+ methods: {
+ init() {
+ switch (this.state) {
+ case '1':
+ this.timeline = {
+ color: '#f78f5f',
+ icon: 'el-icon-more',
+ context: '审批进行中'
+ }
+ break
+ case '2':
+ this.timeline = {
+ color: '#0bbd87',
+ icon: 'el-icon-check',
+ context: '审批通过'
+ }
+ break
+ case '3':
+ this.timeline = {
+ color: '#f56c6c',
+ icon: 'el-icon-close',
+ context: '审核已驳回'
+ }
+ break
+ case '4':
+ this.timeline = {
+ color: '#0bbd87',
+ icon: 'el-icon-check',
+ context: '审批通过'
+ }
+ break
+ default:
+ break
+ }
+ // let operationListNew = []
+ console.log(this.operationList.length, "sdjshjdhasjds")
+ for (let i = 0;i
- $emit('insertNode', type)"
placeholder="请设置审批人" :header-bgc="headerBgc" header-icon="el-icon-s-check"/>
+