|
@@ -8,43 +8,51 @@
|
|
<div>
|
|
<div>
|
|
<el-form :model="leftQueryParams" class="form-box" ref="leftQueryForm"
|
|
<el-form :model="leftQueryParams" class="form-box" ref="leftQueryForm"
|
|
:inline="true" style="width:100%;">
|
|
:inline="true" style="width:100%;">
|
|
- <el-form-item label="" prop="leftQueryParamsData1">
|
|
|
|
|
|
+ <el-form-item label="" prop="searchValue">
|
|
<el-input
|
|
<el-input
|
|
maxLength="30"
|
|
maxLength="30"
|
|
- v-model="leftQueryParams.leftQueryParamsData1"
|
|
|
|
|
|
+ v-model="leftQueryParams.searchValue"
|
|
placeholder="计划标题"
|
|
placeholder="计划标题"
|
|
clearable
|
|
clearable
|
|
@clear="leftClear"
|
|
@clear="leftClear"
|
|
- style="width: 390px"
|
|
|
|
|
|
+ style="width: 365px"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<p class="page-save-common-style-button" style="width:80px;display: inline-block" @click="leftHandleQuery">查询</p>
|
|
<p class="page-save-common-style-button" style="width:80px;display: inline-block" @click="leftHandleQuery">查询</p>
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
<!--计划栏列表-->
|
|
<!--计划栏列表-->
|
|
- <div class="left-list-box">
|
|
|
|
|
|
+ <div class="left-max-list-box scrollbar-box">
|
|
<div class="left-list-for-max-big-box" v-for="(bigItem,bigIndex) in leftListData" :key="bigIndex">
|
|
<div class="left-list-for-max-big-box" v-for="(bigItem,bigIndex) in leftListData" :key="bigIndex">
|
|
<div class="left-list-title-box" @click="leftBigCheckButton(bigIndex)">
|
|
<div class="left-list-title-box" @click="leftBigCheckButton(bigIndex)">
|
|
<p :class="bigIndex == leftBigCheckType?'el-icon-caret-bottom':'el-icon-caret-right'"></p>
|
|
<p :class="bigIndex == leftBigCheckType?'el-icon-caret-bottom':'el-icon-caret-right'"></p>
|
|
- <p>{{bigItem.leftData1}}</p>
|
|
|
|
- <p>{{bigItem.leftData2}}</p>
|
|
|
|
|
|
+ <p>{{bigItem.planTitle}}</p>
|
|
|
|
+ <p>{{bigItem.checkTypeName}}</p>
|
|
</div>
|
|
</div>
|
|
<div class="left-list-box">
|
|
<div class="left-list-box">
|
|
<div class="left-list-for-box" v-if="bigIndex == leftBigCheckType"
|
|
<div class="left-list-for-box" v-if="bigIndex == leftBigCheckType"
|
|
@click="leftCheckButton(index)"
|
|
@click="leftCheckButton(index)"
|
|
:class="index == leftCheckType ? 'check-left-list-for-box':''"
|
|
:class="index == leftCheckType ? 'check-left-list-for-box':''"
|
|
- v-for="(item,index) in bigItem.leftDataList" :key="index">
|
|
|
|
|
|
+ v-for="(item,index) in bigItem.checkPlanSetVoList" :key="index">
|
|
<div class="left-list-text-box">
|
|
<div class="left-list-text-box">
|
|
- <p>{{item.leftDataListData1}}</p>
|
|
|
|
- <p>检查开始时间:{{parseTime(item.leftDataListData2,"{y}-{m}-{d}")}}</p>
|
|
|
|
|
|
+ <p>{{item.checkName}}</p>
|
|
|
|
+ <p>检查开始时间:{{parseTime(item.checkStartTime,"{y}-{m}-{d}")}}</p>
|
|
</div>
|
|
</div>
|
|
<div class="left-list-progress-box">
|
|
<div class="left-list-progress-box">
|
|
- <el-progress :stroke-width="14" :percentage="item.leftDataListData4"></el-progress>
|
|
|
|
|
|
+ <el-progress :stroke-width="14" :percentage="item.checkSetProgress"></el-progress>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <p v-if="!leftListData[0]" class="left-list-for-null-p">暂无数据</p>
|
|
</div>
|
|
</div>
|
|
|
|
+ <pagination :page-sizes="[20, 30, 40, 50]"
|
|
|
|
+ v-show="titleTotal>0"
|
|
|
|
+ :total="titleTotal"
|
|
|
|
+ :page.sync="leftQueryParams.page"
|
|
|
|
+ :limit.sync="leftQueryParams.pageSize"
|
|
|
|
+ @pagination="getTitleList"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
<div class="page-content-center-box"></div>
|
|
<div class="page-content-center-box"></div>
|
|
<!--右侧数据表格-->
|
|
<!--右侧数据表格-->
|
|
@@ -53,58 +61,59 @@
|
|
<el-form :model="queryParams" class="form-box" ref="queryForm"
|
|
<el-form :model="queryParams" class="form-box" ref="queryForm"
|
|
:inline="true" style="width:100%;">
|
|
:inline="true" style="width:100%;">
|
|
<div class="table-school-college-toggle-box">
|
|
<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="tableButtonCheckType==4?'p-check':''" @click="tableCheck(4)">已检查</p>
|
|
|
|
|
|
+ <p :class="tableButtonCheckType===''?'p-check':''" @click="tableCheck('')">全部</p>
|
|
|
|
+ <p :class="tableButtonCheckType===0?'p-check':''" @click="tableCheck(0)">待检查</p>
|
|
|
|
+ <p :class="tableButtonCheckType===1?'p-check':''" @click="tableCheck(1)">检查中</p>
|
|
|
|
+ <p :class="tableButtonCheckType===2?'p-check':''" @click="tableCheck(2)">已检查</p>
|
|
</div>
|
|
</div>
|
|
- <el-form-item label="" prop="queryParamsData2">
|
|
|
|
- <el-select v-model="queryParams.queryParamsData2" placeholder="楼栋" style="width:150px;">
|
|
|
|
|
|
+ <el-form-item label="" prop="deptId">
|
|
|
|
+ <el-select v-model="queryParams.deptId" placeholder="学院单位" style="width:157px;">
|
|
<el-option
|
|
<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-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="" prop="queryParamsData1">
|
|
|
|
- <el-input
|
|
|
|
- maxLength="30"
|
|
|
|
- v-model="queryParams.queryParamsData1"
|
|
|
|
- placeholder="实验室/房间号"
|
|
|
|
- style="width:155px;"
|
|
|
|
- />
|
|
|
|
|
|
+ <el-form-item label="" prop="buildId">
|
|
|
|
+ <el-select v-model="queryParams.buildId" placeholder="楼栋" style="width:150px;">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="dict in buildOption"
|
|
|
|
+ :key="dict.id"
|
|
|
|
+ :label="dict.name"
|
|
|
|
+ :value="dict.id"
|
|
|
|
+ />
|
|
|
|
+ </el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="" prop="queryParamsData2" v-if="advancedType">
|
|
|
|
- <el-select v-model="queryParams.queryParamsData2" placeholder="安全分类" style="width:175px;">
|
|
|
|
|
|
+ <el-form-item label="" prop="typeId" v-if="advancedType">
|
|
|
|
+ <el-select v-model="queryParams.typeId" placeholder="安全分类" style="width:175px;">
|
|
<el-option
|
|
<el-option
|
|
- v-for="dict in optionList"
|
|
|
|
- :key="dict.value"
|
|
|
|
- :label="dict.label"
|
|
|
|
- :value="dict.value"
|
|
|
|
|
|
+ v-for="dict in classOption"
|
|
|
|
+ :key="dict.typeId"
|
|
|
|
+ :label="dict.typeName"
|
|
|
|
+ :value="dict.typeId"
|
|
/>
|
|
/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="" prop="queryParamsData2" v-if="advancedType">
|
|
|
|
- <el-select v-model="queryParams.queryParamsData2" placeholder="安全分级" style="width:175px;">
|
|
|
|
|
|
+ <el-form-item label="" prop="levelId" v-if="advancedType">
|
|
|
|
+ <el-select v-model="queryParams.levelId" placeholder="安全分级" style="width:175px;">
|
|
<el-option
|
|
<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-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <!--与我相关-->
|
|
|
|
- <div class="form-button-max-big-box-me">
|
|
|
|
- <div class="form-button-big-box-me">
|
|
|
|
- <div :class="queryParams.myRelated==1?'checkDiv-me':''" @click="topRightClickType">
|
|
|
|
- <p class="text-p-me">与我相关</p>
|
|
|
|
- <p class="el-icon-check icon-p-me" v-if="queryParams.myRelated==1"></p>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <el-form-item label="" prop="searchValue" v-if="advancedType">
|
|
|
|
+ <el-input
|
|
|
|
+ maxLength="30"
|
|
|
|
+ v-model="queryParams.searchValue"
|
|
|
|
+ placeholder="实验室/房间号"
|
|
|
|
+ style="width:170px;"
|
|
|
|
+ />
|
|
|
|
+ </el-form-item>
|
|
<p class="page-inquire-common-style-button" @click="handleQuery">查询</p>
|
|
<p class="page-inquire-common-style-button" @click="handleQuery">查询</p>
|
|
<p class="page-reset-common-style-button" @click="resetQuery">重置</p>
|
|
<p class="page-reset-common-style-button" @click="resetQuery">重置</p>
|
|
<p class="page-save-common-style-button" style="display: inline-block;margin-left:10px;" @click="searchToggle">{{advancedType?'普通搜索':'高级搜索'}}</p>
|
|
<p class="page-save-common-style-button" style="display: inline-block;margin-left:10px;" @click="searchToggle">{{advancedType?'普通搜索':'高级搜索'}}</p>
|
|
@@ -113,25 +122,31 @@
|
|
<div class="page-conten-box page-content-right-bottom-box">
|
|
<div class="page-conten-box page-content-right-bottom-box">
|
|
<el-table class="table-box" v-loading="loading" border :data="dataList">
|
|
<el-table class="table-box" v-loading="loading" border :data="dataList">
|
|
<el-table-column label="序号" type="index" width="60"/>
|
|
<el-table-column label="序号" type="index" width="60"/>
|
|
- <el-table-column label="实验室" prop="name" show-overflow-tooltip/>
|
|
|
|
- <el-table-column label="检查状态" prop="state" width="150" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column label="实验室" prop="subName" show-overflow-tooltip/>
|
|
|
|
+ <el-table-column label="检查状态" prop="manageStatus" width="150" show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
-
|
|
|
|
|
|
+ <span>{{scope.row.manageStatus==0?'待检查':(scope.row.manageStatus==1?'检查中':(scope.row.manageStatus==2?'已检查':''))}}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="检查人" prop="content" width="230" show-overflow-tooltip/>
|
|
|
|
- <el-table-column label="操作" width="180" show-overflow-tooltip >
|
|
|
|
|
|
+ <el-table-column label="检查人" prop="checkUserNames" width="230" show-overflow-tooltip/>
|
|
|
|
+ <el-table-column label="操作" width="240" show-overflow-tooltip >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div class="table-button-box">
|
|
<div class="table-button-box">
|
|
<p class="table-button-null"></p>
|
|
<p class="table-button-null"></p>
|
|
<p class="table-button-p"
|
|
<p class="table-button-p"
|
|
- @click="tableButton(2,scope.row)"
|
|
|
|
|
|
+ @click="tableButton(1,scope.row)"
|
|
|
|
|
|
>检查项</p>
|
|
>检查项</p>
|
|
<p class="table-button-p"
|
|
<p class="table-button-p"
|
|
- @click="tableButton(3,scope.row)"
|
|
|
|
|
|
+ v-if='scope.row.manageStatus !=2'
|
|
|
|
+ @click="tableButton(2,scope.row)"
|
|
|
|
|
|
>开始检查</p>
|
|
>开始检查</p>
|
|
|
|
+ <p class="table-button-p"
|
|
|
|
+ v-if='scope.row.manageStatus !=2'
|
|
|
|
+ @click="tableButton(3,scope.row)"
|
|
|
|
+
|
|
|
|
+ >检查完成</p>
|
|
<p class="table-button-null"></p>
|
|
<p class="table-button-null"></p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -148,40 +163,64 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<checkItem :propsData="propsData" v-if="pageType === 2"></checkItem>
|
|
<checkItem :propsData="propsData" v-if="pageType === 2"></checkItem>
|
|
|
|
+ <initiateInspect v-if="pageType == 3" :initiateInspectData="initiateInspectData"></initiateInspect>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
- //import { getDicts } from "@/api/commonality/noPermission";
|
|
|
|
- //import { systemUserSelect } from "@/api/commonality/permission";
|
|
|
|
- //import { getInfo } from "@/api/basicsModules/index";
|
|
|
|
|
|
+ import {
|
|
|
|
+ getDeptDropList,
|
|
|
|
+ systemBuildingGetOptList,
|
|
|
|
+ laboratoryClassLevelGetList,
|
|
|
|
+ laboratoryClassTypeGetList,
|
|
|
|
+ } from '@/api/commonality/permission'
|
|
|
|
+ import {
|
|
|
|
+ securityCheckPlanTitleList,
|
|
|
|
+ securityCheckManageList,
|
|
|
|
+ securityCheckSetOptionFinishCheck,
|
|
|
|
+ } from '@/api/safetyCheck/indexDemoOne'
|
|
import checkItem from "@/views/safetyCheck/components/checkItem.vue";
|
|
import checkItem from "@/views/safetyCheck/components/checkItem.vue";
|
|
|
|
+ import initiateInspect from "@/views/safetyCheck/components/initiateInspect/initiateInspect.vue";
|
|
export default {
|
|
export default {
|
|
name: 'index',
|
|
name: 'index',
|
|
components: {
|
|
components: {
|
|
- checkItem
|
|
|
|
|
|
+ checkItem,
|
|
|
|
+ initiateInspect,
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
tableButtonType:this.hasPermiDom(['demo:demo:detail','demo:demo:edit','demo:demo:del',]),
|
|
tableButtonType:this.hasPermiDom(['demo:demo:detail','demo:demo:edit','demo:demo:del',]),
|
|
//页面状态
|
|
//页面状态
|
|
- pageType:2,
|
|
|
|
|
|
+ pageType:1,
|
|
//复查状态选项卡
|
|
//复查状态选项卡
|
|
- tableButtonCheckType:1,
|
|
|
|
|
|
+ tableButtonCheckType:'',
|
|
//页面遮罩
|
|
//页面遮罩
|
|
loading:false,
|
|
loading:false,
|
|
- //下拉列表数据
|
|
|
|
- optionList:[{value:true,label:'启用'},{value:false,label:'停用'}],
|
|
|
|
|
|
+ //学院
|
|
|
|
+ deptOption:[],
|
|
|
|
+ //楼栋
|
|
|
|
+ buildOption:[],
|
|
|
|
+ //分级
|
|
|
|
+ levelOption:[],
|
|
|
|
+ //分类
|
|
|
|
+ classOption:[],
|
|
//计划查询条件
|
|
//计划查询条件
|
|
leftQueryParams:{
|
|
leftQueryParams:{
|
|
- leftQueryParamsData1:'',
|
|
|
|
|
|
+ checkCategory:2,
|
|
|
|
+ searchValue:'',
|
|
|
|
+ page:1,
|
|
|
|
+ pageSize:20,
|
|
},
|
|
},
|
|
|
|
+ titleTotal:0,
|
|
//查询条件
|
|
//查询条件
|
|
queryParams:{
|
|
queryParams:{
|
|
page:1,
|
|
page:1,
|
|
pageSize:20,
|
|
pageSize:20,
|
|
myRelated:1,
|
|
myRelated:1,
|
|
- queryParamsData1:"",
|
|
|
|
- queryParamsData2 :null,
|
|
|
|
|
|
+ deptId:null,
|
|
|
|
+ buildId:null,
|
|
|
|
+ typeId :null,
|
|
|
|
+ levelId :null,
|
|
|
|
+ searchValue:'',
|
|
},
|
|
},
|
|
//时间数据
|
|
//时间数据
|
|
dateRange:[],
|
|
dateRange:[],
|
|
@@ -195,65 +234,30 @@
|
|
propsData:{},
|
|
propsData:{},
|
|
leftBigCheckType:"0",
|
|
leftBigCheckType:"0",
|
|
leftCheckType:"0",
|
|
leftCheckType:"0",
|
|
- leftListData:[
|
|
|
|
- {
|
|
|
|
- leftData1:'计划名称计划名称计划名称计划名称',
|
|
|
|
- leftData2:'检查类型',
|
|
|
|
- leftData3:'1',
|
|
|
|
- leftDataList:[
|
|
|
|
- {
|
|
|
|
- leftDataListData1:'第一次检查',
|
|
|
|
- leftDataListData2:'2024-08-06T11:06:57',
|
|
|
|
- leftDataListData3:'11',
|
|
|
|
- leftDataListData4:50,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- leftDataListData1:'第二次检查',
|
|
|
|
- leftDataListData2:'2024-08-06T11:06:57',
|
|
|
|
- leftDataListData3:'12',
|
|
|
|
- leftDataListData4:60,
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- leftData1:'计划名称计划名称计划名称计划名称',
|
|
|
|
- leftData2:'检查类型',
|
|
|
|
- leftData3:'2',
|
|
|
|
- leftDataList:[
|
|
|
|
- {
|
|
|
|
- leftDataListData1:'第一次检查',
|
|
|
|
- leftDataListData2:'2024-08-06T11:06:57',
|
|
|
|
- leftDataListData3:'21',
|
|
|
|
- leftDataListData4:50,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- leftDataListData1:'第二次检查',
|
|
|
|
- leftDataListData2:'2024-08-06T11:06:57',
|
|
|
|
- leftDataListData3:'22',
|
|
|
|
- leftDataListData4:60,
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
|
|
+ leftListData:[],
|
|
|
|
+ //检查组件
|
|
|
|
+ initiateInspectData:{},
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created () {
|
|
created () {
|
|
|
|
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|
|
- //this.getList();
|
|
|
|
|
|
+ this.getTitleList();
|
|
|
|
+ this.getDeptDropList();
|
|
|
|
+ this.systemBuildingGetOptList();
|
|
|
|
+ this.laboratoryClassLevelGetList();
|
|
|
|
+ this.laboratoryClassTypeGetList();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
//左侧清除查询按钮
|
|
//左侧清除查询按钮
|
|
leftClear(){
|
|
leftClear(){
|
|
- this.$set(this.leftQueryParams,'leftQueryParamsData1','');
|
|
|
|
- this.$set(this,'leftBigCheckType',0);
|
|
|
|
- this.$set(this,'leftCheckType',0);
|
|
|
|
|
|
+ this.$set(this.leftQueryParams,'searchValue','');
|
|
|
|
+ this.getTitleList();
|
|
},
|
|
},
|
|
//左侧查询按钮
|
|
//左侧查询按钮
|
|
leftHandleQuery(){
|
|
leftHandleQuery(){
|
|
- this.$set(this,'leftBigCheckType',0);
|
|
|
|
- this.$set(this,'leftCheckType',0);
|
|
|
|
|
|
+ this.getTitleList();
|
|
},
|
|
},
|
|
//左侧计划切换
|
|
//左侧计划切换
|
|
leftBigCheckButton(index){
|
|
leftBigCheckButton(index){
|
|
@@ -281,11 +285,6 @@
|
|
searchToggle(){
|
|
searchToggle(){
|
|
this.$set(this,'advancedType',!this.advancedType);
|
|
this.$set(this,'advancedType',!this.advancedType);
|
|
},
|
|
},
|
|
- //与我相关按钮
|
|
|
|
- topRightClickType(){
|
|
|
|
- this.$set(this.queryParams,'myRelated',this.queryParams.myRelated==1?0:1);
|
|
|
|
- this.handleQuery();
|
|
|
|
- },
|
|
|
|
//查询按钮
|
|
//查询按钮
|
|
handleQuery(){
|
|
handleQuery(){
|
|
this.$set(this.queryParams,'page',1);
|
|
this.$set(this.queryParams,'page',1);
|
|
@@ -297,24 +296,53 @@
|
|
this.$set(this,'queryParams',{
|
|
this.$set(this,'queryParams',{
|
|
page:1,
|
|
page:1,
|
|
pageSize:20,
|
|
pageSize:20,
|
|
- myRelated:1,
|
|
|
|
- queryParamsData1:"",
|
|
|
|
- queryParamsData2 :null,
|
|
|
|
|
|
+ deptId:null,
|
|
|
|
+ buildId:null,
|
|
|
|
+ typeId :null,
|
|
|
|
+ levelId :null,
|
|
|
|
+ searchValue:'',
|
|
});
|
|
});
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
|
|
+ //获取计划数据列表
|
|
|
|
+ getTitleList(){
|
|
|
|
+ securityCheckPlanTitleList(this.leftQueryParams).then(response => {
|
|
|
|
+ this.$set(this,'leftListData',response.data.records);
|
|
|
|
+ this.$set(this,'titleTotal',response.data.total);
|
|
|
|
+ this.$set(this,'leftBigCheckType',0);
|
|
|
|
+ this.$set(this,'leftCheckType',0);
|
|
|
|
+ this.resetQuery();
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ getTitleListTwo(){
|
|
|
|
+ securityCheckPlanTitleList(this.leftQueryParams).then(response => {
|
|
|
|
+ this.$set(this,'leftListData',response.data.records);
|
|
|
|
+ this.$set(this,'titleTotal',response.data.total);
|
|
|
|
+ this.getList();
|
|
|
|
+ });
|
|
|
|
+ },
|
|
//获取数据列表
|
|
//获取数据列表
|
|
getList(){
|
|
getList(){
|
|
|
|
+ if(!this.leftListData[0]){
|
|
|
|
+ this.$set(this,'dataList',[]);
|
|
|
|
+ this.$set(this,'total',0);
|
|
|
|
+ return
|
|
|
|
+ }
|
|
this.$set(this,'loading',true);
|
|
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 obj = {
|
|
|
|
+ planSetId:this.leftListData[this.leftBigCheckType].checkPlanSetVoList[this.leftCheckType].planSetId,
|
|
|
|
+ page:this.queryParams.page,
|
|
|
|
+ pageSize:this.queryParams.pageSize,
|
|
|
|
+ manageStatus:this.tableButtonCheckType,
|
|
|
|
+ deptId:this.queryParams.deptId,
|
|
|
|
+ buildId:this.queryParams.buildId,
|
|
|
|
+ }
|
|
|
|
+ if(this.advancedType){
|
|
|
|
+ obj.searchValue = this.queryParams.searchValue;
|
|
|
|
+ obj.typeId = this.queryParams.typeId;
|
|
|
|
+ obj.levelId = this.queryParams.levelId;
|
|
}
|
|
}
|
|
- getListFunction(obj).then(response => {
|
|
|
|
|
|
+ securityCheckManageList(obj).then(response => {
|
|
this.$set(this,'loading',false);
|
|
this.$set(this,'loading',false);
|
|
this.$set(this,'dataList',response.data.records);
|
|
this.$set(this,'dataList',response.data.records);
|
|
this.$set(this,'total',response.data.total);
|
|
this.$set(this,'total',response.data.total);
|
|
@@ -324,54 +352,65 @@
|
|
tableButton(type,row){
|
|
tableButton(type,row){
|
|
let self = this;
|
|
let self = this;
|
|
if(type == 1){
|
|
if(type == 1){
|
|
- //新增
|
|
|
|
- this.$set(this,'pageType',2);
|
|
|
|
- this.$set(this,'propsData',{});
|
|
|
|
- }else if(type == 2){
|
|
|
|
- //详情
|
|
|
|
|
|
+ //检查项列表
|
|
this.$set(this,'pageType',2);
|
|
this.$set(this,'pageType',2);
|
|
let obj = JSON.parse(JSON.stringify(row))
|
|
let obj = JSON.parse(JSON.stringify(row))
|
|
obj.showType = true;
|
|
obj.showType = true;
|
|
this.$set(this,'propsData',obj);
|
|
this.$set(this,'propsData',obj);
|
|
- }else if(type == 3){
|
|
|
|
- //编辑
|
|
|
|
- this.$set(this,'pageType',2);
|
|
|
|
|
|
+ }else if(type == 2){
|
|
|
|
+ //开始检查
|
|
|
|
+ this.$set(this,'pageType',3);
|
|
let obj = JSON.parse(JSON.stringify(row))
|
|
let obj = JSON.parse(JSON.stringify(row))
|
|
|
|
+ obj.freeChoiceType = true;
|
|
obj.showType = false;
|
|
obj.showType = false;
|
|
- this.$set(this,'propsData',obj);
|
|
|
|
- }else if(type == 4){
|
|
|
|
- //删除
|
|
|
|
- this.$confirm('是否确认删除?', "警告", {
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
- type: "warning"
|
|
|
|
- }).then(function() {
|
|
|
|
- }).then(() => {
|
|
|
|
- deleteFunction({id:row.id}).then(response => {
|
|
|
|
- self.msgSuccess(response.message)
|
|
|
|
- self.getList();
|
|
|
|
- });
|
|
|
|
- }).catch(() => {});
|
|
|
|
- }else if(type == 5){
|
|
|
|
- //启用&停用
|
|
|
|
- let text = row.state ? "停用" : "启用";
|
|
|
|
- this.$confirm('是否确认' + text + '?', "警告", {
|
|
|
|
|
|
+ obj.orderTitle = '开始检查';
|
|
|
|
+ obj.orderType = '1';
|
|
|
|
+ this.$set(this,'initiateInspectData',obj);
|
|
|
|
+ }else if(type == 3){
|
|
|
|
+ //批量完成
|
|
|
|
+ this.$confirm(`是否确认检查完成?`, "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
type: "warning"
|
|
type: "warning"
|
|
- }).then(function() {
|
|
|
|
- }).then(() => {
|
|
|
|
- stateFunction({id:row.id,state:!row.state,}).then(response => {
|
|
|
|
|
|
+ }).then(async () => {
|
|
|
|
+ securityCheckSetOptionFinishCheck({manageId:row.manageId }).then(response => {
|
|
self.msgSuccess(response.message)
|
|
self.msgSuccess(response.message)
|
|
- self.getList();
|
|
|
|
|
|
+ self.getTitleListTwo();
|
|
});
|
|
});
|
|
- }).catch(() => {});
|
|
|
|
|
|
+ }).catch(() => {
|
|
|
|
+
|
|
|
|
+ })
|
|
}else if(type == 6){
|
|
}else if(type == 6){
|
|
//返回并刷新
|
|
//返回并刷新
|
|
this.$set(this,'pageType',1);
|
|
this.$set(this,'pageType',1);
|
|
- this.getList();
|
|
|
|
|
|
+ this.getTitleListTwo();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ /*********************************** 学院/楼栋/分类/分级 ***********************************/
|
|
|
|
+ //学院下拉列表
|
|
|
|
+ getDeptDropList(){
|
|
|
|
+ getDeptDropList({level: 2, deptType: 1 }).then(response => {
|
|
|
|
+ this.$set(this,'deptOption',response.data);
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ //楼栋下拉列表
|
|
|
|
+ systemBuildingGetOptList(){
|
|
|
|
+ systemBuildingGetOptList({}).then(response => {
|
|
|
|
+ this.$set(this,'buildOption',response.data);
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ //分级下拉列表
|
|
|
|
+ laboratoryClassLevelGetList(){
|
|
|
|
+ laboratoryClassLevelGetList({}).then(response => {
|
|
|
|
+ this.$set(this,'levelOption',response.data);
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ //分类下拉列表
|
|
|
|
+ laboratoryClassTypeGetList(){
|
|
|
|
+ laboratoryClassTypeGetList({}).then(response => {
|
|
|
|
+ this.$set(this,'classOption',response.data);
|
|
|
|
+ });
|
|
|
|
+ },
|
|
},
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -385,8 +424,14 @@
|
|
|
|
|
|
.page-content-left-box{
|
|
.page-content-left-box{
|
|
width: 480px;
|
|
width: 480px;
|
|
- margin:20px;
|
|
|
|
- .left-list-box{
|
|
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ margin:20px 0 20px 20px;
|
|
|
|
+ padding-right:10px;
|
|
|
|
+ .left-max-list-box{
|
|
|
|
+ flex:1;
|
|
|
|
+ padding-right:10px;
|
|
.left-list-for-max-big-box{
|
|
.left-list-for-max-big-box{
|
|
.left-list-title-box{
|
|
.left-list-title-box{
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
@@ -440,6 +485,9 @@
|
|
.left-list-progress-box{
|
|
.left-list-progress-box{
|
|
flex:1;
|
|
flex:1;
|
|
padding-top:15px;
|
|
padding-top:15px;
|
|
|
|
+ ::v-deep .el-progress-bar{
|
|
|
|
+ margin-right: -62px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.check-left-list-for-box{
|
|
.check-left-list-for-box{
|
|
@@ -447,6 +495,11 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .left-list-for-null-p{
|
|
|
|
+ text-align: center;
|
|
|
|
+ line-height:400px;
|
|
|
|
+ color:#999;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.page-content-center-box{
|
|
.page-content-center-box{
|