|
@@ -3,76 +3,85 @@
|
|
|
<div class="newAddPlan-title-box">
|
|
|
<p>定制预案</p>
|
|
|
<p class="add-button-two-90" @click="backButton">返回</p>
|
|
|
- <p class="inquire-button-one">不关联仅保存</p>
|
|
|
- <p class="inquire-button-one" @click="associatedDialogClick(1)">保存并关联实验室</p>
|
|
|
+ <!--<p class="inquire-button-one" @click="upDataButton(1)">不关联仅保存</p>-->
|
|
|
+ <p class="inquire-button-one" @click="associatedDialogClick">关联实验室</p>
|
|
|
</div>
|
|
|
<div class="plan-for-max-box scrollbar-box">
|
|
|
- <el-form :model="form" ref="form" :rules="rules" :inline="true" label-width="90px" class="form-box">
|
|
|
- <el-form-item label="预案名称:" prop="name" style="margin:40px 0;">
|
|
|
- <el-input
|
|
|
- v-model="form.name"
|
|
|
- placeholder="请输入预案名称"
|
|
|
- clearable
|
|
|
- size="small"
|
|
|
- maxLength="50"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <div class="for-plan-box" v-for="(item,index) in form.labRiskPlanLevels" :key="index">
|
|
|
- <p class="position-title-type" :class="item.riskPlanLevel==1?'type-color-a':(item.riskPlanLevel==2?'type-color-b':(item.riskPlanLevel==3?'type-color-c':(item.riskPlanLevel==4?'type-color-d':'')))">
|
|
|
- {{item.riskPlanLevel==1?'低风险':(item.riskPlanLevel==2?'中风险':(item.riskPlanLevel==3?'较高风险':(item.riskPlanLevel==4?'高风险':'')))}}
|
|
|
- </p>
|
|
|
- <div class="for-plan-img-box">
|
|
|
- <p class="for-plan-img-null-p"></p>
|
|
|
- <div class="for-plan-img-box-big">
|
|
|
- <div class="for-plan-img-box-one">
|
|
|
- <img src="@/assets/ZDimages/evacuation3_2/img_dzya_ldss.png">
|
|
|
- <p>联动疏散</p>
|
|
|
- </div>
|
|
|
- <!--<div class="for-plan-img-box-two">-->
|
|
|
+ <el-form :model="form" ref="form" :rules="rules" :inline="true" label-width="90px" class="form-box">
|
|
|
+ <div class="plan-for-max-box-name-box">
|
|
|
+ <el-form-item label="预案名称:" prop="name" style="margin:40px 0;">
|
|
|
+ <el-input
|
|
|
+ v-model="form.name"
|
|
|
+ placeholder="请输入预案名称"
|
|
|
+ size="small"
|
|
|
+ maxLength="15"
|
|
|
+ :disabled="inputType"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <p v-if="inputType" class="plan-for-max-box-name-button-one add-button-two-90" @click="setNameButton(1)">编辑</p>
|
|
|
+ <p v-if="!inputType" class="plan-for-max-box-name-button-two reset-button-one" @click="setNameButton(2)">取消</p>
|
|
|
+ <p v-if="!inputType" class="plan-for-max-box-name-button-three add-button-two-90" @click="setNameButton(3)">保存</p>
|
|
|
+ </div>
|
|
|
+ <div class="for-plan-box" v-for="(item,index) in form.labRiskPlanLevels" :key="index">
|
|
|
+ <p class="position-title-type" :class="item.riskPlanLevel==1?'type-color-a':(item.riskPlanLevel==2?'type-color-b':(item.riskPlanLevel==3?'type-color-c':(item.riskPlanLevel==4?'type-color-d':'')))">
|
|
|
+ {{item.riskPlanLevel==1?'低风险':(item.riskPlanLevel==2?'中风险':(item.riskPlanLevel==3?'较高风险':(item.riskPlanLevel==4?'高风险':'')))}}
|
|
|
+ </p>
|
|
|
+ <div class="for-plan-img-box">
|
|
|
+ <p class="for-plan-img-null-p"></p>
|
|
|
+ <div class="for-plan-img-box-big">
|
|
|
+ <div class="for-plan-img-box-one" v-if="item.ifExit == 1">
|
|
|
+ <img src="@/assets/ZDimages/evacuation3_2/img_dzya_ldss.png">
|
|
|
+ <p>联动疏散</p>
|
|
|
+ </div>
|
|
|
+ <!--<div class="for-plan-img-box-two">-->
|
|
|
<!--<img src="@/assets/ZDimages/evacuation3_2/img_dzya_hzyj.png">-->
|
|
|
<!--<p>火灾预案</p>-->
|
|
|
- <!--</div>-->
|
|
|
+ <!--</div>-->
|
|
|
+ </div>
|
|
|
+ <p class="for-plan-img-null-p"></p>
|
|
|
</div>
|
|
|
- <p class="for-plan-img-null-p"></p>
|
|
|
- </div>
|
|
|
- <div class="min-for-text-box">
|
|
|
- <div class="min-for-text-box-one" v-for="(minItemOne,minIndexOne) in item.riskPlanSensorList" :key="minIndexOne">
|
|
|
+ <div class="min-for-text-box">
|
|
|
<div>
|
|
|
- <p>启动条件:</p>
|
|
|
- <p>监测区间:{{minItemOne.minMonitor}}-{{minItemOne.maxMonitor}}</p>
|
|
|
+ <div class="min-for-text-box-one" v-for="(minItemOne,minIndexOne) in item.riskPlanSensorList" :key="minItemOne.funNum">
|
|
|
+ <div>
|
|
|
+ <p>启动条件:<span v-for="(sensorItem,sensorIndex) in sensorList" :key="sensorIndex" v-if="sensorItem.funNum == minItemOne.funNum">{{sensorItem.describe}}</span></p>
|
|
|
+ <p>监测区间:{{minItemOne.minMonitor}}-{{minItemOne.maxMonitor}}</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="min-for-text-box-two" v-for="(minItemTwo,minIndexTwo) in item.riskPlanHardwareList" :key="minIndexTwo">
|
|
|
<div>
|
|
|
- <p>执行动作:</p>
|
|
|
- <p>执行办法:</p>
|
|
|
- <p>结束操作:</p>
|
|
|
+ <div class="min-for-text-box-two" v-for="(minItemTwo,minIndexTwo) in item.riskPlanHardwareList" :key="minIndexTwo">
|
|
|
+ <div v-for="(hardwareItem,hardwareIndex) in hardwareList" :key="hardwareIndex" v-if="hardwareItem.hardwareTypeEnum.code == minItemTwo.hardwareType">
|
|
|
+ <p>执行动作:{{hardwareItem.hardwareTypeEnum.hardwareTypeName}}</p>
|
|
|
+ <p>执行办法:<span v-for="(functionItem,functionIndex) in hardwareItem.functionStatusList" :key="functionIndex" v-if="functionItem.code == minItemTwo.operate">{{functionItem.code == 0?'关闭':'开启'}}</span></p>
|
|
|
+ <p>结束操作:<span v-for="(functionItem,functionIndex) in hardwareItem.functionStatusList" :key="functionIndex" v-if="functionItem.code == minItemTwo.overAct">{{functionItem.code == 0?'关闭':'开启'}}</span></p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="for-button-max-box">
|
|
|
- <div @click="buttonClick(2)">
|
|
|
- <img src="@/assets/ZDimages/evacuation3_2/icon_znwl_bj.png">
|
|
|
- <p>编辑</p>
|
|
|
- </div>
|
|
|
- <div @click="buttonClick(3)">
|
|
|
- <img src="@/assets/ZDimages/evacuation3_2/icon_znwl_sc.png">
|
|
|
- <p>删除</p>
|
|
|
+ <div class="for-button-max-box">
|
|
|
+ <div @click="buttonClick(2,item,index)">
|
|
|
+ <img src="@/assets/ZDimages/evacuation3_2/icon_znwl_bj.png">
|
|
|
+ <p>编辑</p>
|
|
|
+ </div>
|
|
|
+ <div @click="buttonClick(3,item,index)">
|
|
|
+ <img src="@/assets/ZDimages/evacuation3_2/icon_znwl_sc.png">
|
|
|
+ <p>删除</p>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </el-form>
|
|
|
+ </el-form>
|
|
|
<div class="plan-for-max-button-box">
|
|
|
<p class="plan-for-max-button-null"></p>
|
|
|
- <p class="plan-for-max-button" @click="buttonClick(1)">+ 新增预案规则</p>
|
|
|
+ <p class="plan-for-max-button" v-if="!form.labRiskPlanLevels[3]" @click="buttonClick(1)">+ 新增预案规则</p>
|
|
|
<p class="plan-for-max-button-null"></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-dialog :title='dialogTitle' v-if="dialogOpen" :visible.sync="dialogOpen" width="800px">
|
|
|
<div class="scrollbar-box" style="height:600px;">
|
|
|
<el-form :model="dialogForm" ref="dialogForm" :rules="rules" label-width="100px">
|
|
|
- <el-form-item label="预案等级:" prop="type1">
|
|
|
- <el-radio-group v-model="dialogForm.type1">
|
|
|
+ <el-form-item label="预案等级:" prop="riskPlanLevel">
|
|
|
+ <el-radio-group v-model="dialogForm.riskPlanLevel" style="width:500px;">
|
|
|
<el-radio :label="1">低风险</el-radio>
|
|
|
<el-radio :label="2">中风险</el-radio>
|
|
|
<el-radio :label="3">较高风险</el-radio>
|
|
@@ -80,43 +89,45 @@
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
<div style="display: flex">
|
|
|
- <el-form-item label="执行疏散:" prop="name">
|
|
|
- <el-radio-group v-model="dialogForm.type2">
|
|
|
- <el-radio :label="1">否</el-radio>
|
|
|
- <el-radio :label="2">是</el-radio>
|
|
|
- </el-radio-group>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="火灾预案:" prop="name" style="margin-left:220px;">
|
|
|
- <el-radio-group v-model="dialogForm.type3">
|
|
|
- <el-radio :label="1">否</el-radio>
|
|
|
- <el-radio :label="2">是</el-radio>
|
|
|
+ <el-form-item label="执行疏散:" prop="ifExit">
|
|
|
+ <el-radio-group v-model="dialogForm.ifExit" style="width:500px;">
|
|
|
+ <el-radio :label="0">否</el-radio>
|
|
|
+ <el-radio :label="1">是</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
+ <!--<el-form-item label="火灾预案:" prop="name" style="margin-left:220px;">-->
|
|
|
+ <!--<el-radio-group v-model="dialogForm.type3">-->
|
|
|
+ <!--<el-radio :label="1">否</el-radio>-->
|
|
|
+ <!--<el-radio :label="2">是</el-radio>-->
|
|
|
+ <!--</el-radio-group>-->
|
|
|
+ <!--</el-form-item>-->
|
|
|
</div>
|
|
|
<div style="border-top:1px solid #e0e0e0;">
|
|
|
<p style="line-height:60px;font-size:14px;margin-left:19px;">启动条件:</p>
|
|
|
- <div style="display: flex" v-for="(item,index) in dialogForm.list1" :key="index">
|
|
|
+ <div style="display: flex" v-for="(item,index) in dialogForm.riskPlanSensorList" :key="index">
|
|
|
<div style="flex:1;">
|
|
|
- <el-form-item label="监测设备:" prop="type4">
|
|
|
- <el-select v-model="item.type4" placeholder="请选择">
|
|
|
+ <el-form-item label="监测设备:" :prop="'riskPlanSensorList.'+index+'.funNum'" :rules="rules.funNum">
|
|
|
+ <el-select v-model="item.funNum" placeholder="请选择监测设备">
|
|
|
<el-option
|
|
|
- v-for="item in options"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
+ v-for="item in sensorList"
|
|
|
+ :key="item.funNum"
|
|
|
+ :label="item.describe"
|
|
|
+ :value="item.funNum">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div style="flex:1;display: flex">
|
|
|
- <el-form-item label="监测区间:" prop="name">
|
|
|
- <el-input-number v-model="item.type5" style="width:90px;" :min="1" :max="999" :controls="false" label="描述文字"></el-input-number>
|
|
|
+ <el-form-item label="监测区间:" :prop="'riskPlanSensorList.'+index+'.minMonitor'" :rules="rules.minMonitor">
|
|
|
+ <el-input-number v-model="item.minMonitor" style="width:90px;" :min="1" :max="99999" :controls="false" placeholder="监测区间"></el-input-number>
|
|
|
</el-form-item>
|
|
|
<p style="width:30px;text-align: center;line-height:40px;">-</p>
|
|
|
- <el-form-item label="" prop="name" label-width="0">
|
|
|
- <el-input-number v-model="item.type6" style="width:90px;" :min="1" :max="999" :controls="false" label="描述文字"></el-input-number>
|
|
|
+ <el-form-item label="" :prop="'riskPlanSensorList.'+index+'.maxMonitor'" :rules="rules.maxMonitor" label-width="0">
|
|
|
+ <el-input-number v-model="item.maxMonitor" style="width:90px;" :min="1" :max="99999" :controls="false" placeholder="监测区间"></el-input-number>
|
|
|
</el-form-item>
|
|
|
- <p class="el-icon-delete" style="cursor: pointer;line-height:30px;width:30px;text-align:center;margin:5px 0 0 20px;"></p>
|
|
|
+ <p class="el-icon-delete"
|
|
|
+ @click="delMinData(1,index)"
|
|
|
+ style="cursor: pointer;line-height:30px;width:30px;text-align:center;margin:5px 0 0 20px;"></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<p style="cursor: pointer;width:200px;line-height:30px;border-radius:4px;border: 1px dashed #E0E0E0;color:#333333;text-align: center;margin:20px auto;"
|
|
@@ -124,39 +135,41 @@
|
|
|
</div>
|
|
|
<div style="border-top:1px solid #e0e0e0;">
|
|
|
<p style="line-height:60px;font-size:14px;margin-left:19px;">执行动作:</p>
|
|
|
- <div style="display: flex" v-for="(item,index) in dialogForm.list2" :key="index">
|
|
|
+ <div style="display: flex" v-for="(item,index) in dialogForm.riskPlanHardwareList" :key="index">
|
|
|
<div style="flex:1;display: flex">
|
|
|
- <el-form-item label="执行设备:" prop="type4">
|
|
|
- <el-select v-model="item.type4" placeholder="请选择" style="width:130px;">
|
|
|
+ <el-form-item label="执行设备:" :prop="'riskPlanHardwareList.'+index+'.hardwareType'" :rules="rules.hardwareType">
|
|
|
+ <el-select v-model="item.hardwareType" placeholder="选择执行设备" style="width:130px;" @change="(val)=>controlTypeList(val,index)">
|
|
|
<el-option
|
|
|
- v-for="item in options"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
+ v-for="optionItem in hardwareList"
|
|
|
+ :key="optionItem.hardwareTypeEnum.code"
|
|
|
+ :label="optionItem.hardwareTypeEnum.hardwareTypeName"
|
|
|
+ :value="optionItem.hardwareTypeEnum.code">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="执行办法:" prop="type4">
|
|
|
- <el-select v-model="item.type4" placeholder="请选择" style="width:130px;">
|
|
|
+ <el-form-item label="执行办法:" :prop="'riskPlanHardwareList.'+index+'.operate'" :rules="rules.operate">
|
|
|
+ <el-select v-model="item.operate" placeholder="选择执行办法" style="width:130px;">
|
|
|
<el-option
|
|
|
- v-for="item in options"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
+ v-for="optionItem in item.hardwareList"
|
|
|
+ :key="optionItem.code"
|
|
|
+ :label="optionItem.describe"
|
|
|
+ :value="optionItem.code">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="结束操作:" prop="type4">
|
|
|
- <el-select v-model="item.type4" placeholder="请选择" style="width:130px;">
|
|
|
+ <el-form-item label="结束操作:" :prop="'riskPlanHardwareList.'+index+'.overAct'" :rules="rules.overAct">
|
|
|
+ <el-select v-model="item.overAct" placeholder="选择结束操作" style="width:130px;">
|
|
|
<el-option
|
|
|
- v-for="item in options"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
+ v-for="optionItem in item.hardwareList"
|
|
|
+ :key="optionItem.code"
|
|
|
+ :label="optionItem.describe"
|
|
|
+ :value="optionItem.code">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <p class="el-icon-delete" style="cursor: pointer;line-height:30px;width:30px;text-align:center;margin:5px 0 0 20px;"></p>
|
|
|
+ <p class="el-icon-delete"
|
|
|
+ @click="delMinData(2,index)"
|
|
|
+ style="cursor: pointer;line-height:30px;width:30px;text-align:center;margin:5px 0 0 20px;"></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<p style="cursor: pointer;width:200px;line-height:30px;border-radius:4px;border: 1px dashed #E0E0E0;color:#333333;text-align: center;margin:20px auto;"
|
|
@@ -173,204 +186,166 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <el-dialog title='关联实验室' v-if="dialogAssociatedOpen" :visible.sync="dialogAssociatedOpen" width="1200px">
|
|
|
- <div style="height: 600px;overflow: hidden;display: flex;flex-direction: column;flex:1;">
|
|
|
- <el-form :model="param" ref="queryForm" :inline="true" label-width="80px">
|
|
|
- <el-form-item label="关键字" prop="name">
|
|
|
- <el-input
|
|
|
- maxlength="10"
|
|
|
- v-model="param.searchValue"
|
|
|
- placeholder="实验室/危险源"
|
|
|
- clearable
|
|
|
- size="small"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="安全分类" prop="deptId" label-width="80px">
|
|
|
- <el-select v-model="param.deptId" placeholder="请选择安全分类" clearable size="small">
|
|
|
- <el-option
|
|
|
- v-for="dict in options"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
- :value="dict.value"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="安全分级" prop="deptId" label-width="80px">
|
|
|
- <el-select v-model="param.deptId" placeholder="请选择安全分级" clearable size="small">
|
|
|
- <el-option
|
|
|
- v-for="dict in options"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
- :value="dict.value"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item>
|
|
|
- <p class="inquire-button-one" style="margin-right:10px;" @click="onSearch">查询</p>
|
|
|
- <p class="reset-button-one" @click="resetForm">重置</p>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- <div style="display: flex;background: rgb(202,229,253);height:40px;line-height:40px;font-size:16px;padding:0 82px;">
|
|
|
- <p style="margin-right:24px;">已选择 <span style="color:#0183FA;">1</span> 项</p>
|
|
|
- <p style="color:#0183FA;cursor: pointer;" >全选本页</p>
|
|
|
- <p style="color:#0183FA;margin:0 32px 0 30px;cursor: pointer;" >选择全部</p>
|
|
|
- <p style="color:#FF8F1F;cursor: pointer;" >清除选项</p>
|
|
|
- </div>
|
|
|
- <el-table v-loading="loading" border :data="tableData">
|
|
|
- <el-table-column type="selection" width="55" align="center" />
|
|
|
- <el-table-column label="实验室" width="220" align="center" prop="id" />
|
|
|
- <el-table-column label="安全分类" width="100" align="center" prop="id" />
|
|
|
- <el-table-column label="安全分级" width="100" align="center" prop="id" />
|
|
|
- <el-table-column label="危险源" align="left">
|
|
|
- <div style="margin-bottom:10px;">
|
|
|
- <div style="display: inline-block;padding:0 10px;border:1px solid #E0E0E0;margin:10px 10px 0 0;">
|
|
|
- <span style="line-height:40px;font-size:14px;">马弗炉 - 马弗炉温度传感器</span>
|
|
|
- <span class="el-icon-circle-close" style="cursor: pointer;width:14px;height:14px;margin-left:10px;margin-top:14px;color:#666;"></span>
|
|
|
- </div>
|
|
|
- <p style="color:#0183FA;font-size:16px;border:1px solid #0183FA;
|
|
|
- border-radius:4px;width:88px;height:30px;line-height:30px;
|
|
|
- display: inline-block;margin:5px 0 0 10px;text-align: center;cursor: pointer;">新增危险源</p>
|
|
|
- <div style="display: flex;margin-top:10px;">
|
|
|
- <el-select v-model="param.deptId" placeholder="请选择安全分类" clearable style="width:168px;">
|
|
|
- <el-option
|
|
|
- v-for="dict in options"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
- :value="dict.value"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
- <p style="width:30px;text-align: center;line-height:40px;">-</p>
|
|
|
- <el-select v-model="param.deptId" placeholder="请选择安全分类" clearable style="width:168px;">
|
|
|
- <el-option
|
|
|
- v-for="dict in options"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
- :value="dict.value"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
- <p style="color:#CCCCCC;font-size:16px;border:1px solid #E0E0E0;
|
|
|
- border-radius:4px;width:80px;height:30px;line-height:30px;
|
|
|
- display: inline-block;margin:5px 0 0 10px;text-align: center;cursor: pointer;">取消</p>
|
|
|
- <p style="color:#0183FA;font-size:16px;border:1px solid #0183FA;
|
|
|
- border-radius:4px;width:80px;height:30px;line-height:30px;
|
|
|
- display: inline-block;margin:5px 0 0 10px;text-align: center;cursor: pointer;">确定</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- <pagination
|
|
|
- v-show="total>0"
|
|
|
- :total="total"
|
|
|
- :page.sync="param.pageNum"
|
|
|
- :limit.sync="param.pageSize"
|
|
|
- @pagination="getList"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
- <div style="display: flex">
|
|
|
- <p style="flex:1;"></p>
|
|
|
- <p style="cursor: pointer;border-radius:6px;width:70px;line-height:30px;font-size:12px;text-align:center;margin-right:17px;color:#999999;background:#E0E0E0;" @click="associatedDialogClick(2)">取消</p>
|
|
|
- <p style="cursor: pointer;border-radius:6px;width:70px;line-height:30px;font-size:12px;text-align:center;color:#fff;background:#0045AF;" @click="associatedDialogClick(3)">确定</p>
|
|
|
- <p style="flex:1;"></p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import { listClassifiedAll } from "@/api/laboratory/classified";
|
|
|
+ import { listClasstypeAll } from "@/api/laboratory/classtype";
|
|
|
import { optionHardware } from "@/api/laboratory/hardware";
|
|
|
import { optionSensor } from "@/api/laboratory/sensor";
|
|
|
+ import { selectRiskPlanLeveListRiskPlanId,putPlan,planLevelAdd,planLevelPut,planLevelDel,getLabRiskPlanJoinSub } from "@/api/evacuation3_2/index";
|
|
|
export default {
|
|
|
name: "newAddPlan",
|
|
|
props:{
|
|
|
- pageData:{},
|
|
|
+ addPlanData:{},
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
form:{
|
|
|
- list:[
|
|
|
- {type:1},{type:2},{type:3},{type:4},
|
|
|
- ],
|
|
|
+ name:"",
|
|
|
+ labRiskPlanLevels:[],
|
|
|
},
|
|
|
dialogTitle:'',
|
|
|
+ dialogIndex:null,
|
|
|
dialogOpen:false,
|
|
|
- dialogForm:{
|
|
|
- list1:[{}],
|
|
|
- list2:[{}],
|
|
|
- },
|
|
|
+ dialogForm:{},
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
name: [
|
|
|
- { required: true, message: "请输入预案名称", trigger: "blur" },
|
|
|
- { required: true, message: "请输入预案名称", validator: this.spaceJudgment, trigger: "blur" }
|
|
|
+ { required: true, message: "请输入预案名称", trigger: "change" },
|
|
|
+ { required: true, message: "请输入预案名称", validator: this.spaceJudgment, trigger: "change" }
|
|
|
+ ],
|
|
|
+ riskPlanLevel: [
|
|
|
+ { required: true, message: "请选择预案等级", trigger: "change" },
|
|
|
+ ],
|
|
|
+ ifExit: [
|
|
|
+ { required: true, message: "请选择是否执行疏散", trigger: "change" },
|
|
|
+ ],
|
|
|
+ funNum: [
|
|
|
+ { required: true, message: "请选择监测设备", trigger: "change" },
|
|
|
+ ],
|
|
|
+ minMonitor: [
|
|
|
+ { required: true, message: "请选择监测区间", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ maxMonitor: [
|
|
|
+ { required: true, message: "请选择监测区间", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ hardwareType: [
|
|
|
+ { required: true, message: "请选择执行设备", trigger: "change" },
|
|
|
+ ],
|
|
|
+ operate: [
|
|
|
+ { required: true, message: "请选择执行办法", trigger: "change" },
|
|
|
+ ],
|
|
|
+ overAct: [
|
|
|
+ { required: true, message: "请选择结束操作", trigger: "change" },
|
|
|
],
|
|
|
},
|
|
|
//检测设备列表
|
|
|
options:[{value: '选项1', label: '黄金糕'},{value: '选项1', label: '黄金糕'},],
|
|
|
- /***************关联危险源开始****************/
|
|
|
- // 遮罩层
|
|
|
- loading: false,
|
|
|
- // 选中数组
|
|
|
- ids: [],
|
|
|
- // 非单个禁用
|
|
|
- single: true,
|
|
|
- // 非多个禁用
|
|
|
- multiple: true,
|
|
|
- // 查询数据
|
|
|
- param:{},
|
|
|
- total:5,
|
|
|
- //关联实验室
|
|
|
- dialogAssociatedOpen:false,
|
|
|
- tableData:[{}],
|
|
|
//选择数据
|
|
|
+ //传感器
|
|
|
sensorList:[],
|
|
|
sensorListData:[],
|
|
|
+ //设备
|
|
|
hardwareList:[],
|
|
|
- /***************关联危险源结束****************/
|
|
|
+ //分类
|
|
|
+ typeList:[],
|
|
|
+ //分级
|
|
|
+ levelList:[],
|
|
|
+ // 关联实验室本地数据
|
|
|
+ labSensorHazardRelations:[],
|
|
|
+ // 新增/编辑时本地数据
|
|
|
+ labRiskPlanLevels:[],
|
|
|
+ //名称修改状态锁
|
|
|
+ inputType:true,
|
|
|
+ inputName:"",
|
|
|
}
|
|
|
},
|
|
|
created(){
|
|
|
- if(this.pageData){
|
|
|
- this.$set(this,'form',this.pageData);
|
|
|
- }else{
|
|
|
- this.$set(this,'form',{
|
|
|
- name:"",
|
|
|
- labRiskPlanLevels:[],
|
|
|
- });
|
|
|
- }
|
|
|
- console.log('pageData',this.pageData)
|
|
|
+
|
|
|
},
|
|
|
mounted(){
|
|
|
this.getOptionData();
|
|
|
},
|
|
|
methods: {
|
|
|
+ //修改预案名称
|
|
|
+ setNameButton(type){
|
|
|
+ if(type == 1){
|
|
|
+ this.$set(this,'inputType',false);
|
|
|
+ this.$set(this,'inputName',this.form.name);
|
|
|
+ }else if(type == 2){
|
|
|
+ this.$set(this,'inputType',true);
|
|
|
+ this.$set(this.form,'name',this.inputName);
|
|
|
+ }else if(type == 3){
|
|
|
+ putPlan({ id:this.addPlanData.id, name:this.form.name }).then((response) => {
|
|
|
+ this.msgSuccess(response.msg)
|
|
|
+ this.$set(this,'inputType',true);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //提交
|
|
|
+ upDataButton(){
|
|
|
+ this.$refs["form"].validate(valid => {
|
|
|
+ if (valid) {
|
|
|
+ if(!this.form.labRiskPlanLevels[0]){
|
|
|
+ this.msgError('请添加至少一个预案规则')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ setPlanData(this.form).then(response => {
|
|
|
+ this.msgSuccess(response.msg);
|
|
|
+ this.$parent.tableClickButton(5);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //查询设备功能
|
|
|
+ controlTypeList(val,index) {
|
|
|
+ let self = this;
|
|
|
+ for(let i=0;i<self.hardwareList.length;i++){
|
|
|
+ if(self.hardwareList[i].hardwareTypeEnum.code == val){
|
|
|
+ this.$set(self.dialogForm.riskPlanHardwareList[index],'hardwareList',self.hardwareList[i].functionStatusList);
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //查询传感器/设备下啦列表
|
|
|
getOptionData(){
|
|
|
optionSensor({}).then(response => {
|
|
|
this.sensorList = response.data;
|
|
|
this.sensorListData = JSON.parse(JSON.stringify(response.data))
|
|
|
});
|
|
|
optionHardware({}).then(response => {
|
|
|
- var allDate = new Array();
|
|
|
- for(let key=0 ;key<response.data.length;key++){
|
|
|
- allDate.push({"id":response.data[key].hardwareTypeEnum.code,"name":response.data[key].hardwareTypeEnum.name})
|
|
|
+ this.hardwareList = response.data;
|
|
|
+ });
|
|
|
+ listClassifiedAll().then(response=>{
|
|
|
+ if(response.code==200){
|
|
|
+ this.levelList=response.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ listClasstypeAll().then(response=>{
|
|
|
+ if(response.code==200){
|
|
|
+ this.typeList=response.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.selectRiskPlanLeveListRiskPlanId(1);
|
|
|
+ },
|
|
|
+ selectRiskPlanLeveListRiskPlanId(type){
|
|
|
+ selectRiskPlanLeveListRiskPlanId(this.addPlanData.id).then((response) => {
|
|
|
+ if(type == 1){
|
|
|
+ this.$set(this.form,'name',this.addPlanData.name);
|
|
|
+ this.$set(this,'inputType',true);
|
|
|
}
|
|
|
- this.hardwareList = allDate;
|
|
|
+ this.$set(this.form,'labRiskPlanLevels',response.data);
|
|
|
});
|
|
|
},
|
|
|
+ //返回
|
|
|
backButton(){
|
|
|
this.$parent.tableClickButton(5)
|
|
|
},
|
|
|
- /***************关联危险源开始****************/
|
|
|
- // 开关
|
|
|
+ //实验室关联开关
|
|
|
associatedDialogClick(type){
|
|
|
- if(type == 1){
|
|
|
- this.$set(this,'dialogAssociatedOpen',true);
|
|
|
- }else if (type == 2){
|
|
|
- this.$set(this,'dialogAssociatedOpen',false);
|
|
|
- }else if(type == 3){
|
|
|
- //提交
|
|
|
- }
|
|
|
+ this.$parent.tableClickButton(1,{id:this.addPlanData.id,type:1,})
|
|
|
},
|
|
|
//查询
|
|
|
onSearch(){
|
|
@@ -380,35 +355,228 @@
|
|
|
resetForm(){
|
|
|
|
|
|
},
|
|
|
- //勾选
|
|
|
- handleSelectionChange(selection){
|
|
|
- this.ids = selection.map(item => item.id)
|
|
|
- this.single = selection.length!==1
|
|
|
- this.multiple = !selection.length
|
|
|
- },
|
|
|
- /***************关联危险源结束****************/
|
|
|
addMinData(type){
|
|
|
if(type == 1){
|
|
|
- this.dialogForm.list1.push({})
|
|
|
+ if(this.dialogForm.riskPlanSensorList.length>8){
|
|
|
+ this.msgError('新增失败,最多只能新增九条监测规则')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.dialogForm.riskPlanSensorList.push({
|
|
|
+ funNum:null,
|
|
|
+ })
|
|
|
}else if(type == 2){
|
|
|
- this.dialogForm.list2.push({})
|
|
|
+ if(this.dialogForm.riskPlanHardwareList.length>8){
|
|
|
+ this.msgError('新增失败,最多只能新增九条处置规则')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.dialogForm.riskPlanHardwareList.push({
|
|
|
+ hardwareType:null,
|
|
|
+ operate:null,
|
|
|
+ overAct:null,
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ delMinData(type,index){
|
|
|
+ if(type == 1){
|
|
|
+ this.dialogForm.riskPlanSensorList.splice(index,1);
|
|
|
+ }else if (type == 2){
|
|
|
+ this.dialogForm.riskPlanHardwareList.splice(index,1);
|
|
|
}
|
|
|
},
|
|
|
//提交
|
|
|
submitForm(){
|
|
|
-
|
|
|
+ let self = this;
|
|
|
+ if(!this.dialogForm.riskPlanSensorList[0]){
|
|
|
+ this.msgError('请添加至少一个启动条件')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ //提交数据检测条件区间是否重复
|
|
|
+ for(let i=0;i<self.dialogForm.riskPlanSensorList.length;i++){
|
|
|
+ if(self.dialogForm.riskPlanSensorList[i].minMonitor >= self.dialogForm.riskPlanSensorList[i].maxMonitor){
|
|
|
+ self.msgError('监测区间数值异常,请重新输入');
|
|
|
+ return
|
|
|
+ }
|
|
|
+ for(let x=0;x<self.dialogForm.riskPlanSensorList.length;x++){
|
|
|
+ if(self.dialogForm.riskPlanSensorList[i].funNum == self.dialogForm.riskPlanSensorList[x].funNum && i != x){
|
|
|
+ if(self.dialogForm.riskPlanSensorList[i].minMonitor >= self.dialogForm.riskPlanSensorList[x].minMonitor &&
|
|
|
+ self.dialogForm.riskPlanSensorList[i].minMonitor <= self.dialogForm.riskPlanSensorList[x].maxMonitor){
|
|
|
+ self.msgError('监测区间不能重复,请重新输入');
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(self.dialogForm.riskPlanSensorList[i].maxMonitor >= self.dialogForm.riskPlanSensorList[x].minMonitor &&
|
|
|
+ self.dialogForm.riskPlanSensorList[i].maxMonitor <= self.dialogForm.riskPlanSensorList[x].maxMonitor){
|
|
|
+ self.msgError('监测区间不能重复,请重新输入');
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ let num = 0;
|
|
|
+ let age = 0;
|
|
|
+ if(this.dialogIndex != null){
|
|
|
+ for(let i=0;i<self.labRiskPlanLevels.length;i++){
|
|
|
+ if(self.labRiskPlanLevels[i].riskPlanLevel == self.dialogForm.riskPlanLevel){
|
|
|
+ this.msgError('无法添加多个相同等级的预案.')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for(let x=0;x<self.dialogForm.riskPlanSensorList.length;x++){
|
|
|
+ for(let i=0;i<self.labRiskPlanLevels.length;i++){
|
|
|
+ for(let o=0;o<self.labRiskPlanLevels[i].riskPlanSensorList.length;o++){
|
|
|
+ if(self.dialogForm.riskPlanSensorList[x].funNum==self.labRiskPlanLevels[i].riskPlanSensorList[o].funNum){
|
|
|
+ num ++
|
|
|
+ if(self.dialogForm.riskPlanSensorList[x].minMonitor>=self.labRiskPlanLevels[i].riskPlanSensorList[o].minMonitor&&
|
|
|
+ self.dialogForm.riskPlanSensorList[x].minMonitor<=self.labRiskPlanLevels[i].riskPlanSensorList[o].maxMonitor){
|
|
|
+ age++
|
|
|
+ console.log('age++');
|
|
|
+ }else if(self.dialogForm.riskPlanSensorList[x].maxMonitor>=self.labRiskPlanLevels[i].riskPlanSensorList[o].minMonitor&&
|
|
|
+ self.dialogForm.riskPlanSensorList[x].maxMonitor<=self.labRiskPlanLevels[i].riskPlanSensorList[o].maxMonitor){
|
|
|
+ age++
|
|
|
+ console.log('age++');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ for(let i=0;i<self.form.labRiskPlanLevels.length;i++){
|
|
|
+ if(self.form.labRiskPlanLevels[i].riskPlanLevel == self.dialogForm.riskPlanLevel){
|
|
|
+ this.msgError('无法添加多个相同等级的预案.')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for(let x=0;x<self.dialogForm.riskPlanSensorList.length;x++){
|
|
|
+ for(let i=0;i<self.form.labRiskPlanLevels.length;i++){
|
|
|
+ for(let o=0;o<self.form.labRiskPlanLevels[i].riskPlanSensorList.length;o++){
|
|
|
+ if(self.dialogForm.riskPlanSensorList[x].funNum==self.form.labRiskPlanLevels[i].riskPlanSensorList[o].funNum){
|
|
|
+ num ++
|
|
|
+ if(self.dialogForm.riskPlanSensorList[x].minMonitor>=self.form.labRiskPlanLevels[i].riskPlanSensorList[o].minMonitor&&
|
|
|
+ self.dialogForm.riskPlanSensorList[x].minMonitor<=self.form.labRiskPlanLevels[i].riskPlanSensorList[o].maxMonitor){
|
|
|
+ age++
|
|
|
+ console.log('age++');
|
|
|
+ }else if(self.dialogForm.riskPlanSensorList[x].maxMonitor>=self.form.labRiskPlanLevels[i].riskPlanSensorList[o].minMonitor&&
|
|
|
+ self.dialogForm.riskPlanSensorList[x].maxMonitor<=self.form.labRiskPlanLevels[i].riskPlanSensorList[o].maxMonitor){
|
|
|
+ age++
|
|
|
+ console.log('age++');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ console.log('self.dialogForm.riskPlanSensorList.length',self.dialogForm.riskPlanSensorList.length);
|
|
|
+ console.log('num',num);
|
|
|
+ console.log('age',age);
|
|
|
+ //提交数据对比已存在数据 是否区间重复
|
|
|
+ if(self.dialogForm.riskPlanSensorList.length == num && self.dialogForm.riskPlanSensorList.length == age){
|
|
|
+ self.msgError('监测区间不能与其他级别检测条件完全重复重复,请重新输入');
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$refs["dialogForm"].validate(valid => {
|
|
|
+ if (valid) {
|
|
|
+ if(this.dialogIndex != null){
|
|
|
+ //修改预案级别数据
|
|
|
+ let text = [];
|
|
|
+ for(let i=0;i<self.form.labRiskPlanLevels.length;i++){
|
|
|
+ if(this.dialogIndex != i){
|
|
|
+ for(let o=0;o<self.form.labRiskPlanLevels[i].riskPlanSensorList.length;o++){
|
|
|
+ for(let x=0;x<self.sensorList.length;x++){
|
|
|
+ if(self.form.labRiskPlanLevels[i].riskPlanSensorList[o].funNum == self.sensorList[x].funNum){
|
|
|
+ text.push(self.sensorList[x].describe);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for(let i=0;i<self.dialogForm.riskPlanSensorList.length;i++){
|
|
|
+ for(let x=0;x<self.sensorList.length;x++){
|
|
|
+ if(self.dialogForm.riskPlanSensorList[i].funNum == self.sensorList[x].funNum){
|
|
|
+ text.push(self.sensorList[x].describe);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ text = Array.from(new Set(text));
|
|
|
+ text = text+''
|
|
|
+ text = text.replace(",","+")
|
|
|
+ console.log(text);
|
|
|
+ let obj = JSON.parse(JSON.stringify(this.dialogForm))
|
|
|
+ obj.startCondition = text+'';
|
|
|
+ planLevelPut(obj).then((response) => {
|
|
|
+ this.msgSuccess(response.msg)
|
|
|
+ this.selectRiskPlanLeveListRiskPlanId();
|
|
|
+ this.$set(this,'dialogOpen',false);
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ //新增预案级别数据
|
|
|
+ let text = [];
|
|
|
+ for(let i=0;i<self.form.labRiskPlanLevels.length;i++){
|
|
|
+ for(let o=0;o<self.form.labRiskPlanLevels[i].riskPlanSensorList.length;o++){
|
|
|
+ for(let x=0;x<self.sensorList.length;x++){
|
|
|
+ if(self.form.labRiskPlanLevels[i].riskPlanSensorList[o].funNum == self.sensorList[x].funNum){
|
|
|
+ text.push(self.sensorList[x].describe);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for(let i=0;i<self.dialogForm.riskPlanSensorList.length;i++){
|
|
|
+ for(let x=0;x<self.sensorList.length;x++){
|
|
|
+ if(self.dialogForm.riskPlanSensorList[i].funNum == self.sensorList[x].funNum){
|
|
|
+ text.push(self.sensorList[x].describe);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ text = Array.from(new Set(text));
|
|
|
+ text = text+''
|
|
|
+ text = text.replace(",","+")
|
|
|
+ console.log(text);
|
|
|
+ let obj = JSON.parse(JSON.stringify(this.dialogForm))
|
|
|
+ obj.riskPlanId = this.addPlanData.id;
|
|
|
+ obj.startCondition = text+'';
|
|
|
+ planLevelAdd(obj).then((response) => {
|
|
|
+ this.msgSuccess(response.msg)
|
|
|
+ this.selectRiskPlanLeveListRiskPlanId();
|
|
|
+ this.$set(this,'dialogOpen',false);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
//取消
|
|
|
cancel(){
|
|
|
this.$set(this,'dialogOpen',false);
|
|
|
},
|
|
|
//新增/编辑预案
|
|
|
- buttonClick(type){
|
|
|
+ buttonClick(type,item,index){
|
|
|
+ let self = this;
|
|
|
if(type == 1){
|
|
|
+ this.$set(this,'dialogIndex',null);
|
|
|
this.$set(this,'dialogTitle','新增预案规则');
|
|
|
+ this.$set(this,'dialogForm',{
|
|
|
+ riskPlanLevel:null,
|
|
|
+ ifExit:null,
|
|
|
+ riskPlanSensorList:[],
|
|
|
+ riskPlanHardwareList:[],
|
|
|
+ });
|
|
|
this.$set(this,'dialogOpen',true);
|
|
|
}else if(type == 2){
|
|
|
this.$set(this,'dialogTitle','编辑预案规则');
|
|
|
+ this.$set(this,'dialogIndex',index);
|
|
|
+ let obj = JSON.parse(JSON.stringify(item))
|
|
|
+ this.$set(this,'dialogForm',{
|
|
|
+ id:obj.id,
|
|
|
+ riskPlanId:obj.riskPlanId,
|
|
|
+ riskPlanLevel:obj.riskPlanLevel,
|
|
|
+ ifExit:obj.ifExit,
|
|
|
+ riskPlanSensorList:obj.riskPlanSensorList,
|
|
|
+ riskPlanHardwareList:obj.riskPlanHardwareList,
|
|
|
+ });
|
|
|
+ let list = [];
|
|
|
+ for(let i=0;i<self.form.labRiskPlanLevels.length;i++){
|
|
|
+ if(i!=index){
|
|
|
+ list.push(self.form.labRiskPlanLevels[i]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$set(this,'labRiskPlanLevels',JSON.parse(JSON.stringify(list)));
|
|
|
this.$set(this,'dialogOpen',true);
|
|
|
}else if(type == 3){
|
|
|
this.$confirm('确定要删除该预案规则吗?', "警告", {
|
|
@@ -416,7 +584,30 @@
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(function() {
|
|
|
- console.log('删除该预案规则')
|
|
|
+ let text = [];
|
|
|
+ for(let i=0;i<self.form.labRiskPlanLevels.length;i++){
|
|
|
+ if(index != i){
|
|
|
+ for(let o=0;o<self.form.labRiskPlanLevels[i].riskPlanSensorList.length;o++){
|
|
|
+ for(let x=0;x<self.sensorList.length;x++){
|
|
|
+ if(self.form.labRiskPlanLevels[i].riskPlanSensorList[o].funNum == self.sensorList[x].funNum){
|
|
|
+ text.push(self.sensorList[x].describe);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ text = Array.from(new Set(text));
|
|
|
+ text = text+''
|
|
|
+ text = text.replace(",","+")
|
|
|
+ let obj = {
|
|
|
+ id:item.id,
|
|
|
+ startCondition:text,
|
|
|
+ riskPlanId:item.riskPlanId
|
|
|
+ }
|
|
|
+ planLevelDel(obj).then((response) => {
|
|
|
+ self.msgSuccess(response.msg)
|
|
|
+ self.selectRiskPlanLeveListRiskPlanId();
|
|
|
+ });
|
|
|
}).then(() => {
|
|
|
}).catch(() => {});
|
|
|
}
|
|
@@ -466,6 +657,30 @@
|
|
|
.plan-for-max-box {
|
|
|
flex: 1;
|
|
|
padding:0 20px 20px 20px;
|
|
|
+ .plan-for-max-box-name-box{
|
|
|
+ display: flex;
|
|
|
+ .plan-for-max-box-name-button-one{
|
|
|
+ width:80px;
|
|
|
+ text-align: center;
|
|
|
+ font-size:14px;
|
|
|
+ line-height:40px;
|
|
|
+ margin:40px 0 0 40px;
|
|
|
+ }
|
|
|
+ .plan-for-max-box-name-button-two{
|
|
|
+ width:80px;
|
|
|
+ text-align: center;
|
|
|
+ font-size:14px;
|
|
|
+ line-height:40px;
|
|
|
+ margin:40px 0 0 40px;
|
|
|
+ }
|
|
|
+ .plan-for-max-box-name-button-three{
|
|
|
+ width:80px;
|
|
|
+ text-align: center;
|
|
|
+ font-size:14px;
|
|
|
+ line-height:40px;
|
|
|
+ margin:40px 0 0 20px;
|
|
|
+ }
|
|
|
+ }
|
|
|
.for-plan-box{
|
|
|
position: relative;
|
|
|
border-radius:10px;
|
|
@@ -541,7 +756,7 @@
|
|
|
width:1030px;
|
|
|
padding-top:21px;
|
|
|
.min-for-text-box-one{
|
|
|
- width:400px;
|
|
|
+ width:460px;
|
|
|
line-height:30px;
|
|
|
margin-bottom:21px;
|
|
|
margin-right:40px;
|
|
@@ -558,7 +773,7 @@
|
|
|
}
|
|
|
}
|
|
|
.min-for-text-box-two{
|
|
|
- width:400px;
|
|
|
+ width:460px;
|
|
|
line-height:30px;
|
|
|
margin-bottom:21px;
|
|
|
margin-right:40px;
|