Skip to content

Commit 4fab890

Browse files
yangmvyangmv
authored andcommitted
cmdb增加region字段
1 parent 78b6781 commit 4fab890

6 files changed

Lines changed: 34 additions & 8 deletions

File tree

src/view/cmdb/db/Add.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
</Select>
3737
</FormItem>
3838

39+
<FormItem label="区域">
40+
<Input v-model="formData.region" placeholder=""></Input>
41+
</FormItem>
42+
3943
<FormItem label="数据库类型">
4044
<Select v-model="formData.db_type" placeholder="请选择" filterable>
4145
<Option value="MySQL" >MySQL</Option>

src/view/cmdb/db/Detail.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@
4242
<Row>
4343
<Col span="3"><p> <b>角色</b> </p></Col>
4444
<Col span="9"> <Tag color="blue"> {{formData.role_name}}</Tag> </Col>
45+
<Col span="3"><p> <b>区域</b> </p></Col>
46+
<Col span="9"><p> {{formData.region}} </p></Col>
47+
</Row>
48+
49+
<Row>
4550
<Col span="3"><p> <b>备注</b> </p></Col>
4651
<Col span="9"><p> {{formData.comment}} </p></Col>
4752
</Row>

src/view/cmdb/db/List.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ export default {
192192
db_version: '5.7',
193193
comment: '',
194194
group: [],
195-
tag: []
195+
tag: [],
196+
region: null
196197
},
197198
select_id: []
198199
}
@@ -340,7 +341,8 @@ export default {
340341
comment: row.comment,
341342
group: row.group,
342343
tag: row.tag,
343-
id: row.id
344+
id: row.id,
345+
region: row.region
344346
}
345347
if (this.formData.username != null) {
346348
this.formData.single = true
@@ -360,7 +362,8 @@ export default {
360362
comment: row.comment,
361363
group_name: row.group_name.join(' '),
362364
tag_name: row.tag_name.join(' '),
363-
id: row.id
365+
id: row.id,
366+
region: row.region
364367
}
365368
},
366369
@@ -433,7 +436,8 @@ export default {
433436
group: [],
434437
tag: [],
435438
username: null,
436-
password: null
439+
password: null,
440+
region: null
437441
},
438442
this.dialog.show = false
439443
},

src/view/cmdb/server/Add.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
</Select>
2828
</FormItem>
2929

30+
<FormItem label="区域">
31+
<Input v-model="formData.region" placeholder=""></Input>
32+
</FormItem>
33+
3034
<FormItem label="管理用户">
3135
<Row>
3236
<Col span="4">

src/view/cmdb/server/Detail.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@
4949
<Row>
5050
<Col span="3"><p> <b>SN</b> </p></Col>
5151
<Col span="9"><p> {{formData.sn}} </p></Col>
52+
<Col span="3"><p> <b>区域</b> </p></Col>
53+
<Col span="9"><p> {{formData.region}} </p></Col>
54+
</Row>
55+
56+
<Row>
5257
<Col span="3"><p> <b>备注</b> </p></Col>
5358
<Col span="9"><p> {{formData.comment}} </p></Col>
5459
</Row>

src/view/cmdb/server/List.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ export default {
260260
group: [],
261261
tag:[],
262262
username: null,
263-
passowrd: null
263+
passowrd: null,
264+
region: null
264265
},
265266
select_id : []
266267
}
@@ -509,7 +510,8 @@ export default {
509510
tag: row.tag,
510511
id: row.id,
511512
username: row.username,
512-
password: row.password
513+
password: row.password,
514+
region: row.region
513515
}
514516
if(this.formData.username != null){
515517
this.formData.single = true
@@ -535,7 +537,8 @@ export default {
535537
id: row.id,
536538
group_name: row.group_name.join(' '),
537539
admin_user_name: row.admin_user_name,
538-
idc_name: row.idc_name
540+
idc_name: row.idc_name,
541+
region: row.region
539542
}
540543
},
541544
@@ -607,7 +610,8 @@ export default {
607610
group: [],
608611
tag:[],
609612
username: null,
610-
password: null
613+
password: null,
614+
region: null
611615
},
612616
this.dialog.show = false
613617
},

0 commit comments

Comments
 (0)