|
@@ -8,7 +8,7 @@
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div v-show="true" id="containeraddworkdetail" style="width: 100%" />
|
|
|
+ <div v-show="true" :id="id" style="width: 100%" />
|
|
|
|
|
|
</div>
|
|
|
</template>
|
|
@@ -299,6 +299,12 @@ const linesData = [ // 连线
|
|
|
]
|
|
|
export default {
|
|
|
name: 'AddWorkCanvas',
|
|
|
+ props: {
|
|
|
+ id: {
|
|
|
+ type: String,
|
|
|
+ default: ''
|
|
|
+ }
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
linesData: [],
|
|
@@ -452,7 +458,7 @@ export default {
|
|
|
},
|
|
|
getNode() {
|
|
|
this.$nextTick(() => {
|
|
|
- const chartDom = document.getElementById('containeraddworkdetail')
|
|
|
+ const chartDom = document.getElementById(this.id)
|
|
|
let myCharts = null
|
|
|
myCharts = echarts.init(chartDom)
|
|
|
const charts = {
|
|
@@ -530,5 +536,19 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
-
|
|
|
+#containeraddworkdetail1 {
|
|
|
+ height: 600px;
|
|
|
+ width: 100%;
|
|
|
+ background: #F5F5F5;
|
|
|
+}
|
|
|
+#paymanetDetail{
|
|
|
+ height: 600px;
|
|
|
+ width: 100%;
|
|
|
+ background: #F5F5F5;
|
|
|
+}
|
|
|
+#paymentConfirm{
|
|
|
+ height: 600px;
|
|
|
+ width: 100%;
|
|
|
+ background: #F5F5F5;
|
|
|
+}
|
|
|
</style>
|