|
|
@ -87,15 +87,15 @@ |
|
|
|
|
|
|
|
<el-form-item label="当前设备名称" prop="device_code"> |
|
|
|
<el-select |
|
|
|
ref="test" |
|
|
|
v-model="form.device_code" |
|
|
|
filterable |
|
|
|
ref="test" |
|
|
|
clearable |
|
|
|
multiple |
|
|
|
reserveKeyword |
|
|
|
@change="change" |
|
|
|
reserve-keyword |
|
|
|
placeholder="请选择" |
|
|
|
style="width: 370px;" |
|
|
|
@change="change" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in deviceList" |
|
|
@ -111,7 +111,7 @@ |
|
|
|
v-model="form.next_device_code" |
|
|
|
filterable |
|
|
|
clearable |
|
|
|
reserveKeyword |
|
|
|
reserve-keyword |
|
|
|
multiple |
|
|
|
placeholder="请选择" |
|
|
|
style="width: 370px;" |
|
|
@ -308,6 +308,11 @@ export default { |
|
|
|
[CRUD.HOOK.beforeRefresh]() { |
|
|
|
return true |
|
|
|
}, |
|
|
|
[CRUD.HOOK.beforeToEdit](data) { |
|
|
|
this.form.device_code = Array.of(data.form.device_code.split('').join('')) |
|
|
|
this.form.next_device_code = Array.of(data.form.next_device_code.split('').join('')) |
|
|
|
return true |
|
|
|
}, |
|
|
|
// 改变状态 |
|
|
|
changeEnabled(data) { |
|
|
|
var msg = '停用' |
|
|
|