|
@@ -62,8 +62,8 @@
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
<div class="dialog-range-text-box">
|
|
<div class="dialog-range-text-box">
|
|
- <p class="inquire-button-one button-p" :style="lookInfoType?'background:#0183FA;border:1px solid #0183FA;':''" v-if="dialogForm.checkRange == 2" @click="dialogClickType(2)">{{lookInfoType?'查看':'选择学院'}}</p>
|
|
|
|
- <p class="inquire-button-one button-p" :style="lookInfoType?'background:#0183FA;border:1px solid #0183FA;':''" v-if="dialogForm.checkRange == 3" @click="dialogClickType(3)">{{lookInfoType?'查看':'选择实验室'}}</p>
|
|
|
|
|
|
+ <p class="page-submit-common-style-button button-p" :style="lookInfoType?'background:#0183FA;border:1px solid #0183FA;':''" v-if="dialogForm.checkRange == 2" @click="dialogClickType(2)">{{lookInfoType?'查看':'选择学院'}}</p>
|
|
|
|
+ <p class="page-submit-common-style-button button-p" :style="lookInfoType?'background:#0183FA;border:1px solid #0183FA;':''" v-if="dialogForm.checkRange == 3" @click="dialogClickType(3)">{{lookInfoType?'查看':'选择实验室'}}</p>
|
|
<p class="text-p" v-if="dialogForm.checkRange ==1 && dialogForm.schoolSubCheckNum>0">已选择{{dialogForm.schoolSubCheckNum}}间实验室</p>
|
|
<p class="text-p" v-if="dialogForm.checkRange ==1 && dialogForm.schoolSubCheckNum>0">已选择{{dialogForm.schoolSubCheckNum}}间实验室</p>
|
|
<p class="text-p" v-if="dialogForm.checkRange == 2 && dialogForm.collegeNum>0">已选择{{dialogForm.collegeNum}}个学院,共{{dialogForm.collegeSubNum}}间实验室</p>
|
|
<p class="text-p" v-if="dialogForm.checkRange == 2 && dialogForm.collegeNum>0">已选择{{dialogForm.collegeNum}}个学院,共{{dialogForm.collegeSubNum}}间实验室</p>
|
|
<p class="text-p" v-if="dialogForm.checkRange ==3 && dialogForm.subCheckNum>0">已选择{{dialogForm.subCheckNum}}间实验室</p>
|
|
<p class="text-p" v-if="dialogForm.checkRange ==3 && dialogForm.subCheckNum>0">已选择{{dialogForm.subCheckNum}}间实验室</p>
|
|
@@ -84,7 +84,7 @@
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
<div class="dialog-range-text-box" v-if="dialogForm.checkCategory==2">
|
|
<div class="dialog-range-text-box" v-if="dialogForm.checkCategory==2">
|
|
- <p class="inquire-button-one button-p" @click="dialogClickType(6)">选择检查内容</p>
|
|
|
|
|
|
+ <p class="page-submit-common-style-button button-p" @click="dialogClickType(6)">选择检查内容</p>
|
|
<p class="text-p">已选择{{dialogForm.hazardNum}}种</p>
|
|
<p class="text-p">已选择{{dialogForm.hazardNum}}种</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -112,9 +112,9 @@
|
|
:on-success="(res)=>handleAvatarSuccess(res)"
|
|
:on-success="(res)=>handleAvatarSuccess(res)"
|
|
:headers="headers"
|
|
:headers="headers"
|
|
:before-upload="beforeAvatarUpload">
|
|
:before-upload="beforeAvatarUpload">
|
|
- <p class="add-button-one-120">+ 选择文件</p>
|
|
|
|
|
|
+ <p class="page-add-common-style-button">+ 选择文件</p>
|
|
</el-upload>
|
|
</el-upload>
|
|
- <p class="dialog-material-text">支持doc/docx/xls/xlsx/pdf格式文件</p>
|
|
|
|
|
|
+ <p class="dialog-material-text">支持docx/xlsx/pdf格式文件</p>
|
|
</div>
|
|
</div>
|
|
<div class="dialog-material-list-box">
|
|
<div class="dialog-material-list-box">
|
|
<div v-for="(item,index) in dialogForm.uploadDtoList" :key="index">
|
|
<div v-for="(item,index) in dialogForm.uploadDtoList" :key="index">
|
|
@@ -152,8 +152,8 @@
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item style="margin-right:0;">
|
|
<el-form-item style="margin-right:0;">
|
|
- <p v-if="!lookInfoType" class="inquire-button-one" @click="deptResetQueryLeft" style="width:60px;margin-right:0;">重置</p>
|
|
|
|
- <p v-if="lookInfoType" class="inquire-button-one" @click="lookDeptLeftReset" style="width:60px;margin-right:0;">重置</p>
|
|
|
|
|
|
+ <p v-if="!lookInfoType" class="page-submit-common-style-button" @click="deptResetQueryLeft" style="width:60px;margin-right:0;">重置</p>
|
|
|
|
+ <p v-if="lookInfoType" class="page-submit-common-style-button" @click="lookDeptLeftReset" style="width:60px;margin-right:0;">重置</p>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<el-table ref="leftDeptTable" border :data="deptTableListLeft" @select-all="deptChange" @select="deptChange" :row-key="getDeptRowKeys">
|
|
<el-table ref="leftDeptTable" border :data="deptTableListLeft" @select-all="deptChange" @select="deptChange" :row-key="getDeptRowKeys">
|
|
@@ -180,19 +180,19 @@
|
|
<el-select v-model="deptQueryParamsRight.typeId" clearable placeholder="选择分类" style="width: 120px">
|
|
<el-select v-model="deptQueryParamsRight.typeId" clearable placeholder="选择分类" style="width: 120px">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in classTypeList"
|
|
v-for="item in classTypeList"
|
|
- :key="item.id"
|
|
|
|
|
|
+ :key="item.typeId"
|
|
:label="item.typeName"
|
|
:label="item.typeName"
|
|
- :value="item.id">
|
|
|
|
|
|
+ :value="item.typeId">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="" prop="level">
|
|
|
|
- <el-select v-model="deptQueryParamsRight.level" clearable placeholder="选择分级" style="width: 120px">
|
|
|
|
|
|
+ <el-form-item label="" prop="levelId">
|
|
|
|
+ <el-select v-model="deptQueryParamsRight.levelId" clearable placeholder="选择分级" style="width: 120px">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in classifiedList"
|
|
v-for="item in classifiedList"
|
|
- :key="item.id"
|
|
|
|
- :label="item.classifiedName"
|
|
|
|
- :value="item.id">
|
|
|
|
|
|
+ :key="item.levelId"
|
|
|
|
+ :label="item.levelName"
|
|
|
|
+ :value="item.levelId">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -218,8 +218,8 @@
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item style="margin-right:0;">
|
|
<el-form-item style="margin-right:0;">
|
|
- <p v-if="!lookInfoType" class="inquire-button-one" @click="deptResetQueryRight" style="width:60px;margin-right:0;">重置</p>
|
|
|
|
- <p v-if="lookInfoType" class="inquire-button-one" @click="lookDeptRightReset" style="width:60px;margin-right:0;">重置</p>
|
|
|
|
|
|
+ <p v-if="!lookInfoType" class="page-submit-common-style-button" @click="deptResetQueryRight" style="width:60px;margin-right:0;">重置</p>
|
|
|
|
+ <p v-if="lookInfoType" class="page-submit-common-style-button" @click="lookDeptRightReset" style="width:60px;margin-right:0;">重置</p>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<el-table border :data="deptTableListRight">
|
|
<el-table border :data="deptTableListRight">
|
|
@@ -230,9 +230,9 @@
|
|
<el-table-column label="楼栋楼层" align="center" prop="buildName" show-overflow-tooltip width="150"/>
|
|
<el-table-column label="楼栋楼层" align="center" prop="buildName" show-overflow-tooltip width="150"/>
|
|
<el-table-column label="分类分级" align="center" prop="deptName" show-overflow-tooltip width="150">
|
|
<el-table-column label="分类分级" align="center" prop="deptName" show-overflow-tooltip width="150">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span v-for="item in classTypeList" v-if="item.id == scope.row.typeId">{{item.typeName}}</span>
|
|
|
|
- <span style="border-right:1px solid #E0E0E0;margin:0 10px;"></span>
|
|
|
|
- <span v-for="item in classifiedList" v-if="item.id == scope.row.level" :style="'color:'+item.classifiedColor+';'">{{item.classifiedName}}</span>
|
|
|
|
|
|
+ <span>{{scope.row.classTypeNames}}</span>
|
|
|
|
+ <span>-</span>
|
|
|
|
+ <span :style="'color:'+scope.row.classLevelColor+';'">{{scope.row.classLevelName}}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="学院" align="center" prop="collegeName" show-overflow-tooltip width="140"/>
|
|
<el-table-column label="学院" align="center" prop="collegeName" show-overflow-tooltip width="140"/>
|
|
@@ -259,19 +259,19 @@
|
|
<el-select v-model="subQueryParamsLeft.typeId" clearable placeholder="选择分类" style="width: 110px">
|
|
<el-select v-model="subQueryParamsLeft.typeId" clearable placeholder="选择分类" style="width: 110px">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in classTypeList"
|
|
v-for="item in classTypeList"
|
|
- :key="item.id"
|
|
|
|
|
|
+ :key="item.typeId"
|
|
:label="item.typeName"
|
|
:label="item.typeName"
|
|
- :value="item.id">
|
|
|
|
|
|
+ :value="item.typeId">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="" prop="level">
|
|
|
|
- <el-select v-model="subQueryParamsLeft.level" clearable placeholder="选择分级" style="width: 110px">
|
|
|
|
|
|
+ <el-form-item label="" prop="levelId">
|
|
|
|
+ <el-select v-model="subQueryParamsLeft.levelId" clearable placeholder="选择分级" style="width: 110px">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in classifiedList"
|
|
v-for="item in classifiedList"
|
|
- :key="item.id"
|
|
|
|
- :label="item.classifiedName"
|
|
|
|
- :value="item.id">
|
|
|
|
|
|
+ :key="item.levelId"
|
|
|
|
+ :label="item.levelName"
|
|
|
|
+ :value="item.levelId">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -296,7 +296,7 @@
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item style="margin-right:0;">
|
|
<el-form-item style="margin-right:0;">
|
|
- <p class="inquire-button-one" @click="subResetQueryLeft" style="width:60px;margin-right:0;">重置</p>
|
|
|
|
|
|
+ <p class="page-submit-common-style-button" @click="subResetQueryLeft" style="width:60px;margin-right:0;">重置</p>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<el-table ref="leftSubTable" border :data="subTableListLeft" @selection-change="subChangeLeft" :row-key="getSubRowKeys">
|
|
<el-table ref="leftSubTable" border :data="subTableListLeft" @selection-change="subChangeLeft" :row-key="getSubRowKeys">
|
|
@@ -306,9 +306,9 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="分类分级" align="center" prop="deptName" show-overflow-tooltip width="140">
|
|
<el-table-column label="分类分级" align="center" prop="deptName" show-overflow-tooltip width="140">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span v-for="item in classTypeList" v-if="item.id == scope.row.typeId">{{item.typeName}}</span>
|
|
|
|
- <span style="border-right:1px solid #E0E0E0;margin:0 10px;"></span>
|
|
|
|
- <span v-for="item in classifiedList" v-if="item.id == scope.row.level" :style="'color:'+item.classifiedColor+';'">{{item.classifiedName}}</span>
|
|
|
|
|
|
+ <span>{{scope.row.classTypeNames}}</span>
|
|
|
|
+ <span>-</span>
|
|
|
|
+ <span :style="'color:'+scope.row.classLevelColor+';'">{{scope.row.classLevelName}}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="学院" align="center" prop="collegeName" show-overflow-tooltip width="150"/>
|
|
<el-table-column label="学院" align="center" prop="collegeName" show-overflow-tooltip width="150"/>
|
|
@@ -337,19 +337,19 @@
|
|
<el-select v-model="subQueryParamsRight.typeId" clearable placeholder="选择分类" style="width: 110px">
|
|
<el-select v-model="subQueryParamsRight.typeId" clearable placeholder="选择分类" style="width: 110px">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in classTypeList"
|
|
v-for="item in classTypeList"
|
|
- :key="item.id"
|
|
|
|
|
|
+ :key="item.typeId"
|
|
:label="item.typeName"
|
|
:label="item.typeName"
|
|
- :value="item.id">
|
|
|
|
|
|
+ :value="item.typeId">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="" prop="level">
|
|
|
|
- <el-select v-model="subQueryParamsRight.level" clearable placeholder="选择分级" style="width: 110px">
|
|
|
|
|
|
+ <el-form-item label="" prop="levelId">
|
|
|
|
+ <el-select v-model="subQueryParamsRight.levelId" clearable placeholder="选择分级" style="width: 110px">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in classifiedList"
|
|
v-for="item in classifiedList"
|
|
- :key="item.id"
|
|
|
|
- :label="item.classifiedName"
|
|
|
|
- :value="item.id">
|
|
|
|
|
|
+ :key="item.levelId"
|
|
|
|
+ :label="item.levelName"
|
|
|
|
+ :value="item.levelId">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -374,7 +374,7 @@
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item style="margin-right:0;">
|
|
<el-form-item style="margin-right:0;">
|
|
- <p class="inquire-button-one" @click="subResetQueryRight" style="width:60px;margin-right:0;">重置</p>
|
|
|
|
|
|
+ <p class="page-submit-common-style-button" @click="subResetQueryRight" style="width:60px;margin-right:0;">重置</p>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<el-table ref="rightSubTable" border :data="subTableListRight" @selection-change="subChangeRight" :row-key="getSubRowKeys">
|
|
<el-table ref="rightSubTable" border :data="subTableListRight" @selection-change="subChangeRight" :row-key="getSubRowKeys">
|
|
@@ -384,9 +384,9 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="分类分级" align="center" prop="deptName" show-overflow-tooltip width="140">
|
|
<el-table-column label="分类分级" align="center" prop="deptName" show-overflow-tooltip width="140">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span v-for="item in classTypeList" v-if="item.id == scope.row.typeId">{{item.typeName}}</span>
|
|
|
|
- <span style="border-right:1px solid #E0E0E0;margin:0 10px;"></span>
|
|
|
|
- <span v-for="item in classifiedList" v-if="item.id == scope.row.level" :style="'color:'+item.classifiedColor+';'">{{item.classifiedName}}</span>
|
|
|
|
|
|
+ <span>{{scope.row.classTypeNames}}</span>
|
|
|
|
+ <span>-</span>
|
|
|
|
+ <span :style="'color:'+scope.row.classLevelColor+';'">{{scope.row.classLevelName}}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="学院" align="center" prop="collegeName" show-overflow-tooltip width="150"/>
|
|
<el-table-column label="学院" align="center" prop="collegeName" show-overflow-tooltip width="150"/>
|
|
@@ -435,7 +435,7 @@
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item style="margin-right:0;">
|
|
<el-form-item style="margin-right:0;">
|
|
- <p class="reset-button-one" @click="deviceResetQueryLeft" style="width:60px;">重置</p>
|
|
|
|
|
|
+ <p class="page-submit-common-style-button" @click="deviceResetQueryLeft" style="width:60px;">重置</p>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<el-table ref="leftDeviceTable" border :data="deviceTableListLeft" @selection-change="deviceChangeLeft" :row-key="getDeviceRowKeys">
|
|
<el-table ref="leftDeviceTable" border :data="deviceTableListLeft" @selection-change="deviceChangeLeft" :row-key="getDeviceRowKeys">
|
|
@@ -485,7 +485,7 @@
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item style="margin-right:0;">
|
|
<el-form-item style="margin-right:0;">
|
|
- <p class="reset-button-one" @click="deviceResetQueryRight" style="width:60px;">重置</p>
|
|
|
|
|
|
+ <p class="page-submit-common-style-button" @click="deviceResetQueryRight" style="width:60px;">重置</p>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<el-table ref="rightDeviceTable" border :data="deviceTableListRight" @selection-change="deviceChangeRight" :row-key="getDeviceRowKeys">
|
|
<el-table ref="rightDeviceTable" border :data="deviceTableListRight" @selection-change="deviceChangeRight" :row-key="getDeviceRowKeys">
|
|
@@ -510,32 +510,49 @@
|
|
<p class="dialog-footer-button-primary" v-if="!lookInfoType && addDialogBoxType!=5" @click="addUserButton">确定</p>
|
|
<p class="dialog-footer-button-primary" v-if="!lookInfoType && addDialogBoxType!=5" @click="addUserButton">确定</p>
|
|
<p class="dialog-footer-button-null"></p>
|
|
<p class="dialog-footer-button-null"></p>
|
|
</div>
|
|
</div>
|
|
|
|
+ <fullScreenFileLook ref="fullScreenFileLook"></fullScreenFileLook>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
- import { getToken } from "@/utils/auth";
|
|
|
|
import { listDepartments } from "@/apiDemo/system/dept";
|
|
import { listDepartments } from "@/apiDemo/system/dept";
|
|
import { listClassifiedAll } from "@/apiDemo/laboratory/classified";
|
|
import { listClassifiedAll } from "@/apiDemo/laboratory/classified";
|
|
import { listClasstypeAll } from "@/apiDemo/laboratory/classtype";
|
|
import { listClasstypeAll } from "@/apiDemo/laboratory/classtype";
|
|
- import {
|
|
|
|
- getHistoryPlanTitles, checkGroupFind, findUserList,
|
|
|
|
- getAllSubNum, isSCollege, conditionCollegeInfo, findSubInfoByDeptIds,
|
|
|
|
- checkPlanAdd, conditionSubjectInfo, findCheckPlan, checkPlanUpdate,
|
|
|
|
- hideHistoryPlanTitle, findDeviceList,haveHazardInSub
|
|
|
|
- } from '@/apiDemo/safetyCheck/index'
|
|
|
|
import { dangerList } from '@/apiDemo/gasManage3_0/gasManage'
|
|
import { dangerList } from '@/apiDemo/gasManage3_0/gasManage'
|
|
|
|
+ // V3
|
|
|
|
+ import fullScreenFileLook from "@/components/fullScreenFileLook/fullScreenFileLook.vue";
|
|
|
|
+ import { getToken } from "@/utils/auth";
|
|
|
|
+ import {
|
|
|
|
+ getDeptDropList,
|
|
|
|
+ laboratoryClassTypeGetList,
|
|
|
|
+ laboratoryClassLevelGetList,
|
|
|
|
+ } from '@/api/commonality/permission'
|
|
|
|
+ import { getDicts } from '@/api/commonality/noPermission'
|
|
|
|
+ import {
|
|
|
|
+ laboratorySubRelInfoGetAllSubNum,
|
|
|
|
+ laboratorySubRelInfoConditionCollegeInfo,
|
|
|
|
+ getHistoryPlanTitles,isSCollege,
|
|
|
|
+ laboratorySubRelInfoGetRelListByCondition,
|
|
|
|
+ laboratorySubRelInfoConditionSubjectInfo,
|
|
|
|
+ laboratoryHazardQueryHazardList,
|
|
|
|
+ checkPlanAdd,findCheckPlan,
|
|
|
|
+ checkPlanUpdate, hideHistoryPlanTitle,
|
|
|
|
+ haveHazardInSub,
|
|
|
|
+ } from '@/api/safetyCheck/indexTow'
|
|
export default {
|
|
export default {
|
|
name: 'addDialog',
|
|
name: 'addDialog',
|
|
props:{
|
|
props:{
|
|
addDialogData:{},
|
|
addDialogData:{},
|
|
},
|
|
},
|
|
|
|
+ components: {
|
|
|
|
+ fullScreenFileLook,
|
|
|
|
+ },
|
|
data(){
|
|
data(){
|
|
return{
|
|
return{
|
|
loading:false,
|
|
loading:false,
|
|
uploadImgUrl: this.uploadUrl(), // 上传的图片服务器地址
|
|
uploadImgUrl: this.uploadUrl(), // 上传的图片服务器地址
|
|
headers: {
|
|
headers: {
|
|
- Authorization: "Bearer " + getToken(),
|
|
|
|
|
|
+ Authorization: getToken(),
|
|
},
|
|
},
|
|
addDialogTitle:"",
|
|
addDialogTitle:"",
|
|
addDialogType:true,
|
|
addDialogType:true,
|
|
@@ -625,7 +642,7 @@
|
|
searchValue:"",
|
|
searchValue:"",
|
|
deptId:"",
|
|
deptId:"",
|
|
deptIds:"",
|
|
deptIds:"",
|
|
- level:"",
|
|
|
|
|
|
+ levelId:"",
|
|
typeId:"",
|
|
typeId:"",
|
|
},
|
|
},
|
|
deptTableListRight:[],
|
|
deptTableListRight:[],
|
|
@@ -635,7 +652,7 @@
|
|
page:1,
|
|
page:1,
|
|
pageSize:20,
|
|
pageSize:20,
|
|
typeId:"",
|
|
typeId:"",
|
|
- level:"",
|
|
|
|
|
|
+ levelId:"",
|
|
deptId:"",
|
|
deptId:"",
|
|
searchValue:"",
|
|
searchValue:"",
|
|
filtType:1
|
|
filtType:1
|
|
@@ -648,7 +665,7 @@
|
|
page:1,
|
|
page:1,
|
|
pageSize:20,
|
|
pageSize:20,
|
|
typeId:"",
|
|
typeId:"",
|
|
- level:"",
|
|
|
|
|
|
+ levelId:"",
|
|
deptId:"",
|
|
deptId:"",
|
|
searchValue:"",
|
|
searchValue:"",
|
|
filtType:2
|
|
filtType:2
|
|
@@ -708,17 +725,17 @@
|
|
//获取历史标题
|
|
//获取历史标题
|
|
this.getHistoryPlanTitles();
|
|
this.getHistoryPlanTitles();
|
|
//获取学院列表
|
|
//获取学院列表
|
|
- listDepartments().then(response => {
|
|
|
|
- this.deptSelectList = response.data;
|
|
|
|
- });
|
|
|
|
|
|
+ getDeptDropList({ deptName: '', level: 2, deptType: 1 }).then(response => {
|
|
|
|
+ this.$set(this, 'deptSelectList', response.data)
|
|
|
|
+ })
|
|
/**获取分级*/
|
|
/**获取分级*/
|
|
- listClassifiedAll().then(response=>{
|
|
|
|
- this.classifiedList = response.data
|
|
|
|
|
|
+ laboratoryClassLevelGetList({}).then(response => {
|
|
|
|
+ this.$set(this, 'classifiedList', response.data)
|
|
})
|
|
})
|
|
/**获取分类*/
|
|
/**获取分类*/
|
|
- listClasstypeAll().then(response=>{
|
|
|
|
- this.classTypeList = response.data;
|
|
|
|
- });
|
|
|
|
|
|
+ laboratoryClassTypeGetList({}).then(response => {
|
|
|
|
+ this.$set(this, 'classTypeList', response.data)
|
|
|
|
+ })
|
|
//查询当前用户是否是院级
|
|
//查询当前用户是否是院级
|
|
isSCollege().then(response=>{
|
|
isSCollege().then(response=>{
|
|
if(response.data.userFlg){
|
|
if(response.data.userFlg){
|
|
@@ -774,7 +791,7 @@
|
|
rangeChange(val){
|
|
rangeChange(val){
|
|
if(val == 1){
|
|
if(val == 1){
|
|
//全校
|
|
//全校
|
|
- getAllSubNum().then(response => {
|
|
|
|
|
|
+ laboratorySubRelInfoGetAllSubNum().then(response => {
|
|
this.$set(this.dialogForm,'schoolSubCheckNum',response.data.subCount);
|
|
this.$set(this.dialogForm,'schoolSubCheckNum',response.data.subCount);
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -792,6 +809,10 @@
|
|
this.msgError('请选择学院')
|
|
this.msgError('请选择学院')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ if(this.dialogForm.collegeSubNum<1){
|
|
|
|
+ this.msgError('所选学院下实验室数量不足')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
}else if(this.dialogForm.checkRange == 3){
|
|
}else if(this.dialogForm.checkRange == 3){
|
|
if(!this.subCheckData.subIds[0]){
|
|
if(!this.subCheckData.subIds[0]){
|
|
this.msgError('请选择实验室')
|
|
this.msgError('请选择实验室')
|
|
@@ -858,7 +879,7 @@
|
|
subId:self.dialogTableSubDataList[o].subId,
|
|
subId:self.dialogTableSubDataList[o].subId,
|
|
subjectName:self.dialogTableSubDataList[o].subjectName,
|
|
subjectName:self.dialogTableSubDataList[o].subjectName,
|
|
typeId:self.dialogTableSubDataList[o].typeId,
|
|
typeId:self.dialogTableSubDataList[o].typeId,
|
|
- level:self.dialogTableSubDataList[o].level,
|
|
|
|
|
|
+ levelId:self.dialogTableSubDataList[o].levelId,
|
|
collegeName:self.dialogTableSubDataList[o].collegeName,
|
|
collegeName:self.dialogTableSubDataList[o].collegeName,
|
|
};
|
|
};
|
|
list.push(obj)
|
|
list.push(obj)
|
|
@@ -870,7 +891,7 @@
|
|
}else if(this.addDialogBoxType == 6){
|
|
}else if(this.addDialogBoxType == 6){
|
|
let list=[]
|
|
let list=[]
|
|
for(let i=0;i<self.deviceDialogTableDataList.length;i++){
|
|
for(let i=0;i<self.deviceDialogTableDataList.length;i++){
|
|
- list.push(self.deviceDialogTableDataList[i].id)
|
|
|
|
|
|
+ list.push(self.deviceDialogTableDataList[i].hazardId)
|
|
}
|
|
}
|
|
this.$set(this.dialogForm,'hazardIds',list.join(','));
|
|
this.$set(this.dialogForm,'hazardIds',list.join(','));
|
|
this.$set(this.dialogForm,'hazardNum',list.length);
|
|
this.$set(this.dialogForm,'hazardNum',list.length);
|
|
@@ -908,10 +929,40 @@
|
|
dialogClickType(type,item){
|
|
dialogClickType(type,item){
|
|
let self = this;
|
|
let self = this;
|
|
if(type == 5){
|
|
if(type == 5){
|
|
- console.log('item',item);
|
|
|
|
- this.$set(this,'iframeSrc',this.urlJudge(item.fileUrl));
|
|
|
|
- this.$set(this,'addDialogBoxType',type);
|
|
|
|
|
|
+ //判断类型
|
|
|
|
+ let type = '';
|
|
|
|
+ if(item.fileName.split('.')[1] == 'docx'){
|
|
|
|
+ type = 'docx'
|
|
|
|
+ }else if(item.fileName.split('.')[1] == 'xlsx'){
|
|
|
|
+ type = 'excel'
|
|
|
|
+ }else if(item.fileName.split('.')[1] == 'pdf'){
|
|
|
|
+ type = 'pdf'
|
|
|
|
+ }
|
|
|
|
+ let url = window.location.href.split('://')[0]+'://'+localStorage.getItem('fileBrowseEnvironment')+item.fileUrl;
|
|
|
|
+ this.$refs['fullScreenFileLook'].initialize(item.fileName,url,type);
|
|
}else if(type == 6){//检查设备
|
|
}else if(type == 6){//检查设备
|
|
|
|
+ if(!this.dialogForm.checkRange){
|
|
|
|
+ this.msgError('请选择检查范围')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(this.dialogForm.checkRange == 1){
|
|
|
|
+ if(this.dialogForm.schoolSubCheckNum<1){
|
|
|
|
+ this.msgError('该校区没有实验室')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(this.dialogForm.checkRange == 2){
|
|
|
|
+ if(this.dialogForm.collegeSubNum<1){
|
|
|
|
+ this.msgError('未检测到学院下的实验室')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(this.dialogForm.checkRange == 3 ){
|
|
|
|
+ if(this.dialogForm.subCheckNum<1){
|
|
|
|
+ this.msgError('请选择实验室实验室')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }
|
|
//设备
|
|
//设备
|
|
let list=[];
|
|
let list=[];
|
|
let list2=[];
|
|
let list2=[];
|
|
@@ -919,7 +970,7 @@
|
|
list=this.dialogForm.hazardIds.split(',')
|
|
list=this.dialogForm.hazardIds.split(',')
|
|
for(let i=0;i<this.deviceDialogList.length;i++){
|
|
for(let i=0;i<this.deviceDialogList.length;i++){
|
|
for(let b=0;b<list.length;b++){
|
|
for(let b=0;b<list.length;b++){
|
|
- if(list[b]==this.deviceDialogList[i].id){
|
|
|
|
|
|
+ if(list[b]==this.deviceDialogList[i].hazardId){
|
|
list2.push(this.deviceDialogList[i])
|
|
list2.push(this.deviceDialogList[i])
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -935,7 +986,7 @@
|
|
this.deptResetQueryLeft();
|
|
this.deptResetQueryLeft();
|
|
if(this.dialogForm.collegeIds[0]){
|
|
if(this.dialogForm.collegeIds[0]){
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
- conditionCollegeInfo(self.deptQueryParamsLeft).then(response => {
|
|
|
|
|
|
+ laboratorySubRelInfoConditionCollegeInfo(self.deptQueryParamsLeft).then(response => {
|
|
if(this.lookInfoType){
|
|
if(this.lookInfoType){
|
|
//查看时
|
|
//查看时
|
|
let list = [];
|
|
let list = [];
|
|
@@ -959,15 +1010,15 @@
|
|
pageSize:20,
|
|
pageSize:20,
|
|
searchValue:"",
|
|
searchValue:"",
|
|
deptId:"",
|
|
deptId:"",
|
|
- level:"",
|
|
|
|
|
|
+ levelId:"",
|
|
typeId:"",
|
|
typeId:"",
|
|
});
|
|
});
|
|
let obj = JSON.parse(JSON.stringify(this.deptQueryParamsRight));
|
|
let obj = JSON.parse(JSON.stringify(this.deptQueryParamsRight));
|
|
obj.deptIds = self.dialogForm.collegeIds;
|
|
obj.deptIds = self.dialogForm.collegeIds;
|
|
- findSubInfoByDeptIds(obj).then(response => {
|
|
|
|
- this.deptTotalRight = response.total;
|
|
|
|
- this.deptTableListRight = response.rows;
|
|
|
|
- this.$set(this.deptCheckData,'subNum',response.total);
|
|
|
|
|
|
+ laboratorySubRelInfoGetRelListByCondition(obj).then(response => {
|
|
|
|
+ this.deptTotalRight = response.data.total;
|
|
|
|
+ this.deptTableListRight = response.data.records;
|
|
|
|
+ this.$set(this.deptCheckData,'subNum',response.data.total);
|
|
this.$set(this,'deptNumLeft',self.dialogForm.collegeIds.length);
|
|
this.$set(this,'deptNumLeft',self.dialogForm.collegeIds.length);
|
|
});
|
|
});
|
|
}else{
|
|
}else{
|
|
@@ -1059,7 +1110,7 @@
|
|
},
|
|
},
|
|
//查询接口
|
|
//查询接口
|
|
deptGetListLeft(){
|
|
deptGetListLeft(){
|
|
- conditionCollegeInfo(this.deptQueryParamsLeft).then(response => {
|
|
|
|
|
|
+ laboratorySubRelInfoConditionCollegeInfo(this.deptQueryParamsLeft).then(response => {
|
|
this.$set(this,'deptTableListLeft',response.data);
|
|
this.$set(this,'deptTableListLeft',response.data);
|
|
this.$set(this,'deptTotalLeft',response.data.length);
|
|
this.$set(this,'deptTotalLeft',response.data.length);
|
|
})
|
|
})
|
|
@@ -1076,7 +1127,7 @@
|
|
searchValue:"",
|
|
searchValue:"",
|
|
deptId:"",
|
|
deptId:"",
|
|
deptIds:"",
|
|
deptIds:"",
|
|
- level:"",
|
|
|
|
|
|
+ levelId:"",
|
|
typeId:"",
|
|
typeId:"",
|
|
});
|
|
});
|
|
this.deptHandleQueryRight();
|
|
this.deptHandleQueryRight();
|
|
@@ -1089,9 +1140,9 @@
|
|
}else{
|
|
}else{
|
|
obj.deptIds = this.deptIdsLeft;
|
|
obj.deptIds = this.deptIdsLeft;
|
|
}
|
|
}
|
|
- findSubInfoByDeptIds(obj).then(response => {
|
|
|
|
- this.deptTotalRight = response.total;
|
|
|
|
- this.deptTableListRight = response.rows;
|
|
|
|
|
|
+ laboratorySubRelInfoGetRelListByCondition(obj).then(response => {
|
|
|
|
+ this.deptTotalRight = response.data.total;
|
|
|
|
+ this.deptTableListRight = response.data.records;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
/*===================================实验室选择相关===================================*/
|
|
/*===================================实验室选择相关===================================*/
|
|
@@ -1106,7 +1157,7 @@
|
|
page:1,
|
|
page:1,
|
|
pageSize:20,
|
|
pageSize:20,
|
|
typeId:"",
|
|
typeId:"",
|
|
- level:"",
|
|
|
|
|
|
+ levelId:"",
|
|
deptId:"",
|
|
deptId:"",
|
|
searchValue:"",
|
|
searchValue:"",
|
|
filtType:1
|
|
filtType:1
|
|
@@ -1121,9 +1172,9 @@
|
|
for(let i=0;i<self.dialogTableSubDataList.length;i++){
|
|
for(let i=0;i<self.dialogTableSubDataList.length;i++){
|
|
leftObj.selectedSubIds.push(self.dialogTableSubDataList[i].subId);
|
|
leftObj.selectedSubIds.push(self.dialogTableSubDataList[i].subId);
|
|
}
|
|
}
|
|
- conditionSubjectInfo(leftObj).then(response => {
|
|
|
|
- this.subTotalLeft = response.total;
|
|
|
|
- this.subTableListLeft = response.rows;
|
|
|
|
|
|
+ laboratorySubRelInfoConditionSubjectInfo(leftObj).then(response => {
|
|
|
|
+ this.subTotalLeft = response.data.total;
|
|
|
|
+ this.subTableListLeft = response.data.records;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//查询
|
|
//查询
|
|
@@ -1137,7 +1188,7 @@
|
|
page:1,
|
|
page:1,
|
|
pageSize:20,
|
|
pageSize:20,
|
|
typeId:"",
|
|
typeId:"",
|
|
- level:"",
|
|
|
|
|
|
+ levelId:"",
|
|
deptId:"",
|
|
deptId:"",
|
|
searchValue:"",
|
|
searchValue:"",
|
|
filtType:2
|
|
filtType:2
|
|
@@ -1152,9 +1203,9 @@
|
|
for(let i=0;i<self.dialogTableSubDataList.length;i++){
|
|
for(let i=0;i<self.dialogTableSubDataList.length;i++){
|
|
rightObj.subIds.push(self.dialogTableSubDataList[i].subId);
|
|
rightObj.subIds.push(self.dialogTableSubDataList[i].subId);
|
|
}
|
|
}
|
|
- conditionSubjectInfo(rightObj).then(response => {
|
|
|
|
- this.subTotalRight = response.total;
|
|
|
|
- this.subTableListRight = response.rows;
|
|
|
|
|
|
+ laboratorySubRelInfoConditionSubjectInfo(rightObj).then(response => {
|
|
|
|
+ this.subTotalRight = response.data.total;
|
|
|
|
+ this.subTableListRight = response.data.records;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//实验室穿梭按钮
|
|
//实验室穿梭按钮
|
|
@@ -1187,7 +1238,7 @@
|
|
subId:subIdsLeft[i].subId,
|
|
subId:subIdsLeft[i].subId,
|
|
subjectName:subIdsLeft[i].subjectName,
|
|
subjectName:subIdsLeft[i].subjectName,
|
|
typeId:subIdsLeft[i].typeId,
|
|
typeId:subIdsLeft[i].typeId,
|
|
- level:subIdsLeft[i].level,
|
|
|
|
|
|
+ levelId:subIdsLeft[i].levelId,
|
|
collegeName:subIdsLeft[i].collegeName,
|
|
collegeName:subIdsLeft[i].collegeName,
|
|
}
|
|
}
|
|
list.push(obj);
|
|
list.push(obj);
|
|
@@ -1204,10 +1255,12 @@
|
|
/*===================================设备相关相关===================================*/
|
|
/*===================================设备相关相关===================================*/
|
|
//获取危险源类型
|
|
//获取危险源类型
|
|
dangerList(){
|
|
dangerList(){
|
|
- let _this=this;
|
|
|
|
- dangerList().then( response => {
|
|
|
|
- let res=response.rows;
|
|
|
|
- _this.dangerArr=res;
|
|
|
|
|
|
+ getDicts('classify_dictionaries_all').then(response => {
|
|
|
|
+ let list = response.data;
|
|
|
|
+ getDicts('level_dictionaries_all').then(response => {
|
|
|
|
+ list = list.concat(response.data)
|
|
|
|
+ this.$set(this,'dangerArr',list);
|
|
|
|
+ });
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//查询
|
|
//查询
|
|
@@ -1235,12 +1288,12 @@
|
|
let leftObj = JSON.parse(JSON.stringify(this.deviceQueryParamsLeft));
|
|
let leftObj = JSON.parse(JSON.stringify(this.deviceQueryParamsLeft));
|
|
leftObj.selectedHazardIds = [];
|
|
leftObj.selectedHazardIds = [];
|
|
for(let i=0;i<self.deviceDialogTableDataList.length;i++){
|
|
for(let i=0;i<self.deviceDialogTableDataList.length;i++){
|
|
- leftObj.selectedHazardIds.push(self.deviceDialogTableDataList[i].id);
|
|
|
|
|
|
+ leftObj.selectedHazardIds.push(self.deviceDialogTableDataList[i].hazardId);
|
|
}
|
|
}
|
|
|
|
|
|
- findDeviceList(leftObj).then(response => {
|
|
|
|
- this.deviceTotalLeft = response.total;
|
|
|
|
- this.deviceTableListLeft = response.rows;
|
|
|
|
|
|
+ laboratoryHazardQueryHazardList(leftObj).then(response => {
|
|
|
|
+ this.deviceTotalLeft = response.data.total;
|
|
|
|
+ this.deviceTableListLeft = response.data.records;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//查询
|
|
//查询
|
|
@@ -1271,8 +1324,8 @@
|
|
searchValue:"",
|
|
searchValue:"",
|
|
filtType:""
|
|
filtType:""
|
|
}
|
|
}
|
|
- findDeviceList(obj).then(response => {
|
|
|
|
- this.deviceDialogList=response.rows
|
|
|
|
|
|
+ laboratoryHazardQueryHazardList(obj).then(response => {
|
|
|
|
+ this.deviceDialogList=response.data.records
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//查询接口
|
|
//查询接口
|
|
@@ -1281,11 +1334,11 @@
|
|
let rightObj = JSON.parse(JSON.stringify(this.deviceQueryParamsRight));
|
|
let rightObj = JSON.parse(JSON.stringify(this.deviceQueryParamsRight));
|
|
rightObj.hazardIds = [];
|
|
rightObj.hazardIds = [];
|
|
for(let i=0;i<self.deviceDialogTableDataList.length;i++){
|
|
for(let i=0;i<self.deviceDialogTableDataList.length;i++){
|
|
- rightObj.hazardIds.push(self.deviceDialogTableDataList[i].id);
|
|
|
|
|
|
+ rightObj.hazardIds.push(self.deviceDialogTableDataList[i].hazardId);
|
|
}
|
|
}
|
|
- findDeviceList(rightObj).then(response => {
|
|
|
|
- this.deviceTotalRight = response.total;
|
|
|
|
- this.deviceTableListRight = response.rows;
|
|
|
|
|
|
+ laboratoryHazardQueryHazardList(rightObj).then(response => {
|
|
|
|
+ this.deviceTotalRight = response.data.total;
|
|
|
|
+ this.deviceTableListRight = response.data.records;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//设备穿梭按钮
|
|
//设备穿梭按钮
|
|
@@ -1298,7 +1351,7 @@
|
|
let deviceIdsRight = JSON.parse(JSON.stringify(this.$refs.rightDeviceTable.selection))
|
|
let deviceIdsRight = JSON.parse(JSON.stringify(this.$refs.rightDeviceTable.selection))
|
|
for(let i=0;i<deviceIdsRight.length;i++){
|
|
for(let i=0;i<deviceIdsRight.length;i++){
|
|
for(let s=0;s<list.length;s++){
|
|
for(let s=0;s<list.length;s++){
|
|
- if(deviceIdsRight[i].id == list[s].id){
|
|
|
|
|
|
+ if(deviceIdsRight[i].hazardId == list[s].hazardId){
|
|
list.splice(s,1);
|
|
list.splice(s,1);
|
|
s--
|
|
s--
|
|
}
|
|
}
|
|
@@ -1318,17 +1371,10 @@
|
|
let deviceIdsLeft = JSON.parse(JSON.stringify(this.$refs.leftDeviceTable.selection))
|
|
let deviceIdsLeft = JSON.parse(JSON.stringify(this.$refs.leftDeviceTable.selection))
|
|
for(let i=0;i<deviceIdsLeft.length;i++){
|
|
for(let i=0;i<deviceIdsLeft.length;i++){
|
|
let obj = {
|
|
let obj = {
|
|
- // userId:deviceIdsLeft[i].userId,
|
|
|
|
- // name:deviceIdsLeft[i].nickName,
|
|
|
|
- // jobNum:deviceIdsLeft[i].userName,
|
|
|
|
- // deptName:deviceIdsLeft[i].deptName,
|
|
|
|
- // deptId:deviceIdsLeft[i].deptId,
|
|
|
|
- // userType:deviceIdsLeft[i].userType,
|
|
|
|
-
|
|
|
|
chName:deviceIdsLeft[i].chName,
|
|
chName:deviceIdsLeft[i].chName,
|
|
- code:deviceIdsLeft[i].code,
|
|
|
|
- hazardTypeMode:deviceIdsLeft[i].hazardTypeMode,
|
|
|
|
- id:deviceIdsLeft[i].id,
|
|
|
|
|
|
+ code:deviceIdsLeft[i].hazardCode,
|
|
|
|
+ bigTypeValue:deviceIdsLeft[i].bigTypeValue,
|
|
|
|
+ hazardId:deviceIdsLeft[i].hazardId,
|
|
}
|
|
}
|
|
list.push(obj);
|
|
list.push(obj);
|
|
}
|
|
}
|
|
@@ -1371,7 +1417,7 @@
|
|
},
|
|
},
|
|
beforeAvatarUpload(file) {
|
|
beforeAvatarUpload(file) {
|
|
let type = false;
|
|
let type = false;
|
|
- if (file.type == 'application/pdf' || file.type == 'application/msword' || file.type == 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'|| file.type == 'application/vnd.ms-excel' || file.type == 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') {
|
|
|
|
|
|
+ if (file.type == 'application/pdf' || file.type == 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' || file.type == 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') {
|
|
if(file.size> 5250000){
|
|
if(file.size> 5250000){
|
|
this.msgError('上传大小不能超过5M')
|
|
this.msgError('上传大小不能超过5M')
|
|
return false
|
|
return false
|
|
@@ -1380,7 +1426,7 @@
|
|
this.upDataName = file.name;
|
|
this.upDataName = file.name;
|
|
type = true;
|
|
type = true;
|
|
}else{
|
|
}else{
|
|
- this.$message.error('只能上传doc/docx/xls/xlsx/pdf格式');
|
|
|
|
|
|
+ this.$message.error('只能上传docx/xlsx/pdf格式');
|
|
type = false;
|
|
type = false;
|
|
}
|
|
}
|
|
return type;
|
|
return type;
|
|
@@ -1399,7 +1445,7 @@
|
|
return row.subId
|
|
return row.subId
|
|
},
|
|
},
|
|
getDeviceRowKeys(row) {
|
|
getDeviceRowKeys(row) {
|
|
- return row.id
|
|
|
|
|
|
+ return row.hazardId
|
|
},
|
|
},
|
|
deptChange(selection){
|
|
deptChange(selection){
|
|
let self = this;
|
|
let self = this;
|
|
@@ -1439,11 +1485,11 @@
|
|
},
|
|
},
|
|
deviceChangeLeft(selection){
|
|
deviceChangeLeft(selection){
|
|
this.deviceNumLeft = selection.length;
|
|
this.deviceNumLeft = selection.length;
|
|
- this.deviceIdsLeft = selection.map(item => item.id);
|
|
|
|
|
|
+ this.deviceIdsLeft = selection.map(item => item.hazardId);
|
|
},
|
|
},
|
|
deviceChangeRight(selection){
|
|
deviceChangeRight(selection){
|
|
this.deviceNumRight = selection.length;
|
|
this.deviceNumRight = selection.length;
|
|
- this.deviceIdsRight = selection.map(item => item.id);
|
|
|
|
|
|
+ this.deviceIdsRight = selection.map(item => item.hazardId);
|
|
},
|
|
},
|
|
//加法
|
|
//加法
|
|
accAdd(arg1,arg2){
|
|
accAdd(arg1,arg2){
|
|
@@ -1489,7 +1535,7 @@
|
|
//查看时学院左侧搜索
|
|
//查看时学院左侧搜索
|
|
lookDeptLeftSearch(){
|
|
lookDeptLeftSearch(){
|
|
let self = this;
|
|
let self = this;
|
|
- conditionCollegeInfo(self.deptQueryParamsLeft).then(response => {
|
|
|
|
|
|
+ laboratorySubRelInfoConditionCollegeInfo(self.deptQueryParamsLeft).then(response => {
|
|
let list = [];
|
|
let list = [];
|
|
for(let i=0;i<response.data.length;i++){
|
|
for(let i=0;i<response.data.length;i++){
|
|
for(let o=0;o<self.dialogForm.collegeIds.length;o++){
|
|
for(let o=0;o<self.dialogForm.collegeIds.length;o++){
|
|
@@ -1506,7 +1552,7 @@
|
|
pageSize:20,
|
|
pageSize:20,
|
|
searchValue:"",
|
|
searchValue:"",
|
|
deptId:"",
|
|
deptId:"",
|
|
- level:"",
|
|
|
|
|
|
+ levelId:"",
|
|
typeId:"",
|
|
typeId:"",
|
|
});
|
|
});
|
|
let obj = JSON.parse(JSON.stringify(this.deptQueryParamsRight));
|
|
let obj = JSON.parse(JSON.stringify(this.deptQueryParamsRight));
|
|
@@ -1515,10 +1561,10 @@
|
|
ids.push(list[o].deptId)
|
|
ids.push(list[o].deptId)
|
|
}
|
|
}
|
|
obj.deptIds = ids;
|
|
obj.deptIds = ids;
|
|
- findSubInfoByDeptIds(obj).then(response => {
|
|
|
|
- this.deptTotalRight = response.total;
|
|
|
|
- this.deptTableListRight = response.rows;
|
|
|
|
- this.$set(this.deptCheckData,'subNum',response.total);
|
|
|
|
|
|
+ laboratorySubRelInfoGetRelListByCondition(obj).then(response => {
|
|
|
|
+ this.deptTotalRight = response.data.total;
|
|
|
|
+ this.deptTableListRight = response.data.records;
|
|
|
|
+ this.$set(this.deptCheckData,'subNum',response.data.total);
|
|
this.$set(this,'deptNumLeft',self.dialogForm.collegeIds.length);
|
|
this.$set(this,'deptNumLeft',self.dialogForm.collegeIds.length);
|
|
});
|
|
});
|
|
})
|
|
})
|
|
@@ -1527,7 +1573,7 @@
|
|
lookDeptLeftReset(){
|
|
lookDeptLeftReset(){
|
|
let self = this;
|
|
let self = this;
|
|
this.$set(this,'deptQueryParamsLeft',{ searchValue:"", });
|
|
this.$set(this,'deptQueryParamsLeft',{ searchValue:"", });
|
|
- conditionCollegeInfo(self.deptQueryParamsLeft).then(response => {
|
|
|
|
|
|
+ laboratorySubRelInfoConditionCollegeInfo(self.deptQueryParamsLeft).then(response => {
|
|
//查看时
|
|
//查看时
|
|
for(let i=0;i<response.data.length;i++){
|
|
for(let i=0;i<response.data.length;i++){
|
|
let num = 0;
|
|
let num = 0;
|
|
@@ -1549,15 +1595,15 @@
|
|
pageSize:20,
|
|
pageSize:20,
|
|
searchValue:"",
|
|
searchValue:"",
|
|
deptId:"",
|
|
deptId:"",
|
|
- level:"",
|
|
|
|
|
|
+ levelId:"",
|
|
typeId:"",
|
|
typeId:"",
|
|
});
|
|
});
|
|
let obj = JSON.parse(JSON.stringify(this.deptQueryParamsRight));
|
|
let obj = JSON.parse(JSON.stringify(this.deptQueryParamsRight));
|
|
obj.deptIds = self.dialogForm.collegeIds;
|
|
obj.deptIds = self.dialogForm.collegeIds;
|
|
- findSubInfoByDeptIds(obj).then(response => {
|
|
|
|
- this.deptTotalRight = response.total;
|
|
|
|
- this.deptTableListRight = response.rows;
|
|
|
|
- this.$set(this.deptCheckData,'subNum',response.total);
|
|
|
|
|
|
+ laboratorySubRelInfoGetRelListByCondition(obj).then(response => {
|
|
|
|
+ this.deptTotalRight = response.data.total;
|
|
|
|
+ this.deptTableListRight = response.data.records;
|
|
|
|
+ this.$set(this.deptCheckData,'subNum',response.data.total);
|
|
this.$set(this,'deptNumLeft',self.dialogForm.collegeIds.length);
|
|
this.$set(this,'deptNumLeft',self.dialogForm.collegeIds.length);
|
|
});
|
|
});
|
|
})
|
|
})
|
|
@@ -1571,9 +1617,9 @@
|
|
ids.push(self.deptTableListLeft[o].deptId)
|
|
ids.push(self.deptTableListLeft[o].deptId)
|
|
}
|
|
}
|
|
obj.deptIds = ids;
|
|
obj.deptIds = ids;
|
|
- findSubInfoByDeptIds(obj).then(response => {
|
|
|
|
- this.deptTotalRight = response.total;
|
|
|
|
- this.deptTableListRight = response.rows;
|
|
|
|
|
|
+ laboratorySubRelInfoGetRelListByCondition(obj).then(response => {
|
|
|
|
+ this.deptTotalRight = response.data.total;
|
|
|
|
+ this.deptTableListRight = response.data.records;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//查看时学院右侧重置
|
|
//查看时学院右侧重置
|
|
@@ -1584,7 +1630,7 @@
|
|
pageSize:20,
|
|
pageSize:20,
|
|
searchValue:"",
|
|
searchValue:"",
|
|
deptId:"",
|
|
deptId:"",
|
|
- level:"",
|
|
|
|
|
|
+ levelId:"",
|
|
typeId:"",
|
|
typeId:"",
|
|
});
|
|
});
|
|
let obj = JSON.parse(JSON.stringify(this.deptQueryParamsRight));
|
|
let obj = JSON.parse(JSON.stringify(this.deptQueryParamsRight));
|
|
@@ -1593,9 +1639,9 @@
|
|
ids.push(self.deptTableListLeft[o].deptId)
|
|
ids.push(self.deptTableListLeft[o].deptId)
|
|
}
|
|
}
|
|
obj.deptIds = ids;
|
|
obj.deptIds = ids;
|
|
- findSubInfoByDeptIds(obj).then(response => {
|
|
|
|
- this.deptTotalRight = response.total;
|
|
|
|
- this.deptTableListRight = response.rows;
|
|
|
|
|
|
+ laboratorySubRelInfoGetRelListByCondition(obj).then(response => {
|
|
|
|
+ this.deptTotalRight = response.data.total;
|
|
|
|
+ this.deptTableListRight = response.data.records;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
}
|
|
}
|