diff --git a/ruoyi-ui/src/views/project/surProjectInsurance/index.vue b/ruoyi-ui/src/views/project/surProjectInsurance/index.vue index 7b3107ad..98f56a96 100644 --- a/ruoyi-ui/src/views/project/surProjectInsurance/index.vue +++ b/ruoyi-ui/src/views/project/surProjectInsurance/index.vue @@ -129,7 +129,8 @@ @@ -249,7 +250,14 @@ /> - + @@ -106,7 +107,14 @@ /> - + { this.projectOptions = response.rows; - if (response.rows.length > 1) { + if(response.rows.length == 1){ + //默认初始化当前项目人员信息 + this.$api.publics.selectProjectAllUnitUser({projectId: response.rows[0].id}) + .then((d) => { + this.projectUnitUsers.push({projectId:response.rows[0].id,data:d.data}); + }); + }else if (response.rows.length > 1) { this.showPro = true; } }); diff --git a/ruoyi-ui/src/views/trouble/sspProblemmodifyDraft/index.vue b/ruoyi-ui/src/views/trouble/sspProblemmodifyDraft/index.vue index f642e8af..45b3a57e 100644 --- a/ruoyi-ui/src/views/trouble/sspProblemmodifyDraft/index.vue +++ b/ruoyi-ui/src/views/trouble/sspProblemmodifyDraft/index.vue @@ -359,7 +359,13 @@ export default { // 获取项目列表的接口 this.$api.publics.getMyProjectList({}).then((response) => { this.projectOptions = response.rows; - if (response.rows.length > 1) { + if(response.rows.length == 1){ + //默认初始化当前项目人员信息 + this.$api.publics.selectProjectAllUnitUser({projectId: response.rows[0].id}) + .then((d) => { + this.projectUnitUsers.push({projectId:response.rows[0].id,data:d.data}); + }); + }else if (response.rows.length > 1) { this.showPro = true; } }); diff --git a/ruoyi-ui/src/views/work/workFile/indexViewDrawer.vue b/ruoyi-ui/src/views/work/workFile/indexViewDrawer.vue index b4b4d303..a0ef12f4 100644 --- a/ruoyi-ui/src/views/work/workFile/indexViewDrawer.vue +++ b/ruoyi-ui/src/views/work/workFile/indexViewDrawer.vue @@ -21,7 +21,7 @@ - + @@ -72,7 +72,7 @@ - + - + - \ No newline at end of file