|
@@ -134,7 +134,23 @@ export default {
|
|
|
isMust: false,//是否必填
|
|
|
value: "",
|
|
|
}];
|
|
|
- this.form = form;
|
|
|
+ this.$Http.basic({
|
|
|
+ "id": 20240510104102,
|
|
|
+ "content": {},
|
|
|
+ }).then(res => {
|
|
|
+ console.log("获取个人信息", res)
|
|
|
+ // if (this.cutoff(res.msg)) return;
|
|
|
+ if (res.msg == '成功') {
|
|
|
+ this.headportraits = res.data.attinfos;
|
|
|
+ this.headportrait = this.headportraits.find(v => v.usetype == "headportrait").url || this.headportrait;
|
|
|
+ form = form.map(v => {
|
|
|
+ v.value = res.data[v.key] || v.value
|
|
|
+ return v
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.form = form;
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
isUncomplete(uncomplete) {
|
|
|
this.uncomplete = uncomplete;
|
|
@@ -157,7 +173,15 @@ export default {
|
|
|
if (this.attachmentids.length) {
|
|
|
this.uploadCallback(this.attachmentids, "sys_users", this.userid).then(s => {
|
|
|
if (s) getUserMsg()
|
|
|
+ });
|
|
|
+ if (this.headportraits.length) this.$Http.basic({
|
|
|
+ "classname": "system.attachment.Attachment",
|
|
|
+ "method": "deleteFileLink",
|
|
|
+ "content": {
|
|
|
+ linksids: this.headportraits.map(v => v.linksid)
|
|
|
+ }
|
|
|
})
|
|
|
+
|
|
|
} else {
|
|
|
getUserMsg()
|
|
|
}
|