|
@@ -6,82 +6,71 @@
|
|
|
<el-form :model="queryParams" class="form-box" ref="queryForm"
|
|
|
:inline="true" style="width:100%;">
|
|
|
<div class="table-school-college-toggle-box">
|
|
|
- <p :class="tableButtonCheckType==1?'p-check':''" @click="tableCheck(1)">全部</p>
|
|
|
- <p :class="tableButtonCheckType==2?'p-check':''" @click="tableCheck(2)">待复查</p>
|
|
|
- <p :class="tableButtonCheckType==3?'p-check':''" @click="tableCheck(3)">已复查</p>
|
|
|
+ <p :class="reviewStatus==null?'p-check':''" @click="tableCheck(null)">全部</p>
|
|
|
+ <p :class="reviewStatus==0?'p-check':''" @click="tableCheck(0)">待复查</p>
|
|
|
+ <p :class="reviewStatus==1?'p-check':''" @click="tableCheck(1)">已复查</p>
|
|
|
</div>
|
|
|
- <el-form-item label="" prop="queryParamsData2">
|
|
|
- <el-select v-model="queryParams.queryParamsData2" placeholder="检查类型" style="width:170px;">
|
|
|
- <el-option
|
|
|
- v-for="dict in optionList"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
- :value="dict.value"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
+ <el-form-item label="" prop="planTitle">
|
|
|
+ <el-input
|
|
|
+ maxLength="30"
|
|
|
+ v-model="queryParams.planTitle"
|
|
|
+ placeholder="计划标题"
|
|
|
+ style="width: 150px"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="" prop="queryParamsData2">
|
|
|
- <el-select v-model="queryParams.queryParamsData2" placeholder="学院单位" style="width:190px;">
|
|
|
- <el-option
|
|
|
- v-for="dict in optionList"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
- :value="dict.value"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
+ <el-form-item label="" prop="hazardCheckPro">
|
|
|
+ <el-cascader
|
|
|
+ style="width: 150px"
|
|
|
+ placeholder="检查指标"
|
|
|
+ v-model="queryParams.hazardCheckPro"
|
|
|
+ filterable
|
|
|
+ :show-all-levels="false"
|
|
|
+ :options="cascaderData"
|
|
|
+ :props="{ value: 'id', label: 'labelName',emitPath:false }"
|
|
|
+ ></el-cascader>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="" prop="queryParamsData2">
|
|
|
- <el-select v-model="queryParams.queryParamsData2" placeholder="楼栋" style="width:190px;">
|
|
|
- <el-option
|
|
|
- v-for="dict in optionList"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
- :value="dict.value"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
+ <el-form-item label="" prop="hazardCheckName">
|
|
|
+ <el-input
|
|
|
+ maxLength="30"
|
|
|
+ v-model="queryParams.hazardCheckName"
|
|
|
+ placeholder="模糊搜索检查指标项"
|
|
|
+ style="width: 170px"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="" prop="queryParamsData2" v-if="advancedType">
|
|
|
- <el-select v-model="queryParams.queryParamsData2" placeholder="安全分类" style="width:170px;">
|
|
|
+ <el-form-item label="" prop="deptId">
|
|
|
+ <el-select v-model="queryParams.deptId" placeholder="学院单位" style="width: 180px">
|
|
|
<el-option
|
|
|
- v-for="dict in optionList"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
- :value="dict.value"
|
|
|
+ v-for="dict in deptOption"
|
|
|
+ :key="dict.deptId"
|
|
|
+ :label="dict.deptName"
|
|
|
+ :value="dict.deptId"
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="" prop="queryParamsData2" v-if="advancedType">
|
|
|
- <el-select v-model="queryParams.queryParamsData2" placeholder="安全分级" style="width:170px;">
|
|
|
+ <el-form-item label="" prop="levelId">
|
|
|
+ <el-select v-model="queryParams.levelId" placeholder="安全分级" style="width: 180px">
|
|
|
<el-option
|
|
|
- v-for="dict in optionList"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
- :value="dict.value"
|
|
|
+ v-for="dict in levelOption"
|
|
|
+ :key="dict.levelId"
|
|
|
+ :label="dict.levelName"
|
|
|
+ :value="dict.levelId"
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="" prop="queryParamsData1" v-if="advancedType">
|
|
|
+ <el-form-item label="" prop="searchValue" v-if="advancedType">
|
|
|
<el-input
|
|
|
maxLength="30"
|
|
|
- v-model="queryParams.queryParamsData1"
|
|
|
+ v-model="queryParams.searchValue"
|
|
|
placeholder="实验室/房间号"
|
|
|
- style="width:170px;"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="" prop="queryParamsData1" v-if="advancedType">
|
|
|
- <el-input
|
|
|
- maxLength="30"
|
|
|
- v-model="queryParams.queryParamsData1"
|
|
|
- placeholder="计划标题"
|
|
|
- style="width:170px;"
|
|
|
+ style="width: 200px"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="" prop="queryParamsData1" v-if="advancedType">
|
|
|
+ <el-form-item label="" prop="rectifyName" v-if="advancedType">
|
|
|
<el-input
|
|
|
maxLength="30"
|
|
|
- v-model="queryParams.queryParamsData1"
|
|
|
- placeholder="检查人"
|
|
|
- style="width:170px;"
|
|
|
+ v-model="queryParams.rectifyName"
|
|
|
+ placeholder="整改人"
|
|
|
+ style="width: 200px"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="" prop="state" v-if="advancedType">
|
|
@@ -89,7 +78,7 @@
|
|
|
:clearable="false"
|
|
|
v-model="dateRange"
|
|
|
size="small"
|
|
|
- style="width: 240px"
|
|
|
+ style="width: 280px"
|
|
|
value-format="yyyy-MM-dd"
|
|
|
type="daterange"
|
|
|
range-separator="-"
|
|
@@ -105,24 +94,34 @@
|
|
|
<div class="page-content-box">
|
|
|
<el-table class="table-box" v-loading="loading" border :data="dataList">
|
|
|
<el-table-column label="序号" type="index" width="60"/>
|
|
|
- <el-table-column label="计划标题" prop="name" show-overflow-tooltip/>
|
|
|
- <el-table-column label="检查类型" prop="content" width="100" show-overflow-tooltip/>
|
|
|
- <el-table-column label="检查名称" prop="content" width="100" show-overflow-tooltip/>
|
|
|
- <el-table-column label="检查项目" prop="content" width="260" show-overflow-tooltip/>
|
|
|
- <el-table-column label="实验室" prop="content" width="165" show-overflow-tooltip/>
|
|
|
- <el-table-column label="检查人" prop="content" width="80" show-overflow-tooltip/>
|
|
|
- <el-table-column label="复查人" prop="content" width="80" show-overflow-tooltip/>
|
|
|
- <el-table-column label="复查状态" prop="state" width="80" show-overflow-tooltip>
|
|
|
+ <el-table-column label="计划标题" prop="planTitle" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="检查类型" prop="checkTypeName" width="100" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="检查名称" prop="checkName" width="100" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="检查项目" prop="hazardCheckCode" width="260" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.hazardCheckCode}} {{scope.row.hazardCheckName}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="实验室" prop="subName" width="165" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.subName}} {{scope.row.roomNum}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="检查人" prop="createName" width="80" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="复查人" prop="reviewName" width="80" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="复查状态" prop="reviewStatus" width="80" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
+ <span>{{scope.row.reviewStatus == 1?'已复查':(scope.row.reviewStatus == 0?'未复查':'')}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="复查结果" prop="state" width="80" show-overflow-tooltip>
|
|
|
+ <el-table-column label="复查结果" prop="examineResult" width="80" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
+ <span>{{scope.row.examineResult == 1?'复查完毕':(scope.row.examineResult == 0?'退回整改':'')}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="复查时间" prop="createTime" width="160" show-overflow-tooltip>
|
|
|
+ <el-table-column label="复查时间" prop="reviewTime" width="160" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ parseTime(scope.row.createTime,"{y}-{m}-{d} {h}:{i}") }}</span>
|
|
|
+ <span>{{ parseTime(scope.row.reviewTime,"{y}-{m}-{d} {h}:{i}") }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="130" show-overflow-tooltip >
|
|
@@ -130,16 +129,16 @@
|
|
|
<div class="table-button-box">
|
|
|
<p class="table-button-null"></p>
|
|
|
<p class="table-button-p"
|
|
|
+ v-if="scope.row.reviewButtion"
|
|
|
@click="tableButton(1,scope.row)"
|
|
|
-
|
|
|
>复查</p>
|
|
|
<p class="table-button-p"
|
|
|
+ v-if="!scope.row.reviewButtion"
|
|
|
@click="tableButton(2,scope.row)"
|
|
|
-
|
|
|
>详情</p>
|
|
|
<p class="table-button-p"
|
|
|
- @click="tableButton(4,scope.row)"
|
|
|
-
|
|
|
+ v-if="scope.row.isAdmin"
|
|
|
+ @click="tableButton(3,scope.row)"
|
|
|
>转移</p>
|
|
|
<p class="table-button-null"></p>
|
|
|
</div>
|
|
@@ -159,24 +158,33 @@
|
|
|
:visible.sync="dialogType" v-if="dialogType" @close="dialogOff()"
|
|
|
:close-on-click-modal="false" :close-on-press-escape="false">
|
|
|
<div class="reviewManage-dialog-max-box">
|
|
|
- <p class="reviewManage-dialog-name">督导组名称</p>
|
|
|
+ <p class="reviewManage-dialog-name">{{dialogGroupName}}</p>
|
|
|
<div class="reviewManage-dialog-box">
|
|
|
<img src="@/assets/ZDimages/safetyCheck/icon_xyxc_cy.png">
|
|
|
<p>成员列表</p>
|
|
|
</div>
|
|
|
- <el-table class="table-box table-null-img-20" border :data="dialogData.dialogList1">
|
|
|
+ <el-table class="table-box table-null-img-20" border :data="dialogDataList">
|
|
|
<el-table-column label="" align="center" width="150">
|
|
|
<template scope="scope">
|
|
|
- <div class="check-img-box" @click="tableColumnCheck(scope.row.dialogDataId)">
|
|
|
- <img src="@/assets/ZDimages/basicsModules/icon_fcrzy_wxz@1x.png" v-if="scope.row.dialogDataId != tableColumnType">
|
|
|
- <img src="@/assets/ZDimages/basicsModules/icon_fcrzy_xz@1x.png" v-if="scope.row.dialogDataId == tableColumnType">
|
|
|
+ <div class="check-img-box" v-if="dialogUserId != scope.row.userId"
|
|
|
+ @click="tableColumnCheck(scope.row)">
|
|
|
+ <img src="@/assets/ZDimages/basicsModules/icon_fcrzy_wxz@1x.png" v-if="scope.row.userId != reviewUserid">
|
|
|
+ <img src="@/assets/ZDimages/basicsModules/icon_fcrzy_xz@1x.png" v-if="scope.row.userId == reviewUserid">
|
|
|
</div>
|
|
|
+ <p v-if="dialogUserId == scope.row.userId" style="text-align: center!important;">负责人</p>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="姓名" prop="name" show-overflow-tooltip/>
|
|
|
- <el-table-column label="工号" prop="name" width="130" show-overflow-tooltip/>
|
|
|
- <el-table-column label="所在部门" prop="content" width="188" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="姓名" prop="userName" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="工号" prop="account" width="130" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="所在部门" prop="deptName" width="188" show-overflow-tooltip/>
|
|
|
</el-table>
|
|
|
+ <pagination :page-sizes="[20, 30, 40, 50]"
|
|
|
+ v-show="dialogTotal>0"
|
|
|
+ :total="dialogTotal"
|
|
|
+ :page.sync="dialogQueryParams.page"
|
|
|
+ :limit.sync="dialogQueryParams.pageSize"
|
|
|
+ @pagination="securityCheckDangerGetMemberList"
|
|
|
+ />
|
|
|
</div>
|
|
|
<div slot="footer" class="dialog-footer dialog-footer-box">
|
|
|
<p class="dialog-footer-button-null"></p>
|
|
@@ -189,9 +197,17 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
- //import { getDicts } from "@/api/commonality/noPermission";
|
|
|
- //import { systemUserSelect } from "@/api/commonality/permission";
|
|
|
- //import { getInfo } from "@/api/basicsModules/index";
|
|
|
+ import {
|
|
|
+ getDeptDropList,
|
|
|
+ laboratoryClassLevelGetList,
|
|
|
+ } from '@/api/commonality/permission'
|
|
|
+ import {
|
|
|
+ securityCheckOptionList,
|
|
|
+ securityCheckDangerReviewList,
|
|
|
+ securityCheckDangerGetMemberInfo,
|
|
|
+ securityCheckDangerGetMemberList,
|
|
|
+ securityCheckDangerUpdateByReview,
|
|
|
+ } from "@/api/safetyCheck/indexDemoOne";
|
|
|
import initiateInspect from "@/views/safetyCheck/components/initiateInspect/initiateInspect.vue";
|
|
|
export default {
|
|
|
name: 'index',
|
|
@@ -204,17 +220,26 @@
|
|
|
//页面状态
|
|
|
pageType:1,
|
|
|
//复查状态选项卡
|
|
|
- tableButtonCheckType:1,
|
|
|
+ reviewStatus:null,
|
|
|
//页面遮罩
|
|
|
loading:false,
|
|
|
- //下拉列表数据
|
|
|
- optionList:[{value:true,label:'启用'},{value:false,label:'停用'}],
|
|
|
+ //学院列表
|
|
|
+ deptOption:[],
|
|
|
+ //分级下拉列表
|
|
|
+ levelOption:[],
|
|
|
+ //检查项下拉列表
|
|
|
+ cascaderData:[],
|
|
|
//查询条件
|
|
|
queryParams:{
|
|
|
page:1,
|
|
|
pageSize:20,
|
|
|
- queryParamsData1:"",
|
|
|
- queryParamsData2 :null,
|
|
|
+ planTitle:"",
|
|
|
+ hazardCheckPro :null,
|
|
|
+ hazardCheckName:"",
|
|
|
+ deptId :null,
|
|
|
+ levelId :null,
|
|
|
+ searchValue:"",
|
|
|
+ rectifyName:"",
|
|
|
},
|
|
|
//时间数据
|
|
|
dateRange:[],
|
|
@@ -227,40 +252,33 @@
|
|
|
//组件传参
|
|
|
initiateInspectData:{},
|
|
|
//复查转移
|
|
|
- dialogData:{
|
|
|
- dialogData1:'督导组名称',
|
|
|
- dialogList1:[
|
|
|
- {
|
|
|
- dialogDataId:1,
|
|
|
- dialogDataType:false,
|
|
|
- dialogDataName:'名称',
|
|
|
- dialogDataNum:'工号',
|
|
|
- dialogDataDept:'部门',
|
|
|
- },
|
|
|
- {
|
|
|
- dialogDataId:2,
|
|
|
- dialogDataType:false,
|
|
|
- dialogDataName:'名称',
|
|
|
- dialogDataNum:'工号',
|
|
|
- dialogDataDept:'部门',
|
|
|
- },
|
|
|
- ],
|
|
|
+ dialogGroupName:'',
|
|
|
+ dialogUserId:'',
|
|
|
+ dialogQueryParams:{
|
|
|
+ page:1,
|
|
|
+ pageSize:20,
|
|
|
},
|
|
|
+ dialogDataList:[],
|
|
|
+ dialogTotal:0,
|
|
|
dialogType:false,
|
|
|
- tableColumnType:null
|
|
|
+ dialogDangerId:'',
|
|
|
+ reviewUserid:null,
|
|
|
+ reviewName:null
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
-
|
|
|
+ this.getDeptDropList();
|
|
|
+ this.laboratoryClassLevelGetList();
|
|
|
+ this.securityCheckOptionList();
|
|
|
},
|
|
|
mounted () {
|
|
|
- //this.getList();
|
|
|
+ this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
//复查状态选项卡切换
|
|
|
tableCheck(type){
|
|
|
- if (this.tableButtonCheckType !== type){
|
|
|
- this.$set(this,'tableButtonCheckType',type);
|
|
|
+ if (this.reviewStatus !== type){
|
|
|
+ this.$set(this,'reviewStatus',type);
|
|
|
this.resetQuery();
|
|
|
}
|
|
|
},
|
|
@@ -279,8 +297,13 @@
|
|
|
this.$set(this,'queryParams',{
|
|
|
page:1,
|
|
|
pageSize:20,
|
|
|
- queryParamsData1:"",
|
|
|
- queryParamsData2 :null,
|
|
|
+ planTitle:"",
|
|
|
+ hazardCheckPro :null,
|
|
|
+ hazardCheckName:"",
|
|
|
+ deptId :null,
|
|
|
+ levelId :null,
|
|
|
+ searchValue:"",
|
|
|
+ rectifyName:"",
|
|
|
});
|
|
|
this.getList();
|
|
|
},
|
|
@@ -288,14 +311,25 @@
|
|
|
getList(){
|
|
|
this.$set(this,'loading',true);
|
|
|
let obj = JSON.parse(JSON.stringify(this.queryParams))
|
|
|
- if(this.dateRange[0]){
|
|
|
- obj.startTime = this.dateRange[0]+'T00:00:00'
|
|
|
- obj.endTime = this.dateRange[1]+'T23:59:59'
|
|
|
- }else{
|
|
|
- obj.startTime = "";
|
|
|
- obj.endTime = "";
|
|
|
+ let data = {
|
|
|
+ planTitle:obj.planTitle,
|
|
|
+ hazardCheckPro:obj.hazardCheckPro,
|
|
|
+ hazardCheckName:obj.hazardCheckName,
|
|
|
+ deptId:obj.deptId,
|
|
|
+ levelId:obj.levelId,
|
|
|
+ };
|
|
|
+ if(this.advancedType){
|
|
|
+ data.searchValue = obj.searchValue;
|
|
|
+ data.rectifyName = obj.searchValue;
|
|
|
+ if(this.dateRange[0]){
|
|
|
+ data.startTime = this.dateRange[0]+'T00:00:00'
|
|
|
+ data.endTime = this.dateRange[1]+'T23:59:59'
|
|
|
+ }else{
|
|
|
+ data.startTime = "";
|
|
|
+ data.endTime = "";
|
|
|
+ }
|
|
|
}
|
|
|
- getListFunction(obj).then(response => {
|
|
|
+ securityCheckDangerReviewList(data).then(response => {
|
|
|
this.$set(this,'loading',false);
|
|
|
this.$set(this,'dataList',response.data.records);
|
|
|
this.$set(this,'total',response.data.total);
|
|
@@ -309,26 +343,52 @@
|
|
|
this.$set(this,'pageType',2);
|
|
|
let obj = JSON.parse(JSON.stringify(row))
|
|
|
obj.showType = false;
|
|
|
- obj.orderTitle = '隐患整改';
|
|
|
- obj.orderType = '3';
|
|
|
+ obj.orderTitle = '复查验证';
|
|
|
+ obj.orderType = '5';
|
|
|
this.$set(this,'initiateInspectData',obj);
|
|
|
}else if(type == 2){
|
|
|
//详情
|
|
|
this.$set(this,'pageType',2);
|
|
|
let obj = JSON.parse(JSON.stringify(row))
|
|
|
obj.showType = true;
|
|
|
- obj.orderTitle = '整改详情';
|
|
|
- obj.orderType = '4';
|
|
|
+ obj.orderTitle = '复查详情';
|
|
|
+ obj.orderType = '6';
|
|
|
this.$set(this,'initiateInspectData',obj);
|
|
|
- }else if(type == 4){
|
|
|
+ }else if(type == 3){
|
|
|
//转移
|
|
|
- this.dialogOpen();
|
|
|
+ this.$set(this.dialogQueryParams,'page',1);
|
|
|
+ this.$set(this,'dialogDangerId',row.dangerId);
|
|
|
+ this.securityCheckDangerGetMemberInfo(row.dangerId);
|
|
|
}else if(type == 6){
|
|
|
//返回并刷新
|
|
|
this.$set(this,'pageType',1);
|
|
|
this.getList();
|
|
|
}
|
|
|
},
|
|
|
+ //督导组信息查询
|
|
|
+ securityCheckDangerGetMemberInfo(dangerId){
|
|
|
+ securityCheckDangerGetMemberInfo({dangerId:dangerId}).then(response => {
|
|
|
+ this.$set(this,'dialogGroupName',response.data.groupName);
|
|
|
+ this.$set(this,'dialogUserId',response.data.userId);
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.securityCheckDangerGetMemberList(dangerId);
|
|
|
+ })
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //督导组人员查询
|
|
|
+ securityCheckDangerGetMemberList(dangerId){
|
|
|
+ let obj = JSON.parse(JSON.stringify(this.dialogQueryParams))
|
|
|
+ obj.dangerId = dangerId;
|
|
|
+ securityCheckDangerGetMemberList(obj).then(response => {
|
|
|
+ this.$set(this,'dialogDataList',response.data.records);
|
|
|
+ this.$set(this,'dialogTotal',response.data.total);
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ if(!this.dialogType){
|
|
|
+ this.dialogOpen();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ });
|
|
|
+ },
|
|
|
/******** 转移弹窗 ********/
|
|
|
//弹层关闭
|
|
|
dialogOff(){
|
|
@@ -336,21 +396,104 @@
|
|
|
},
|
|
|
//弹层开启
|
|
|
dialogOpen(){
|
|
|
- this.$set(this,'tableColumnType',null);
|
|
|
+ this.$set(this,'reviewUserid',null);
|
|
|
this.$set(this,'dialogType',true);
|
|
|
},
|
|
|
//弹层确定
|
|
|
dialogSubmit(){
|
|
|
- if(!this.tableColumnType){
|
|
|
+ if(!this.reviewUserid){
|
|
|
this.msgError('请选择复查转移人')
|
|
|
return
|
|
|
}
|
|
|
- this.$set(this,'dialogType',false);
|
|
|
+ let obj = {
|
|
|
+ dangerId:this.dialogDangerId,
|
|
|
+ reviewUserid:this.reviewUserid,
|
|
|
+ reviewName:this.reviewName,
|
|
|
+ };
|
|
|
+ securityCheckDangerUpdateByReview(obj).then(response => {
|
|
|
+ this.msgSuccess(response.message)
|
|
|
+ this.$set(this,'dialogType',false);
|
|
|
+ });
|
|
|
},
|
|
|
tableColumnCheck(row) {
|
|
|
- if(this.tableColumnType != row){
|
|
|
- this.$set(this,'tableColumnType',row);
|
|
|
+ if(this.reviewUserid != row.userId){
|
|
|
+ this.$set(this,'reviewUserid',row.userId);
|
|
|
+ this.$set(this,'reviewName',row.userName);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //学院列表
|
|
|
+ getDeptDropList() {
|
|
|
+ getDeptDropList({ deptName: '', level: 2, deptType: 1 }).then(response => {
|
|
|
+ this.$set(this, 'deptOption', response.data)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //分级下拉列表
|
|
|
+ laboratoryClassLevelGetList(){
|
|
|
+ laboratoryClassLevelGetList({}).then(response => {
|
|
|
+ this.$set(this,'levelOption',response.data);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //检查项列表
|
|
|
+ securityCheckOptionList() {
|
|
|
+ securityCheckOptionList({}).then(response => {
|
|
|
+ let list = this.getCascaderData(JSON.parse(JSON.stringify(response.data)),3)
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.$set(this, 'cascaderData', list)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //检查项格式处理
|
|
|
+ getCascaderData(list,type) {
|
|
|
+ let self = this
|
|
|
+ for (let i = 0; i < list.length; i++) {
|
|
|
+ list[i].labelName = list[i].code ? list[i].code + ' ' + list[i].name : list[i].name
|
|
|
+ if(list[i].level == type){
|
|
|
+ delete list[i].children
|
|
|
+ }else if (list[i].children) {
|
|
|
+ if (list[i].children[0]) {
|
|
|
+ list[i].children = self.getCascaderData(list[i].children,type)
|
|
|
+ } else {
|
|
|
+ list.splice(i, 1)
|
|
|
+ i--
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ list.splice(i, 1)
|
|
|
+ i--
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for (let i = 0; i < list.length; i++) {
|
|
|
+ list[i].labelName = list[i].code ? list[i].code + ' ' + list[i].name : list[i].name
|
|
|
+ if(list[i].level == type){
|
|
|
+ delete list[i].children
|
|
|
+ }else if (list[i].children) {
|
|
|
+ if (list[i].children[0]) {
|
|
|
+ list[i].children = self.getCascaderData(list[i].children,type)
|
|
|
+ } else {
|
|
|
+ list.splice(i, 1)
|
|
|
+ i--
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ list.splice(i, 1)
|
|
|
+ i--
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for (let i = 0; i < list.length; i++) {
|
|
|
+ list[i].labelName = list[i].code ? list[i].code + ' ' + list[i].name : list[i].name
|
|
|
+ if(list[i].level == type){
|
|
|
+ delete list[i].children
|
|
|
+ }else if (list[i].children) {
|
|
|
+ if (list[i].children[0]) {
|
|
|
+ list[i].children = self.getCascaderData(list[i].children,type)
|
|
|
+ } else {
|
|
|
+ list.splice(i, 1)
|
|
|
+ i--
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ list.splice(i, 1)
|
|
|
+ i--
|
|
|
+ }
|
|
|
}
|
|
|
+ return list
|
|
|
},
|
|
|
},
|
|
|
}
|