修改企标制修订-技术标准的历史版本
This commit is contained in:
@@ -226,11 +226,6 @@
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if (this.$route.query.oldAndNew == 'new') {
|
||||
this.getProcessList()
|
||||
} else {
|
||||
this.processNum()
|
||||
}
|
||||
this.processTable()
|
||||
},
|
||||
methods: {
|
||||
@@ -255,6 +250,11 @@
|
||||
_this: this
|
||||
}, res => {
|
||||
this.histortData = res
|
||||
if (this.$route.query.oldAndNew == 'new') {
|
||||
this.getProcessList()
|
||||
} else {
|
||||
this.processNum()
|
||||
}
|
||||
this.loading = false
|
||||
}, e => {
|
||||
})
|
||||
@@ -274,6 +274,29 @@
|
||||
val.userNames = val.userNames.split(',')
|
||||
}
|
||||
})
|
||||
if (this.$route.query.prcType == 'buss1'){
|
||||
if (this.histortData && this.histortData.length > 0){
|
||||
if (this.histortData[this.histortData.length - 1].taskKey == 'BussLibraryC3'){
|
||||
this.nameList.forEach(val => {
|
||||
if (val.taskKey == 'BussLibrary3') {
|
||||
val.taskStatus = 'todo'
|
||||
}
|
||||
})
|
||||
}else if (this.histortData[this.histortData.length - 1].taskKey == 'BussLibraryC1'){
|
||||
this.nameList.forEach(val => {
|
||||
if (val.taskKey == 'BussLibrary1') {
|
||||
val.taskStatus = 'todo'
|
||||
}
|
||||
})
|
||||
}else if (this.histortData[this.histortData.length - 1].taskKey == 'BussLibraryC6'){
|
||||
this.nameList.forEach(val => {
|
||||
if (val.taskKey == 'BussLibrary6') {
|
||||
val.taskStatus = 'todo'
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
let flowGroupProcess = document.getElementsByClassName('flow-group-process')
|
||||
let num = (flowGroupProcess[0].offsetWidth - 100) / 248
|
||||
|
||||
@@ -342,6 +342,29 @@
|
||||
val.userNames = val.userNames.split(',')
|
||||
}
|
||||
})
|
||||
if (this.$route.query.flowType == 'buss1'){
|
||||
if (this.detailData && this.detailData.length > 0){
|
||||
if (this.detailData[this.detailData.length - 1].taskKey == 'BussLibraryC3'){
|
||||
this.nameList.forEach(val => {
|
||||
if (val.taskKey == 'BussLibrary3') {
|
||||
val.taskStatus = 'todo'
|
||||
}
|
||||
})
|
||||
}else if (this.detailData[this.detailData.length - 1].taskKey == 'BussLibraryC1'){
|
||||
this.nameList.forEach(val => {
|
||||
if (val.taskKey == 'BussLibrary1') {
|
||||
val.taskStatus = 'todo'
|
||||
}
|
||||
})
|
||||
}else if (this.detailData[this.detailData.length - 1].taskKey == 'BussLibraryC6'){
|
||||
this.nameList.forEach(val => {
|
||||
if (val.taskKey == 'BussLibrary6') {
|
||||
val.taskStatus = 'todo'
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
let flowGroupProcess = document.getElementsByClassName('flow-group-process')
|
||||
let num = (flowGroupProcess[0].offsetWidth - 100) / 248
|
||||
@@ -350,8 +373,6 @@
|
||||
let offsetWidth = flowGroupProcess[0].offsetWidth
|
||||
|
||||
flowGroupProcess[0].style.width = (offsetWidth - (offsetWidth - 100 - width) + 40) + 'px'
|
||||
console.log(offsetWidth);
|
||||
console.log(flowGroupProcess);
|
||||
})
|
||||
}, e => {
|
||||
})
|
||||
@@ -368,12 +389,12 @@
|
||||
if (res.success) {
|
||||
this.drawerModal = false
|
||||
this.$message.success('调整成功')
|
||||
if (this.$route.query.oldAndNew == 'new' && (this.$route.query.flowType == '3' || this.$route.query.flowType == 'buss1')) {
|
||||
this.getProcessList()
|
||||
} else {
|
||||
this.processNum()
|
||||
}
|
||||
this.processTable()
|
||||
// if (this.$route.query.oldAndNew == 'new' && (this.$route.query.flowType == '3' || this.$route.query.flowType == 'buss1')) {
|
||||
// this.getProcessList()
|
||||
// } else {
|
||||
// this.processNum()
|
||||
// }
|
||||
this.processTable(1)
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
@@ -1368,12 +1389,12 @@
|
||||
if (res.success) {
|
||||
this.drawerModal = false
|
||||
this.$message.success('调整成功')
|
||||
if (this.$route.query.oldAndNew == 'new' && (this.$route.query.flowType == '3' || this.$route.query.flowType == 'buss1')) {
|
||||
/* if (this.$route.query.oldAndNew == 'new' && (this.$route.query.flowType == '3' || this.$route.query.flowType == 'buss1')) {
|
||||
this.getProcessList()
|
||||
} else {
|
||||
this.processNum()
|
||||
}
|
||||
this.processTable()
|
||||
}*/
|
||||
this.processTable(1)
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
@@ -1419,7 +1440,7 @@
|
||||
})
|
||||
},
|
||||
// 请求列表
|
||||
processTable() {
|
||||
processTable(num) {
|
||||
let url = ''
|
||||
let query = {}
|
||||
if (this.$route.query.oldAndNew == 'new' && (this.$route.query.flowType == '3' || this.$route.query.flowType == 'buss1')) {
|
||||
@@ -1441,6 +1462,13 @@
|
||||
_this: this
|
||||
}, res => {
|
||||
this.detailData = res
|
||||
if (num && num == 1){
|
||||
if (this.$route.query.oldAndNew == 'new' && (this.$route.query.flowType == '3' || this.$route.query.flowType == 'buss1')) {
|
||||
this.getProcessList()
|
||||
} else {
|
||||
this.processNum()
|
||||
}
|
||||
}
|
||||
}, e => {
|
||||
})
|
||||
},
|
||||
@@ -1646,12 +1674,7 @@
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if (this.$route.query.oldAndNew == 'new' && (this.$route.query.flowType == '3' || this.$route.query.flowType == 'buss1')) {
|
||||
this.getProcessList()
|
||||
} else {
|
||||
this.processNum()
|
||||
}
|
||||
this.processTable()
|
||||
this.processTable(1)
|
||||
this.getApproveShow()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user