提交代码

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

@ -21,7 +21,7 @@
<el-tab-pane :label="tag.zbgs" name="2" key="2" ></el-tab-pane> <el-tab-pane :label="tag.zbgs" name="2" key="2" ></el-tab-pane>
<el-tab-pane :label="tag.fbgs" name="3" key="3" ></el-tab-pane> <el-tab-pane :label="tag.fbgs" name="3" key="3" ></el-tab-pane>
</el-tabs> </el-tabs>
<el-table <el-table
v-loading="loading" v-loading="loading"
style="margin-left: 20px; margin-right: 20px" style="margin-left: 20px; margin-right: 20px"
@ -42,10 +42,10 @@
> >
<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>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="人员姓名" align="center" prop="nickName"/> <el-table-column label="人员姓名" align="center" prop="nickName"/>
@ -72,7 +72,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="total > 0" v-show="total > 0"
:total="total" :total="total"
@ -83,10 +83,10 @@
</el-drawer> </el-drawer>
</div> </div>
</template> </template>
<script> <script>
import { listWorkUser, delWorkUser, queryCount } from "@/api/work/workUser"; import { listWorkUser, delWorkUser, queryCount } from "@/api/work/workUser";
export default { export default {
name: "workFileUser", name: "workFileUser",
data() { data() {
@ -155,23 +155,23 @@
response.data.forEach(datum => { response.data.forEach(datum => {
if(datum.deptType=="1"){ if(datum.deptType=="1"){
sum+=datum.total; sum+=datum.total;
tag.fzjt="集团公司("+datum.total+""; tag.fzjt="集团公司("+datum.total+"";
} }
if(datum.deptType=="11"){ if(datum.deptType=="11"){
sum+=datum.total; sum+=datum.total;
tag.zgs="子公司("+datum.total+""; tag.zgs="子公司("+datum.total+"";
} }
if(datum.deptType=="4"){ if(datum.deptType=="4"){
sum+=datum.total; sum+=datum.total;
tag.jldw="监理单位("+datum.total+""; tag.jldw="监理单位("+datum.total+"";
} }
if(datum.deptType=="2"){ if(datum.deptType=="2"){
sum+=datum.total; sum+=datum.total;
tag.zbgs="总包公司("+datum.total+""; tag.zbgs="总包公司("+datum.total+"";
} }
if(datum.deptType=="3"){ if(datum.deptType=="3"){
sum+=datum.total; sum+=datum.total;
tag.fbgs="分包公司("+datum.total+""; tag.fbgs="分包公司("+datum.total+"";
} }
tag.all="全部("+sum+""; tag.all="全部("+sum+"";
}); });
@ -210,4 +210,3 @@
}, },
}; };
</script> </script>