feige
2024-11-02 784f598b870c16ee93075fdc23df3f68bec0a460
ruoyi-ui/src/views/homeRoot/personInfo.vue
@@ -133,10 +133,10 @@
      
                      
            
            <div style="margin-bottom: 20px;">
            <div style="margin-bottom: 20px;"  v-if="cid==uid">
            <el-button size='mini' type="text" class="btn_edit" @click="editAutography" style='top: 0px; bottom:20px;right: 20px;'>
              <sapn v-html="'\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'"></sapn>
              <span >{{ editMode ? this.bstn='保存' : this.bstn='修改' }}</span>
              <sapn v-if="cid==uid" v-html="'\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'"></sapn>
              <span v-if="cid==uid">{{ editMode ? this.bstn='保存' : this.bstn='修改' }}</span>
            </el-button>
            </div>
            <el-tab-pane
@@ -183,14 +183,16 @@
</template>
<script>
import {getRoot} from "@/api/root/index";
import {getRoot,updateInfoUser} from "@/api/root/index";
  export default {
    name: "index",
    name: "personInfo",
    data(){
      return{
        cid: undefined,
        uid: undefined,
        bstn: undefined,
        editMode:false,
        autoGrahpy: "22222222222222222",
        autoGrahpy: "姓名__________,性别__________,出生于____年__月__日。我毕业于__________大学的__________专业,获得__________学历。目前就职于__________的__________职位,主要负责__________,通过运用__________技能/方法,成功实现了__________,不仅提升了个人专业能力,也促进了团队与项目的成功。在业余时间,我热衷于__________(如阅读、旅行、摄影等)作为我的兴趣爱好,这些活动不仅丰富了我的生活,也让我在放松的同时不断学习和成长。回顾过往,最令我难忘的一件事是__________(简述事件,如参与的一次重大项目、一次难忘的旅行经历或解决某个难题的过程),这件事不仅让我深刻体会到了__________(如团队合作的力量、坚持不懈的重要性、生活的美好等),也对我的人生观和价值观产生了深远的影响。我具备__________等特质,能够快速适应新环境,勇于挑战,致力于在__________领域中不断追求卓越",
        // 遮罩层
      
        disabled: false,
@@ -251,6 +253,7 @@
  ,
  mounted() {
     const id = this.$route.params && this.$route.params.id;
    this.uid = id;
     this.getList(id);
  },
  methods:{
@@ -259,7 +262,11 @@
       // const id = row.userId;
      //alert(id)
       // alert(id)
      this.$router.push("/familymodel/jiagenwang/personInfo/" + id);
   //   alert(23)
this.$store.dispatch("tagsView/delView", this.$route); //关闭当前页
      this.$router.replace({ path: "/familymodel/jiagenwang/personInfo/" + id });
    //  this.$router.push("/familymodel/jiagenwang/personInfo/" + id);
     },
     
     editAutography(data)
@@ -267,12 +274,21 @@
        this.editMode = true;
        if(this.bstn=="保存")
        {
            this.editMode = false
           var fdt = {
             selfIntroduction: this.autoGrahpy}
             updateInfoUser(fdt).then(response=>{
               this.$modal.msgSuccess("修改成功")
               this.getList(this.uid)
            })
           }
     },
     
    getList(id)
    {
      this.cid = this.$store.state.user.userId
     let _this = this;
      getRoot(id).then(response => {
         console.log(response.data)
@@ -282,6 +298,8 @@
      //  if(_this.personInfos[1]==null)
        //  _this.isshow = false;
        _this.personInfo1 = response.data[0]
      if(response.data[0].selfIntroduction!=null)
      _this.autoGrahpy = response.data[0].selfIntroduction
        //alert(this.personInfos[0].url)
    });