| | |
| | | <template> |
| | | </template> |
| | | |
| | | <script> |
| | | </script> |
| | | |
| | | <style> |
| | | </style> |
| | | <template> |
| | | <div class="app-container"> |
| | | <!-- 回到顶部--> |
| | | <el-backtop :bottom="150" :right="30"> |
| | |
| | | <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)"--> |
| | |
| | | <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> |
| | |
| | | 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) { |
| | |
| | | }, |
| | | |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |
| | | this.reset(); |
| | | this.open = true; |
| | | this.title = "添加个人信息"; |
| | | }, |
| | | // handleAdd() { |
| | | // this.reset(); |
| | | // this.open = true; |
| | | // this.title = "添加个人信息"; |
| | | // }, |
| | | |
| | | |
| | | /** 查看详细信息 */ |
| | |
| | | const blob = new Blob([response]) |
| | | saveAs(blob, filename) |
| | | }) |
| | | }, |
| | | //编辑按钮 |
| | | handleEdit() |
| | | { |
| | | this.dsb = false |
| | | this.btn = true |
| | | }, |
| | | |
| | | /** 查询自传信息 */ |
| | |
| | | /*}*/ |
| | | |
| | | .el-icon-top { |
| | | background: url(""); |
| | | background: url("/src/assets/icons/top.png"); |
| | | } |
| | | |
| | | |