New file |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <div class="form-header mt"> |
| | | <h4 class="dt h4">资产详细信息 </h4> |
| | | <el-button type="primary" class="pt" icon="el-icon-edit" @click="handleEdit()" :disabled="btn">编辑</el-button> |
| | | </div> |
| | | |
| | | <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="100px"> |
| | | <el-form-item label="id" prop="id"> |
| | | <el-input v-model="formData.id" placeholder="请输入id" :maxlength="11" show-word-limit :disabled="true" |
| | | clearable prefix-icon='el-icon-mobile' :style="{width: '100%'}"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="类别" prop="type"> |
| | | <el-select v-model="formData.type" placeholder="请选择类别" clearable :style="{width: '100%'}" :disabled="dsb" > |
| | | <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value" |
| | | :disabled="item.disabled"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="标题" prop="title"> |
| | | <el-input v-model="formData.title" placeholder="请输入标题" clearable :style="{width: '100%'}" :disabled="dsb"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="存储地址" prop="location"> |
| | | <el-input v-model="formData.location" placeholder="请输入存储地址" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="持有人" prop="holder"> |
| | | <el-input v-model="formData.holder" placeholder="请输入持有人" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="具体位置" prop="address"> |
| | | <el-input v-model="formData.address" placeholder="请输入具体位置" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="备注" prop="remark"> |
| | | <el-input v-model="formData.remark" placeholder="请输入备注" clearable :style="{width: '100%'}" :disabled="dsb"></el-input> |
| | | </el-form-item> |
| | | |
| | | <h4 class="form-header">相关图片 </h4> |
| | | <el-upload |
| | | action="#" |
| | | list-type="picture-card" |
| | | multiple |
| | | :http-request="requestUpload" |
| | | :file-list="fileList" |
| | | > |
| | | <i slot="default" class="el-icon-plus"></i> |
| | | <div slot="file" slot-scope="{file}"> |
| | | <img |
| | | class="el-upload-list__item-thumbnail" |
| | | :src="file.url" |
| | | alt="" |
| | | style="width: 147px; height: 147px" |
| | | fit="cover" |
| | | :preview-src-list="[file.url]" |
| | | > |
| | | <span class="el-upload-list__item-actions"> |
| | | <span |
| | | class="el-upload-list__item-preview" |
| | | @click="handlePictureCardPreview(file)" |
| | | > |
| | | <i class="el-icon-zoom-in"></i> |
| | | </span> |
| | | <span |
| | | v-if="!disabled" |
| | | class="el-upload-list__item-delete" |
| | | @click="handleDownload(file.url)" |
| | | > |
| | | <i class="el-icon-download"></i> |
| | | </span> |
| | | <span |
| | | v-if="!disabled" |
| | | class="el-upload-list__item-delete" |
| | | @click="handleRemove(file)" |
| | | > |
| | | <i class="el-icon-delete"></i> |
| | | </span> |
| | | </span> |
| | | |
| | | |
| | | </div> |
| | | </el-upload> |
| | | |
| | | <h4 class="form-header">其他附件 </h4> |
| | | <el-upload |
| | | action="" |
| | | :file-list="fileListOther" |
| | | class="upload-demo" |
| | | multiple |
| | | :on-preview="handlePreview" |
| | | |
| | | :on-remove="handleRemove" |
| | | :http-request="requestUpload" |
| | | :show-file-list="true" |
| | | > |
| | | <el-button type="primary">Click to upload</el-button> |
| | | <template #tip> |
| | | <div class="el-upload__tip"> |
| | | </div> |
| | | </template> |
| | | |
| | | |
| | | </el-upload> |
| | | |
| | | <el-form-item size="large"> |
| | | <el-button type="primary" @click="submitForm" :disabled="dsb">修改</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <el-dialog :visible.sync="dialogVisible"> |
| | | <img w-full :src="dialogImageUrl" alt="Preview Image" /> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import {getPropertyInfo, updateProperty, uploadPic, download, getCategory} from "@/api/note/index"; |
| | | import {addRole, updateRole} from "@/api/system/role"; |
| | | import {blobValidate} from "@/utils/ruoyi"; |
| | | import errorCode from "@/utils/errorCode"; |
| | | import {Message} from "element-ui"; |
| | | |
| | | export default { |
| | | components: {}, |
| | | props: [], |
| | | data() { |
| | | return { |
| | | cdi:"资产详细信息", |
| | | udi:"资产信息修改", |
| | | fot:[".jpg",".jif"], |
| | | fileList:[ |
| | | ], |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | dsb:true, |
| | | btn:false, |
| | | formData: { |
| | | id: undefined, |
| | | type: undefined, |
| | | title: undefined, |
| | | location: undefined, |
| | | holder: undefined, |
| | | address: undefined, |
| | | remark: undefined, |
| | | url: undefined, |
| | | }, |
| | | dialogImageUrl: '', |
| | | dialogVisible: false, |
| | | disabled: false, |
| | | rules: { |
| | | id: [{ |
| | | required: true, |
| | | message: '请输入id', |
| | | trigger: 'blur' |
| | | }], |
| | | type: [{ |
| | | required: true, |
| | | message: '请选择类别', |
| | | trigger: 'change' |
| | | }], |
| | | title: [{ |
| | | required: true, |
| | | message: '请输入标题', |
| | | trigger: 'blur' |
| | | }], |
| | | location: [{ |
| | | required: true, |
| | | message: '请输入存储地址', |
| | | trigger: 'blur' |
| | | }], |
| | | holder: [{ |
| | | required: true, |
| | | message: '请输入持有人', |
| | | trigger: 'blur' |
| | | }], |
| | | address: [{ |
| | | required: true, |
| | | message: '请输入具体位置', |
| | | trigger: 'blur' |
| | | }], |
| | | remark: [{ |
| | | required: true, |
| | | message: '请输入备注', |
| | | trigger: 'blur' |
| | | }], |
| | | |
| | | }, |
| | | typeOptions: [], |
| | | } |
| | | }, |
| | | computed: {}, |
| | | watch: {}, |
| | | created() { |
| | | const id = this.$route.params && this.$route.params.id; |
| | | let jd; |
| | | if(this.$route.query.detail!=undefined) |
| | | { |
| | | jd = this.$route.query.detail |
| | | this.btn= jd |
| | | this.dsb = !jd |
| | | document.title = "修改资产详细信息"; |
| | | this.$route.meta.title = "修改资产详细信息";//列表的名称 |
| | | } |
| | | else{ |
| | | document.title = "查看资产详细信息"; |
| | | this.$route.meta.title = "查看资产详细信息";//列表的名称 |
| | | } |
| | | |
| | | let _this = this |
| | | if (id) { |
| | | this.loading = true; |
| | | getPropertyInfo(id).then((response) => { |
| | | this.formData = response.data; |
| | | let paths = response.data.url.split(","); |
| | | for(let i = 0; i < paths.length; i++) |
| | | { |
| | | if(paths[i]!="") { |
| | | |
| | | let pth = paths[i].substr(paths[i].length - 4, paths[i].length) |
| | | |
| | | if (_this.fot.includes(pth) === true) |
| | | _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i]}) |
| | | else { |
| | | // alert(paths[i]) |
| | | let nms = paths[i].split("\/") |
| | | let nm = nms[nms.length - 1] |
| | | _this.fileListOther.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i]}) |
| | | } |
| | | } |
| | | } |
| | | this.loading = false; |
| | | }); |
| | | this.getCateInfor() |
| | | |
| | | } |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | /** 查询类别信息 */ |
| | | getCateInfor() |
| | | { |
| | | let _this = this |
| | | getCategory().then(response=>{ |
| | | |
| | | response.data.itemValues.replace("{","").replace("}","").split(",").map(elem=>{ |
| | | _this.typeOptions.push({"label":elem.split(":")[0], "value":elem.split(":")[0]}) |
| | | }) |
| | | }) |
| | | }, |
| | | 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) { |
| | | updateProperty(this.formData).then(response => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | // this.open = false; |
| | | this.btn=false |
| | | }); |
| | | } else { |
| | | this.$modal.msgSuccess("修改失败"); |
| | | |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | resetForm() { |
| | | this.$refs['elForm'].resetFields() |
| | | }, |
| | | handlePreview(file) |
| | | { |
| | | let formData = {'path':"/"+file.url.replace(process.env.VUE_APP_BASE_TRUE_API,"")}; |
| | | let lens = formData.path.split(".") |
| | | let suffix = lens[lens.length-1] |
| | | download(formData).then(async (response) => { |
| | | const isLogin = await blobValidate(response); |
| | | let nt = new Date().getTime() |
| | | let filename = 'property_'+nt+'.'+suffix |
| | | const blob = new Blob([response]) |
| | | saveAs(blob, filename) |
| | | }) |
| | | }, |
| | | handleRemoveFile(file) { |
| | | alert(23) |
| | | }, |
| | | handleRemove(file) { |
| | | alert(323) |
| | | }, |
| | | handlePictureCardPreview(file) { |
| | | this.dialogImageUrl = file.url; |
| | | this.dialogVisible = true; |
| | | }, |
| | | handleDownload(url) { |
| | | var formData = {'path':"/"+url.replace(process.env.VUE_APP_BASE_TRUE_API,"")}; |
| | | |
| | | let lens = formData.path.split(".") |
| | | let suffix = lens[lens.length-1] |
| | | download(formData).then(async (response) => { |
| | | const isLogin = await blobValidate(response); |
| | | let nt = new Date().getTime() |
| | | let filename = 'property_'+nt+'.'+suffix |
| | | const blob = new Blob([response]) |
| | | saveAs(blob, filename) |
| | | }) |
| | | }, |
| | | handleEdit() |
| | | { |
| | | this.dsb = false |
| | | this.btn = true |
| | | }, |
| | | requestUpload(params) |
| | | { |
| | | var file = params.file; |
| | | var formData = new FormData(); |
| | | formData.append('uploadFile', file); |
| | | let _this = this |
| | | |
| | | uploadPic(formData).then(response => { |
| | | let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length) |
| | | |
| | | if(_this.fot.includes(pth) === true) |
| | | { |
| | | _this.fileList.push({name:response.data.fileName, "url":response.data.url}) |
| | | |
| | | } |
| | | |
| | | else{ |
| | | _this.fileListOther.push({name:response.data.fileName, url:response.data.url}) |
| | | |
| | | } |
| | | }) |
| | | |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | </script> |
| | | <style> |
| | | .mt |
| | | { |
| | | position: relative; |
| | | } |
| | | .dt{ |
| | | display: block; |
| | | |
| | | } |
| | | .pt{ |
| | | right: 10px; |
| | | top:-3px; |
| | | display: block; |
| | | position: absolute; |
| | | } |
| | | </style> |
| | | |
New file |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-col :span="6"> |
| | | <el-input size="medium" v-model="input" placeholder="搜索" clearable> |
| | | <i slot="prefix" class="el-input__icon el-icon-search"></i> |
| | | </el-input> |
| | | </el-col> |
| | | <br> |
| | | <h1 style="font-size:21px">个人简历</h1> |
| | | <el-divider /> |
| | | <h2 style="font-size:16px">基本信息</h2> |
| | | |
| | | <el-container> |
| | | <div style="padding-left:30px"> |
| | | <el-container> |
| | | <el-col> |
| | | <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="70px" label-position="left"> |
| | | <el-row :span="6"> |
| | | <el-form-item label="姓名" prop="nickName"> |
| | | <el-input v-model="formData.nickName" placeholder="请输入姓名" clearable :style="{width: '100%'}"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="6"> |
| | | <el-form-item label="曾用名" prop="oldName"> |
| | | <el-input v-model="formData.oldName" placeholder="请输入曾用名" clearable :style="{width: '100%'}"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="8"> |
| | | <el-form-item label="身份证号" prop="idNum"> |
| | | <el-input v-model="formData.idNum" placeholder="请输入身份证号" clearable :style="{width: '100%'}"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | </el-form> |
| | | </el-col> |
| | | </el-container> |
| | | </div> |
| | | <div style="padding-left:70px"> |
| | | <el-container> |
| | | <el-col > |
| | | <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="70px" label-position="left"> |
| | | <el-row :span="6"> |
| | | <el-form-item label="性别" prop="sex"> |
| | | <el-input v-model="formData.sex" placeholder="请输入性别" clearable :style="{width: '100%'}"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="6"> |
| | | <el-form-item label="民族" prop="nation"> |
| | | <el-input v-model="formData.nation" placeholder="请输入民族" clearable :style="{width: '100%'}"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="8"> |
| | | <el-form-item label="联系方式" prop="phoneNumber"> |
| | | <el-input v-model="formData.phoneNumber" placeholder="请输入联系方式" clearable :style="{width: '100%'}"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | </el-form> |
| | | </el-col> |
| | | </el-container> |
| | | </div> |
| | | <div style="padding-left:70px"> |
| | | <el-container> |
| | | <el-col> |
| | | <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="70px" label-position="left"> |
| | | <el-row :span="6"> |
| | | <el-form-item label="国籍" prop="nationality"> |
| | | <el-input v-model="formData.nationality" placeholder="请输入国籍" clearable :style="{width: '100%'}"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="6"> |
| | | <el-form-item label="婚姻状况" prop="maritalStatus"> |
| | | <el-input v-model="formData.maritalStatus" placeholder="请输入婚姻状况" clearable :style="{width: '100%'}"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | |
| | | </el-form> |
| | | </el-col> |
| | | </el-container> |
| | | </div> |
| | | <div style="padding-left:70px;padding-top:30px"> |
| | | <el-row :gutter="6" > |
| | | <el-upload ref="ref1" |
| | | action="" |
| | | :file-list="fileList" |
| | | list-type="picture-card" |
| | | accept="image/*" |
| | | :auto-upload="false" |
| | | :multiple="false" |
| | | :limit="1"> |
| | | <i class="el-icon-plus"></i> |
| | | </el-upload> |
| | | </el-row> |
| | | </div> |
| | | <div style="padding-left:50px;padding-top:30px" > |
| | | <el-container> |
| | | <el-row :span="2" style="flex-direction: column;"> |
| | | <el-button type="primary" @click="submitForm">编辑</el-button> |
| | | <br> |
| | | <el-button type="primary" @click="submitForm">导入</el-button> |
| | | </el-row> |
| | | </el-container> |
| | | </div> |
| | | </el-container> |
| | | <el-container> |
| | | <div style="padding-left:30px"> |
| | | <el-container> |
| | | <el-col> |
| | | <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="100px" label-position="left"> |
| | | <el-row :span="15"> |
| | | <el-form-item label="户籍地址" prop="locationAddress"> |
| | | <el-input v-model="formData.locationAddress" placeholder="请输入户籍地址" clearable :style="{width: '100%'}"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="15"> |
| | | <el-form-item label="常住地址" prop="alwaysAddress"> |
| | | <el-input v-model="formData.alwaysAddress" placeholder="请输入常住地址" clearable :style="{width: '100%'}"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="15"> |
| | | <el-form-item label="单位及职务职称" prop="unit position "> |
| | | <el-input v-model="formData.unit,formData.position" placeholder="请输入单位及职务职称" clearable :style="{width: '100%'}"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | |
| | | </el-form> |
| | | </el-col> |
| | | </el-container> |
| | | </div> |
| | | <div style="padding-left:30px"> |
| | | <el-container> |
| | | <el-col> |
| | | <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="100px" label-position="left"> |
| | | <el-row :span="12"> |
| | | <el-form-item label="户籍地公安机关" prop="locationPolice"> |
| | | <el-input v-model="formData.locationPolice" placeholder="请输入户籍地公安机关" clearable :style="{width: '100%'}"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="12"> |
| | | <el-form-item label="常住地公安机关" prop=" alwaysPolice"> |
| | | <el-input v-model="formData. alwaysPolice" placeholder="请输入常住地公安机关" clearable :style="{width: '100%'}"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | |
| | | </el-form> |
| | | </el-col> |
| | | </el-container> |
| | | </div> |
| | | </el-container> |
| | | |
| | | |
| | | <div style="padding-top:30px"> |
| | | <el-container> |
| | | <div style="width:100%"><h2 style="font-size:15px" >主要学习及工作经历</h2></div> |
| | | <el-button type="primary" icon="el-icon-edit" round></el-button> |
| | | <el-button type="primary" icon="el-icon-delete" round></el-button> |
| | | </el-container> |
| | | |
| | | <el-table v-loading="loading" :data="experiencelList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="16" align="center" /> |
| | | <el-table-column label="起止日期" prop="startDate" sortable width="300" align="center" /> |
| | | <el-table-column label="主要学习经历、工作单位及任职情况" prop="content" sortable width="350" align="center" /> |
| | | <el-table-column label="证明人" prop="witness" sortable width="300" align="center" /> |
| | | <el-table-column label="删除" align="center" class-name="small-padding fixed-width" sortable width="100"> |
| | | |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | |
| | | <div style="padding-top:30px"> |
| | | <el-container> |
| | | <div style="width:100%"><h2 style="font-size:15px" >家庭成员及主要社会关系情况</h2></div> |
| | | <el-button type="primary" icon="el-icon-edit" round></el-button> |
| | | <el-button type="primary" icon="el-icon-delete" round></el-button> |
| | | </el-container> |
| | | |
| | | <el-table v-loading="loading" :data="experiencelList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="16" align="center" /> |
| | | <el-table-column label="与本人关系" sortable width="270" align="center" /> |
| | | <el-table-column label="姓名" sortable width="270" align="center" /> |
| | | <el-table-column label="单位及职务" sortable width="270" align="center" /> |
| | | <el-table-column label="政治面貌" sortable width="270" align="center"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | |
| | | <el-container> |
| | | <div style="width:100%"><h2 style="font-size:15px" >移居国(境)情况</h2></div> |
| | | |
| | | </el-container> |
| | | |
| | | <div style="padding-top:30px"> |
| | | <el-container> |
| | | <div style="width:100%"><h2 style="font-size:15px" >持有出入境证件情况</h2></div> |
| | | <el-button type="primary" icon="el-icon-edit" round></el-button> |
| | | <el-button type="primary" icon="el-icon-delete" round></el-button> |
| | | </el-container> |
| | | <!-- :data =""内的东西不知道要不要改--> |
| | | <el-table v-loading="loading" :data="experiencelList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="16" align="center" /> |
| | | <el-table-column label="证件名称" sortable width="270" align="center" /> |
| | | <el-table-column label="持有情况" sortable width="270" align="center" /> |
| | | <el-table-column label="证件号码" sortable width="270" align="center" /> |
| | | <el-table-column label="有效期" sortable width="270" align="center"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | <div style="padding-top:30px"> |
| | | <el-container> |
| | | <div style="width:100%"><h2 style="font-size:15px" >出国(境)情况</h2></div> |
| | | <el-button type="primary" icon="el-icon-edit" round></el-button> |
| | | <el-button type="primary" icon="el-icon-delete" round></el-button> |
| | | </el-container> |
| | | <el-table v-loading="loading" :data="experiencelList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="16" align="center" /> |
| | | <el-table-column label="起止日期" prop="startDate" sortable width="300" align="center" /> |
| | | <el-table-column label="所到国家或者地区" prop="content" sortable width="350" align="center" /> |
| | | <el-table-column label="事由(旅游、走访、探亲、继承财产、其他)" prop="witness" sortable width="300" align="center" /> |
| | | <el-table-column label="删除" align="center" class-name="small-padding fixed-width" sortable width="100"> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | </div> |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | </div> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | import {getIndividualInfo, getIndividualRelation, delIndividual, updateIndividual, addIndividual,listExperience,updateExperience, |
| | | addExperience,delExperience} from "@/api/self/index"; |
| | | |
| | | export default { |
| | | name: 'edit', |
| | | components: {}, |
| | | props: [], |
| | | |
| | | data() { |
| | | return { |
| | | input: '', |
| | | filelist: [], |
| | | |
| | | // 遮罩层 |
| | | disabled: false, |
| | | |
| | | loading: true, |
| | | // formData:[], |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
| | | single: true, |
| | | // 非多个禁用 |
| | | multiple: true, |
| | | // 显示搜索条件 |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | // 个人经历数据 |
| | | experiencelList: [], |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | // 是否显示弹出层(数据权限) |
| | | openDataScope: false, |
| | | menuExpand: false, |
| | | menuNodeAll: false, |
| | | deptExpand: true, |
| | | deptNodeAll: false, |
| | | // 日期范围 |
| | | dateRange: [], |
| | | // 数据范围选项 |
| | | fot:[".jpg",".jif"], |
| | | fileList:[ |
| | | ], |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | dsb:true, |
| | | btn:false, |
| | | |
| | | formData: { |
| | | userId:undefined, |
| | | nickName: undefined, |
| | | oldName: undefined, |
| | | sex: undefined, |
| | | nationality: undefined, |
| | | nation: undefined, |
| | | maritalStatus: undefined, |
| | | idNum: undefined, |
| | | politicalOutlook: undefined, |
| | | phoneNumber: undefined, |
| | | locationAddress: undefined, |
| | | alwaysPolice: undefined, |
| | | alwaysAddress: undefined, |
| | | unit:undefined, |
| | | position: undefined, |
| | | locationPolice: undefined, |
| | | outStatus:undefined, |
| | | url: undefined, |
| | | }, |
| | | rules: { |
| | | nickName: [{ |
| | | required: true, |
| | | message: '请输入姓名', |
| | | trigger: 'blur' |
| | | }], |
| | | sex: [{ |
| | | required: true, |
| | | message: '请输入性别', |
| | | trigger: 'blur' |
| | | }], |
| | | nationality: [{ |
| | | required: true, |
| | | message: '请输入国籍', |
| | | trigger: 'blur' |
| | | }], |
| | | oldName: [{ |
| | | required: true, |
| | | message: '请输入曾用名', |
| | | trigger: 'blur' |
| | | }], |
| | | nation: [{ |
| | | required: true, |
| | | message: '请输入民族', |
| | | trigger: 'blur' |
| | | }], |
| | | idNum: [{ |
| | | // required: true, |
| | | message: '请输入身份证号', |
| | | trigger: 'blur' |
| | | }], |
| | | maritalStatus: [{ |
| | | // required: true, |
| | | message: '请输入婚姻状况', |
| | | trigger: 'blur' |
| | | }], |
| | | phoneNumber: [{ |
| | | // required: true, |
| | | message: '请输入联系方式', |
| | | trigger: 'blur' |
| | | }], |
| | | locationAddress: [{ |
| | | // required: true, |
| | | message: '请输入户籍地址', |
| | | trigger: 'blur' |
| | | }], |
| | | locationPolice: [{ |
| | | // required: true, |
| | | message: '请输入户籍地公安机关', |
| | | trigger: 'blur' |
| | | }], |
| | | alwaysAddress: [{ |
| | | // required: true, |
| | | message: '请输入常住地址', |
| | | trigger: 'blur' |
| | | }], |
| | | alwaysPolice: [{ |
| | | // required: true, |
| | | message: '请输入常住地公安机关', |
| | | trigger: 'blur' |
| | | }], |
| | | unit: [{ |
| | | // required: true, |
| | | trigger: 'blur' |
| | | }], |
| | | position: [{ |
| | | // required: true, |
| | | message: '请输入单位及职务职称', |
| | | trigger: 'blur' |
| | | }], |
| | | }, |
| | | |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 5, |
| | | startDate:undefined, |
| | | content:undefined, |
| | | witness:undefined, |
| | | createTime:undefined |
| | | }, |
| | | } |
| | | }, |
| | | computed: {}, |
| | | watch: {}, |
| | | created() { |
| | | this.getList(); |
| | | // this.getCateInfor() |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | submitForm() { |
| | | this.$refs['elForm'].validate(valid => { |
| | | if (!valid) return |
| | | // TODO 提交表单 |
| | | }) |
| | | }, |
| | | resetForm() { |
| | | this.$refs['elForm'].resetFields() |
| | | }, |
| | | fillFormData(){ |
| | | let formData = new FormData(); |
| | | let photo = this.$refs['ref1'].uploadFiles[0]; |
| | | if(photo===undefined){ |
| | | this.$message.error("请选择照片"); |
| | | return false; |
| | | } |
| | | if(photo!==undefined){ |
| | | formData.append('照片', photo.raw);//根据后端需要的参数进行相应更改,大多是文件格式 |
| | | } |
| | | return formData; |
| | | }, |
| | | dialogConfirm() { |
| | | let formData=this.fillFormData(); |
| | | if(this.dialogMode ==='edit_pic'){//dialogMode用于判断当前时添加还是编辑 |
| | | this.api.update(formData).then(res => {//调用修改接口 |
| | | if (res.data.code == "OK") { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "修改成功!", |
| | | duration:5000 |
| | | }); |
| | | this.fileList=[]; |
| | | } else { |
| | | this.$message.error(res.data.message); |
| | | } |
| | | },()=>{ |
| | | this.$message.error("修改失败"); |
| | | }).finally(()=>{ |
| | | }); |
| | | }else{ |
| | | this.api.insert(formData).then(res => {//添加接口 |
| | | if (res.data.code == "OK") { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "新建成功!", |
| | | duration:5000 |
| | | }); |
| | | this.fileList=[]; |
| | | } else { |
| | | this.$message.error(res.data.message); |
| | | } |
| | | },()=>{ |
| | | this.$message.error("新建失败"); |
| | | }).finally(()=>{ |
| | | }); |
| | | } |
| | | }, |
| | | //点击编辑时图片回显 |
| | | edit_pic(info){//info=>后台接口返回的数据 |
| | | let url=this.baseUrl+info.photo//url的地址根据项目实际需要,info.photo=>图片路径,this.baseUrl=>上传的网络地址 |
| | | this.fileList=[]; |
| | | this.fileList.push({ |
| | | 'url': url |
| | | }) |
| | | this.dialogMode='edit_pic';//设置为编辑 |
| | | }, |
| | | onCreateNew(){ |
| | | this.fileList=[]; |
| | | this.dialogMode='create';//设置为添加 |
| | | }, |
| | | /** 个人信息列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | // console.log(this.queryParams) |
| | | // listProperty(this.addDateRange(this.queryParams, this.dateRange)).then(response => { |
| | | listExperience(this.queryParams).then(response => { |
| | | // alert(123) |
| | | // console.log(response.data) |
| | | this.experiencelList = response.data.data; |
| | | |
| | | this.total = response.data.total; |
| | | this.loading = false; |
| | | } |
| | | |
| | | ); |
| | | }, |
| | | |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
New file |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-col :span="6" > |
| | | <el-input size="medium" v-model="input" placeholder="搜索" clearable> |
| | | <i slot="prefix" class="el-input__icon el-icon-search"></i> |
| | | </el-input> |
| | | </el-col> |
| | | <br> |
| | | <h1 style="font-size:21px;padding-top:30px">个人简历</h1> |
| | | <el-divider /> |
| | | <!-- 基本信息--> |
| | | <h2 style="font-size:16px">基本信息</h2> |
| | | |
| | | <!-- <el-column prop="nickName" label="姓名"></el-column>--> |
| | | |
| | | <el-container> |
| | | <!-- <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>--> |
| | | <div style="padding-left:30px"> |
| | | |
| | | <!-- <el-form-item label="userId" prop="userId">--> |
| | | <!-- <el-select v-model="formDat.userId" clearable :style="{width: '100%'}" >--> |
| | | <!-- <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value"--> |
| | | <!-- ></el-option>--> |
| | | <!-- </el-select>--> |
| | | <!-- </el-form-item>--> |
| | | |
| | | <el-container> |
| | | <el-col v-loading="loading" :data="individualList" @selection-change="handleSelectionChange"> |
| | | <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="70px" label-position="left"> |
| | | <el-row :span="6"> |
| | | <el-form-item label="姓名" prop="nickName"> |
| | | <el-input v-model="formData.nickName" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="6"> |
| | | <el-form-item label="曾用名" prop="oldName"> |
| | | <el-input v-model="formData.oldName" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="8"> |
| | | <el-form-item label="身份证号" prop="idNum"> |
| | | <el-input v-model="formData.idNum" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | </el-form> |
| | | </el-col> |
| | | </el-container> |
| | | </div> |
| | | <div style="padding-left:70px"> |
| | | <el-container> |
| | | <el-col v-loading="loading" :data="individualList" @selection-change="handleSelectionChange"> |
| | | <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="70px" label-position="left"> |
| | | <el-row :span="6"> |
| | | <el-form-item label="性别" prop="sex"> |
| | | <el-input v-model="formData.sex" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="6"> |
| | | <el-form-item label="民族" prop="nation"> |
| | | <el-input v-model="formData.nation" placeholder="" clearable :style="{width: '100%'}":disabled="dsb"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="8"> |
| | | <el-form-item label="联系方式" prop="phoneNumber"> |
| | | <el-input v-model="formData.phoneNumber" placeholder="" clearable :style="{width: '100%'}":disabled="dsb"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | </el-form> |
| | | </el-col> |
| | | </el-container> |
| | | </div> |
| | | <div style="padding-left:70px"> |
| | | <el-container> |
| | | <el-col v-loading="loading" :data="individualList" @selection-change="handleSelectionChange"> |
| | | <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="70px" label-position="left":disabled="dsb"> |
| | | <el-row :span="6"> |
| | | <el-form-item label="国籍" prop="nationality"> |
| | | <el-input v-model="formData.nationality" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="6"> |
| | | <el-form-item label="婚姻状况" prop="maritalStatus"> |
| | | <el-input v-model="formData.maritalStatus" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | |
| | | </el-form> |
| | | </el-col> |
| | | </el-container> |
| | | </div> |
| | | <div style="padding-left:90px;padding-top:30px"> |
| | | <el-row :gutter="6" > |
| | | <el-upload ref="ref1" |
| | | action="" |
| | | :file-list="fileList" |
| | | list-type="picture-card" |
| | | accept="image/*" |
| | | :auto-upload="false" |
| | | :multiple="false" |
| | | :limit="1"> |
| | | <i class="el-icon-plus"></i> |
| | | </el-upload> |
| | | </el-row> |
| | | </div> |
| | | <div style="padding-left:50px;padding-top:30px" > |
| | | <el-container > |
| | | <!-- <template slot-scope="scope" v-if="scope.row.roleId !== 1">--> |
| | | <!-- <el-button--> |
| | | <!-- size="mini"--> |
| | | <!-- type="text"--> |
| | | <!-- icon="el-icon-edit"--> |
| | | <!-- @click="handleUpdate(scope.row)"--> |
| | | <!-- v-hasPermi="['system:role:edit']"--> |
| | | <!-- >修改</el-button>--> |
| | | |
| | | <!-- </template>--> |
| | | <el-row :span="2" style="flex-direction: column;"> |
| | | <el-button |
| | | type="primary" |
| | | @click="edit(scope.row)" |
| | | v-hasPermi="['system:role:edit']" |
| | | |
| | | |
| | | >编辑</el-button> |
| | | <br> |
| | | <el-button type="primary" @click="submitForm">导入</el-button> |
| | | </el-row> |
| | | </el-container> |
| | | </div> |
| | | <!-- </el-dialog>--> |
| | | </el-container> |
| | | <el-container> |
| | | <div style="padding-left:30px"> |
| | | <el-container> |
| | | <el-col v-loading="loading" :data="individualList" @selection-change="handleSelectionChange"> |
| | | <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="110px" label-position="left"> |
| | | <el-row :span="15"> |
| | | <el-form-item label="户籍地址" prop="locationAddress"> |
| | | <el-input v-model="formData.locationAddress" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="15"> |
| | | <el-form-item label="常住地址" prop="alwaysAddress"> |
| | | <el-input v-model="formData.alwaysAddress" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="15"> |
| | | <el-form-item label="单位及职务职称" prop="unit position "> |
| | | <el-input v-model="formData.unit,formData.position" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | |
| | | </el-form> |
| | | </el-col> |
| | | </el-container> |
| | | </div> |
| | | <div style="padding-left:30px"> |
| | | <el-container> |
| | | <el-col v-loading="loading" :data="individualList" @selection-change="handleSelectionChange"> |
| | | <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="110px" label-position="left"> |
| | | <el-row :span="12"> |
| | | <el-form-item label="户籍地公安机关" prop="locationPolice"> |
| | | <el-input v-model="formData.locationPolice" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row :span="12"> |
| | | <el-form-item label="常住地公安机关" prop="alwaysPolice"> |
| | | <el-input v-model="formData. alwaysPolice" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | |
| | | </el-form> |
| | | </el-col> |
| | | </el-container> |
| | | </div> |
| | | </el-container> |
| | | |
| | | <!-- 主要学习及工作经历--> |
| | | <div style="padding-top:30px"> |
| | | <el-container> |
| | | <div style="width:100%"><h2 style="font-size:15px" >主要学习及工作经历</h2></div> |
| | | <el-button type="primary" icon="el-icon-edit" round></el-button> |
| | | <el-button type="primary" icon="el-icon-delete" round></el-button> |
| | | </el-container> |
| | | <el-table v-loading="loading" :data="experienceList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="25" align="center" /> |
| | | <el-table-column label="起止日期" prop="startDate" sortable width="300" align="center" /> |
| | | <el-table-column label="主要学习经历、工作单位及任职情况" prop="content" sortable width="350" align="center" /> |
| | | <el-table-column label="证明人" prop="witness" sortable width="300" align="center" /> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope" v-if="scope.row.roleId !== 1"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['system:role:edit']" |
| | | >修改</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['system:role:remove']" |
| | | >删除</el-button> |
| | | <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" v-hasPermi="['system:role:edit']"> |
| | | <el-button size="mini" type="text" icon="el-icon-d-arrow-right" @click="handleCheck(scope.row)">查看详情</el-button> |
| | | |
| | | </el-dropdown> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | <!-- 家庭成员及主要社会关系情况--> |
| | | <div style="padding-top:30px"> |
| | | <el-container> |
| | | <div style="width:100%"><h2 style="font-size:15px" >家庭成员及主要社会关系情况</h2></div> |
| | | <el-button type="primary" icon="el-icon-edit" round></el-button> |
| | | <el-button type="primary" icon="el-icon-delete" round></el-button> |
| | | </el-container> |
| | | <el-table v-loading="loading" :data="relationList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="25" align="center" /> |
| | | <el-table-column label="与本人关系" prop="relation" sortable width="260" align="center" /> |
| | | <el-table-column label="姓名" prop="nickName" sortable width="260" align="center" /> |
| | | <el-table-column label="单位及职务" prop="unit position" sortable width="260" align="center" /> |
| | | <el-table-column label="政治面貌" prop="politicalOutlook" sortable width="260" align="center"/> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope" v-if="scope.row.roleId !== 1"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['system:role:edit']" |
| | | >修改</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['system:role:remove']" |
| | | >删除</el-button> |
| | | <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" v-hasPermi="['system:role:edit']"> |
| | | <el-button size="mini" type="text" icon="el-icon-d-arrow-right" @click="handleCheck(scope.row)">查看详情</el-button> |
| | | |
| | | </el-dropdown> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | |
| | | <!-- 移居国(境)情况--> |
| | | <div> |
| | | <el-container> |
| | | <div style="width:100%"><h2 style="font-size:15px" >移居国(境)情况</h2></div> |
| | | </el-container> |
| | | |
| | | <div style="width:100%"> |
| | | <el-container> |
| | | <span style="font-size:15px" >是否拥有外籍、境外居留权、长期居留许可</span> |
| | | <el-radio v-model="formData.outStatus" label="1">是</el-radio> |
| | | <el-radio v-model="formData.outStatus" label="0">否</el-radio> |
| | | </el-container> |
| | | </div> |
| | | <div style="padding-top:20px"> |
| | | <el-container> |
| | | <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="80px" label-position="left"> |
| | | <el-form-item label="证件号码" prop="idNo"> |
| | | <el-input v-model="formData.idNo" placeholder="" clearable :disabled="dsb"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-container> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- 持有出入境证件情况--> |
| | | <div style="padding-top:30px"> |
| | | <el-container> |
| | | <div style="width:100%"><h2 style="font-size:15px" >持有出入境证件情况</h2></div> |
| | | <el-button type="primary" icon="el-icon-edit" round></el-button> |
| | | <el-button type="primary" icon="el-icon-delete" round></el-button> |
| | | </el-container> |
| | | <el-table v-loading="loading" :data="experiencelList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="25" align="center" /> |
| | | <el-table-column label="证件名称" sortable width="280" align="center" /> |
| | | <el-table-column label="持有情况" sortable width="280" align="center" /> |
| | | <el-table-column label="证件号码" sortable width="280" align="center" /> |
| | | <el-table-column label="有效期" sortable width="280" align="center"> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | |
| | | </div> |
| | | |
| | | |
| | | <!-- 出国(境)情况--> |
| | | |
| | | <div style="padding-top:30px"> |
| | | <el-container> |
| | | <div style="width:100%"><h2 style="font-size:15px" >出国(境)情况</h2></div> |
| | | <el-button type="primary" icon="el-icon-edit" round></el-button> |
| | | <el-button type="primary" icon="el-icon-delete" round></el-button> |
| | | </el-container> |
| | | <el-table v-loading="loading" :data="experiencelList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="25" align="center" /> |
| | | <el-table-column label="起止日期" prop="startDate" sortable width="350" align="center" /> |
| | | <el-table-column label="所到国家或者地区" prop="content" sortable width="350" align="center" /> |
| | | <el-table-column label="事由(旅游、走访、探亲、继承财产、其他)" prop="witness" sortable width="400" align="center" /> |
| | | |
| | | </el-table> |
| | | |
| | | </div> |
| | | |
| | | |
| | | <!-- 自传--> |
| | | <div style="padding-top:30px"> |
| | | <el-container> |
| | | <div style="width:100%"><h2 style="font-size:15px" >自传</h2></div> |
| | | </el-container> |
| | | <el-tabs type="border-card" v-model="activeName" @tab-click="handleClick"> |
| | | <el-tab-pane label="0~3岁(婴儿期)" name="first"></el-tab-pane> |
| | | <el-tab-pane label="6~12(小学)" name="second"></el-tab-pane> |
| | | <el-tab-pane label="12~15(初中)" name="third"></el-tab-pane> |
| | | <el-tab-pane label="15~18(高中)" name="fourth"></el-tab-pane> |
| | | <el-tab-pane label="18~22(大学)" name="5"></el-tab-pane> |
| | | <el-tab-pane label="22~25(研究生)" name="6"></el-tab-pane> |
| | | <el-tab-pane label="26~ (工作)" name="7"></el-tab-pane> |
| | | <el-tab-pane label="?岁结婚" name="8"></el-tab-pane> |
| | | </el-tabs> |
| | | |
| | | <!-- <el-card class="box-card">--> |
| | | <!-- <div slot="header" class="clearfix">--> |
| | | <!-- <el-button type="primary" round>0~3岁(婴儿期)</el-button>--> |
| | | <!-- <el-button type="primary" round>6~12(小学)</el-button>--> |
| | | <!-- <el-button type="primary" round>12~15(初中)</el-button>--> |
| | | <!-- <el-button type="primary" round>15~18(高中)</el-button>--> |
| | | <!-- <el-button type="primary" round>18~22(大学)</el-button>--> |
| | | <!-- <el-button type="primary" round>22~25(研究生)</el-button>--> |
| | | <!-- <el-button type="primary" round>26~ (工作)</el-button>--> |
| | | <!-- <el-button type="primary" round>?岁结婚</el-button>--> |
| | | <!-- <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>--> |
| | | <!-- </div>--> |
| | | <!-- <div v-for="o in 4" :key="o" class="text item">--> |
| | | <!-- {{ }}--> |
| | | <!-- </div>--> |
| | | <!-- </el-card>--> |
| | | |
| | | |
| | | </div> |
| | | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | |
| | | |
| | | |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role"; |
| | | import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; |
| | | |
| | | |
| | | |
| | | //在system/note/index.js中导入接口函数 --接好了 |
| | | import {getIndividualList, getIndividualRelation, delIndividual, updateIndividual, addIndividual,listExperience,updateExperience, |
| | | addExperience,delExperience} from "@/api/self/index"; |
| | | export default { |
| | | name: "show", |
| | | dicts: ['sys_normal_disable'], |
| | | data() { |
| | | return { |
| | | // 遮罩层 |
| | | disabled: false, |
| | | |
| | | loading: true, |
| | | formData:[], |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
| | | single: true, |
| | | // 非多个禁用 |
| | | multiple: true, |
| | | // 显示搜索条件 |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | //个人信息数据 |
| | | individualList:[], |
| | | // 个人经历数据 |
| | | experienceList: [], |
| | | //家庭成员关系数据 |
| | | relationList:[], |
| | | |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | // open:true, |
| | | // 是否显示弹出层(数据权限) |
| | | openDataScope: false, |
| | | menuExpand: false, |
| | | menuNodeAll: false, |
| | | deptExpand: true, |
| | | deptNodeAll: false, |
| | | // 日期范围 |
| | | dateRange: [], |
| | | // 数据范围选项 |
| | | fot:[".jpg",".jif"], |
| | | fileList:[ |
| | | ], |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | dsb:true, |
| | | btn:false, |
| | | //个人自传 |
| | | activeName: 'second', |
| | | |
| | | formDat: { |
| | | //个人基本信息 |
| | | nickName:undefined, |
| | | oldName:undefined, |
| | | sex:undefined, |
| | | nationality:undefined, |
| | | nation:undefined, |
| | | maritalStatus:undefined, |
| | | phoneNumber:undefined, |
| | | idNum:undefined, |
| | | locationAddress:undefined, |
| | | alwaysAddress:undefined, |
| | | locationPolice:undefined, |
| | | alwaysPolice:undefined, |
| | | outStatus:undefined, |
| | | idNo:undefined, |
| | | unit:undefined, |
| | | position:undefined, |
| | | politicalOutlook:undefined, |
| | | img:undefined, |
| | | fatherId:undefined, |
| | | momId:undefined, |
| | | birth:undefined, |
| | | |
| | | //主要学习及工作经历 |
| | | id:undefined, |
| | | userId:undefined, |
| | | startDate:undefined, |
| | | content:undefined, |
| | | witness:undefined, |
| | | remark: undefined, |
| | | //家庭成员及主要社会关系情况 |
| | | |
| | | relation:undefined, |
| | | |
| | | |
| | | // |
| | | url: undefined, |
| | | }, |
| | | // 菜单列表 |
| | | menuOptions: [], |
| | | // 部门列表 |
| | | deptOptions: [], |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 5, |
| | | startDate:undefined, |
| | | content:undefined, |
| | | witness:undefined, |
| | | }, |
| | | // 表单参数 |
| | | form: {}, |
| | | defaultProps: { |
| | | children: "children", |
| | | label: "label" |
| | | }, |
| | | // 表单校验 |
| | | rules: { |
| | | //基本信息 |
| | | nickName: [{ |
| | | // required: true, |
| | | message: '请输入姓名', |
| | | trigger: 'blur' |
| | | }], |
| | | oldName: [{ |
| | | // required: true, |
| | | message: '请输入曾用名', |
| | | trigger: 'blur' |
| | | }], |
| | | idNum: [{ |
| | | // required: true, |
| | | message: '请输入身份证号', |
| | | trigger: 'blur' |
| | | }], |
| | | nationality: [{ |
| | | // required: true, |
| | | message: '请输入国籍', |
| | | trigger: 'blur' |
| | | }], |
| | | maritalStatus: [{ |
| | | // required: true, |
| | | message: '请输入民族', |
| | | trigger: 'blur' |
| | | }], |
| | | locationAddress: [{ |
| | | // required: true, |
| | | message: '请输入户籍地址', |
| | | trigger: 'blur' |
| | | }], |
| | | alwaysAddress: [{ |
| | | // required: true, |
| | | message: '请输入常住地址', |
| | | trigger: 'blur' |
| | | }], |
| | | unit: [{ |
| | | // required: true, |
| | | message: '请输入单位', |
| | | trigger: 'blur' |
| | | }], |
| | | position: [{ |
| | | // required: true, |
| | | message: '请输入职务职称', |
| | | trigger: 'blur' |
| | | }], |
| | | locationPolice: [{ |
| | | // required: true, |
| | | message: '请输入户籍地公安机关', |
| | | trigger: 'blur' |
| | | }], |
| | | alwaysPolice: [{ |
| | | // required: true, |
| | | message: '请输入常住地公安机关', |
| | | trigger: 'blur' |
| | | }], |
| | | |
| | | //主要学习及工作经历 |
| | | startDate: [{ |
| | | required: true, |
| | | message: '请输入起始日期', |
| | | trigger: 'blur' |
| | | }], |
| | | content: [{ |
| | | required: true, |
| | | message: '请输入主要学习经历、工作单位及任职情况', |
| | | trigger: 'blur' |
| | | }], |
| | | witness: [{ |
| | | required: true, |
| | | message: '请输入证明人', |
| | | trigger: 'blur' |
| | | }], |
| | | |
| | | }, |
| | | typeOptions: [], |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | // this.getCateInfor() |
| | | |
| | | }, |
| | | methods: { |
| | | // 取消按钮 |
| | | cancelData() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | //编辑按钮 |
| | | edit(row){ |
| | | const id= row.id; |
| | | this.reset(); |
| | | // this.$router.push('/self/self/edit') |
| | | this.title='编辑个人信息'; |
| | | this.$router.push('/family2/self/edit/' + id); |
| | | }, |
| | | //个人自传 |
| | | handleClick(tab, event) { |
| | | console.log(tab, event); |
| | | }, |
| | | |
| | | /** 查询角色列表 */ |
| | | //列表显示家大事记 |
| | | |
| | | getList() { |
| | | this.loading = true; |
| | | // console.log(this.queryParams) |
| | | // listProperty(this.addDateRange(this.queryParams, this.dateRange)).then(response => { |
| | | listExperience(this.queryParams).then(response => { |
| | | // alert(123) |
| | | // console.log(response.data) |
| | | this.experienceList = response.data.data; |
| | | |
| | | this.total = response.data.total; |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | getIndividualRelation(this.queryParams).then(response => { |
| | | // alert(123) |
| | | // console.log(response.data) |
| | | this.relationList = response.data.data; |
| | | |
| | | this.total = response.data.total; |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | getIndividualList(this.queryParams).then(response => { |
| | | // alert(123) |
| | | // console.log(response.data) |
| | | this.individualList = response.data.data; |
| | | |
| | | this.total = response.data.total; |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | |
| | | }, |
| | | |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 取消按钮(数据权限) |
| | | cancelDataScope() { |
| | | this.openDataScope = false; |
| | | this.reset(); |
| | | }, |
| | | // 表单重置 |
| | | reset() { |
| | | if (this.$refs.menu != undefined) { |
| | | this.$refs.menu.setCheckedKeys([]); |
| | | } |
| | | this.menuExpand = false, |
| | | this.menuNodeAll = false, |
| | | this.deptExpand = true, |
| | | this.deptNodeAll = false, |
| | | this.form = { |
| | | roleId: undefined, |
| | | roleName: undefined, |
| | | roleKey: undefined, |
| | | roleSort: 0, |
| | | status: "0", |
| | | menuIds: [], |
| | | deptIds: [], |
| | | menuCheckStrictly: true, |
| | | deptCheckStrictly: true, |
| | | remark: undefined |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | | this.getList(); |
| | | }, |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.dateRange = []; |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | this.ids = selection.map(item => item.id) |
| | | console.log(this.ids) |
| | | this.single = selection.length!=1 |
| | | this.multiple = !selection.length |
| | | }, |
| | | |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |
| | | this.reset(); |
| | | this.open = true; |
| | | this.title = "添加家庭大事记信息"; |
| | | }, |
| | | |
| | | |
| | | /** 查看详细信息 */ |
| | | handleCheck(row){ |
| | | const id = row.id; |
| | | this.$router.push("/family1/bignote/familyeventInfo/" + id); |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | const id = row.id; |
| | | let jd = true |
| | | |
| | | this.$router.push({ |
| | | path:"/self/self/edit" + id, |
| | | query:{ |
| | | detail:jd |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | |
| | | handlePictureCardPreview(file) { |
| | | this.dialogImageUrl = file.url; |
| | | this.dialogVisible = true; |
| | | }, |
| | | /** 提交按钮(数据权限) */ |
| | | submitDataScope: function() { |
| | | |
| | | 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.formDat.url = ul+","+uls |
| | | this.$refs["elForm"].validate(valid => { |
| | | if (valid) { |
| | | |
| | | addFamilyevent(this.formDat).then(response => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.open = false; |
| | | this.getList1(); |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | | requestUpload(params) |
| | | { |
| | | var file = params.file; |
| | | var formData = new FormData(); |
| | | formData.append('uploadFile', file); |
| | | let _this = this |
| | | |
| | | uploadPic(formData).then(response => { |
| | | let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length) |
| | | |
| | | if(_this.fot.includes(pth) === true) |
| | | { |
| | | _this.fileList.push({name:response.data.fileName, "url":response.data.url}) |
| | | |
| | | } |
| | | |
| | | else{ |
| | | _this.fileListOther.push({name:response.data.fileName, url:response.data.url}) |
| | | |
| | | } |
| | | }) |
| | | |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const Ids = row.id || this.ids; |
| | | this.$modal.confirm('是否确认删除序号为"' + Ids + '"的数据项?').then(function() { |
| | | return delFamilyevent(Ids); |
| | | }).then(() => { |
| | | this.getList1(); |
| | | this.$modal.msgSuccess("删除成功"); |
| | | }).catch(() => {}); |
| | | }, |
| | | /** 导出按钮操作 */ |
| | | handleExport() { |
| | | this.download('/family/zfEvent/export', { |
| | | ...this.queryParams |
| | | }, `zfEvent_${new Date().getTime()}.xlsx`) |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |