|
9 | 9 | <el-footer> |
10 | 10 | <div class="button_group_left"> |
11 | 11 | <el-button @click="handleExample(1)">样 例 1</el-button> |
12 | | - <el-button @click="handleExample(2)">样 例 2</el-button> |
| 12 | + <el-button>样 例 2</el-button> |
13 | 13 | <el-button @click="handleExample(3)">样 例 3</el-button> |
| 14 | + <el-button @click="handleExample(4)">示 例</el-button> |
14 | 15 | </div> |
15 | 16 | <div class="button_group_right"> |
16 | 17 | <el-button type="info" @click="configureDialogVisible = true">配 置</el-button> |
|
51 | 52 | :label="getCharByIndex(index)" :value="index.toString()" :disabled="index === scope.row.end"> |
52 | 53 | </el-option> |
53 | 54 | </el-select> |
54 | | - <span v-show="scope.row.disabled">{{ getCharByIndex(scope.row.start) }}</span> |
| 55 | + <span v-show="scope.row.disabled">{{ getCharByIndex(parseInt(scope.row.start)) }}</span> |
55 | 56 | </template> |
56 | 57 | </el-table-column> |
57 | 58 | <el-table-column label="终点" prop="end"> |
|
62 | 63 | :label="getCharByIndex(index)" :value="index.toString()" :disabled="index === scope.row.start"> |
63 | 64 | </el-option> |
64 | 65 | </el-select> |
65 | | - <span v-show="scope.row.disabled">{{ getCharByIndex(scope.row.end) }}</span> |
| 66 | + <span v-show="scope.row.disabled">{{ getCharByIndex(parseInt(scope.row.end)) }}</span> |
66 | 67 | </template> |
67 | 68 | </el-table-column> |
68 | 69 | <el-table-column label="操作"> |
@@ -107,9 +108,9 @@ export default { |
107 | 108 | defaultJunctionPoint: 'border', |
108 | 109 | layouts: [ |
109 | 110 | { |
110 | | - 'label': '自动布局', |
111 | | - 'layoutName': 'force', |
112 | | - 'layoutClassName': 'seeks-layout-force' |
| 111 | + 'label': '中心', |
| 112 | + 'layoutName': 'center', |
| 113 | + 'layoutClassName': 'seeks-layout-center' |
113 | 114 | } |
114 | 115 | ] |
115 | 116 | }, |
@@ -249,6 +250,59 @@ export default { |
249 | 250 | end: "9" |
250 | 251 | }, |
251 | 252 | ] |
| 253 | + }, |
| 254 | + { |
| 255 | + nodeNum: 12, |
| 256 | + links: [ |
| 257 | + { |
| 258 | + start: "0", |
| 259 | + end: "6" |
| 260 | + }, |
| 261 | + { |
| 262 | + start: "0", |
| 263 | + end: "7" |
| 264 | + }, |
| 265 | + { |
| 266 | + start: "0", |
| 267 | + end: "8" |
| 268 | + }, |
| 269 | + { |
| 270 | + start: "1", |
| 271 | + end: "7" |
| 272 | + }, |
| 273 | + { |
| 274 | + start: "2", |
| 275 | + end: "9" |
| 276 | + }, |
| 277 | + { |
| 278 | + start: "3", |
| 279 | + end: "6" |
| 280 | + }, |
| 281 | + { |
| 282 | + start: "3", |
| 283 | + end: "8" |
| 284 | + }, |
| 285 | + { |
| 286 | + start: "3", |
| 287 | + end: "10" |
| 288 | + }, |
| 289 | + { |
| 290 | + start: "4", |
| 291 | + end: "7" |
| 292 | + }, |
| 293 | + { |
| 294 | + start: "4", |
| 295 | + end: "10" |
| 296 | + }, |
| 297 | + { |
| 298 | + start: "4", |
| 299 | + end: "11" |
| 300 | + }, |
| 301 | + { |
| 302 | + start: "5", |
| 303 | + end: "8" |
| 304 | + }, |
| 305 | + ] |
252 | 306 | } |
253 | 307 | ] |
254 | 308 | } |
@@ -338,9 +392,9 @@ export default { |
338 | 392 | defaultJunctionPoint: 'border', |
339 | 393 | layouts: [ |
340 | 394 | { |
341 | | - 'label': '自动布局', |
342 | | - 'layoutName': 'force', |
343 | | - 'layoutClassName': 'seeks-layout-force' |
| 395 | + 'label': '中心', |
| 396 | + 'layoutName': 'center', |
| 397 | + 'layoutClassName': 'seeks-layout-center' |
344 | 398 | } |
345 | 399 | ] |
346 | 400 | }, () => {}) |
|
0 commit comments