feat: 修改所有选择用户名 /邮箱的组件
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -42,16 +42,7 @@
|
||||
</div>
|
||||
<div class="admin_state_item">
|
||||
<span>User Name:</span>
|
||||
<a-select
|
||||
v-model:value="ids"
|
||||
mode="multiple"
|
||||
style="width: 250px"
|
||||
:filter-option="filterOption"
|
||||
placeholder="Select Item..."
|
||||
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>
|
||||
@@ -95,8 +86,11 @@
|
||||
import { defineComponent, ref, createVNode, computed } from "vue";
|
||||
import { useStore } from "vuex";
|
||||
import { Https } from "@/tool/https";
|
||||
import SelectUser from "@/component/common/SelectUser.vue";
|
||||
export default defineComponent({
|
||||
components: {},
|
||||
components: {
|
||||
SelectUser
|
||||
},
|
||||
setup() {
|
||||
const store: any = useStore();
|
||||
let rangePickerValue: any = ref([]);
|
||||
@@ -238,9 +232,6 @@
|
||||
];
|
||||
});
|
||||
|
||||
let allUserList: any = computed(() => {
|
||||
return store.state.adminPage.allUserList;
|
||||
});
|
||||
let ids = ref([]);
|
||||
let email = ref("");
|
||||
let dataList: any = ref([]);
|
||||
@@ -255,7 +246,6 @@
|
||||
rangeTimeValue,
|
||||
columns,
|
||||
dataList,
|
||||
allUserList,
|
||||
ids,
|
||||
email,
|
||||
renameData,
|
||||
|
||||
@@ -139,9 +139,6 @@ export default defineComponent({
|
||||
let filter: any = reactive({
|
||||
dataList: [],
|
||||
tableLoading: false,
|
||||
allUserList: computed(()=>{
|
||||
return store.state.adminPage.allUserList
|
||||
}),
|
||||
rowSelection:computed(() => {
|
||||
return {
|
||||
selectedRowKeys: unref(selectedRowKeys),
|
||||
|
||||
@@ -40,27 +40,16 @@
|
||||
</div>
|
||||
<div class="admin_state_item">
|
||||
<span>Email:</span>
|
||||
<input
|
||||
<!-- <input
|
||||
v-model="email"
|
||||
placeholder="Please enter email"
|
||||
@keydown.enter="gettrialList"
|
||||
type="text"
|
||||
style="width: 250px"
|
||||
/>
|
||||
</div>
|
||||
<div class="admin_state_item">
|
||||
<span>User Name:</span>
|
||||
<a-select
|
||||
v-model:value="ids"
|
||||
mode="multiple"
|
||||
style="width: 250px"
|
||||
:filter-option="filterOption"
|
||||
placeholder="Select Item..."
|
||||
max-tag-count="responsive"
|
||||
:options="allUserList"
|
||||
@keydown.enter="gettrialList"
|
||||
></a-select>
|
||||
/> -->
|
||||
<SelectUser v-model="email" labelKey="email" valueKey="email" />
|
||||
</div>
|
||||
|
||||
<div class="admin_state_item">
|
||||
<span>User Type:</span>
|
||||
<a-select
|
||||
@@ -160,16 +149,14 @@ import { formatTime } from "@/tool/util";
|
||||
import { useStore } from "vuex";
|
||||
import { Https } from "@/tool/https";
|
||||
import allUserPoerationsVue from "./allUserPoerations.vue";
|
||||
import SelectUser from '@/component/common/SelectUser.vue'
|
||||
export default defineComponent({
|
||||
components: {allUserPoerationsVue,},
|
||||
components: {allUserPoerationsVue,SelectUser},
|
||||
setup() {
|
||||
const store:any = useStore()
|
||||
let filter: any = reactive({
|
||||
dataList: [],
|
||||
tableLoading: false,
|
||||
allUserList: computed(()=>{
|
||||
return store.state.adminPage.allUserList
|
||||
}),
|
||||
allCountry:[],
|
||||
isAwayOrUnfold:false
|
||||
});
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
</div>
|
||||
<div class="admin_state_item">
|
||||
<span>User:</span>
|
||||
<a-select
|
||||
<!-- <a-select
|
||||
v-model:value="userIdList"
|
||||
mode="multiple"
|
||||
style="width: 280px"
|
||||
@@ -33,7 +33,8 @@
|
||||
placeholder="Select Item..."
|
||||
max-tag-count="responsive"
|
||||
:options="dataList"
|
||||
></a-select>
|
||||
></a-select> -->
|
||||
<SelectUser v-model="userIdList" multiple />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -62,15 +63,14 @@ import { PieChart } from 'echarts/charts';
|
||||
import { LabelLayout } from 'echarts/features';
|
||||
import { useStore } from "vuex";
|
||||
import { CanvasRenderer } from 'echarts/renderers';
|
||||
import SelectUser from '@/component/common/SelectUser.vue';
|
||||
export default defineComponent({
|
||||
components: {
|
||||
SelectUser
|
||||
},
|
||||
setup() {
|
||||
const store:any = useStore()
|
||||
let filter:any = reactive({
|
||||
dataList:computed(()=>{
|
||||
return store.state.adminPage.allUserList
|
||||
}),
|
||||
})
|
||||
|
||||
let filterData:any = reactive({
|
||||
|
||||
@@ -48,16 +48,7 @@
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
<a-form-item label="Admin Account">
|
||||
<!-- <a-select
|
||||
v-model:value="searchForm.adminAccId"
|
||||
allow-clear
|
||||
show-search
|
||||
:filter-option="filterOption"
|
||||
placeholder="Select Account"
|
||||
style="width: 180px"
|
||||
:options="allUserList"
|
||||
></a-select> -->
|
||||
<SelectUser v-model="testuser" />
|
||||
<SelectUser v-model="searchForm.adminAccId" labelKey="email" />
|
||||
</a-form-item>
|
||||
<a-form-item label="Status">
|
||||
<a-select
|
||||
@@ -71,12 +62,12 @@
|
||||
</a-form-item>
|
||||
<a-form-item label="Country or Region">
|
||||
<a-select
|
||||
v-model:value="searchForm.country"
|
||||
v-model:value="searchForm.countryOrRegion"
|
||||
:allowClear="true"
|
||||
show-search
|
||||
style="width: 250px"
|
||||
:filter-option="filterOption"
|
||||
placeholder="Select Item..."
|
||||
placeholder="Select the country or region"
|
||||
max-tag-count="responsive"
|
||||
:options="countryList"
|
||||
/>
|
||||
@@ -127,9 +118,6 @@
|
||||
{{ record.status }}
|
||||
</a-tag>
|
||||
</template>
|
||||
<template v-if="column.key === 'adminAccId'">
|
||||
{{ allUserList.find(item => item.value === record.adminAccId)?.label }}
|
||||
</template>
|
||||
|
||||
<template v-else-if="column.key === 'actions'">
|
||||
<a-space>
|
||||
@@ -239,19 +227,26 @@
|
||||
</div>
|
||||
<div class="admin_state_item">
|
||||
<span>
|
||||
Admin Account:
|
||||
Country Or Region:
|
||||
<span>*</span>
|
||||
</span>
|
||||
<a-select
|
||||
v-model:value="formState.adminAccId"
|
||||
placeholder="Select the admin account"
|
||||
v-model:value="formState.countryOrRegion"
|
||||
placeholder="Select the country or region"
|
||||
allow-clear
|
||||
show-search
|
||||
:filter-option="filterOption"
|
||||
style="width: 250px"
|
||||
:options="allUserList"
|
||||
:options="countryList"
|
||||
></a-select>
|
||||
</div>
|
||||
<div class="admin_state_item">
|
||||
<span>
|
||||
Admin Account:
|
||||
<span>*</span>
|
||||
</span>
|
||||
<SelectUser v-model="formState.adminAccId" labelKey="email" />
|
||||
</div>
|
||||
<div class="admin_state_item">
|
||||
<span>
|
||||
Start Time:
|
||||
@@ -439,6 +434,7 @@ const searchForm = reactive({
|
||||
adminAccId: undefined as string | undefined,
|
||||
status: [] as PlanStatus[] | [],
|
||||
id: '',
|
||||
countryOrRegion: null,
|
||||
page: 1,
|
||||
size: 10,
|
||||
total: 0
|
||||
@@ -461,7 +457,8 @@ const formState = reactive({
|
||||
adminAccId: undefined as string | undefined,
|
||||
creditLimit: null as number | null,
|
||||
accountNum: null as number | null,
|
||||
status: undefined as PlanStatus | undefined
|
||||
status: undefined as PlanStatus | undefined,
|
||||
countryOrRegion: null as string | null
|
||||
})
|
||||
|
||||
const organizationModalVisible = ref(false)
|
||||
@@ -607,6 +604,7 @@ const resetFormState = () => {
|
||||
formState.creditLimit = null
|
||||
formState.accountNum = null
|
||||
formState.status = undefined
|
||||
formState.countryOrRegion = null
|
||||
}
|
||||
|
||||
const changePage = (pagination: any) => {
|
||||
@@ -628,12 +626,10 @@ const handleReset = () => {
|
||||
searchForm.adminAccId = undefined
|
||||
searchForm.status = []
|
||||
searchForm.id = ''
|
||||
searchForm.countryOrRegion = ''
|
||||
handleSearch()
|
||||
}
|
||||
|
||||
const allUserList = computed(() => {
|
||||
return store.state.adminPage.allUserList
|
||||
})
|
||||
const openCreate = () => {
|
||||
modalTitle.value = 'New Subscription Plan'
|
||||
isEditMode.value = false
|
||||
@@ -971,7 +967,7 @@ const filterOption = (input: string, option: any) => {
|
||||
}
|
||||
|
||||
.subscriptionPlan_modal {
|
||||
.form_content{
|
||||
.form_content {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
@@ -47,16 +47,7 @@
|
||||
</div>
|
||||
<div class="admin_state_item">
|
||||
<span>User Name:</span>
|
||||
<a-select
|
||||
v-model:value="ids"
|
||||
mode="multiple"
|
||||
style="width: 250px"
|
||||
:filter-option="filterOption"
|
||||
placeholder="Select Item..."
|
||||
max-tag-count="responsive"
|
||||
:options="allUserList"
|
||||
@keydown.enter="gettrialList"
|
||||
></a-select>
|
||||
<SelectUser v-model="ids" multiple />
|
||||
</div>
|
||||
</div>
|
||||
<div class="admin_search">
|
||||
@@ -96,17 +87,17 @@ import { defineComponent, ref, createVNode, computed, reactive, toRefs, onMounte
|
||||
import { formatTime } from "@/tool/util";
|
||||
import { useStore } from "vuex";
|
||||
import { Https } from "@/tool/https";
|
||||
import SelectUser from '@/component/common/SelectUser.vue'
|
||||
export default defineComponent({
|
||||
components: {
|
||||
SelectUser
|
||||
},
|
||||
setup() {
|
||||
const store:any = useStore()
|
||||
let filter:any = reactive({
|
||||
dataList:[],
|
||||
tableLoading:false,
|
||||
allUserList: computed(()=>{
|
||||
return store.state.adminPage.allUserList
|
||||
}),
|
||||
|
||||
allCountry:[]
|
||||
})
|
||||
let filterData:any = reactive({
|
||||
|
||||
Reference in New Issue
Block a user