提交代码
parent
509eb22d28
commit
98c5d7f979
|
@ -129,7 +129,8 @@
|
|||
<el-table
|
||||
v-loading="loading"
|
||||
:data="surProjectInsuranceList"
|
||||
@selection-change="handleSelectionChange" stripe
|
||||
@selection-change="handleSelectionChange"
|
||||
stripe
|
||||
>
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<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-item label="保险类型" prop="insuranceType">
|
||||
<el-select
|
||||
|
@ -482,7 +490,7 @@ export default {
|
|||
},
|
||||
/** 预览 */
|
||||
handledownload(row) {
|
||||
window.open("/jhapi" + row.insuranceFile);
|
||||
window.open(process.env.VUE_APP_BASE_API + row.insuranceFile);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
@ -42,7 +42,8 @@
|
|||
<el-table
|
||||
v-loading="loading"
|
||||
: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="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-item label="项目名称" prop="projectName">
|
||||
<el-input
|
||||
|
@ -405,7 +413,7 @@ export default {
|
|||
},
|
||||
/** 预览 */
|
||||
handledownload(row) {
|
||||
window.open("/jhapi" + row.insuranceFile);
|
||||
window.open(process.env.VUE_APP_BASE_API + row.insuranceFile);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
>
|
||||
<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">发展集团</span>
|
||||
<span v-if="scope.row.deptType==1">产发集团</span>
|
||||
<span v-if="scope.row.deptType==11">
|
||||
{{getDeptName(scope.row.ancestors)}}
|
||||
</span>
|
||||
|
@ -210,4 +210,3 @@
|
|||
},
|
||||
};
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue