角色与用户问题修复

uat
wangxiaoshuang 2025-02-24 15:35:33 +08:00
parent 2575e27d22
commit 05c75c32cf
2 changed files with 20 additions and 16 deletions

View File

@ -146,17 +146,19 @@
<!-- 具名slot --> <!-- 具名slot -->
<slot v-if="item.type === 'Custom'" :name="item.slot" /> <slot v-if="item.type === 'Custom'" :name="item.slot" />
</el-form-item> </el-form-item>
<el-form-item v-for="item in searchHandle" :key="item.label"> <div style="display: inline-block;width: fit-content;">
<slot v-if="item.slot" :name="item.slot" /> <el-form-item v-for="item in searchHandle" :key="item.label">
<el-button <slot v-if="item.slot" :name="item.slot" />
v-else <el-button
:type="item.type" v-else
:size="item.size || size" :type="item.type"
:icon="item.icon || ''" :size="item.size || size"
@click="handleClick(item.emitKey)" :icon="item.icon || ''"
>{{ item.label }}</el-button @click="handleClick(item.emitKey)"
> >{{ item.label }}</el-button
</el-form-item> >
</el-form-item>
</div>
</el-form> </el-form>
</div> </div>
</template> </template>
@ -174,11 +176,11 @@ export default {
}, },
labelWidth: { labelWidth: {
type: String, type: String,
default: "", default: '',
}, },
size: { size: {
type: String, type: String,
default: "mini", default: 'mini',
}, },
searchForm: { searchForm: {
type: Array, type: Array,
@ -196,10 +198,10 @@ export default {
methods: { methods: {
handleClick(emitKey) { handleClick(emitKey) {
// emit // emit
this.$emit(`${emitKey}`); this.$emit(`${emitKey}`)
}, },
}, },
}; }
</script> </script>
<style lang="scss"> <style lang="scss">
.base-search-form { .base-search-form {

View File

@ -96,7 +96,9 @@
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ $fd('IsEnable', scope.row.IsEnable) }} <el-tag :type="!scope.row.IsEnable ? 'info' : ''">
{{ $fd('IsEnable', scope.row.IsEnable) }}
</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column