From 063975a818f3ed994826d7cc98af219b19c6801f Mon Sep 17 00:00:00 2001 From: asd <374367073@qq.com> Date: Sat, 17 Oct 2020 17:31:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=87=E6=81=B6=E7=9A=84=E8=AF=AD=E8=A8=80?= =?UTF-8?q?=E5=93=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 6 +++++ src/views/mine/Archives.vue | 45 ++++++++++++++++++++++++++++++++----- 2 files changed, 46 insertions(+), 5 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index ab70a8f..3f74c2b 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -476,7 +476,12 @@ export async function getlanguages(): Promise{ // export async function putmember(data: unknown): Promise{ export async function putmember(data: any): Promise{ + + data.interest={} console.log(data) + for(let i=0;i{ } console.log(newdata) return (await put(`member/${store.state.userinfo.memberid}`, newdata) ) + store.dispatch("setUserInfo"); } diff --git a/src/views/mine/Archives.vue b/src/views/mine/Archives.vue index eba0988..46438ae 100644 --- a/src/views/mine/Archives.vue +++ b/src/views/mine/Archives.vue @@ -55,10 +55,11 @@ style="width: 171px" size="small" ref="select" + @change="choosewillsay" :getPopupContainer="triggerNode => triggerNode.parentNode" > - - {{ item.name }} + + {{ item.name }} {{item.languageid}}
@@ -303,7 +304,7 @@ export default defineComponent({ }) const modalNode = () => document.getElementsByClassName('modal-container')[0] - const chiveslist = ref([[],[]]); + const chiveslist = ref([[],[]]); const languages = ref([]) onMounted(async ()=>{ chiveslist.value = await getarchives() @@ -326,6 +327,10 @@ export default defineComponent({ name: '请选择', level: 0 }); + formData.value.willsayValue.push({ + name: "", + level: 0 + }); } // 验证码 const verificationCode: Ref = ref(''), @@ -443,7 +448,31 @@ export default defineComponent({ * @return { void } */ async function submitInfo (): Promise { - // console.log(toRaw(formData.value)); + + // for(let i in toRaw(formData.value).willsay){ + // console.log(toRaw(formData.value).willsay[i]) + // } + for(let m=0;m { // console.log(res) @@ -486,6 +515,11 @@ export default defineComponent({ uploadprogress.value = 100 } }) + + function choosewillsay(e?: any){ + console.log(formData.value.willsayValue) + console.log(e) + } return { modalNode, formData, @@ -514,7 +548,8 @@ export default defineComponent({ setlevel, chiveslist, languages, - uploadprogress + uploadprogress, + choosewillsay } } });