This commit is contained in:
yziiy
2025-09-13 19:03:05 +08:00
parent 8ecc4ddd8a
commit 87135855b5
7 changed files with 41 additions and 31 deletions

View File

@@ -159,8 +159,6 @@ class PureHttp {
...param,
...axiosConfig
} as PureHttpRequestConfig;
console.log(config)
console.log(getToken())
// 单独处理自定义请求/响应回调
return new Promise((resolve, reject) => {
PureHttp.axiosInstance
@@ -198,5 +196,4 @@ class PureHttp {
return this.request<T>("get", url, params, config);
}
}
export const http = new PureHttp();

View File

@@ -80,14 +80,21 @@ export function useData() {
label: "公屏",
prop: "is_public_screen",
cellRenderer: ({ row }) => (
<el-tag type={row.is_public_screen === 1 ? 'success' : 'error'}>{row.is_public_screen === 1 ? '' : ''}</el-tag>
<el-tag type={row.is_public_screen === 1 ? 'success' : 'error'}>{row.is_public_screen === 1 ? '显示' : '隐藏'}</el-tag>
)
},
{
label: "全服显示",
prop: "is_public_server",
cellRenderer: ({ row }) => (
<el-tag type={row.is_world_show === 1 ? 'success' : 'error'}>{row.is_world_show === 1 ? '' : ''}</el-tag>
<el-tag type={row.is_public_server === 1 ? 'success' : 'error'}>{row.is_public_server === 1 ? '显示' : '隐藏'}</el-tag>
)
},
{
label: "榜单显示",
prop: "is_world_show",
cellRenderer: ({ row }) => (
<el-tag type={row.is_world_show === 1 ? 'success' : 'error'}>{row.is_world_show === 1 ? '显示' : '隐藏'}</el-tag>
)
},
{

View File

@@ -80,18 +80,24 @@ defineExpose({ getRef });
</el-select>
<span class="text-part">锁定礼物
</span>
<el-select class="input-number" style="min-width: 220px;" v-model="newFormInline.locking_gift_id"
<el-input class="input-number" style="min-width: 220px;" placeholder="请输入礼物ID"
v-model="newFormInline.locking_gift_id">
</el-input>
<!-- <el-select class="input-number" style="min-width: 220px;" v-model="newFormInline.locking_gift_id"
placeholder="请选择礼物">
<el-option v-for="item in typeList" :key="item.gid" :label="item.gift_name" :value="item.gid">
</el-option>
</el-select>
</el-select> -->
<span class="text-part">赠送房主礼物
</span>
<el-select class="input-number" style="min-width: 220px;" v-model="newFormInline.give_homeowner_gift_id"
<el-input class="input-number" style="min-width: 220px;" placeholder="请输入礼物ID"
v-model="newFormInline.give_homeowner_gift_id">
</el-input>
<!-- <el-select class="input-number" style="min-width: 220px;" v-model="newFormInline.give_homeowner_gift_id"
placeholder="请选择礼物">
<el-option v-for="item in typeList" :key="item.gid" :label="item.gift_name" :value="item.gid">
</el-option>
</el-select>
</el-select> -->
</div>
</el-form-item>
<el-form-item label="巡乐会锁定时间">

View File

@@ -58,10 +58,10 @@ const dynamicflowColumns = ref([
label: "盲盒转盘类型",
prop: "gift_bag_type"
},
{
label: "期数",
prop: "periods"
},
// {
// label: "期数",
// prop: "periods"
// },
{
label: "开奖人ID",
prop: "user_name"
@@ -119,9 +119,9 @@ const getData = async (formData) => {
tableList.value = data.lists.map(ele => {
return {
...ele, ...data.total_data,
is_public_screen: data.is_public_screen === 1 ? '' : '',
is_public_server: data.is_public_server === 1 ? '' : '',
is_world_show: data.is_world_show === 1 ? '' : '',
is_public_screen: data.is_public_screen === 1 ? '显示' : '隐藏',
is_public_server: data.is_public_server === 1 ? '显示' : '隐藏',
is_world_show: data.is_world_show === 1 ? '显示' : '隐藏',
}
});
statisticsData.value = data.total_data

View File

@@ -49,10 +49,10 @@ const statisticsList = ref([
},
])
const dynamicflowColumns = ref([
{
label: "当前期数",
prop: ""
},
// {
// label: "当前期数",
// prop: ""
// },
{
label: "ID",
prop: "id"
@@ -65,10 +65,10 @@ const dynamicflowColumns = ref([
label: "礼物名称",
prop: "gift_name"
},
{
label: "封面图",
prop: "base_image"
},
// {
// label: "封面图",
// prop: "base_image"
// },
{
label: "价格",
prop: "gift_price"
@@ -131,9 +131,9 @@ const getData = async (formData) => {
return {
...ele, ...data.total_data,
remaining_number: ele.remaining_number,
is_public_screen: data.is_public_screen === 1 ? '' : '',
is_public_server: data.is_public_server === 1 ? '' : '',
is_world_show: data.is_world_show === 1 ? '' : '',
is_public_screen: data.is_public_screen === 1 ? '显示' : '隐藏',
is_public_server: data.is_public_server === 1 ? '显示' : '隐藏',
is_world_show: data.is_world_show === 1 ? '显示' : '隐藏',
}
});
statisticsData.value = data.total_data

View File

@@ -89,9 +89,9 @@ const getData = async (formData) => {
tableList.value = data.lists.map(ele => {
return {
...ele, ...data.total_data,
is_public_screen: data.is_public_screen === 1 ? '' : '',
is_public_server: data.is_public_server === 1 ? '' : '',
is_world_show: data.is_world_show === 1 ? '' : '',
is_public_screen: data.is_public_screen === 1 ? '显示' : '隐藏',
is_public_server: data.is_public_server === 1 ? '显示' : '隐藏',
is_world_show: data.is_world_show === 1 ? '显示' : '隐藏',
}
});
statisticsData.value = data.total_data

View File

@@ -36,7 +36,7 @@ export default ({ mode }: ConfigEnv): UserConfigExport => {
if (req.method === 'OPTIONS') {
proxyReq.method = 'OPTIONS';
// 设置CORS头
res.setHeader('Access-Control-Allow-Origin', URL);
res.setHeader('Access-Control-Allow-Origin', 'https://admin.xscmmidi.site');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
res.setHeader('Access-Control-Allow-Headers', 'Content-Type, Authorization');
res.end();