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