个人幸运礼物数据分区改为读接口
This commit is contained in:
@@ -12,9 +12,9 @@
|
||||
>
|
||||
<el-option
|
||||
v-for="item in inquire.options"
|
||||
:key="item.type"
|
||||
:label="item.name"
|
||||
:value="item.type"
|
||||
:key="item.id"
|
||||
:label="item.desc"
|
||||
:value="item.id"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
@@ -139,7 +139,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { personal, updateUserMulti } from "@/api/luckGift/luckGift";
|
||||
import { personal, updateUserMulti,listPartitionInfo } from "@/api/luckGift/luckGift";
|
||||
// @ts-ignore
|
||||
import { dateFormat } from "@/utils/system-helper";
|
||||
// @ts-ignore
|
||||
@@ -157,25 +157,8 @@ export default {
|
||||
inquire: {
|
||||
userId: "",
|
||||
time: "",
|
||||
value: 2,
|
||||
options: [
|
||||
{
|
||||
name: "阿拉伯区",
|
||||
type: 2,
|
||||
},
|
||||
{
|
||||
name: "英语区",
|
||||
type: 1,
|
||||
},
|
||||
{
|
||||
name: "华语区",
|
||||
type: 4,
|
||||
},
|
||||
{
|
||||
type: 8,
|
||||
name: "土耳其区",
|
||||
},
|
||||
],
|
||||
value: "",
|
||||
options: [],
|
||||
},
|
||||
// 表格
|
||||
tableData: [],
|
||||
@@ -189,6 +172,10 @@ export default {
|
||||
};
|
||||
},
|
||||
created() {
|
||||
listPartitionInfo().then((res) => {
|
||||
this.inquire.options = res.data;
|
||||
this.inquire.value = this.inquire.options[0].id;
|
||||
});
|
||||
// this.getData();
|
||||
},
|
||||
methods: {
|
||||
|
Reference in New Issue
Block a user