Tcsm
2023-04-15 058c7c78326aaf9ff58e6bc63107dbfe50544e9e
ruoyi-ui/src/views/self/show.vue
@@ -1,12 +1,4 @@
<template>
</template>
<script>
</script>
<style>
</style>
<template>
  <div class="app-container">
    <!--    回到顶部-->
    <el-backtop :bottom="150" :right="30">
@@ -153,9 +145,10 @@
            <el-button
              type="primary"
              @click="handleUpdate(scope.row)"
              :disabled="btn"
              v-hasPermi="['system:role:edit']"
            >编辑</el-button>
            <!--            @click="handleUpdate(scope.row)"-->
            <!--            <el-dropdown-->
            <!--              size="mini"-->
            <!--              @command="(command) => handleCommand(command, scope.row)"-->
@@ -172,13 +165,15 @@
            <el-button
              type="primary"
              @click="handleExport"
              v-hasPermi="['self:user:export']"
              v-hasPermi="['family:note:export']"
            >导出</el-button>
            <br>
            <el-button type="primary" @click="submitForm" :disabled="dsb">完成</el-button>
          </el-row>
        </el-container>
      </div>
      <!--      </el-dialog>-->
      <!--      </el-dialog> self:user:export-->
    </el-container>
    <el-container>
      <div>
@@ -752,6 +747,33 @@
      this.openDataScope = false;
      this.reset();
    },
    submitForm() {
      let ul = this.fileList.map(function (elem){
        return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"")
      }).join(",")
      let uls = this.fileListOther.map(function (elem){
        return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"")
      }).join(",")
      this.formData.url = ul+","+uls
      this.$refs['elForm'].validate(valid => {
        if (valid) {
          if (this.formData.id != undefined) {
            updateIndividual(this.formData).then(response => {
              this.$modal.msgSuccess("修改成功");
              // this.open = false;
              this.btn=false
            });
          } else {
            this.$modal.msgSuccess("修改失败");
          }
        }
      })
    },
    // 表单重置
    reset() {
      if (this.$refs.menu != undefined) {
@@ -795,11 +817,11 @@
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加个人信息";
    },
    // handleAdd() {
    //   this.reset();
    //   this.open = true;
    //   this.title = "添加个人信息";
    // },
    /** 查看详细信息 */
@@ -843,6 +865,12 @@
        const blob = new Blob([response])
        saveAs(blob, filename)
      })
    },
    //编辑按钮
    handleEdit()
    {
      this.dsb = false
      this.btn = true
    },
    /** 查询自传信息 */
@@ -941,7 +969,7 @@
/*}*/
.el-icon-top {
  background: url("");
  background: url("/src/assets/icons/top.png");
}