角色与用户问题修复

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,6 +146,7 @@
<!-- 具名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>
<div style="display: inline-block;width: fit-content;">
<el-form-item v-for="item in searchHandle" :key="item.label"> <el-form-item v-for="item in searchHandle" :key="item.label">
<slot v-if="item.slot" :name="item.slot" /> <slot v-if="item.slot" :name="item.slot" />
<el-button <el-button
@ -157,6 +158,7 @@
>{{ item.label }}</el-button >{{ 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">
<el-tag :type="!scope.row.IsEnable ? 'info' : ''">
{{ $fd('IsEnable', scope.row.IsEnable) }} {{ $fd('IsEnable', scope.row.IsEnable) }}
</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column