| | |
| | | <el-card shadow="hover"> |
| | | <div class="system-user-search mb15"> |
| | | <div class="basic-line"> |
| | | <span>生产装置名称:</span> |
| | | <el-input v-model="productionDeviceData.params.produceDeviceName" class="input-box"> </el-input> |
| | | </div> |
| | | <div class="basic-line"> |
| | | <span>风险等级:</span> |
| | | <el-select v-model="productionDeviceData.params.riskLevel" clearable filterable class="input-box" placeholder="请选择风险等级"> |
| | | <el-option v-for="item in levelList" :key="item.id" :label="item.name" :value="item.id"></el-option> |
| | |
| | | import { ElMessageBox, ElMessage } from 'element-plus'; |
| | | import productionDeviceDialog from './components/productionDeviceDialog.vue'; |
| | | import { productionDeviceApi } from '/@/api/doublePreventSystem/productionDevice/index.ts'; |
| | | import { departmentApi } from '/@/api/department'; |
| | | import { departmentApi } from '/@/api/systemManage/department'; |
| | | import { Edit, Delete, View } from '@element-plus/icons-vue'; |
| | | |
| | | // 定义接口来定义对象的类型 |
| | |
| | | params: { |
| | | pageIndex: number; |
| | | pageSize: number; |
| | | riskLevel: number | null; |
| | | riskLevel: number | null | ''; |
| | | status: number; |
| | | depId: number | null; |
| | | depId: number | null | ''; |
| | | location: string | null; |
| | | produceDeviceName: string | null; |
| | | }; |
| | |
| | | }); |
| | | // 初始化表格数据 |
| | | const initProductionDeviceTableData = async () => { |
| | | state.productionDeviceData.params.riskLevel = state.productionDeviceData.params.riskLevel === '' ? null : state.productionDeviceData.params.riskLevel; |
| | | state.productionDeviceData.params.depId = state.productionDeviceData.params.depId === '' ? null : state.productionDeviceData.params.depId; |
| | | let res = await productionDeviceApi().getProductionDeviceList(state.productionDeviceData.params); |
| | | if (res.data.code === '200') { |
| | | state.productionDeviceData.data = res.data.data; |