封装设置衣服类型的下拉菜单
This commit is contained in:
@@ -408,7 +408,6 @@ export default defineComponent({
|
||||
}else{
|
||||
num = 1
|
||||
}
|
||||
|
||||
this.singleTypeList = this.position[num].value
|
||||
this.store.commit("setWorkspacePosition", this.position[num].value);
|
||||
|
||||
@@ -421,11 +420,21 @@ export default defineComponent({
|
||||
await new Promise(async (resolve) => {
|
||||
await Https.axiosGet(Https.httpUrls.workspaceenumValues,{params:{enumName:'FemalePosition'}}).then((rv: any) => {
|
||||
if (rv) {
|
||||
rv.forEach((item:any) => {
|
||||
let name = item.name
|
||||
item.name = item.value
|
||||
item.value = name
|
||||
});
|
||||
this.position[0].value = rv
|
||||
}
|
||||
})
|
||||
await Https.axiosGet(Https.httpUrls.workspaceenumValues,{params:{enumName:'MalePosition'}}).then((rv: any) => {
|
||||
if (rv) {
|
||||
rv.forEach((item:any) => {
|
||||
let name = item.name
|
||||
item.name = item.value
|
||||
item.value = name
|
||||
});
|
||||
this.position[1].value = rv
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user