当前位置:网站首页>【后台交互】select 绑定后台传递的数据
【后台交互】select 绑定后台传递的数据
2022-06-11 12:27:00 【是炎炎哦(谁的小马甲)】
html
<Select
v-model="adddata.designee"
multiple
clearable
filter
class="searchSelect"
>
<Option
v-for="item in userList"//数据
:value="item.id"
:key="item.id"
>{
{
item.sectiontitle}}-{
{
item.name }}{
{
(work_code)}}</Option
>
</Select>
//js
data(){
return{
userLilst:[]//数据
}
}
created(){
this.getUserByUid()
}
getUserByUid() {
// 获取人员
this.request(
"/config/ProjectUser/GetUserLists",//接口 ProjectUser/GetUserLists
"",
"get"
).then((res) => {
if (res.data.ret == 1) {
this.userList = res.data.data;
console.log(JSON.stringify(this.userList));
}
});
},
下拉框没有数据 ——考虑接口
重新登陆账户,点击要改的页面 F12
接口写错 F12,404接口父级写错
this.request(
"/config/ProjectUser/GetUserLists"//正确端口
边栏推荐
- 7、CAS
- 2、CompletableFuture
- . 4 literal and variable
- What are the ways for badminton halls to generate income
- Sulley fuzzer learning
- What is QoS? (quality of service)
- Is Zhima Z1 projector really easy to use? How about the actual effect?
- 8、原子操作类之18罗汉增强
- 9. Parler de threadlocal
- Schéma de dessin utilisé par les Pads
猜你喜欢

(recommended) how many splunks are appropriate? Search head

2、CompletableFuture

石头科技:研发实力和过硬品质 助力扫地机器人产业升级

4K投影仪哪款性价比最高,当贝X3 Pro高亮128G存储618值得看

General O & M structure diagram

Schematic drawing for pads

7、CAS

How to optimize SEO on the mobile terminal? Do you need to optimize GoogleSEO on the mobile terminal for a separate m domain name?

Workload management of Splunk best practices

Unity 游戏保护“大练兵”,一文读懂游戏事前防御
随机推荐
Oracle DatabaseLink 跨数据库连接
CMD of Jerry's AI protocol_ SET_ BLE_ Visibility [chapter]
Seckill multi-level cache ----- product details page
Record a troubleshooting of MySQL master-slave asynchrony
Redis RDB and AOF
Redis数据类型日常使用场景
1、线程基础知识
Flash framework web development video notes
How does Wireshark modify the display format of packet capturing time and date?
Netstat command details
What are the elements of running a gymnasium?
C#事件总线
oracle数据库中 instr函数的用法
9、聊聊ThreadLocal
STM32 development of practical series 7-data Porter DMA
Matrix elimination game
Is Zhima Z1 projector really easy to use? How about the actual effect?
. 5 string
netstat 命令详解
7、CAS