feat: 修改所有选择用户名 /邮箱的组件

This commit is contained in:
2026-01-07 11:50:02 +08:00
parent 6cd54cda18
commit b9112a5606
11 changed files with 84 additions and 151 deletions

View File

@@ -18,17 +18,7 @@
</div>
<div class="admin_state_item">
<span>{{ $t('admin.UserName') }}:</span>
<a-select
v-model:value="ids"
mode="multiple"
style="width: 230px"
:field-names="{ label: 'label', value: 'label' }"
:filter-option="filterOption"
:placeholder="$t('admin.selectUserName')"
max-tag-count="responsive"
:options="allUserList"
@keydown.enter="gettrialList"
></a-select>
<SelectUser v-model:value="ids" multiple />
</div>
</div>
<div class="admin_search">
@@ -188,8 +178,9 @@ import { Modal, message, Input } from 'ant-design-vue'
import { ExclamationCircleOutlined, MoreOutlined } from '@ant-design/icons-vue'
import allUserPoerationsVue from './addAllUser.vue'
import { useI18n } from 'vue-i18n'
import SelectUser from '@/component/common/SelectUser.vue'
export default defineComponent({
components: { allUserPoerationsVue, MoreOutlined },
components: { allUserPoerationsVue, MoreOutlined, SelectUser },
setup() {
const store: any = useStore()
const currentOrganizationId = computed(
@@ -202,9 +193,6 @@ export default defineComponent({
let filter: any = reactive({
dataList: [],
tableLoading: false,
allUserList: computed(() => {
return store.state.adminPage.allUserList
}),
allCountry: [],
rowSelection: computed(() => {
return {

View File

@@ -46,16 +46,7 @@
</div>
<div class="admin_state_item">
<span>{{ $t("admin.UserName") }}:</span>
<a-select
v-model:value="ids"
mode="multiple"
style="width: 250px"
:filter-option="filterOption"
:placeholder="$t('admin.selectUserName')"
max-tag-count="responsive"
:options="allUserList"
@keydown.enter="gettrialList"
></a-select>
<SelectUser v-model="ids" multiple />
</div>
<div class="admin_state_item">
<span>Organization Name:</span>
@@ -100,8 +91,9 @@
import { useStore } from "vuex";
import { Https } from "@/tool/https";
import { useI18n } from "vue-i18n";
import SelectUser from "@/component/common/SelectUser.vue";
export default defineComponent({
components: {},
components: { SelectUser },
setup() {
const store: any = useStore();
let rangePickerValue: any = ref([]);
@@ -176,9 +168,6 @@
];
});
let allUserList: any = computed(() => {
return store.state.adminPage.allUserList;
});
let ids = ref([]);
let email = ref("");
let dataList: any = ref([]);
@@ -193,7 +182,6 @@
rangeTimeValue,
columns,
dataList,
allUserList,
ids,
email,
renameData,

View File

@@ -85,9 +85,6 @@ export default defineComponent({
const {t} = useI18n()
const store:any = useStore()
let filter:any = reactive({
dataList:computed(()=>{
return store.state.adminPage.allUserList
}),
})
let filterData:any = reactive({