feat: 1.对接全域布控下菜单的增删查改功能,以及用户操作流程优化。2.对接人力情报采集系统采集流转列表,搜索,新增接口

This commit is contained in:
jy
2025-06-04 17:27:57 +08:00
parent 2b3da38702
commit d8bee57f6b
44 changed files with 8479 additions and 594 deletions

View File

@ -1,8 +1,19 @@
<template>
<div class="Select-wrap" :style="{ width: width }">
<el-select :disabled="props.disabled" v-bind="$attrs" v-model="modelValue" @change="hanlderSelect" :popper-class="selectOption.length > 20 ? 'nation-select' : ''" :placeholder="placeholder">
<el-option v-for="item in dictEnum" :key="item.value" :label="item.zdmc || item.label" :value="item.dm || item.value">
<el-select
:disabled="props.disabled"
v-bind="$attrs"
v-model="modelValue"
@change="hanlderSelect"
:popper-class="selectOption.length > 20 ? 'nation-select' : ''"
:placeholder="placeholder"
>
<el-option
v-for="item in dictEnum"
:key="item.value"
:label="item.zdmc || item.label"
:value="item.dm || item.value"
>
</el-option>
</el-select>
</div>
@ -16,20 +27,24 @@ const props = defineProps({
default: "请选择",
type: String
},
disabled:{
disabled: {
default: false,
type: Boolean
},
modelValue: {
default: "",
type: String
type: [String, Array], // 允许 String 或 Array
default: "", // 默认值设为空字符串
validator: (value) => {
// 允许:空字符串、非空字符串、数组
return typeof value === "string" || Array.isArray(value);
}
},
dictEnum: {
default: Array,
type: String
default: [],
type: Array
},
width: {
default: '100%',
default: "100%",
type: String
}
});