Commit d5fa8ff3 authored by kangzhenfei's avatar kangzhenfei

数据源

parent c134717c
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<Col :span="24"> <Col :span="24">
<FormItem :label="l('hostName')" prop="hostName"> <FormItem :label="l('hostName')" prop="hostName">
<!-- @on-change="onchange_host" --> <!-- @on-change="onchange_host" -->
<Select v-model="entity.id"> <Select v-model="entity.hostId">
<Option v-for="(item,index) in hostlist" :key="index" :value="item.id">{{item.name}}</Option> <Option v-for="(item,index) in hostlist" :key="index" :value="item.id">{{item.name}}</Option>
</Select> </Select>
</FormItem> </FormItem>
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<Col :span="24"> <Col :span="24">
<FormItem :label="l('hostsq')" prop="hostId"> <FormItem :label="l('hostsq')" prop="hostId">
<!-- <Input v-model="entity.hostId"></Input> --> <!-- <Input v-model="entity.hostId"></Input> -->
<Dictionary code="datasource.type" v-model="entity.hostId" type="select"></Dictionary> <Dictionary code="datasource.type" v-model="entity.id" type="select"></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="24"> <Col :span="24">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment