From a50a61336a71e0492a33240c71761fe67d2e125d Mon Sep 17 00:00:00 2001 From: fengdong777 <1478994744@qq.com> Date: Fri, 8 Sep 2023 17:22:07 +0800 Subject: [PATCH] 9.8 --- supervise-enterprise-ui/src/views/Yjsq/AddYjsq.vue | 5 ++--- supervise-enterprise-ui/src/views/Yjsq/LookYzsq/index.vue | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/supervise-enterprise-ui/src/views/Yjsq/AddYjsq.vue b/supervise-enterprise-ui/src/views/Yjsq/AddYjsq.vue index 9632d161..b4a13871 100644 --- a/supervise-enterprise-ui/src/views/Yjsq/AddYjsq.vue +++ b/supervise-enterprise-ui/src/views/Yjsq/AddYjsq.vue @@ -206,16 +206,13 @@ }, industryAllList: [], industryList: [], - userSid:'', imgList: [], msg:[], checkList:[], projectSidList:[] - } }, created() { - this.formobj.user_sid = window.sessionStorage.getItem('userSid') this.projectSidList= JSON.parse(window.sessionStorage.getItem("projectSidList")); }, watch: { @@ -233,6 +230,7 @@ }, methods: { saveOrUpdate() { + this.formobj.user_sid=window.sessionStorage.getItem('userSid') this.backcheckList() if (this.formobj.sid) { req.sealrecordSave(this.formobj) @@ -270,6 +268,7 @@ }, saveSubmit(){ + this.formobj.user_sid=window.sessionStorage.getItem('userSid') this.backcheckList() req.sealrecordSubmit(this.formobj) .then(resp => { diff --git a/supervise-enterprise-ui/src/views/Yjsq/LookYzsq/index.vue b/supervise-enterprise-ui/src/views/Yjsq/LookYzsq/index.vue index 38e451a2..7e20d40d 100644 --- a/supervise-enterprise-ui/src/views/Yjsq/LookYzsq/index.vue +++ b/supervise-enterprise-ui/src/views/Yjsq/LookYzsq/index.vue @@ -214,7 +214,6 @@ const data = window.location.href.substr(one) // url解码unescape()已从web中移除,尽量不使用 const obj = JSON.parse(decodeURIComponent(data)) this.showEdit(obj.businessSid) - this.formobj.user_sid = window.sessionStorage.getItem('userSid') }, watch: { imgList:{ @@ -231,6 +230,7 @@ }, methods: { saveOrUpdate() { + this.formobj.user_sid = window.sessionStorage.getItem('userSid') this.backcheckList() if( this.formobj.sid){ req.sealrecordSave(this.formobj) @@ -251,6 +251,7 @@ } }, saveSubmit(){ + this.formobj.user_sid = window.sessionStorage.getItem('userSid') this.backcheckList() req.sealrecordSubmit(this.formobj) .then(resp => {