Browse Source

多选

master
gengby 2 years ago
parent
commit
3184564486
  1. 13
      acs/nladmin-ui/src/views/acs/route/routeLine/index.vue

13
acs/nladmin-ui/src/views/acs/route/routeLine/index.vue

@ -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 = '停用'

Loading…
Cancel
Save