zhouhailu
2021-01-11 7dbd867e26345d8037574af4e09fe30b21944bbf
商务版-更新用户姓名相关BUG问题
3个文件已修改
77 ■■■■ 已修改文件
src/view/accountInformation/accountInformation.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/diligenceTools/fundMonitoring.vue 49 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/diligenceTools/paymentMonitoring.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/accountInformation/accountInformation.vue
@@ -83,6 +83,7 @@
<script>
  import axios from '@/libs/api.request'
  import Cookies from 'js-cookie'
  import {mapActions} from 'vuex'
  export default {
    name: 'accountInformation',
    data () {
@@ -178,6 +179,9 @@
      this.getAccountInfo()
    },
    methods:{
      ...mapActions([
        'handleLogOut'
      ]),
      /**
       * 获取账号信息
       */
@@ -222,7 +226,13 @@
              method: 'post'
            }).then(res => {
              if (res.data.Check) {
                this.handleLogOut().then(() => {
                  this.loading = false
                  this.$router.push({
                    name: 'login'
                  })
                  this.$Message.info("请重新登录!")
                })
              } else {
              }
src/view/diligenceTools/fundMonitoring.vue
@@ -862,7 +862,7 @@
                    </Select>
                  </FormItem>
                </div>
              </Form>
            </div>
            <div class="clearfix" style="width: 200px;margin:0px auto 0px;">
@@ -1164,6 +1164,14 @@
            }
            let a
            a=this.copyInforModel.ShareOneName.join(",")
            let c
            if( this.custodianlist.length>0){
              this.custodianlist.forEach((val,index)=>{
                if(this.copyInforModel.Custodian===val.RealName){
                  c=val.Id
                }
              })
            }
            axios.request({
              url: '/MonPlanTable/CopyMonPlan',
              data:{
@@ -1176,6 +1184,7 @@
                Custodian:this.copyInforModel.Custodian,
                ShareOneName:a,
                OwnUserId:b,
                UserId:c
              },
              method: 'post'
            }).then(res => {
@@ -2187,6 +2196,24 @@
                        return false
                      }else{
                        a=res.data.Data[0].ShareOneName
                        // if(a!=""&&a!=undefined&&a!=null){
                        //   this.sharedivarr=a.split(",")
                        //   if(this.sharedivarr.length>1){
                        //     this.sharedivarr.forEach((val,index)=>{
                        //       if(val===this.addfundmodel.Custodian){
                        //         this.sharedivarr.splice(index,1)
                        //       }
                        //     })
                        //   }else if(this.sharedivarr.length===1){
                        //     if(a===this.addfundmodel.Custodian){
                        //       this.sharedivarr=[]
                        //     }else{
                        //       this.sharedivarr=a
                        //     }
                        //   }else{
                        //     this.sharedivarr=[]
                        //   }
                        // }
                        if(a!=null&&a.indexOf(',')!=-1){
                          this.sharedivarr= a.split(",")
                          console.log(this.sharedivarr)
@@ -2196,6 +2223,7 @@
                            }
                          })
                          this.sharedivarr.join(",")
                          console.log(this.sharedivarr)
                        }else if(a!=""&&a!=undefined&&a!=null&&a.indexOf(",")<0){
                          if(a===this.addfundmodel.Custodian){
@@ -2614,23 +2642,19 @@
           * 添加新建收款计划保存按钮
           */
          saveFundCreat(addfundmodelValid){
            // if(this.addfundmodel.SubjectName===""){
            //
            // }
            this.$refs[addfundmodelValid].validate((valid) => {
              // let Id=0;
              this.addfundmodel.Id=this.pid
              this.addfundmodel.CompanyId=this.CompanyId
              let data=this.addfundmodel;
              console.log(data)
              if( this.custodianlist.length>0){
                this.custodianlist.forEach((val,index)=>{
                  if(data.Custodian===val.RealName){
                    data.UserId=val.Id
                  }
                })
              }
              if(this.sharedivarr.length>0){
                // this.sharedivarr.forEach((val,index)=>{
                //   if(index===0){
                //     data.ShareOne = val
                //   }else{
                //     data.ShareOne=data.ShareOne+","+val
                //   }
                // })
                data.ShareOne=this.sharedivarr.join(",")
              }else{
                data.ShareOne=""
@@ -2657,6 +2681,7 @@
                  data.ReminderMail=data.ReminderMail+","+val
                }
              })
              if (valid) {
                axios.request({
                  url: '/MonPlanTable/AddOrUpdMonPlanTable',
src/view/diligenceTools/paymentMonitoring.vue
@@ -1132,6 +1132,14 @@
        }
        let a
        a=this.copyInforModel.ShareOneName.join(",")
        let c
        if( this.custodianlist.length>0){
          this.custodianlist.forEach((val,index)=>{
            if(this.copyInforModel.Custodian===val.RealName){
              c=val.Id
            }
          })
        }
        axios.request({
          url: '/MonPlanTable/CopyMonPlan',
          data:{
@@ -1144,6 +1152,7 @@
            Custodian:this.copyInforModel.Custodian,
            ShareOneName:a,
            OwnUserId:b,
            UserId:c
          },
          method: 'post'
        }).then(res => {
@@ -2548,6 +2557,13 @@
          this.addfundmodel.Id=this.pid
          this.addfundmodel.CompanyId=this.CompanyId
          let data=this.addfundmodel;
          if( this.custodianlist.length>0){
            this.custodianlist.forEach((val,index)=>{
              if(data.Custodian===val.RealName){
                data.UserId=val.Id
              }
            })
          }
          this.sharedivarr.forEach((val,index)=>{
            if(index===0){
              data.ShareOne = val