|
|
@@ -145,8 +145,7 @@
|
|
|
<el-row>
|
|
|
<el-col :xs="24" :sm="24" :md="24" :lg="24">
|
|
|
<el-form-item label="上传相关证书">
|
|
|
- <image-upload :limit="5" :value="formData.qualificationCertificateUrl" :fileSize="2"
|
|
|
- @input="getImgUrl"></image-upload>
|
|
|
+ <imgs-upload :limit="5" v-model="formData.qualificationCertificateUrl" :fileSize="2"></imgs-upload>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<!--<el-col :xs="24" :sm="12" :md="8" :lg="6">
|
|
|
@@ -172,6 +171,7 @@ import uploadpng from "@/assets/images/upload.png";
|
|
|
import uplpng from "@/assets/images/upl.png";
|
|
|
import { getUser } from "@/api/system/user";
|
|
|
import TreeSelect from '@riophae/vue-treeselect'
|
|
|
+import ImgsUpload from "@/components/ImgsUpload";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
import { deptTreeList } from "@/api/system/public";
|
|
|
|
|
|
@@ -179,7 +179,7 @@ import { extendUserInformation } from "@/api/system/information";
|
|
|
|
|
|
export default {
|
|
|
props: [],
|
|
|
- components: { TreeSelect },
|
|
|
+ components: { TreeSelect ,ImgsUpload},
|
|
|
dicts: ['sys_highest_education', "sys_work_type", "sys_duties", "sys_education_type", 'sys_department_type', 'post_no_pass', 'current_position'],
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -395,23 +395,23 @@ export default {
|
|
|
this.roleName = data.roleName;
|
|
|
this.sex = data.sex;
|
|
|
this.status = data.status;
|
|
|
- console.log(data.information.qualificationCertificateUrl, '5555')
|
|
|
- let img = data.information.qualificationCertificateUrl.split(',');
|
|
|
+ //console.log(data.information.qualificationCertificateUrl, '5555')
|
|
|
+ //let img = data.information.qualificationCertificateUrl.split(',');
|
|
|
this.formData = data.information;
|
|
|
- this.formData.qualificationCertificateUrl = img.map((v, i) => { return this.imageUrl(v) });
|
|
|
+ //this.formData.qualificationCertificateUrl = img.map((v, i) => { return this.imageUrl(v) });
|
|
|
});
|
|
|
},
|
|
|
|
|
|
|
|
|
saveExtend() {
|
|
|
this.formData.userId = this.$route.params.userId;
|
|
|
- let imgs = JSON.parse(JSON.stringify(this.imgs));
|
|
|
- let qualificationCertificateUrl = imgs.toString(',');
|
|
|
+ // let imgs = JSON.parse(JSON.stringify(this.imgs));
|
|
|
+ // let qualificationCertificateUrl = imgs.toString(',');
|
|
|
this.$refs['form'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
let data = {
|
|
|
...this.formData,
|
|
|
- qualificationCertificateUrl
|
|
|
+ // qualificationCertificateUrl
|
|
|
}
|
|
|
extendUserInformation(data).then(res => {
|
|
|
this.$message.success('保存成功!')
|