| | |
| | | <div class="btns"> |
| | | <div> |
| | | <el-button size="default" type="primary" :icon="Plus" @click="openD('新建')">新建</el-button> |
| | | <el-button size="default" :disabled="warning" type="warning" plain :icon="EditPen">修改</el-button> |
| | | <!-- <el-button size="default" :disabled="warning" type="warning" plain :icon="EditPen">修改</el-button> --> |
| | | <el-button size="default" :disabled="danger" type="danger" :icon="Delete" @click="onDeleteAll" plain>删除</el-button> |
| | | </div> |
| | | <div> |
| | |
| | | searchParams: { |
| | | qName: '', ////名称 |
| | | positionNum: '', ////位号 |
| | | infoType: 0, ////具体类型(页面左侧的导航栏使用) 0:仪器仪表信息 1:生产设备设施 2:安全设备设施 |
| | | infoType: 1, ////具体类型(页面左侧的导航栏使用) 0:仪器仪表信息 1:生产设备设施 2:安全设备设施 |
| | | }, |
| | | }); |
| | | // 重置 |
| | |
| | | }; |
| | | // 删除 |
| | | const onDelete = (id: number) => { |
| | | let arr=[] |
| | | arr.push(id) |
| | | ElMessageBox.confirm('确定删除所选项吗?', 'Warning', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | }) |
| | | .then(() => { |
| | | facilityManagementApi() |
| | | .getequipmentInfoDelete(id) |
| | | .getequipmentInfoDelete(arr) |
| | | .then((res) => { |
| | | if (res.data.code == 200) { |
| | | ElMessage({ |
| | |
| | | for (let i = 0; i < valId.length; i++) { |
| | | arr.push(valId[i].id); |
| | | } |
| | | deletAll.value = arr.toString(); |
| | | deletAll.value = arr |
| | | if (val.length == 1) { |
| | | warning.value = false; |
| | | danger.value = false; |
| | |
| | | return data.typeName.includes(value); |
| | | }; |
| | | const handleNodeClick=(data: Tree)=>{ |
| | | ruleForm.searchParams.positionNum=data.id |
| | | ruleForm.searchParams.positionNum=data.sortNum |
| | | listApi(); |
| | | } |
| | | const data=ref([]) |