修改幸运礼物分区获取数据

This commit is contained in:
chenruiye
2025-03-31 18:16:16 +08:00
parent 194511b212
commit 19e048873d
4 changed files with 65 additions and 43 deletions

View File

@@ -68,3 +68,12 @@ export const updateUserMulti = query => {
params: query params: query
}); });
}; };
// 分区接口
export const listPartitionInfo = query => {
return request({
url: '/partition/listPartitionInfo',
method: 'get',
params: query
});
};

View File

@@ -105,6 +105,7 @@
</template> </template>
<script> <script>
import { list, update } from "@/api/GiftPanelManagement/GiftPanelManagement"; import { list, update } from "@/api/GiftPanelManagement/GiftPanelManagement";
import { listAll} from "@/api/partition/partitionInfo";
// @ts-ignore // @ts-ignore
import { dateFormat } from "@/utils/system-helper"; import { dateFormat } from "@/utils/system-helper";
// @ts-ignore // @ts-ignore
@@ -118,10 +119,10 @@ export default {
inquire: { inquire: {
partitionId: 4, partitionId: 4,
inquireonInfos: [ inquireonInfos: [
{ desc: "英语区", id: 1 }, // { desc: "英语区", id: 1 },
{ desc: "阿拉伯区", id: 2 }, // { desc: "阿拉伯区", id: 2 },
{ desc: "华语区", id: 4 }, // { desc: "华语区", id: 4 },
{ desc: "土耳其区", id: 8 }, // { desc: "土耳其区", id: 8 },
], ],
}, },
// 表格 // 表格
@@ -153,6 +154,9 @@ export default {
this.eidDialogTitle = `编辑礼物面板信息-华语区`; this.eidDialogTitle = `编辑礼物面板信息-华语区`;
this.eidText = `华语区`; this.eidText = `华语区`;
this.getData(); this.getData();
listAll().then((res) => {
this.inquire.inquireonInfos = res.data;
});
}, },
methods: { methods: {
// 查询接口 // 查询接口

View File

@@ -70,9 +70,9 @@
> >
<el-option <el-option
v-for="item in inquire.options" v-for="item in inquire.options"
:key="item.type" :key="item.id"
:label="item.name" :label="item.desc"
:value="item.type" :value="item.id"
> >
</el-option> </el-option>
</el-select> </el-select>
@@ -342,6 +342,8 @@
</template> </template>
<script> <script>
import { getConfig, updateSet, updateUserMulti } from "@/api/bravoGift/bravoGift"; import { getConfig, updateSet, updateUserMulti } from "@/api/bravoGift/bravoGift";
import { listAll} from "@/api/partition/partitionInfo";
// @ts-ignore // @ts-ignore
import { dateFormat } from "@/utils/system-helper"; import { dateFormat } from "@/utils/system-helper";
// @ts-ignore // @ts-ignore
@@ -358,22 +360,22 @@
inquire: { inquire: {
value: 2, value: 2,
options: [ options: [
{ // {
name: "阿拉伯区", // name: "阿拉伯区",
type: 2, // type: 2,
}, // },
{ // {
name: "英语区", // name: "英语区",
type: 1, // type: 1,
}, // },
{ // {
name: "华语区", // name: "华语区",
type: 4, // type: 4,
}, // },
{ // {
name: "土耳其区", // name: "土耳其区",
type: 8, // type: 8,
}, // },
], ],
comparisonValue: "", comparisonValue: "",
goldInventory: "", goldInventory: "",
@@ -397,6 +399,9 @@
}, },
created() { created() {
this.getData(); this.getData();
listAll().then((res) => {
this.inquire.options = res.data;
});
}, },
methods: { methods: {
// 查询接口 // 查询接口

View File

@@ -70,9 +70,9 @@
> >
<el-option <el-option
v-for="item in inquire.options" v-for="item in inquire.options"
:key="item.type" :key="item.id"
:label="item.name" :label="item.desc"
:value="item.type" :value="item.id"
> >
</el-option> </el-option>
</el-select> </el-select>
@@ -342,6 +342,7 @@
</template> </template>
<script> <script>
import { getConfig, updateSet, updateUserMulti } from "@/api/luckGift/luckGift"; import { getConfig, updateSet, updateUserMulti } from "@/api/luckGift/luckGift";
import { listAll} from "@/api/partition/partitionInfo";
// @ts-ignore // @ts-ignore
import { dateFormat } from "@/utils/system-helper"; import { dateFormat } from "@/utils/system-helper";
// @ts-ignore // @ts-ignore
@@ -358,22 +359,22 @@ export default {
inquire: { inquire: {
value: 2, value: 2,
options: [ options: [
{ // {
name: "阿拉伯区", // name: "阿拉伯区",
type: 2, // type: 2,
}, // },
{ // {
name: "英语区", // name: "英语区",
type: 1, // type: 1,
}, // },
{ // {
name: "华语区", // name: "华语区",
type: 4, // type: 4,
}, // },
{ // {
name: "土耳其区", // name: "土耳其区",
type: 8, // type: 8,
}, // },
], ],
comparisonValue: "", comparisonValue: "",
goldInventory: "", goldInventory: "",
@@ -397,6 +398,9 @@ export default {
}, },
created() { created() {
this.getData(); this.getData();
listAll().then((res) => {
this.inquire.options = res.data;
});
}, },
methods: { methods: {
// 查询接口 // 查询接口