|
@@ -34,14 +34,6 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.listByRequire()
|
|
|
- this.$nextTick(() => {
|
|
|
- const box = document.getElementsByClassName('gantt-elastic__header-label')
|
|
|
- for (const i in box) {
|
|
|
- console.log(box[3], 'cdscd')
|
|
|
- i === '3' ? '' : box[i].style = 'display: none;'
|
|
|
- }
|
|
|
- console.log(box)
|
|
|
- })
|
|
|
},
|
|
|
methods: {
|
|
|
async listByRequire() { // 获取排期列表
|
|
@@ -62,7 +54,6 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
this.setOption()
|
|
|
})
|
|
|
- this.elastic__header()
|
|
|
},
|
|
|
|
|
|
handleItem(item, key) {
|
|
@@ -130,22 +121,13 @@ export default {
|
|
|
|
|
|
setOption() {
|
|
|
const node = document.querySelectorAll('.gantt-elastic__header-label')
|
|
|
+ node[0].style = 'display: none'
|
|
|
+ node[1].style = 'display: none'
|
|
|
+ node[2].style = 'display: none'
|
|
|
node[3].removeChild(node[3].childNodes[0])
|
|
|
const span = document.createElement('span')
|
|
|
span.innerText = '列表区域 :'
|
|
|
node[3].insertBefore(span, node[3].childNodes[0])
|
|
|
- },
|
|
|
-
|
|
|
- elastic__header() {
|
|
|
- // 隐藏header
|
|
|
- if (this.ganttElastic) {
|
|
|
- this.$nextTick(() => {
|
|
|
- const box = document.getElementsByClassName('gantt-elastic__header-label')
|
|
|
- for (const i in box) {
|
|
|
- i === '3' ? '' : box[i].style = 'display: none;'
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
}
|