多选
This commit is contained in:
@@ -93,7 +93,6 @@
|
|||||||
clearable
|
clearable
|
||||||
multiple
|
multiple
|
||||||
reserveKeyword
|
reserveKeyword
|
||||||
@change="change"
|
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
style="width: 370px;"
|
style="width: 370px;"
|
||||||
>
|
>
|
||||||
@@ -156,7 +155,7 @@
|
|||||||
ref="table"
|
ref="table"
|
||||||
v-loading="crud.loading"
|
v-loading="crud.loading"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
fit="false"
|
fit="fit"
|
||||||
size="medium"
|
size="medium"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
@@ -259,6 +258,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
fit: false,
|
||||||
routePlanList: [],
|
routePlanList: [],
|
||||||
deviceList: [],
|
deviceList: [],
|
||||||
deviceType: [
|
deviceType: [
|
||||||
@@ -308,6 +308,12 @@ export default {
|
|||||||
[CRUD.HOOK.beforeRefresh]() {
|
[CRUD.HOOK.beforeRefresh]() {
|
||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
|
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
||||||
|
[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 = '停用'
|
||||||
|
|||||||
Reference in New Issue
Block a user