| | |
| | | </div> |
| | | </div> |
| | | <div style="padding-left: 10px"> |
| | | <el-table ref="multipleTableRef" :data="tableData" style="width: 100%"> |
| | | <el-table ref="multipleTableRef" :data="tableData" @selection-change="handleSelectionChange" style="width: 100%"> |
| | | <el-table-column type="selection" align="center" width="55" /> |
| | | <el-table-column type="expand"> |
| | | <template #default="scope"> |
| | |
| | | // 重置 |
| | | const resetForm = () => { |
| | | ruleForm.searchParams.qName = ''; |
| | | ruleForm.searchParams.positionNum = ''; |
| | | listApi(); |
| | | }; |
| | | const listApi = () => { |
| | |
| | | // 弹窗 |
| | | const openAdd = ref(); |
| | | const openD = (title: String, id: number) => { |
| | | openAdd.value.openDailog(title,false,id,1); |
| | | openAdd.value.openDailog(title,true,id,1); |
| | | }; |
| | | // 删除 |
| | | 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; |
| | | warning.value = false; |
| | | danger.value = false; |
| | | } else if (val.length == 0) { |
| | | // warning.value = true; |
| | | warning.value = true; |
| | | danger.value = true; |
| | | } else { |
| | | // warning.value = true; |
| | | warning.value = true; |
| | | 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([]) |