From c48fc6b1b440ef54da502ebf8b8e13fe4343f929 Mon Sep 17 00:00:00 2001 From: Tcsm <1377977403@qq.com> Date: 星期二, 15 八月 2023 21:45:10 +0800 Subject: [PATCH] 完善荣誉证书模块的类别和名称的选择输入功能;家根网可以按照身份、姓名搜索;成长经历阅历的各个小模块的时间在修改时变成可选形式 --- ruoyi-ui/src/views/self/show.vue | 22 ++++++++++++---------- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/ruoyi-ui/src/views/self/show.vue b/ruoyi-ui/src/views/self/show.vue index df1df64..e44fbb8 100644 --- a/ruoyi-ui/src/views/self/show.vue +++ b/ruoyi-ui/src/views/self/show.vue @@ -686,7 +686,6 @@ </div> </el-dialog> - </div> </template> @@ -713,9 +712,7 @@ export default { name: "show", dicts: ['sys_normal_disable'], - // components: { - // MyComponent - // }, + data() { return { // 閬僵灞� @@ -1259,18 +1256,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 +1439,7 @@ // 鍒锋柊椤甸潰 // window.location.reload(); }, + //澶村儚淇敼 uploadImage() { const inputElement = document.createElement("input"); inputElement.type = "file"; -- Gitblit v1.9.1