Compare commits
No commits in common. "d312d5e941c83dd810057d699dce0c2131cf6100" and "66a31e1c6ce00cd5ce6535d277a58557a3e27013" have entirely different histories.
d312d5e941
...
66a31e1c6c
|
@ -5,4 +5,4 @@ VITE_APP_TITLE = 代理管理系统
|
||||||
VITE_APP_ENV = 'development'
|
VITE_APP_ENV = 'development'
|
||||||
|
|
||||||
# 代理管理系统/开发环境
|
# 代理管理系统/开发环境
|
||||||
VITE_APP_BASE_API = '/dev-api'
|
VITE_APP_BASE_API = '/ff-api'
|
||||||
|
|
|
@ -1,114 +0,0 @@
|
||||||
<template>
|
|
||||||
<el-form-item :label="label" v-if="hasPermission" :prop="prop">
|
|
||||||
<el-select
|
|
||||||
v-model="innerValue"
|
|
||||||
filterable
|
|
||||||
clearable
|
|
||||||
reserve-keyword
|
|
||||||
:placeholder="placeholder"
|
|
||||||
:remote-method="loadOptions"
|
|
||||||
:loading="loadingSelect"
|
|
||||||
style="width: 240px"
|
|
||||||
>
|
|
||||||
<!-- 正常列表 -->
|
|
||||||
<el-option
|
|
||||||
v-for="item in agentListSelect"
|
|
||||||
:key="item.tenantKey"
|
|
||||||
:label="item.tenantKey"
|
|
||||||
:value="item.tenantKey"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<!-- 加载更多按钮 -->
|
|
||||||
<el-option
|
|
||||||
v-if="hasMore && agentListSelect.length > 0"
|
|
||||||
disabled
|
|
||||||
value=""
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
style="color:#409EFF;cursor:pointer;width:100%;"
|
|
||||||
@click.stop="loadMore"
|
|
||||||
>
|
|
||||||
{{ loadingMore ? "加载中..." : "加载更多" }}
|
|
||||||
</div>
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script setup>
|
|
||||||
import { ref, watch, onMounted, computed } from "vue"
|
|
||||||
import { superTenantList } from "@/api/super/tenant"
|
|
||||||
import auth from "@/plugins/auth"
|
|
||||||
|
|
||||||
const props = defineProps({
|
|
||||||
modelValue: String, // v-model 绑定值
|
|
||||||
label: {
|
|
||||||
type: String,
|
|
||||||
default: "商户账号"
|
|
||||||
},
|
|
||||||
prop: {
|
|
||||||
type: String,
|
|
||||||
default: "tenantKey"
|
|
||||||
},
|
|
||||||
placeholder: {
|
|
||||||
type: String,
|
|
||||||
default: "请输入商户账号搜索"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
const emit = defineEmits(["update:modelValue"])
|
|
||||||
|
|
||||||
// 权限控制
|
|
||||||
const hasPermission = computed(() => auth.hasPermi("super:tenant:list"))
|
|
||||||
|
|
||||||
// 内部绑定值
|
|
||||||
const innerValue = ref(props.modelValue)
|
|
||||||
watch(() => props.modelValue, v => (innerValue.value = v))
|
|
||||||
watch(innerValue, v => emit("update:modelValue", v))
|
|
||||||
|
|
||||||
// 列表数据 & 状态
|
|
||||||
const agentListSelect = ref([])
|
|
||||||
const loadingSelect = ref(false)
|
|
||||||
const loadingMore = ref(false)
|
|
||||||
const hasMore = ref(true)
|
|
||||||
const queryParamSelect = ref({
|
|
||||||
pageNum: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
tenantKey: ""
|
|
||||||
})
|
|
||||||
|
|
||||||
// 加载第一页(搜索)
|
|
||||||
const loadOptions = async (query) => {
|
|
||||||
queryParamSelect.value.pageNum = 1
|
|
||||||
queryParamSelect.value.tenantKey = query
|
|
||||||
loadingSelect.value = true
|
|
||||||
try {
|
|
||||||
const res = await superTenantList(queryParamSelect.value)
|
|
||||||
agentListSelect.value = res.rows || []
|
|
||||||
hasMore.value = agentListSelect.value.length < (res.total || 0)
|
|
||||||
} finally {
|
|
||||||
loadingSelect.value = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 加载更多(分页)
|
|
||||||
const loadMore = async () => {
|
|
||||||
if (!hasMore.value) return
|
|
||||||
queryParamSelect.value.pageNum++
|
|
||||||
loadingMore.value = true
|
|
||||||
try {
|
|
||||||
const res = await superTenantList(queryParamSelect.value)
|
|
||||||
agentListSelect.value = [...agentListSelect.value, ...(res.rows || [])]
|
|
||||||
hasMore.value = agentListSelect.value.length < (res.total || 0)
|
|
||||||
} finally {
|
|
||||||
loadingMore.value = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 初始化
|
|
||||||
onMounted(() => {
|
|
||||||
if (hasPermission.value) {
|
|
||||||
loadOptions("")
|
|
||||||
}
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
|
|
|
@ -333,7 +333,6 @@ function submitForm() {
|
||||||
tenantType: form.value.tenantType,
|
tenantType: form.value.tenantType,
|
||||||
timeZone: form.value.timeZone,
|
timeZone: form.value.timeZone,
|
||||||
scoreRatio: form.value.scoreRatio,
|
scoreRatio: form.value.scoreRatio,
|
||||||
googleCode: form.value.googleCode,
|
|
||||||
}
|
}
|
||||||
createAgent(dataObj).then(response => {
|
createAgent(dataObj).then(response => {
|
||||||
loadingButton.value = false;
|
loadingButton.value = false;
|
||||||
|
|
|
@ -3,7 +3,15 @@
|
||||||
<table-search-card :leftSpan="24" :model="queryParams" @getList="getList" @handleQuery="handleQuery" @resetQuery="resetQuery">
|
<table-search-card :leftSpan="24" :model="queryParams" @getList="getList" @handleQuery="handleQuery" @resetQuery="resetQuery">
|
||||||
<template #left>
|
<template #left>
|
||||||
<table-search-date ref="searchDateRef" v-model:dateRange="dateRange" @dateChange="handleQuery" v-model:operateTimeType="operateTimeType"></table-search-date>
|
<table-search-date ref="searchDateRef" v-model:dateRange="dateRange" @dateChange="handleQuery" v-model:operateTimeType="operateTimeType"></table-search-date>
|
||||||
<TenantSelect ref="tenantSelectRef" v-model="queryParams.tenantKey" :placeholder="t('请选择商户账号')" style="width: 300px" />
|
<el-form-item :label="t('商户账号')" prop="tenantKey">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.tenantKey"
|
||||||
|
:placeholder="t('请输入商户账号')"
|
||||||
|
clearable
|
||||||
|
style="width: 200px"
|
||||||
|
@keyup.enter="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item :label="t('玩家帐号')" prop="ourAccount">
|
<el-form-item :label="t('玩家帐号')" prop="ourAccount">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.ourAccount"
|
v-model="queryParams.ourAccount"
|
||||||
|
@ -113,7 +121,6 @@
|
||||||
import { getLocalStorage } from "@/utils/auth";
|
import { getLocalStorage } from "@/utils/auth";
|
||||||
import CustomSelect from '@/components/CustomSelect';
|
import CustomSelect from '@/components/CustomSelect';
|
||||||
import TableSearchDate from '@/components/TableSearchDate'
|
import TableSearchDate from '@/components/TableSearchDate'
|
||||||
import TenantSelect from '@/components/TenantSelect';
|
|
||||||
import Crontab from '@/components/Crontab'
|
import Crontab from '@/components/Crontab'
|
||||||
import { parseTime } from '@/utils/ruoyi'; // 时间格式化
|
import { parseTime } from '@/utils/ruoyi'; // 时间格式化
|
||||||
import { onMounted } from "vue";
|
import { onMounted } from "vue";
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<table-search-card :model="queryParams" @getList="getList" @handleQuery="handleQuery" @resetQuery="resetQuery">
|
<table-search-card :model="queryParams" @getList="getList" @handleQuery="handleQuery" @resetQuery="resetQuery">
|
||||||
<template #left>
|
<template #left>
|
||||||
<table-search-date ref="searchDateRef" @dateChange="handleQuery" v-model:dateRange="dateRange" v-model:operateTimeType="operateTimeType"></table-search-date>
|
<table-search-date ref="searchDateRef" @dateChange="handleQuery" v-model:dateRange="dateRange" v-model:operateTimeType="operateTimeType"></table-search-date>
|
||||||
<select-input-form ref="selectInputFormRef" :queryParamsList="queryParamsList" v-if="showLodings" :queryParams="queryParams"></select-input-form>
|
<select-input-form ref="selectInputFormRef" :queryParamsList="queryParamsList" :queryParams="queryParams"></select-input-form>
|
||||||
<el-form-item :label="t('佣金类型')" prop="commissionType">
|
<el-form-item :label="t('佣金类型')" prop="commissionType">
|
||||||
<el-select v-if="commissionTypeOption.length > 0" v-model="queryParams.commissionType" clearable style="width:220px;" :placeholder="t('请选择')">
|
<el-select v-if="commissionTypeOption.length > 0" v-model="queryParams.commissionType" clearable style="width:220px;" :placeholder="t('请选择')">
|
||||||
<el-option
|
<el-option
|
||||||
|
@ -140,13 +140,8 @@ function handleQuery() {
|
||||||
getList();
|
getList();
|
||||||
}
|
}
|
||||||
const searchDateRef = ref(null);
|
const searchDateRef = ref(null);
|
||||||
const showLodings = ref(true);
|
|
||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
function resetQuery() {
|
function resetQuery() {
|
||||||
showLodings.value = false;
|
|
||||||
nextTick(() => {
|
|
||||||
showLodings.value = true;
|
|
||||||
})
|
|
||||||
dateRange.value = [];
|
dateRange.value = [];
|
||||||
operateTimeType.value = "day";
|
operateTimeType.value = "day";
|
||||||
searchDateRef.value.timeTypeChange(operateTimeType.value)
|
searchDateRef.value.timeTypeChange(operateTimeType.value)
|
||||||
|
|
|
@ -3,41 +3,7 @@
|
||||||
<table-search-card :model="queryParams" @getList="getList" @handleQuery="handleQuery" @resetQuery="resetQuery">
|
<table-search-card :model="queryParams" @getList="getList" @handleQuery="handleQuery" @resetQuery="resetQuery">
|
||||||
<template #left>
|
<template #left>
|
||||||
<table-search-date ref="searchDateRef" v-model:dateRange="dateRange" @dateChange="handleQuery" v-model:operateTimeType="operateTimeType"></table-search-date>
|
<table-search-date ref="searchDateRef" v-model:dateRange="dateRange" @dateChange="handleQuery" v-model:operateTimeType="operateTimeType"></table-search-date>
|
||||||
<!-- <select-input-form ref="selectInputFormRef" :queryParamsList="queryParamsList" :queryParams="queryParams"></select-input-form> -->
|
<select-input-form ref="selectInputFormRef" :queryParamsList="queryParamsList" :queryParams="queryParams"></select-input-form>
|
||||||
<el-form-item :label="t('商户账号')" v-hasPermi="['super:tenant:list']" prop="tenantKey">
|
|
||||||
<el-select
|
|
||||||
v-model="queryParams.tenantKey"
|
|
||||||
filterable
|
|
||||||
clearable
|
|
||||||
reserve-keyword
|
|
||||||
placeholder="请输入商户账号搜索"
|
|
||||||
:remote-method="loadOptions"
|
|
||||||
:loading="loadingSelect"
|
|
||||||
style="width: 240px"
|
|
||||||
>
|
|
||||||
<!-- 正常列表 -->
|
|
||||||
<el-option
|
|
||||||
v-for="item in agentListSelect"
|
|
||||||
:key="item.tenantKey"
|
|
||||||
:label="item.tenantKey"
|
|
||||||
:value="item.tenantKey"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<!-- 加载更多按钮 -->
|
|
||||||
<el-option
|
|
||||||
v-if="hasMore && agentListSelect.length > 0"
|
|
||||||
disabled
|
|
||||||
value=""
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
style="color:#409EFF;cursor:pointer;width:100%;"
|
|
||||||
@click.stop="loadMore"
|
|
||||||
>
|
|
||||||
{{ loadingMore ? "加载中..." : "加载更多" }}
|
|
||||||
</div>
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item prop="gameQuotaFlowId">
|
<el-form-item prop="gameQuotaFlowId">
|
||||||
<el-input v-model="queryParams.gameQuotaFlowId" style="width: 240px" :placeholder="t('流水ID')" />
|
<el-input v-model="queryParams.gameQuotaFlowId" style="width: 240px" :placeholder="t('流水ID')" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -150,8 +116,6 @@
|
||||||
import DictText from '@/components/DictText'
|
import DictText from '@/components/DictText'
|
||||||
import SelectInputForm from '@/components/SelectInputForm';
|
import SelectInputForm from '@/components/SelectInputForm';
|
||||||
import Crontab from '@/components/Crontab'
|
import Crontab from '@/components/Crontab'
|
||||||
import auth from '@/plugins/auth';
|
|
||||||
import { superTenantList } from "@/api/super/tenant";
|
|
||||||
import { parseTime } from '@/utils/ruoyi'; // 时间格式化
|
import { parseTime } from '@/utils/ruoyi'; // 时间格式化
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
|
@ -175,49 +139,6 @@
|
||||||
}])
|
}])
|
||||||
const { queryParams, form, rules } = toRefs(data);
|
const { queryParams, form, rules } = toRefs(data);
|
||||||
const dateRange = ref([]),operateTimeType = ref("day");
|
const dateRange = ref([]),operateTimeType = ref("day");
|
||||||
|
|
||||||
const agentListSelect = ref([])
|
|
||||||
|
|
||||||
|
|
||||||
const loadingSelect = ref(false)
|
|
||||||
|
|
||||||
const loadingMore = ref(false)
|
|
||||||
|
|
||||||
const hasMore = ref(true)
|
|
||||||
|
|
||||||
const queryParamSelect = ref({
|
|
||||||
pageNum: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
tenantKey: ""
|
|
||||||
})
|
|
||||||
|
|
||||||
// 加载第一页(搜索)
|
|
||||||
const loadOptions = async (query) => {
|
|
||||||
queryParamSelect.value.pageNum = 1
|
|
||||||
queryParamSelect.value.tenantKey = query
|
|
||||||
loadingSelect.value = true
|
|
||||||
try {
|
|
||||||
const res = await superTenantList(queryParamSelect.value)
|
|
||||||
agentListSelect.value = res.rows || []
|
|
||||||
hasMore.value = agentListSelect.value.length < (res.total || 0)
|
|
||||||
} finally {
|
|
||||||
loadingSelect.value = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 加载更多(分页)
|
|
||||||
const loadMore = async () => {
|
|
||||||
if (!hasMore.value) return
|
|
||||||
queryParamSelect.value.pageNum++
|
|
||||||
loadingMore.value = true
|
|
||||||
try {
|
|
||||||
const res = await superTenantList(queryParamSelect.value)
|
|
||||||
agentListSelect.value = [...agentListSelect.value, ...(res.rows || [])]
|
|
||||||
hasMore.value = agentListSelect.value.length < (res.total || 0)
|
|
||||||
} finally {
|
|
||||||
loadingMore.value = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/** 查询列表 */
|
/** 查询列表 */
|
||||||
function getList() {
|
function getList() {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
|
@ -253,9 +174,6 @@ const loadMore = async () => {
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getList();
|
getList();
|
||||||
getSuperCommonOperationTypes();
|
getSuperCommonOperationTypes();
|
||||||
if (auth.hasPermi('super:tenant:list') == true){
|
|
||||||
loadOptions('');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -123,10 +123,7 @@ const data = reactive({
|
||||||
],
|
],
|
||||||
content:[
|
content:[
|
||||||
{ required: true, message: "请输入内容", trigger: "change" },
|
{ required: true, message: "请输入内容", trigger: "change" },
|
||||||
],
|
]
|
||||||
replyContent:[
|
|
||||||
{ required: true, message: "请输入回复内容", trigger: "change" },
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -220,9 +217,8 @@ function submitForm1() {
|
||||||
form.value.replyContent = '';
|
form.value.replyContent = '';
|
||||||
|
|
||||||
getList();
|
getList();
|
||||||
}).catch(() => {
|
|
||||||
loadingButton.value = false;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,15 @@
|
||||||
<table-search-card :model="queryParams" @getList="getList" @handleQuery="handleQuery" @resetQuery="resetQuery">
|
<table-search-card :model="queryParams" @getList="getList" @handleQuery="handleQuery" @resetQuery="resetQuery">
|
||||||
<template #left>
|
<template #left>
|
||||||
<table-search-date ref="searchDateRef" v-model:dateRange="dateRange" @dateChange="handleQuery" v-model:operateTimeType="operateTimeType"></table-search-date>
|
<table-search-date ref="searchDateRef" v-model:dateRange="dateRange" @dateChange="handleQuery" v-model:operateTimeType="operateTimeType"></table-search-date>
|
||||||
<TenantSelect ref="tenantSelectRef" v-model="queryParams.tenantKey" :placeholder="t('请选择商户账号')" style="width: 300px" />
|
<el-form-item :label="t('商户账号')" prop="tenantKey">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.tenantKey"
|
||||||
|
:placeholder="t('请输入商户账号')"
|
||||||
|
clearable
|
||||||
|
style="width: 200px"
|
||||||
|
@keyup.enter="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item :label="t('状态')" prop="status">
|
<el-form-item :label="t('状态')" prop="status">
|
||||||
<CustomSelect v-model="queryParams.status" :options="tenantStatusArr" placeholder="请选择状态" style="width: 200px" />
|
<CustomSelect v-model="queryParams.status" :options="tenantStatusArr" placeholder="请选择状态" style="width: 200px" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -211,7 +219,6 @@
|
||||||
import CustomSelect from '@/components/CustomSelect'
|
import CustomSelect from '@/components/CustomSelect'
|
||||||
import TableSearchDate from '@/components/TableSearchDate'
|
import TableSearchDate from '@/components/TableSearchDate'
|
||||||
import Crontab from '@/components/Crontab'
|
import Crontab from '@/components/Crontab'
|
||||||
import TenantSelect from '@/components/TenantSelect';
|
|
||||||
import { parseTime } from '@/utils/ruoyi'; // 时间格式化
|
import { parseTime } from '@/utils/ruoyi'; // 时间格式化
|
||||||
import { nextTick, onMounted } from "vue";
|
import { nextTick, onMounted } from "vue";
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
|
@ -3,7 +3,15 @@
|
||||||
<table-search-card :model="queryParams" @getList="getList" @handleQuery="handleQuery" @resetQuery="resetQuery">
|
<table-search-card :model="queryParams" @getList="getList" @handleQuery="handleQuery" @resetQuery="resetQuery">
|
||||||
<template #left>
|
<template #left>
|
||||||
<table-search-date ref="searchDateRef" v-model:dateRange="dateRange" @dateChange="handleQuery" v-model:operateTimeType="operateTimeType"></table-search-date>
|
<table-search-date ref="searchDateRef" v-model:dateRange="dateRange" @dateChange="handleQuery" v-model:operateTimeType="operateTimeType"></table-search-date>
|
||||||
<TenantSelect ref="tenantSelectRef" v-model="queryParams.tenantKey" :placeholder="t('请选择商户账号')" style="width: 300px" />
|
<el-form-item :label="t('商户账号')" prop="tenantKey">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.tenantKey"
|
||||||
|
:placeholder="t('请输入商户账号')"
|
||||||
|
clearable
|
||||||
|
style="width: 200px"
|
||||||
|
@keyup.enter="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item :label="t('玩家账号')" prop="memberAccount">
|
<el-form-item :label="t('玩家账号')" prop="memberAccount">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.memberAccount"
|
v-model="queryParams.memberAccount"
|
||||||
|
@ -162,8 +170,7 @@
|
||||||
import {superQueryBalance} from "@/api/super/platform";
|
import {superQueryBalance} from "@/api/super/platform";
|
||||||
import TableSearchDate from '@/components/TableSearchDate'
|
import TableSearchDate from '@/components/TableSearchDate'
|
||||||
import { getLocalStorage } from "@/utils/auth";
|
import { getLocalStorage } from "@/utils/auth";
|
||||||
import CustomSelect from '@/components/CustomSelect';
|
import CustomSelect from '@/components/CustomSelect'
|
||||||
import TenantSelect from '@/components/TenantSelect';
|
|
||||||
import Crontab from '@/components/Crontab'
|
import Crontab from '@/components/Crontab'
|
||||||
import { parseTime } from '@/utils/ruoyi'; // 时间格式化
|
import { parseTime } from '@/utils/ruoyi'; // 时间格式化
|
||||||
import { nextTick } from "vue";
|
import { nextTick } from "vue";
|
||||||
|
|
|
@ -2,39 +2,14 @@
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<table-search-card :model="queryParams" @getList="getList" @handleQuery="handleQuery" @resetQuery="resetQuery">
|
<table-search-card :model="queryParams" @getList="getList" @handleQuery="handleQuery" @resetQuery="resetQuery">
|
||||||
<template #left>
|
<template #left>
|
||||||
<el-form-item :label="t('商户账号')" v-hasPermi="['super:tenant:list']" prop="tenantKey">
|
<el-form-item :label="t('商户账号')" prop="tenantKey">
|
||||||
<el-select
|
<el-input
|
||||||
v-model="queryParams.tenantKey"
|
v-model="queryParams.tenantKey"
|
||||||
filterable
|
:placeholder="t('请输入商户账号')"
|
||||||
clearable
|
clearable
|
||||||
reserve-keyword
|
style="width: 200px"
|
||||||
placeholder="请输入商户账号搜索"
|
@keyup.enter="handleQuery"
|
||||||
:remote-method="loadOptions"
|
|
||||||
:loading="loadingSelect"
|
|
||||||
style="width: 240px"
|
|
||||||
>
|
|
||||||
<!-- 正常列表 -->
|
|
||||||
<el-option
|
|
||||||
v-for="item in agentListSelect"
|
|
||||||
:key="item.tenantKey"
|
|
||||||
:label="item.tenantKey"
|
|
||||||
:value="item.tenantKey"
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- 加载更多按钮 -->
|
|
||||||
<el-option
|
|
||||||
v-if="hasMore && agentListSelect.length > 0"
|
|
||||||
disabled
|
|
||||||
value=""
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
style="color:#409EFF;cursor:pointer;width:100%;"
|
|
||||||
@click.stop="loadMore"
|
|
||||||
>
|
|
||||||
{{ loadingMore ? "加载中..." : "加载更多" }}
|
|
||||||
</div>
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="t('状态')" prop="tenantStatus">
|
<el-form-item :label="t('状态')" prop="tenantStatus">
|
||||||
<CustomSelect v-model="queryParams.tenantStatus" :options="tenantStatusArr" placeholder="请选择状态" style="width: 200px" />
|
<CustomSelect v-model="queryParams.tenantStatus" :options="tenantStatusArr" placeholder="请选择状态" style="width: 200px" />
|
||||||
|
@ -260,8 +235,7 @@
|
||||||
import CustomSelect from '@/components/CustomSelect'
|
import CustomSelect from '@/components/CustomSelect'
|
||||||
import CopyIcon from '@/components/CopyIcon'
|
import CopyIcon from '@/components/CopyIcon'
|
||||||
import NumberInput from '@/components/NumberInput';
|
import NumberInput from '@/components/NumberInput';
|
||||||
import Crontab from '@/components/Crontab';
|
import Crontab from '@/components/Crontab'
|
||||||
import auth from '@/plugins/auth';
|
|
||||||
import { Search } from '@element-plus/icons-vue'
|
import { Search } from '@element-plus/icons-vue'
|
||||||
import { parseTime } from '@/utils/ruoyi'; // 时间格式化
|
import { parseTime } from '@/utils/ruoyi'; // 时间格式化
|
||||||
import { get } from "@vueuse/core";
|
import { get } from "@vueuse/core";
|
||||||
|
@ -320,51 +294,8 @@ currencySelectArr.value = res.map(item => {
|
||||||
pwd: "",
|
pwd: "",
|
||||||
});
|
});
|
||||||
const openReset = ref(false);
|
const openReset = ref(false);
|
||||||
const agentListSelect = ref([])
|
|
||||||
|
|
||||||
|
|
||||||
const loadingSelect = ref(false)
|
|
||||||
|
|
||||||
const loadingMore = ref(false)
|
|
||||||
|
|
||||||
const hasMore = ref(true)
|
|
||||||
|
|
||||||
const queryParamSelect = ref({
|
|
||||||
pageNum: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
tenantKey: ""
|
|
||||||
})
|
|
||||||
|
|
||||||
// 加载第一页(搜索)
|
|
||||||
const loadOptions = async (query) => {
|
|
||||||
queryParamSelect.value.pageNum = 1
|
|
||||||
queryParamSelect.value.tenantKey = query
|
|
||||||
loadingSelect.value = true
|
|
||||||
try {
|
|
||||||
const res = await superTenantList(queryParamSelect.value)
|
|
||||||
agentListSelect.value = res.rows || []
|
|
||||||
hasMore.value = agentListSelect.value.length < (res.total || 0)
|
|
||||||
} finally {
|
|
||||||
loadingSelect.value = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 加载更多(分页)
|
|
||||||
const loadMore = async () => {
|
|
||||||
if (!hasMore.value) return
|
|
||||||
queryParamSelect.value.pageNum++
|
|
||||||
loadingMore.value = true
|
|
||||||
try {
|
|
||||||
const res = await superTenantList(queryParamSelect.value)
|
|
||||||
agentListSelect.value = [...agentListSelect.value, ...(res.rows || [])]
|
|
||||||
hasMore.value = agentListSelect.value.length < (res.total || 0)
|
|
||||||
} finally {
|
|
||||||
loadingMore.value = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/** 查询列表 */
|
/** 查询列表 */
|
||||||
function getList() {
|
function getList() {
|
||||||
console.log('getList')
|
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
let query={
|
let query={
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
|
@ -787,15 +718,15 @@ const searchPlatformCode = ref('');
|
||||||
const searchCurrencyCode = ref('');
|
const searchCurrencyCode = ref('');
|
||||||
// 搜索平台
|
// 搜索平台
|
||||||
const searchSystemPlatforms = (platformCode) => {
|
const searchSystemPlatforms = (platformCode) => {
|
||||||
const keyword = platformCode?.trim().toLowerCase(); // 转小写
|
const keyword = platformCode?.trim();
|
||||||
if (!keyword) {
|
if (!keyword) {
|
||||||
form.value.tenantSystemPlatforms = PlatformRatioAll.value;
|
form.value.tenantSystemPlatforms = PlatformRatioAll.value;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 找出所有 platformCode 中包含关键字的项(忽略大小写)
|
// 找出所有 platformCode 中包含关键字的项
|
||||||
const matchedCodes = PlatformRatioAll.value
|
const matchedCodes = PlatformRatioAll.value
|
||||||
.filter(item => item.platformCode?.toLowerCase().includes(keyword))
|
.filter(item => item.platformCode?.includes(keyword))
|
||||||
.map(item => item.platformCode);
|
.map(item => item.platformCode);
|
||||||
|
|
||||||
// 如果有匹配,就取出所有属于这些 platformCode 的数据
|
// 如果有匹配,就取出所有属于这些 platformCode 的数据
|
||||||
|
@ -840,13 +771,8 @@ function submitForm() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
|
||||||
console.log('onMounted');
|
|
||||||
getList();
|
getList();
|
||||||
if (auth.hasPermi('super:tenant:list') == true){
|
|
||||||
loadOptions('');
|
|
||||||
}
|
|
||||||
})
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
@ -109,30 +109,30 @@
|
||||||
</table-search-card>
|
</table-search-card>
|
||||||
<el-table v-loading="loading" :data="agentList" class="c-table-main" stripe border>
|
<el-table v-loading="loading" :data="agentList" class="c-table-main" stripe border>
|
||||||
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
||||||
<el-table-column :label="t('商户账号')" align="center" prop="tenantKey" fixed="left" :show-overflow-tooltip="true" min-width="175px">
|
<el-table-column :label="t('商户账号')" align="center" prop="tenantKey" :show-overflow-tooltip="true" min-width="175px">
|
||||||
<template #default="{row}">
|
<template #default="{row}">
|
||||||
{{ row.tenantKey }}
|
{{ row.tenantKey }}
|
||||||
<CopyIcon :colors="'#409EFF'" :text="String(row.tenantKey)"></CopyIcon>
|
<CopyIcon :colors="'#409EFF'" :text="String(row.tenantKey)"></CopyIcon>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column :label="t('前缀')" width="100" align="center" prop="tenantSn" /> -->
|
<!-- <el-table-column :label="t('前缀')" width="100" align="center" prop="tenantSn" /> -->
|
||||||
<el-table-column :label="t('玩家账号')" align="center" fixed="left" prop="memberAccount" min-width="180px" >
|
<el-table-column :label="t('玩家账号')" align="center" prop="memberAccount" min-width="180px" >
|
||||||
<template #default="{row}">
|
<template #default="{row}">
|
||||||
{{ row.memberAccount? row.memberAccount : '--' }}
|
{{ row.memberAccount? row.memberAccount : '--' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="t('游戏账号')" align="center" fixed="left" prop="gameAccount" min-width="180px" >
|
<el-table-column :label="t('游戏账号')" align="center" prop="gameAccount" min-width="180px" >
|
||||||
<template #default="{row}">
|
<template #default="{row}">
|
||||||
{{ row.gameAccount? row.gameAccount : '--' }}
|
{{ row.gameAccount? row.gameAccount : '--' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="t('币种')" width="100" align="center" fixed="left" prop="currencyCode" />
|
<el-table-column :label="t('币种')" width="100" align="center" prop="currencyCode" />
|
||||||
<el-table-column :label="t('游戏平台')" align="center" fixed="left" prop="platformName" min-width="130">
|
<el-table-column :label="t('游戏平台')" align="center" prop="platformName" min-width="130">
|
||||||
<template #default="{row}">
|
<template #default="{row}">
|
||||||
{{ row.platformName? row.platformName : '--' }}
|
{{ row.platformName? row.platformName : '--' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" fixed="left" prop="exchangeMoney" min-width="110px">
|
<el-table-column align="center" prop="exchangeMoney" min-width="110px">
|
||||||
<template #header>
|
<template #header>
|
||||||
{{ t('转账金额') }}
|
{{ t('转账金额') }}
|
||||||
<IconTips>{{ t('会员带入带出的游戏的金币') }}
|
<IconTips>{{ t('会员带入带出的游戏的金币') }}
|
||||||
|
@ -508,9 +508,14 @@ const handleAudit = (row) => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const agentListSelect = ref([])
|
const agentListSelect = ref([])
|
||||||
|
|
||||||
|
|
||||||
const loadingSelect = ref(false)
|
const loadingSelect = ref(false)
|
||||||
|
|
||||||
const loadingMore = ref(false)
|
const loadingMore = ref(false)
|
||||||
|
|
||||||
const hasMore = ref(true)
|
const hasMore = ref(true)
|
||||||
|
|
||||||
const queryParamSelect = ref({
|
const queryParamSelect = ref({
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
|
|
@ -145,7 +145,7 @@
|
||||||
<el-scrollbar max-height="600px">
|
<el-scrollbar max-height="600px">
|
||||||
<el-form ref="openReviseRef" :model="rowOpenRevise" :rules="ruleForm" label-width="160px">
|
<el-form ref="openReviseRef" :model="rowOpenRevise" :rules="ruleForm" label-width="160px">
|
||||||
<el-form-item :label="t('游戏平台')" prop="platformCode">
|
<el-form-item :label="t('游戏平台')" prop="platformCode">
|
||||||
<CustomSelect v-model="rowOpenRevise.platformCode" filterable :options="sys_job_status" placeholder="请选择游戏平台" style="width: 400px" />
|
<CustomSelect v-model="rowOpenRevise.platformCode" :options="sys_job_status" placeholder="请选择游戏平台" style="width: 400px" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="t('游戏名称')" style="width: 100%;" prop="gameName">
|
<el-form-item :label="t('游戏名称')" style="width: 100%;" prop="gameName">
|
||||||
<el-input v-model="rowOpenRevise.gameName" style="width: 400px;" :placeholder="t('请输入游戏名称')"> </el-input>
|
<el-input v-model="rowOpenRevise.gameName" style="width: 400px;" :placeholder="t('请输入游戏名称')"> </el-input>
|
||||||
|
|
|
@ -239,15 +239,11 @@ function toggleExpandAll() {
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
function handleUpdate(row) {
|
function handleUpdate(row) {
|
||||||
reset();
|
reset();
|
||||||
listDept().then(response => {
|
listDeptExcludeChild(row.deptId).then(response => {
|
||||||
deptOptions.value = proxy.handleTree(response.data, "deptId");
|
deptOptions.value = proxy.handleTree(response.data, "deptId");
|
||||||
});
|
});
|
||||||
// listDeptExcludeChild(row.deptId).then(response => {
|
|
||||||
// deptOptions.value = proxy.handleTree(response.data, "deptId");
|
|
||||||
// });
|
|
||||||
getDept(row.deptId).then(response => {
|
getDept(row.deptId).then(response => {
|
||||||
form.value = response.data;
|
form.value = response.data;
|
||||||
form.value.parentId = response.data.parentId == 0 ?response.data.deptId: response.data.parentId;
|
|
||||||
open.value = true;
|
open.value = true;
|
||||||
title.value = "修改部门";
|
title.value = "修改部门";
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
<div style="width: 600px;text-align: center;border: 1px solid #ccc;border-radius: 5px; margin: 0 auto;padding: 15px;">
|
<div style="width: 600px;text-align: center;border: 1px solid #ccc;border-radius: 5px; margin: 0 auto;padding: 15px;">
|
||||||
<el-form ref="openReviseRef" :model="rowOpenRevise" :rules="ruleForm" label-width="120px">
|
<el-form ref="openReviseRef" :model="rowOpenRevise" :rules="ruleForm" label-width="120px">
|
||||||
<el-form-item label="platformCode" style="width: 100%;" prop="platformCode">
|
<el-form-item label="platformCode" style="width: 100%;" prop="platformCode">
|
||||||
<CustomSelect v-if="showLoding2" v-model="rowOpenRevise.platformCode" filterable :options="sys_job_status" placeholder="请选择游戏平台" style="width: 100%" />
|
<CustomSelect v-if="showLoding2" v-model="rowOpenRevise.platformCode" :options="sys_job_status" placeholder="请选择游戏平台" style="width: 100%" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="currencyCode" style="width: 100%;" prop="currencyCode">
|
<el-form-item label="currencyCode" style="width: 100%;" prop="currencyCode">
|
||||||
<CustomSelect v-model="rowOpenRevise.currencyCode" filterable :options="currencyCodesOptions" placeholder="请选择币种" style="width: 100%;" />
|
<CustomSelect v-model="rowOpenRevise.currencyCode" :options="currencyCodesOptions" placeholder="请选择币种" style="width: 100%;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="fetchType" style="width: 100%;" prop="fetchType">
|
<el-form-item label="fetchType" style="width: 100%;" prop="fetchType">
|
||||||
<el-input v-model="rowOpenRevise.fetchType" style="width: 100%;" :placeholder="t('请输入fetchType')"> </el-input>
|
<el-input v-model="rowOpenRevise.fetchType" style="width: 100%;" :placeholder="t('请输入fetchType')"> </el-input>
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
<table-search-card :model="queryParams" @getList="getList" @handleQuery="handleQuery" @resetQuery="resetQuery">
|
<table-search-card :model="queryParams" @getList="getList" @handleQuery="handleQuery" @resetQuery="resetQuery">
|
||||||
<template #left>
|
<template #left>
|
||||||
<select-input-form ref="selectInputFormRef" :queryParamsList="queryParamsList" :queryParams="queryParams">
|
<select-input-form ref="selectInputFormRef" :queryParamsList="queryParamsList" :queryParams="queryParams"
|
||||||
|
@handleQuery="handleQuery">
|
||||||
</select-input-form>
|
</select-input-form>
|
||||||
</template>
|
</template>
|
||||||
<template #right>
|
<template #right>
|
||||||
|
@ -431,7 +432,7 @@ function resetQuery() {
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
function handleDelete(row) {
|
function handleDelete(row) {
|
||||||
const roleIds = row.roleId || ids.value;
|
const roleIds = row.roleId || ids.value;
|
||||||
proxy.$modal.confirm('是否确认删除角色名称为"' + row.roleName + '"的数据项?').then(function () {
|
proxy.$modal.confirm('是否确认删除角色编号为"' + roleIds + '"的数据项?').then(function () {
|
||||||
return delRole(roleIds);
|
return delRole(roleIds);
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
getList();
|
getList();
|
||||||
|
@ -652,7 +653,6 @@ const handleDetail = (row) => {
|
||||||
const roleId = row.roleId || ids.value;
|
const roleId = row.roleId || ids.value;
|
||||||
const roleMenu = getRoleMenuTreeselect(roleId);
|
const roleMenu = getRoleMenuTreeselect(roleId);
|
||||||
getRole(roleId).then(response => {
|
getRole(roleId).then(response => {
|
||||||
countTree.value = row.menuCount;
|
|
||||||
form.value = response.data;
|
form.value = response.data;
|
||||||
form.value.roleSort = Number(form.value.roleSort);
|
form.value.roleSort = Number(form.value.roleSort);
|
||||||
open.value = true;
|
open.value = true;
|
||||||
|
@ -677,10 +677,8 @@ const handleManage = (row) => {
|
||||||
reset();
|
reset();
|
||||||
const roleId = row.roleId || ids.value;
|
const roleId = row.roleId || ids.value;
|
||||||
const roleMenu = getRoleMenuTreeselect(roleId);
|
const roleMenu = getRoleMenuTreeselect(roleId);
|
||||||
accountLinking.value = [];
|
|
||||||
getunallocatedUserList(roleId);
|
getunallocatedUserList(roleId);
|
||||||
getRole(roleId).then(response => {
|
getRole(roleId).then(response => {
|
||||||
countTree.value = row.menuCount;
|
|
||||||
form.value = response.data;
|
form.value = response.data;
|
||||||
sysUsersArr.value = response.data.sysUsers;
|
sysUsersArr.value = response.data.sysUsers;
|
||||||
form.value.roleSort = Number(form.value.roleSort);
|
form.value.roleSort = Number(form.value.roleSort);
|
||||||
|
@ -723,7 +721,6 @@ function handleUpdate(row) {
|
||||||
const roleId = row.roleId || ids.value;
|
const roleId = row.roleId || ids.value;
|
||||||
const roleMenu = getRoleMenuTreeselect(roleId);
|
const roleMenu = getRoleMenuTreeselect(roleId);
|
||||||
getRole(roleId).then(response => {
|
getRole(roleId).then(response => {
|
||||||
countTree.value = row.menuCount;
|
|
||||||
form.value = response.data;
|
form.value = response.data;
|
||||||
form.value.roleSort = Number(form.value.roleSort);
|
form.value.roleSort = Number(form.value.roleSort);
|
||||||
open.value = true;
|
open.value = true;
|
||||||
|
|
|
@ -46,7 +46,8 @@
|
||||||
end-placeholder="结束日期"
|
end-placeholder="结束日期"
|
||||||
></el-date-picker>
|
></el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<select-input-form ref="selectInputFormRef" v-if="showLodings" :queryParamsList="queryParamsList" :queryParams="queryParams">
|
<select-input-form ref="selectInputFormRef" :queryParamsList="queryParamsList" :queryParams="queryParams"
|
||||||
|
@handleQuery="handleQuery">
|
||||||
</select-input-form>
|
</select-input-form>
|
||||||
<el-form-item label-width="0px" prop="status">
|
<el-form-item label-width="0px" prop="status">
|
||||||
<el-select
|
<el-select
|
||||||
|
@ -135,9 +136,9 @@
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link type="primary" @click="handleDetails(scope.row)" v-hasPermi="['system:user:edit']">详情</el-button>
|
<el-button link type="primary" @click="handleDetails(scope.row)" v-hasPermi="['system:user:edit']">详情</el-button>
|
||||||
<el-button link type="primary" @click="handleUpdate(scope.row)" v-hasPermi="['system:user:edit']">修改</el-button>
|
<el-button link type="primary" @click="handleUpdate(scope.row)" v-hasPermi="['system:user:edit']">修改</el-button>
|
||||||
<el-button link type="primary" :disabled="userName == scope.row.userName" v-if="scope.row.status != 1" @click="handleFreeze(scope.row)" v-hasPermi="['system:user:edit']">冻结</el-button>
|
<el-button link type="primary" v-if="scope.row.status != 1" @click="handleFreeze(scope.row)" v-hasPermi="['system:user:edit']">冻结</el-button>
|
||||||
<el-button link type="primary" v-if="scope.row.status == 1" @click="handleUnfreeze(scope.row)" v-hasPermi="['system:user:edit']">解冻</el-button>
|
<el-button link type="primary" v-if="scope.row.status == 1" @click="handleUnfreeze(scope.row)" v-hasPermi="['system:user:edit']">解冻</el-button>
|
||||||
<el-button link type="primary" :disabled="userName == scope.row.userName" @click="handleDelete(scope.row)" v-hasPermi="['system:user:remove']">删除</el-button>
|
<el-button link type="primary" @click="handleDelete(scope.row)" v-hasPermi="['system:user:remove']">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -291,12 +292,10 @@ import SelectInputForm from '@/components/SelectInputForm';
|
||||||
import { h } from "vue";
|
import { h } from "vue";
|
||||||
import { ElMessageBox } from "element-plus";
|
import { ElMessageBox } from "element-plus";
|
||||||
import MyCustomForm from "./components/MyCustomForm.vue";
|
import MyCustomForm from "./components/MyCustomForm.vue";
|
||||||
import { getLocalStorage } from "@/utils/auth";
|
|
||||||
|
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
const userName = getLocalStorage('userInfo')?.userName;
|
|
||||||
const { sys_normal_disable, sys_user_sex } = proxy.useDict("sys_normal_disable", "sys_user_sex");
|
const { sys_normal_disable, sys_user_sex } = proxy.useDict("sys_normal_disable", "sys_user_sex");
|
||||||
const statusOptions = ref([
|
const statusOptions = ref([
|
||||||
{
|
{
|
||||||
|
@ -654,17 +653,13 @@ function handleQuery() {
|
||||||
queryParams.value.pageNum = 1;
|
queryParams.value.pageNum = 1;
|
||||||
getList();
|
getList();
|
||||||
};
|
};
|
||||||
const showLodings = ref(true);
|
|
||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
function resetQuery() {
|
function resetQuery() {
|
||||||
dateRange.value = [];
|
dateRange.value = [];
|
||||||
proxy.resetForm("queryRef");
|
proxy.resetForm("queryRef");
|
||||||
queryParams.value.deptId = undefined;
|
queryParams.value.deptId = undefined;
|
||||||
// proxy.$refs.deptTreeRef.setCurrentKey(null);
|
proxy.$refs.deptTreeRef.setCurrentKey(null);
|
||||||
showLodings.value = false;
|
|
||||||
nextTick(() => {
|
|
||||||
showLodings.value = true;
|
|
||||||
})
|
|
||||||
handleQuery();
|
handleQuery();
|
||||||
};
|
};
|
||||||
//判断修改类型
|
//判断修改类型
|
||||||
|
@ -681,9 +676,9 @@ const handleGoogle = () => {
|
||||||
};
|
};
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
function handleDelete(row) {
|
function handleDelete(row) {
|
||||||
const userName = row.userName || ids.value;
|
const userIds = row.userId || ids.value;
|
||||||
modifyDate.value = row;
|
modifyDate.value = row;
|
||||||
proxy.$modal.confirm('是否确认删除用户账户为"' + userName + '"的数据项?').then(() => {
|
proxy.$modal.confirm('是否确认删除用户编号为"' + userIds + '"的数据项?').then(() => {
|
||||||
modifyType.value = 'handleDelete';
|
modifyType.value = 'handleDelete';
|
||||||
dialogVisible.value = true;
|
dialogVisible.value = true;
|
||||||
}).catch(() => {});
|
}).catch(() => {});
|
||||||
|
@ -861,7 +856,6 @@ function handleUpdate(row) {
|
||||||
roleOptions.value = response.roles;
|
roleOptions.value = response.roles;
|
||||||
form.value.postIds = response.postIds;
|
form.value.postIds = response.postIds;
|
||||||
form.value.roleIds = response.roleIds;
|
form.value.roleIds = response.roleIds;
|
||||||
form.value.deptId = response.data.dept.deptName == null ? '无' :response.data.deptId;
|
|
||||||
open.value = true;
|
open.value = true;
|
||||||
modifyStatus.value = 'edit';
|
modifyStatus.value = 'edit';
|
||||||
title.value = "修改账户";
|
title.value = "修改账户";
|
||||||
|
|
|
@ -24,25 +24,25 @@ export default defineConfig(({ mode, command }) => {
|
||||||
port: 80,
|
port: 80,
|
||||||
host: true,
|
host: true,
|
||||||
open: true,
|
open: true,
|
||||||
proxy: {
|
|
||||||
'/dev-api': {
|
|
||||||
target: 'http://192.168.50.234:9080',
|
|
||||||
// target: 'http://192.168.50.11:9080',
|
|
||||||
// target: 'http://192.168.50.178:8080',
|
|
||||||
// target: 'http://192.168.50.99:8080',
|
|
||||||
changeOrigin: true,
|
|
||||||
rewrite: (p) => p.replace(/^\/dev-api/, '')
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// proxy: {
|
// proxy: {
|
||||||
// '/ff-api': {
|
// '/dev-api': {
|
||||||
// target: 'https://apiadmin.tt-gaming.com', // 线上接口地址
|
// target: 'http://192.168.50.234:9080',
|
||||||
// changeOrigin: true, // 是否允许跨域
|
// // target: 'http://192.168.50.11:9080',
|
||||||
// pathRewrite: {
|
// // target: 'http://192.168.50.178:8080',
|
||||||
// '^/ff-api': '' // 如果你需要去掉前缀,例如将 /api/xxx 替换为 /xxx
|
// // target: 'http://192.168.50.99:8080',
|
||||||
// }
|
// changeOrigin: true,
|
||||||
// }
|
// rewrite: (p) => p.replace(/^\/dev-api/, '')
|
||||||
// }
|
// }
|
||||||
|
// },
|
||||||
|
proxy: {
|
||||||
|
'/ff-api': {
|
||||||
|
target: 'https://apiadmin.tt-gaming.com', // 线上接口地址
|
||||||
|
changeOrigin: true, // 是否允许跨域
|
||||||
|
pathRewrite: {
|
||||||
|
'^/ff-api': '' // 如果你需要去掉前缀,例如将 /api/xxx 替换为 /xxx
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
css: {
|
css: {
|
||||||
postcss: {
|
postcss: {
|
||||||
|
|
Loading…
Reference in New Issue