瀏覽代碼

feat(): 调整节点图片显示规则

17602115550 10 月之前
父節點
當前提交
3290b51ccd
共有 3 個文件被更改,包括 8 次插入8 次删除
  1. 8 8
      src/modules/createmodel/components/EchartsGraph.vue
  2. 二進制
      static/invoice/black-man.png
  3. 二進制
      static/invoice/red-man.png

+ 8 - 8
src/modules/createmodel/components/EchartsGraph.vue

@@ -129,13 +129,13 @@ export default {
                                     id: item.id+item.name,
                                     name: item.name + '(' +  item.relationPersons.length+ ')',
                                     realName: item.name,
-                                    symbolSize: 40,
+                                    symbolSize: item.type == '从' ? 60 : 30,
                                     x: pointPosition.x,
                                     y: pointPosition.y,
                                     value: 100,
                                     category: 100,
                                     data: item,
-                                    symbol: item.type == '从' ? 'image://../../../../static/invoice/professor.svg' : item.partyType == '主' ? 'image://../../../../static/invoice/company.svg' : '',
+                                    symbol: item.type == '从' ? 'image://../../../../static/invoice/red-man.png' : item.type == '主' ? 'image://../../../../static/invoice/black-man.png' : '',
                                 })
                             } else {
                                 data.push({
@@ -143,13 +143,13 @@ export default {
                                     id: item.id+item.name,
                                     name: item.name + '(' +  item.relationPersons.length+ ')',
                                     realName: item.name,
-                                    symbolSize: 40,
+                                    symbolSize: item.type == '从' ? 60 : 30,
                                     // x: -266.82776,
                                     // y: 299.6904,
                                     value: 100,
                                     category: 100,
                                     data: item,
-                                    symbol: item.type == '从' ? 'image://../../../../static/invoice/professor.svg' : item.type == '主' ? 'image://../../../../static/invoice/company.svg' : '',
+                                    symbol: item.type == '从' ? 'image://../../../../static/invoice/red-man.png' : item.type == '主' ? 'image://../../../../static/invoice/black-man.png' : '',
                                 })
                             }
 
@@ -160,13 +160,13 @@ export default {
                                     id: item.id+item.name,
                                     name: item.name + '(' +  item.relationPersons.length+ ')',
                                     realName: item.name,
-                                    symbolSize: 20,
+                                    symbolSize: item.type == '从' ? 30 : 15,
                                     x: pointPosition.x,
                                     y: pointPosition.y,
                                     value: 100,
                                     category: 100,
                                     data: item,
-                                    symbol: item.type == '从' ? 'image://../../../../static/invoice/professor.svg' : item.type == '主' ? 'image://../../../../static/invoice/company.svg' : '',
+                                    symbol: item.type == '从' ? 'image://../../../../static/invoice/red-man.png' : item.type == '主' ? 'image://../../../../static/invoice/black-man.png' : '',
                                 })
                             } else {
                                 data.push({
@@ -174,13 +174,13 @@ export default {
                                     id: item.id+item.name,
                                     name: item.name + '(' +  item.relationPersons.length+ ')',
                                     realName: item.name,
-                                    symbolSize: 20,
+                                    symbolSize: item.type == '从' ? 30 : 15,
                                     // x: -266.82776,
                                     // y: 299.6904,
                                     value: 100,
                                     category: 100,
                                     data: item,
-                                    symbol: item.type == '从' ? 'image://../../../../static/invoice/professor.svg' : item.type == '主' ? 'image://../../../../static/invoice/company.svg' : '',
+                                    symbol: item.type == '从' ? 'image://../../../../static/invoice/red-man.png' : item.type == '主' ? 'image://../../../../static/invoice/black-man.png' : '',
                                 })
                             }
 

二進制
static/invoice/black-man.png


二進制
static/invoice/red-man.png