提交代码

dev_xds
姜玉琦 2024-03-19 23:24:31 +08:00
parent 509eb22d28
commit 98c5d7f979
5 changed files with 47 additions and 20 deletions

View File

@ -129,7 +129,8 @@
<el-table <el-table
v-loading="loading" v-loading="loading"
:data="surProjectInsuranceList" :data="surProjectInsuranceList"
@selection-change="handleSelectionChange" stripe @selection-change="handleSelectionChange"
stripe
> >
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="项目名称" align="center" prop="projectName" /> <el-table-column label="项目名称" align="center" prop="projectName" />
@ -249,7 +250,14 @@
/> />
<!-- 添加或修改项目保险对话框 --> <!-- 添加或修改项目保险对话框 -->
<el-dialog :title="title" :visible.sync="open" width="680px" append-to-body :close-on-click-modal="false" :close-on-press-escape="false"> <el-dialog
:title="title"
:visible.sync="open"
width="680px"
append-to-body
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="保险类型" prop="insuranceType"> <el-form-item label="保险类型" prop="insuranceType">
<el-select <el-select
@ -482,7 +490,7 @@ export default {
}, },
/** 预览 */ /** 预览 */
handledownload(row) { handledownload(row) {
window.open("/jhapi" + row.insuranceFile); window.open(process.env.VUE_APP_BASE_API + row.insuranceFile);
}, },
}, },
}; };

View File

@ -42,7 +42,8 @@
<el-table <el-table
v-loading="loading" v-loading="loading"
:data="surProjectInsuranceList" :data="surProjectInsuranceList"
@selection-change="handleSelectionChange" stripe @selection-change="handleSelectionChange"
stripe
> >
<el-table-column label="保险类型" align="center" prop="insuranceTypeName" /> <el-table-column label="保险类型" align="center" prop="insuranceTypeName" />
<el-table-column label="保险状态" align="center" prop="insuranceState"> <el-table-column label="保险状态" align="center" prop="insuranceState">
@ -106,7 +107,14 @@
/> />
<!-- 添加或修改项目保险对话框 --> <!-- 添加或修改项目保险对话框 -->
<el-dialog :title="title" :visible.sync="open" width="680px" append-to-body :close-on-click-modal="false" :close-on-press-escape="false"> <el-dialog
:title="title"
:visible.sync="open"
width="680px"
append-to-body
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="项目名称" prop="projectName"> <el-form-item label="项目名称" prop="projectName">
<el-input <el-input
@ -405,7 +413,7 @@ export default {
}, },
/** 预览 */ /** 预览 */
handledownload(row) { handledownload(row) {
window.open("/jhapi" + row.insuranceFile); window.open(process.env.VUE_APP_BASE_API + row.insuranceFile);
}, },
}, },
}; };

View File

@ -359,7 +359,13 @@ export default {
// //
this.$api.publics.getMyProjectList({}).then((response) => { this.$api.publics.getMyProjectList({}).then((response) => {
this.projectOptions = response.rows; 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; this.showPro = true;
} }
}); });

View File

@ -359,7 +359,13 @@ export default {
// //
this.$api.publics.getMyProjectList({}).then((response) => { this.$api.publics.getMyProjectList({}).then((response) => {
this.projectOptions = response.rows; 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; this.showPro = true;
} }
}); });

View File

@ -42,7 +42,7 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.deptType!=1 && scope.row.deptType!=11">{{ scope.row.deptName }}</span> <span v-if="scope.row.deptType!=1 && scope.row.deptType!=11">{{ scope.row.deptName }}</span>
<span v-if="scope.row.deptType==1"></span> <span v-if="scope.row.deptType==1"></span>
<span v-if="scope.row.deptType==11"> <span v-if="scope.row.deptType==11">
{{getDeptName(scope.row.ancestors)}} {{getDeptName(scope.row.ancestors)}}
</span> </span>
@ -210,4 +210,3 @@
}, },
}; };
</script> </script>