|
@@ -71,14 +71,14 @@
|
|
|
<template v-if="item.attrType == 'select'">
|
|
<template v-if="item.attrType == 'select'">
|
|
|
<el-select v-model="item.minArray" placeholder="选择值" clearable filterable multiple :disabled="disabled"
|
|
<el-select v-model="item.minArray" placeholder="选择值" clearable filterable multiple :disabled="disabled"
|
|
|
@change="change($event, index, item)" @visible-change="item.checkAll = false" @blur="item.checkAll = false"
|
|
@change="change($event, index, item)" @visible-change="item.checkAll = false" @blur="item.checkAll = false"
|
|
|
- :filter-method="(query) => filterMethod(query, item)">
|
|
|
|
|
|
|
+ >
|
|
|
<template #header>
|
|
<template #header>
|
|
|
<el-checkbox v-model="item.checkAll" :indeterminate="item.indeterminate" :disabled="disabled"
|
|
<el-checkbox v-model="item.checkAll" :indeterminate="item.indeterminate" :disabled="disabled"
|
|
|
@change="(val) => handleCheckAll(item, index, val)">
|
|
@change="(val) => handleCheckAll(item, index, val)">
|
|
|
全选
|
|
全选
|
|
|
</el-checkbox>
|
|
</el-checkbox>
|
|
|
</template>
|
|
</template>
|
|
|
- <el-option v-for="dictLabalitem in showDictLabal(item)" :key="dictLabalitem.id"
|
|
|
|
|
|
|
+ <el-option v-for="dictLabalitem in item.dictLabal" :key="dictLabalitem.id"
|
|
|
:label="dictLabalitem.name" :value="dictLabalitem.code" />
|
|
:label="dictLabalitem.name" :value="dictLabalitem.code" />
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</template>
|
|
</template>
|
|
@@ -193,15 +193,6 @@ const licenseNoSelect = (e, item) => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-const showDictLabal = (item) => {
|
|
|
|
|
- if (item.dictLabalFilter) return item.dictLabalFilter
|
|
|
|
|
- return item.dictLabal
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-const filterMethod = (query, item) => {
|
|
|
|
|
- item.dictLabalFilter = item.dictLabal.filter(v => v.name.includes(query))
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
const handleCheckAll = (item, index: number, val: boolean) => {
|
|
const handleCheckAll = (item, index: number, val: boolean) => {
|
|
|
|
|
|
|
|
item.indeterminate = false
|
|
item.indeterminate = false
|