Authored by 王涛

乙方运维代码优化

<div>
<!-- 人员信息总汇-->
<project-ry/>
<project-ry :docType="docType"
:treeNode="treeNode" :parentNode="parentNode" :projectId="projectId"/>
</div>
<div>
<!-- 项目评价总汇-->
<project-pj/>
<project-pj :docType="docType"
:treeNode="treeNode" :parentNode="parentNode" :projectId="projectId"/>
</div>
<div>
<!-- 项目资料总汇-->
<project-zl/>
<project-zl :docType="docType"
:treeNode="treeNode" :parentNode="parentNode" :projectId="projectId"/>
</div>
</div>
... ...
... ... @@ -20,6 +20,20 @@ export default {
}
}
},
props:{
treeNode: {
type: Object,
default: {}
},
parentNode: {
type: Object,
default: {}
},
projectId: {
type: String,
default: ''
}
},
setup() {
let height = Vue.ref(window.innerHeight - 130);
const {proxy} = Vue.getCurrentInstance();
... ...
... ... @@ -92,11 +92,14 @@ export default {
proxy.$http.post("/api-web/bOpsPerson/personCollect", {
"page":1,
"limit":10,
"projectId": treeNode.map.nodeType.projectId
"projectId": props.treeNode.map.nodeType.projectId
}, function (res) {
if (res && res.data) {
dataList.value = res.data
total.value = res.count;
} else {
dataList.value = []
total.value = 0;
}
});
}
... ...
... ... @@ -179,7 +179,7 @@ export default {
clearInterval(this.timerId)
}
let index = 12
this.timerId = setInterval(() => {
/*this.timerId = setInterval(() => {
this.startValue++
this.endValue++
// this.allData.polyline.data
... ... @@ -194,7 +194,7 @@ export default {
console.log(this.startValue)
console.log(this.endValue)
this.updateChart()
}, 5000)
}, 5000)*/
}
}
}
\ No newline at end of file
}
... ...
... ... @@ -190,7 +190,7 @@ export default {
clearInterval(this.timerId)
}
let index = 12
this.timerId = setInterval(() => {
/*this.timerId = setInterval(() => {
this.startValue++
this.endValue++
// this.allData.polyline.data
... ... @@ -205,7 +205,7 @@ export default {
console.log(this.startValue)
console.log(this.endValue)
this.updateChart()
}, 5000)
}, 5000)*/
}
}
}
\ No newline at end of file
}
... ...
... ... @@ -188,7 +188,7 @@ export default {
clearInterval(this.timerId)
}
let index = 12
this.timerId = setInterval(() => {
/*this.timerId = setInterval(() => {
this.startValue++
this.endValue++
if ((this.allData.polyline.data).length > 0) {
... ... @@ -201,7 +201,7 @@ export default {
console.log(this.startValue)
console.log(this.endValue)
this.updateChart()
}, 5000)
}, 5000)*/
}
}
}
\ No newline at end of file
}
... ...
... ... @@ -208,7 +208,7 @@ export default {
clearInterval(this.timerId)
}
let index = 10
this.timerId = setInterval(() => {
/*this.timerId = setInterval(() => {
this.startValue++
this.endValue++
if (this.allData.polyline.data.data.length > 0) {
... ... @@ -219,7 +219,7 @@ export default {
this.endValue = 9
}
this.updateChart()
}, 5000)
}, 5000)*/
}
}
}
... ...
... ... @@ -187,7 +187,7 @@ export default {
clearInterval(this.timerId)
}
let index = 12
this.timerId = setInterval(() => {
/*this.timerId = setInterval(() => {
this.startValue++
this.endValue++
if ((this.allData.polyline.data).length > 0) {
... ... @@ -200,7 +200,7 @@ export default {
console.log(this.startValue)
console.log(this.endValue)
this.updateChart()
}, 5000)
}, 5000)*/
}
}
}
\ No newline at end of file
}
... ...
... ... @@ -173,7 +173,7 @@ export default {
clearInterval(this.timerId)
}
let index = 12
this.timerId = setInterval(() => {
/*this.timerId = setInterval(() => {
this.startValue++
this.endValue++
// this.allData.polyline.data
... ... @@ -188,7 +188,7 @@ export default {
console.log(this.startValue)
console.log(this.endValue)
this.updateChart()
}, 5000)
}, 5000)*/
}
}
}
\ No newline at end of file
}
... ...
... ... @@ -146,7 +146,7 @@ export default {
clearInterval(this.timerId)
}
let index = 30
this.timerId = setInterval(() => {
/*this.timerId = setInterval(() => {
this.startValue++
this.endValue++
// this.allData.polyline.data
... ... @@ -161,7 +161,7 @@ export default {
// console.log(this.startValue)
// console.log(this.endValue)
this.updateChart()
}, 5000)
}, 5000)*/
}
}
}
\ No newline at end of file
}
... ...
... ... @@ -6,7 +6,7 @@
<el-tree :data="dataSource" :default-expanded-keys="[1]" :props="defaultProps" >
<template #default="{ node, data }">
<div style=" width: 100%;">
<div style="width: 100%;max-width: 100%;overflow: hidden;text-overflow: ellipsis;text-align: left;" @click="handleNodeClick(data)" :title="node.label">
<div style="width: 85%;max-width: 85%;overflow: hidden;text-overflow: ellipsis;text-align: left;" @click="handleNodeClick(data)" :title="node.label">
{{node.label }}
</div>
</div>
... ...