Browse Source

修复设备来源id不能生成问题

pull/1/head
ljlong_2630 1 year ago
parent
commit
9b633e8de3
  1. 5
      src/views/model/device/index.vue

5
src/views/model/device/index.vue

@ -272,13 +272,12 @@
</el-col>
<el-col :span="12">
<el-form-item label="通讯来源类型" prop="deviceSource">
<el-select v-model="form.deviceSource" placeholder="请选择是否可用">
<el-select v-model="form.deviceSource" placeholder="请选择是否可用" @change="deviceSourceChange">
<el-option
v-for="dict in dc_device_source"
:key="dict.value"
:label="dict.label"
:value="dict.value"
@change="deviceSourceChange"
/>
</el-select>
</el-form-item>
@ -678,7 +677,7 @@ function selectDept(val){
}
function deviceSourceChange(val){
form.value.deviceSourceId=val.deviceSourceId;
form.value.deviceSourceId=val;
}
getDeptTree();

Loading…
Cancel
Save