From ecec72d382a83718d3b1d8e60a473829c8d90d40 Mon Sep 17 00:00:00 2001 From: Tcsm <1377977403@qq.com> Date: 星期二, 15 八月 2023 21:38:03 +0800 Subject: [PATCH] 完善荣誉证书模块的类别和名称的选择输入功能;家根网可以按照身份、姓名搜索;成长经历阅历的各个小模块的时间在修改时变成可选形式 --- ruoyi-ui/src/views/self/show.vue | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ruoyi-ui/src/views/self/show.vue b/ruoyi-ui/src/views/self/show.vue index df1df64..5c61880 100644 --- a/ruoyi-ui/src/views/self/show.vue +++ b/ruoyi-ui/src/views/self/show.vue @@ -1259,18 +1259,22 @@ getAutobiographyInfor() { let _this = this - getCategory().then(response=>{ - + getCategory().then(response => { // response.data.itemValues.replace("{","").replace("}","").split(",").map(elem=>{ // _this.typeOptions.push({"label":elem.split(":")[0], "value":elem.split(":")[0]}) // }) response.data.itemValues.replace("{", "").replace("}", "").split(",").map(elem => { const label = elem.split(":")[0].trim(); const value = parseInt(elem.split(":")[1].trim()); - _this.typeOptions.push({ "label": label, "value": value }); - // this.getSrc1(value) - }) - }) + + // 鍒ゆ柇 typeOptions 鏁扮粍涓槸鍚﹀凡瀛樺湪鐩稿悓鐨� value + if (!_this.typeOptions.some(option => option.value === value)) { + _this.typeOptions.push({ "label": label, "value": value }); + } + // console.log(_this.typeOptions) + // _this.getSrc1(value) + }); + }); // if(AutobiographyList.ageEnd==null){ // this.AgeEnd='?' @@ -1438,6 +1442,7 @@ // 鍒锋柊椤甸潰 // window.location.reload(); }, + //澶村儚淇敼 uploadImage() { const inputElement = document.createElement("input"); inputElement.type = "file"; -- Gitblit v1.9.1