mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 09:43:32 +00:00
[update]eslint 问题修复
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-button type="primary" size="small" @click="handleClick">{{ this.$t('users.createUser') }}</el-button>
|
||||
<el-select v-if="hasSelection" :disabled="selectDisable" v-model="value" size="small" placeholder="更多操作" style="width:150px; margin-left:10px;">
|
||||
<el-select v-if="hasSelection" v-model="value" :disabled="selectDisable" size="small" placeholder="更多操作" style="width:150px; margin-left:10px;">
|
||||
<el-option label="批量删除" value="delete" />
|
||||
<el-option label="批量更新" value="delete" />
|
||||
<el-option label="禁用所选" value="delete" />
|
||||
@@ -20,9 +20,9 @@ export default {
|
||||
type: Boolean,
|
||||
default: () => true
|
||||
},
|
||||
selectDisable:{
|
||||
type:Boolean,
|
||||
default:() =>true
|
||||
selectDisable: {
|
||||
type: Boolean,
|
||||
default: () => true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
@@ -11,8 +11,8 @@
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="tabledata"
|
||||
@selection-change="handleSelectionChange"
|
||||
stripe
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<el-table-column
|
||||
v-if="hasSelect"
|
||||
@@ -122,8 +122,8 @@ export default {
|
||||
total: 0,
|
||||
offset: 0,
|
||||
headeractiontext: 'title',
|
||||
multipleSelection:[],
|
||||
selectDisable:true
|
||||
multipleSelection: [],
|
||||
selectDisable: true
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -150,9 +150,9 @@ export default {
|
||||
})
|
||||
},
|
||||
handleSelectionChange(val) {
|
||||
this.multipleSelection = val;
|
||||
(val.length>0) ? (this.selectDisable = false) : (this.selectDisable = true)
|
||||
},
|
||||
this.multipleSelection = val;
|
||||
(val.length > 0) ? (this.selectDisable = false) : (this.selectDisable = true)
|
||||
},
|
||||
handleEdit: function(index, row) {
|
||||
try {
|
||||
this.$router.push({ name: this.action.hasEdit, params: { id: row.id }})
|
||||
|
Reference in New Issue
Block a user