| | |
| | | <!-- <el-input v-model="individualList.sex === 1 ? '男':'女' " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">--> |
| | | <!-- </el-input>--> |
| | | <template v-if="!isEditing"> |
| | | <el-input v-model="individualList.sex === 1 ? inds='男':inds='女'" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"></el-input> |
| | | <el-input v-model="individualList.sex === 0 ? inds='男':inds='女'" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"></el-input> |
| | | </template> |
| | | <template v-else> |
| | | <el-select v-model="inds" placeholder="请选择性别" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | <el-option label="男" value='1'></el-option> |
| | | <el-option label="女" value='0'></el-option> |
| | | <el-option label="男" value='0'></el-option> |
| | | <el-option label="女" value='1'></el-option> |
| | | </el-select> |
| | | </template> |
| | | </el-form-item> |
| | |
| | | <template v-if="!isEditing" > |
| | | <el-input v-if="individualList.maritalStatus===0" placeholder="未婚"></el-input> |
| | | <el-input v-if="individualList.maritalStatus===1" placeholder="已婚"></el-input> |
| | | <el-input v-if="individualList.maritalStatus===2" placeholder="未婚"></el-input> |
| | | <el-input v-if="individualList.maritalStatus===2" placeholder="离婚"></el-input> |
| | | |
| | | </template> |
| | | <template v-else> |
| | |
| | | accept="image/*" |
| | | :multiple="false" |
| | | :http-request="requestUpload" |
| | | |
| | | |
| | | :limit="1"> |
| | | |
| | | <el-avatar shape="square" style="width: 200px;;height: 200px;" > |
| | |
| | | </el-container> |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | |
| | | </div> |
| | | |
| | | |
| | | </el-collapse-item> --> |
| | | |
| | | |
| | | <!--主要学习及工作经历--> |
| | | <el-collapse-item name="1" > |
| | | <template v-slot:title> |
| | |
| | | <el-button size='mini' type="text" class="btn_edit" @click="editAutobiography(item)" style='right:40px;top:5px;'> |
| | | <span v-html="'\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'"></span> |
| | | </el-button> |
| | | |
| | | |
| | | <el-button size="mini" type="text" class="btn_del" @click="handleAutobiography(item)" style='right:10px;top:5px;'> |
| | | <span v-html="'\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'"></span> |
| | | </el-button> |
| | |
| | | </el-tabs></div> |
| | | </el-container> |
| | | </el-collapse-item> |
| | | |
| | | |
| | | </el-collapse> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | |
| | | |
| | | <!-- 新增主要经历信息配置对话框 --> |
| | | <el-dialog title="新增主要经历信息" :visible.sync="dialogVisible.open" width="900px" append-to-body> |
| | | <el-form ref="elForm1" :model="formDat" :rules="rules" size="medium" label-width="140px"> |
| | |
| | | <el-input v-model="formDat.witness" placeholder="请输入证明人" clearable :style="{width: '100%'}" > |
| | | </el-input> |
| | | </el-form-item> |
| | | |
| | | |
| | | </el-form> |
| | | <h4 class="form-header"> </h4> |
| | | |
| | | |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitDataScope">保 存</el-button> |
| | | <el-button @click="cancelData">取 消</el-button> |
| | |
| | | <el-input v-model="formDat.otherPolitical" placeholder="请输入政治面貌" clearable :style="{width: '100%'}" > |
| | | </el-input> |
| | | </el-form-item> |
| | | |
| | | |
| | | </el-form> |
| | | <h4 class="form-header"> </h4> |
| | | |
| | | |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitDataScope2">保 存</el-button> |
| | | <el-button @click="cancelData">取 消</el-button> |
| | |
| | | ></el-option> |
| | | </el-select> |
| | | <el-input v-model="newOption" placeholder="若未在上述选项中找到对应类型,请在此输入新的证件类型" ></el-input> |
| | | |
| | | |
| | | </el-form-item> |
| | | <el-form-item label="持有情况" prop="ownStatus"> |
| | | <el-input v-model="formDat.ownStatus" placeholder="请输入持有情况" clearable :style="{width: '100%'}" > |
| | |
| | | ></el-date-picker></el-form-item> |
| | | </el-form> |
| | | <h4 class="form-header"> </h4> |
| | | |
| | | |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitDataScope4">保 存</el-button> |
| | | <el-button @click="cancelData">取 消</el-button> |
| | |
| | | <el-input v-model="formDat.cause" placeholder="请输入事由(旅游、走访、探亲、继承财产、其他)" clearable :style="{width: '100%'}" > |
| | | </el-input> |
| | | </el-form-item> |
| | | |
| | | |
| | | </el-form> |
| | | <h4 class="form-header"> </h4> |
| | | |
| | | |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitDataScope5">保 存</el-button> |
| | | <el-button @click="cancelData">取 消</el-button> |
| | |
| | | </el-form> |
| | | </el-col> |
| | | <h4 class="form-header"> </h4> |
| | | |
| | | |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitDataScope6">保 存</el-button> |
| | | <el-button @click="cancelData">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | } from "@/api/self/index"; |
| | | import {getAllInfo} from "@/api/system/user" |
| | | import {showShareUser} from "@/api/bignote/index"; |
| | | import {listNote,enload,getNote, addNote,updateNote, delNote,uploadPic} from "@/api/memo/index"; |
| | | import {listNote,enload,getNote, addNote,updateNote, delNote,uploadPic,uploadPics} from "@/api/memo/index"; |
| | | |
| | | import { Notification, MessageBox, Message, Loading } from 'element-ui' |
| | | export default { |
| | |
| | | // 日期范围 |
| | | dateRange: [], |
| | | // 数据范围选项 |
| | | fot:[".jpg",".jif"], |
| | | fot:[".jpg",".jif",'.M4A'], |
| | | fileList:[], |
| | | fileListOther:[], |
| | | //下拉实现 |
| | |
| | | abroad:false, |
| | | autobiography:false |
| | | }, |
| | | |
| | | |
| | | // 个人经历数据 |
| | | experienceList: undefined, |
| | | // isEdit:true, |
| | |
| | | typeList:[], |
| | | //出国情况 |
| | | AbroadList:[], |
| | | |
| | | |
| | | uploading: false, |
| | | uploading1: false, |
| | | fit1: ['fill'], |
| | |
| | | }], |
| | | |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | open:false, |
| | | formDat6: {}, |
| | | formDat: { |
| | |
| | | this.loading1 = true; |
| | | let userId = this.$store.state.user.userId |
| | | // alert(userId) |
| | | |
| | | |
| | | showShareUser(userId, 2062).then(response=>{ |
| | | console.log("===========ddddddddddddd") |
| | | console.log(response.data) |
| | |
| | | // // alert(this.$store.state.user.clanId) |
| | | // this.listRoot = [] |
| | | let clanId = this.$store.state.user.clanId |
| | | if(clanId!=null){ |
| | | getAllInfo(clanId).then(response => { |
| | | this.listRoot = response.data; |
| | | const kon = {} |
| | |
| | | this.loading1 = false; |
| | | } |
| | | ); |
| | | } |
| | | }, |
| | | |
| | | /** 查询记录列表 */ |
| | |
| | | }, `self_${new Date().getTime()}.xlsx`) |
| | | }, //个人基本信息 |
| | | submitForm() { |
| | | if(this.inds=='1') |
| | | |
| | | if(this.inds=='1'||this.inds=='女') |
| | | this.individualList.sex = 1; |
| | | else |
| | | this.individualList.sex = 0; |
| | | if(this.mrs=='0') |
| | | |
| | | if(this.mrs=='0'||this.mrs=='未婚') |
| | | this.individualList.maritalStatus = 0 |
| | | else if(this.mrs == '1') |
| | | else if(this.mrs == '1'||this.mrs=='已婚') |
| | | this.individualList.maritalStatus = 1 |
| | | else |
| | | this.individualList.maritalStatus = 2 |
| | | |
| | | |
| | | //alert(123) |
| | | // alert(10) |
| | | // let ul = this.fileList.map(function (elem){ |
| | | // return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | |
| | | updateIndividual(this.individualList).then(response => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | // 强制更新相关组件 |
| | | this.individualList={...this.individualList} |
| | | |
| | | // this.open = false; |
| | | |
| | | // this.individualList={...this.individualList} |
| | | // alert(this.individualList.sex) |
| | | |
| | | // // this.open = false; |
| | | this.dsb = true |
| | | this.btn=false |
| | | this.isShow_2=false |
| | | this.isShow=true |
| | | this.isEditing = false |
| | | }); |
| | | //this.getList() |
| | | }) |
| | | } else { |
| | | this.$modal.msgSuccess("修改失败"); |
| | | |
| | |
| | | requestUpload(params) |
| | | { |
| | | var file = params.file; |
| | | console.log(file) |
| | | var formData = new FormData(); |
| | | formData.append('uploadFile', file); |
| | | let _this = this |
| | | |
| | | console.log(formData) |
| | | console.log('dddddddd===========') |
| | | // console.log(this.individualList) |
| | | this.$refs.uploadDemo.clearFiles(); |
| | | // alert(234) |
| | | uploadPic(formData).then(response => { |
| | | // alert(response.data.url) |
| | | // alert(response.data.originalFilename) |
| | | let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length) |
| | | uploadPics(formData).then(response => { |
| | | // alert(response.data.url) |
| | | // // alert(response.data.originalFilename) |
| | | let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length) |
| | | |
| | | if(_this.fot.includes(pth) === true) |
| | | { |
| | |
| | | } |
| | | _this.individualList.img = response.data.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | _this.individualList.url = response.data.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | console.log(_this.individualList) |
| | | updateIndividual(_this.individualList).then(response => { |
| | | // 将选中选项的文本设置为"term"字段的值 |
| | | // this.formDat.term = selectedOption.value; |
| | |
| | | |
| | | if (this.isEdit1) { |
| | | // 执行修改操作 |
| | | |
| | | |
| | | console.log(this.formDat6) |
| | | updateAutobiography(this.formDat6).then(response => { |
| | | // 将选中选项的文本设置为"term"字段的值 |
| | |
| | | Object.keys(this.formDat6).forEach(key => { |
| | | this.formDat6[key] = ''; |
| | | }); |
| | | |
| | | |
| | | }).catch(error => { |
| | | // alert(24) |
| | | console.log(error); |
| | |
| | | } |
| | | } |
| | | }); |
| | | |
| | | |
| | | }, |
| | | |
| | | editRow(row) { |
| | |
| | | response.data.itemValues.replace("{", "").replace("}", "").split(",").map(elem => { |
| | | const label = elem.split(":")[0].trim(); |
| | | const value = parseInt(elem.split(":")[1].trim()); |
| | | |
| | | |
| | | // 判断 typeOptions 数组中是否已存在相同的 value |
| | | if (!_this.typeOptions.some(option => option.value === value)) { |
| | | _this.typeOptions.push({ "label": label, "value": value }); |
| | |
| | | // _this.getSrc1(value) |
| | | }); |
| | | }); |
| | | |
| | | |
| | | }, |
| | | |
| | | |
| | | // 取消按钮 |
| | | cancelData() { |
| | | // alert(23) |
| | |
| | | Object.keys(this.formDat6).forEach(key => { |
| | | this.formDat6[key] = ''; |
| | | }); |
| | | |
| | | |
| | | }, |
| | | handleUploadSuccess(response, file) { |
| | | // 处理文件上传成功后的回调 |
| | | this.individualList.img = response.url; |
| | | }, |
| | | |
| | | |
| | | //下拉 |
| | | handleChange5(activeNames) { |
| | | // console.log(activeNames); |
| | |
| | | // alert(123) |
| | | // } |
| | | }, |
| | | |
| | | |
| | | //个人自传 |
| | | handleClick(tab, event) { |
| | | // console.log(tab, event); |
| | |
| | | // alert(1234) |
| | | this.isEdit1 = true; // 设置为编辑操作 |
| | | // 将要修改的数据填充到formDat对象中 |
| | | |
| | | |
| | | this.formDat6.ageBegin = data.ageBegin; |
| | | this.formDat6.ageEnd = data.ageEnd; |
| | | this.formDat6.term = data.term; |
| | |
| | | } |
| | | return options; |
| | | }, []); |
| | | |
| | | |
| | | }, |
| | | //隔行变色 |
| | | tableRowClassName({row, rowIndex}) { |