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