yz3456
2024-06-11 e3637bb4f69492e89521efd24fb4fdc0da6071de
Merge branch 'master' of http://47.93.189.255:8099/r/zhangshi_app_web
4个文件已修改
65 ■■■■■ 已修改文件
ruoyi-ui/src/api/system/user.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/bignote/familyeventInfo.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/system/user/index.vue 56 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/vue.config.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/api/system/user.js
@@ -30,8 +30,8 @@
// 修改用户
export function updateUser(data) {
  return request({
    url: '/system/user',
    method: 'put',
    url: '/system/user/updateUserInfo',
    method: 'post',
    data: data
  })
}
ruoyi-ui/src/views/bignote/familyeventInfo.vue
@@ -518,7 +518,7 @@
    },
    handleDownload(url) {
      var formData = {'path':"/"+url.replace(process.env.VUE_APP_BASE_TRUE_API,"")};
        alert(formData['path'])
      let lens = formData.path.split(".")
      let suffix = lens[lens.length-1]
      download(formData).then(async (response) => {
ruoyi-ui/src/views/system/user/index.vue
@@ -409,6 +409,7 @@
      faid: 0,
      maid: 0,
      form: {},
      zinfid: undefined,
      defaultProps: {
        children: "children",
        label: "label"
@@ -514,7 +515,6 @@
      if(this.fid!="-1")
      {
        //查询不是本家的时候,可以选择的配偶信息
       alert(this.fid)
       getInfoByFid(this.fid).then(response=>{
         console.log("--------------------")
@@ -529,21 +529,18 @@
    },
    handleFamily()
    {
      alert(this.form.isMyFamily)
      if(this.form.isMyFamily=="0")
        this.isshowMri = true
    },
    getAllIn(){
     // alert(123)
      getAllInfo().then(response => {
       // this.allInfo = response.data;
      //  console.log(response.data)
      //  alert(982)
      })
    },
    getRole(){
      this.form.roleIds = []
      //alert(123)
      this.form.roleIds.push(this.rt)
    },
    getFamlilyInfo(){
@@ -672,7 +669,6 @@
    handleUpdate(row) {
      this.reset();
      const userId = row.userId || this.ids;
     // alert(userId)
      //  this.fid = response.data.familyId
        //alert(this.fid)
@@ -688,10 +684,12 @@
     getIndividual(userId).then(response => {
           //  alert(123)
           console.log('++++++++-----0000((((((9999))))))')
              console.log(response.data)
            if(response.data!=undefined)
            {
              _this.fid = response.data.familyId;
              _this.zinfid = response.data.userId
              }
          }
        );
@@ -724,14 +722,9 @@
    /** 提交按钮 */
    submitForm: function() {
      this.$refs["form"].validate(valid => {
        //alert(valid)
       // alert(this.fid)
        //alert(this.rt)
    //    alert(this.form.roleIds)
        let ps = true
       // alert(this.rt)
       // alert(this.fid)
        if(this.fid=="无")
          this.fid = -1
        let _this = this
@@ -745,36 +738,49 @@
           this.$modal.msgSuccess("家庭成员,必须要拥有家庭号!");
           return
        }
      //  alert(ps)
        if(ps)
        {
          let fm = {}
          fm.userId = _this.form.userId
          fm.userId = _this.zinfid;
          fm.nickName = this.form.nickName
          fm.roleId =this.rt
          fm.sex = this.form.sex
          fm.status = this.form.status
          fm.familyId = this.fid
          fm.isMyFamily = this.form.isMyFamily
          fm.spouseId = this.form.spouseId
          fm.sysId = this.form.userId
          if(_this.fid==="无")
            fm.familyId= -1
          else
            fm.familyId = _this.fid
          this.form.familyId = fm.familyId
          console.log(fm)
          if (valid) {
            if (this.form.userId != undefined) {
              updateUser(this.form).then(response => {
              updateUser(fm).then(response => {
                updateUserInfo(fm).then(response=>{
                   this.$modal.msgSuccess("修改成功");
                   this.open = false;
 this.open = false;
                   this.getList();
                   _this.rt = undefined
                   _this.fid = "无"
                   this.isshowMar = false
                   this.isshowMri = false
                })
              });
              //   updateUserInfo(fm).then(response=>{
              //      this.$modal.msgSuccess("修改成功");
              //      this.open = false;
              //      this.getList();
              //      _this.rt = undefined
              //      _this.fid = "无"
              //      this.isshowMar = false
              //      this.isshowMri = false
              //   })
               });
            } else {
            //  alert(this.form.ismarry)
            //  alert(987)
              addUser(this.form).then(response => {
                this.$modal.msgSuccess("新增成功");
                this.open = false;
ruoyi-ui/vue.config.js
@@ -35,7 +35,8 @@
    proxy: {
      // detail: https://cli.vuewww.bendudu.comjs.org/config/#devserver-proxy
      [process.env.VUE_APP_BASE_API]: {
     // target: `https://10.39.18.174:8080/`,
      //target: `https://10.39.18.174:8080/`,
      // target: `https://192.168.1.3:8089/`,
       target: 'https://www.bendudu.com:8080/',
        changeOrigin: true,
        pathRewrite: {